aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-01-14 02:16:55 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-18 15:25:59 -0500
commitbad804406ad627591477a87778e0698116f8e7f5 (patch)
tree25de026869416099658e3fb6a4b7d6a412020fb4 /tools/testing/selftests/rcutorture
parent4a261dbceaaece2018ef03b16d5092c09147df28 (diff)
rcutorture: Allow kvm-test-1-rcu.sh to pause after build
Parallel rcutorture runs is valuable on large systems, but it is not a good idea to do (say) five builds in parallel if each build believes it has the whole system at its disposal, especially if the system is shared. It is also bad to restrict the build to (say) a single CPU just because the corresponding rcutorture run uses only a single CPU. This commit therefore adds a kvm-test-1-rcu.sh ability to pause after the build completes, which will allow kvm.sh to do a number of builds serially (with each build thus having the full system at its disposal), then allow the rcutorture runs to proceed in parallel. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh12
1 files changed, 12 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 2cb7facbc86d..c3a396518113 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
@@ -96,11 +96,23 @@ then
96 cp $builddir/.config $resdir 96 cp $builddir/.config $resdir
97 cp $builddir/arch/x86/boot/bzImage $resdir 97 cp $builddir/arch/x86/boot/bzImage $resdir
98 parse-build.sh $resdir/Make.out $title 98 parse-build.sh $resdir/Make.out $title
99 if test -f $builddir.wait
100 then
101 mv $builddir.wait $builddir.ready
102 fi
99else 103else
100 cp $builddir/Make*.out $resdir 104 cp $builddir/Make*.out $resdir
101 echo Build failed, not running KVM, see $resdir. 105 echo Build failed, not running KVM, see $resdir.
106 if test -f $builddir.wait
107 then
108 mv $builddir.wait $builddir.ready
109 fi
102 exit 1 110 exit 1
103fi 111fi
112while test -f $builddir.ready
113do
114 sleep 1
115done
104minutes=$4 116minutes=$4
105seconds=$(($minutes * 60)) 117seconds=$(($minutes * 60))
106qemu_args=$5 118qemu_args=$5