aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-07 13:29:49 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-23 12:04:36 -0500
commit61010e74d76ca51dd452290d6c340c681df498ce (patch)
treeaa64b948ac7a554d90100f326a589f94b6657ce8 /tools/testing/selftests/rcutorture/bin
parentd3b1548aa247d7b436834dbe518189bb9c1ebd4b (diff)
rcutorture: Introduce "rcu" directory level underneath configs
This commit uses the standard software ploy of introducing another level of indirection below the configs directory. This allows each torture-test suite to have its own set of Kconfig files, boot parameters, and version-specific scripts. Initially, we have only rcu, but lock will follow soonish. 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/bin')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh2
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh17
2 files changed, 15 insertions, 4 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
index 015d35bc43cb..94b28bb37d36 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
@@ -199,5 +199,5 @@ then
199fi 199fi
200 200
201cp $builddir/console.log $resdir 201cp $builddir/console.log $resdir
202parse-rcutorture.sh $resdir/console.log $title 202parse-${TORTURE_SUITE}torture.sh $resdir/console.log $title
203parse-console.sh $resdir/console.log $title 203parse-console.sh $resdir/console.log $title
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 767097e2a293..c24092ce981c 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -41,6 +41,7 @@ PATH=${KVM}/bin:$PATH; export PATH
41builddir="${KVM}/b1" 41builddir="${KVM}/b1"
42RCU_INITRD="$KVM/initrd"; export RCU_INITRD 42RCU_INITRD="$KVM/initrd"; export RCU_INITRD
43RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG 43RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG
44TORTURE_SUITE=rcu
44resdir="" 45resdir=""
45configs="" 46configs=""
46cpus=0 47cpus=0
@@ -66,8 +67,9 @@ usage () {
66 echo " --no-initrd" 67 echo " --no-initrd"
67 echo " --qemu-args qemu-system-..." 68 echo " --qemu-args qemu-system-..."
68 echo " --qemu-cmd qemu-system-..." 69 echo " --qemu-cmd qemu-system-..."
69 echo " --results absolute-pathname"
70 echo " --relbuilddir relative-pathname" 70 echo " --relbuilddir relative-pathname"
71 echo " --results absolute-pathname"
72 echo " --torture rcu"
71 exit 1 73 exit 1
72} 74}
73 75
@@ -156,6 +158,11 @@ do
156 resdir=$2 158 resdir=$2
157 shift 159 shift
158 ;; 160 ;;
161 --torture)
162 checkarg --torture "(suite name)" "$#" "$2" '^rcu$' '^--'
163 TORTURE_SUITE=$2
164 shift
165 ;;
159 *) 166 *)
160 echo Unknown argument $1 167 echo Unknown argument $1
161 usage 168 usage
@@ -164,7 +171,7 @@ do
164 shift 171 shift
165done 172done
166 173
167CONFIGFRAG=${KVM}/configs; export CONFIGFRAG 174CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG
168KVPATH=${CONFIGFRAG}/$kversion; export KVPATH 175KVPATH=${CONFIGFRAG}/$kversion; export KVPATH
169 176
170if test -z "$configs" 177if test -z "$configs"
@@ -191,6 +198,7 @@ then
191 198
192 touch $resdir/$ds/log 199 touch $resdir/$ds/log
193 echo $scriptname $args >> $resdir/$ds/log 200 echo $scriptname $args >> $resdir/$ds/log
201 echo ${TORTURE_SUITE} > $resdir/$ds/TORTURE_SUITE
194 202
195 pwd > $resdir/$ds/testid.txt 203 pwd > $resdir/$ds/testid.txt
196 if test -d .git 204 if test -d .git
@@ -265,6 +273,9 @@ END {
265}' 273}'
266 274
267# Generate a script to execute the tests in appropriate batches. 275# Generate a script to execute the tests in appropriate batches.
276cat << ___EOF___ > $T/script
277TORTURE_SUITE="$TORTURE_SUITE"; export TORTURE_SUITE
278___EOF___
268awk < $T/cfgcpu.pack \ 279awk < $T/cfgcpu.pack \
269 -v CONFIGDIR="$CONFIGFRAG/$kversion/" \ 280 -v CONFIGDIR="$CONFIGFRAG/$kversion/" \
270 -v KVM="$KVM" \ 281 -v KVM="$KVM" \
@@ -353,7 +364,7 @@ END {
353 # Dump the last batch. 364 # Dump the last batch.
354 if (ncpus != 0) 365 if (ncpus != 0)
355 dump(first, i); 366 dump(first, i);
356}' > $T/script 367}' >> $T/script
357 368
358if test "$dryrun" = script 369if test "$dryrun" = script
359then 370then