diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-07 13:29:49 -0500 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 12:04:36 -0500 |
| commit | 61010e74d76ca51dd452290d6c340c681df498ce (patch) | |
| tree | aa64b948ac7a554d90100f326a589f94b6657ce8 /tools/testing/selftests/rcutorture/bin | |
| parent | d3b1548aa247d7b436834dbe518189bb9c1ebd4b (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-x | tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 2 | ||||
| -rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 17 |
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 | |||
| 199 | fi | 199 | fi |
| 200 | 200 | ||
| 201 | cp $builddir/console.log $resdir | 201 | cp $builddir/console.log $resdir |
| 202 | parse-rcutorture.sh $resdir/console.log $title | 202 | parse-${TORTURE_SUITE}torture.sh $resdir/console.log $title |
| 203 | parse-console.sh $resdir/console.log $title | 203 | parse-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 | |||
| 41 | builddir="${KVM}/b1" | 41 | builddir="${KVM}/b1" |
| 42 | RCU_INITRD="$KVM/initrd"; export RCU_INITRD | 42 | RCU_INITRD="$KVM/initrd"; export RCU_INITRD |
| 43 | RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG | 43 | RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG |
| 44 | TORTURE_SUITE=rcu | ||
| 44 | resdir="" | 45 | resdir="" |
| 45 | configs="" | 46 | configs="" |
| 46 | cpus=0 | 47 | cpus=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 |
| 165 | done | 172 | done |
| 166 | 173 | ||
| 167 | CONFIGFRAG=${KVM}/configs; export CONFIGFRAG | 174 | CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG |
| 168 | KVPATH=${CONFIGFRAG}/$kversion; export KVPATH | 175 | KVPATH=${CONFIGFRAG}/$kversion; export KVPATH |
| 169 | 176 | ||
| 170 | if test -z "$configs" | 177 | if 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. |
| 276 | cat << ___EOF___ > $T/script | ||
| 277 | TORTURE_SUITE="$TORTURE_SUITE"; export TORTURE_SUITE | ||
| 278 | ___EOF___ | ||
| 268 | awk < $T/cfgcpu.pack \ | 279 | awk < $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 | ||
| 358 | if test "$dryrun" = script | 369 | if test "$dryrun" = script |
| 359 | then | 370 | then |
