aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-10-10 17:52:07 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-03 13:11:16 -0500
commit1127481392c8b95ad5066b6be99b3482522d4c89 (patch)
treeba7eea8ff68a64a2405689aef55cd6a805b66bfd /tools/testing
parent06d9d1b2e2e58347af37f00856156a550522b2cb (diff)
rcutorture: Add --buildonly dry-run capability
This commit adds --buildonly, which does the builds specified by the --configs argument, but does not boot or test the resulting kernels. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Greg KH <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh5
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh4
2 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
index 93342f7ce6d5..3df1581e78ae 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
@@ -141,6 +141,11 @@ boot_args="`rcutorture_param_n_barrier_cbs "$boot_args"`"
141boot_args="$boot_args rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1" 141boot_args="$boot_args rcutorture.stat_interval=15 rcutorture.shutdown_secs=$seconds rcutorture.rcutorture_runnable=1"
142 142
143echo $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd 143echo $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd
144if test -n "$RCU_BUILDONLY"
145then
146 echo Build-only run specified, boot/test omitted.
147 exit 0
148fi
144$QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append $boot_args" & 149$QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append $boot_args" &
145qemu_pid=$! 150qemu_pid=$!
146commandcompleted=0 151commandcompleted=0
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 979c34134634..6c67d0ca8c9a 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -41,6 +41,7 @@ kversion=""
41usage () { 41usage () {
42 echo "Usage: $scriptname optional arguments:" 42 echo "Usage: $scriptname optional arguments:"
43 echo " --builddir absolute-pathname" 43 echo " --builddir absolute-pathname"
44 echo " --buildonly"
44 echo " --configs \"config-file list\"" 45 echo " --configs \"config-file list\""
45 echo " --datestamp string" 46 echo " --datestamp string"
46 echo " --duration minutes" 47 echo " --duration minutes"
@@ -83,6 +84,9 @@ do
83 gotbuilddir=1 84 gotbuilddir=1
84 shift 85 shift
85 ;; 86 ;;
87 --buildonly)
88 RCU_BUILDONLY=1; export RCU_BUILDONLY
89 ;;
86 --configs) 90 --configs)
87 checkarg --configs "(list of config files)" "$#" "$2" '^[^/]*$' '^--' 91 checkarg --configs "(list of config files)" "$#" "$2" '^[^/]*$' '^--'
88 configs="$2" 92 configs="$2"