|
@@ -41,6 +41,7 @@ PATH=${KVM}/bin:$PATH; export PATH
|
|
builddir="${KVM}/b1"
|
|
builddir="${KVM}/b1"
|
|
RCU_INITRD="$KVM/initrd"; export RCU_INITRD
|
|
RCU_INITRD="$KVM/initrd"; export RCU_INITRD
|
|
RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG
|
|
RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG
|
|
|
|
+TORTURE_SUITE=rcu
|
|
resdir=""
|
|
resdir=""
|
|
configs=""
|
|
configs=""
|
|
cpus=0
|
|
cpus=0
|
|
@@ -66,8 +67,9 @@ usage () {
|
|
echo " --no-initrd"
|
|
echo " --no-initrd"
|
|
echo " --qemu-args qemu-system-..."
|
|
echo " --qemu-args qemu-system-..."
|
|
echo " --qemu-cmd qemu-system-..."
|
|
echo " --qemu-cmd qemu-system-..."
|
|
- echo " --results absolute-pathname"
|
|
|
|
echo " --relbuilddir relative-pathname"
|
|
echo " --relbuilddir relative-pathname"
|
|
|
|
+ echo " --results absolute-pathname"
|
|
|
|
+ echo " --torture rcu"
|
|
exit 1
|
|
exit 1
|
|
}
|
|
}
|
|
|
|
|
|
@@ -156,6 +158,11 @@ do
|
|
resdir=$2
|
|
resdir=$2
|
|
shift
|
|
shift
|
|
;;
|
|
;;
|
|
|
|
+ --torture)
|
|
|
|
+ checkarg --torture "(suite name)" "$#" "$2" '^rcu$' '^--'
|
|
|
|
+ TORTURE_SUITE=$2
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
*)
|
|
*)
|
|
echo Unknown argument $1
|
|
echo Unknown argument $1
|
|
usage
|
|
usage
|
|
@@ -164,7 +171,7 @@ do
|
|
shift
|
|
shift
|
|
done
|
|
done
|
|
|
|
|
|
-CONFIGFRAG=${KVM}/configs; export CONFIGFRAG
|
|
|
|
|
|
+CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG
|
|
KVPATH=${CONFIGFRAG}/$kversion; export KVPATH
|
|
KVPATH=${CONFIGFRAG}/$kversion; export KVPATH
|
|
|
|
|
|
if test -z "$configs"
|
|
if test -z "$configs"
|
|
@@ -191,6 +198,7 @@ then
|
|
|
|
|
|
touch $resdir/$ds/log
|
|
touch $resdir/$ds/log
|
|
echo $scriptname $args >> $resdir/$ds/log
|
|
echo $scriptname $args >> $resdir/$ds/log
|
|
|
|
+ echo ${TORTURE_SUITE} > $resdir/$ds/TORTURE_SUITE
|
|
|
|
|
|
pwd > $resdir/$ds/testid.txt
|
|
pwd > $resdir/$ds/testid.txt
|
|
if test -d .git
|
|
if test -d .git
|
|
@@ -265,6 +273,9 @@ END {
|
|
}'
|
|
}'
|
|
|
|
|
|
# Generate a script to execute the tests in appropriate batches.
|
|
# Generate a script to execute the tests in appropriate batches.
|
|
|
|
+cat << ___EOF___ > $T/script
|
|
|
|
+TORTURE_SUITE="$TORTURE_SUITE"; export TORTURE_SUITE
|
|
|
|
+___EOF___
|
|
awk < $T/cfgcpu.pack \
|
|
awk < $T/cfgcpu.pack \
|
|
-v CONFIGDIR="$CONFIGFRAG/$kversion/" \
|
|
-v CONFIGDIR="$CONFIGFRAG/$kversion/" \
|
|
-v KVM="$KVM" \
|
|
-v KVM="$KVM" \
|
|
@@ -353,7 +364,7 @@ END {
|
|
# Dump the last batch.
|
|
# Dump the last batch.
|
|
if (ncpus != 0)
|
|
if (ncpus != 0)
|
|
dump(first, i);
|
|
dump(first, i);
|
|
-}' > $T/script
|
|
|
|
|
|
+}' >> $T/script
|
|
|
|
|
|
if test "$dryrun" = script
|
|
if test "$dryrun" = script
|
|
then
|
|
then
|