aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh2
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm.sh19
2 files changed, 6 insertions, 15 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 e0f896999d6b..8ca9f21f2efc 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
@@ -45,7 +45,7 @@ trap 'rm -rf $T' 0
45touch $T 45touch $T
46 46
47. $KVM/bin/functions.sh 47. $KVM/bin/functions.sh
48. $KVPATH/ver_functions.sh 48. $CONFIGFRAG/ver_functions.sh
49 49
50config_template=${1} 50config_template=${1}
51config_dir=`echo $config_template | sed -e 's,/[^/]*$,,'` 51config_dir=`echo $config_template | sed -e 's,/[^/]*$,,'`
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index e527dc952eb0..368d64ac779e 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -47,7 +47,6 @@ resdir=""
47configs="" 47configs=""
48cpus=0 48cpus=0
49ds=`date +%Y.%m.%d-%H:%M:%S` 49ds=`date +%Y.%m.%d-%H:%M:%S`
50kversion=""
51 50
52. functions.sh 51. functions.sh
53 52
@@ -64,7 +63,6 @@ usage () {
64 echo " --duration minutes" 63 echo " --duration minutes"
65 echo " --interactive" 64 echo " --interactive"
66 echo " --kmake-arg kernel-make-arguments" 65 echo " --kmake-arg kernel-make-arguments"
67 echo " --kversion vN.NN"
68 echo " --mac nn:nn:nn:nn:nn:nn" 66 echo " --mac nn:nn:nn:nn:nn:nn"
69 echo " --no-initrd" 67 echo " --no-initrd"
70 echo " --qemu-args qemu-system-..." 68 echo " --qemu-args qemu-system-..."
@@ -128,11 +126,6 @@ do
128 TORTURE_KMAKE_ARG="$2" 126 TORTURE_KMAKE_ARG="$2"
129 shift 127 shift
130 ;; 128 ;;
131 --kversion)
132 checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error'
133 kversion=$2
134 shift
135 ;;
136 --mac) 129 --mac)
137 checkarg --mac "(MAC address)" $# "$2" '^\([0-9a-fA-F]\{2\}:\)\{5\}[0-9a-fA-F]\{2\}$' error 130 checkarg --mac "(MAC address)" $# "$2" '^\([0-9a-fA-F]\{2\}:\)\{5\}[0-9a-fA-F]\{2\}$' error
138 TORTURE_QEMU_MAC=$2 131 TORTURE_QEMU_MAC=$2
@@ -170,11 +163,10 @@ do
170done 163done
171 164
172CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG 165CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG
173KVPATH=${CONFIGFRAG}/$kversion; export KVPATH
174 166
175if test -z "$configs" 167if test -z "$configs"
176then 168then
177 configs="`cat $CONFIGFRAG/$kversion/CFLIST`" 169 configs="`cat $CONFIGFRAG/CFLIST`"
178fi 170fi
179 171
180if test -z "$resdir" 172if test -z "$resdir"
@@ -186,10 +178,10 @@ fi
186touch $T/cfgcpu 178touch $T/cfgcpu
187for CF in $configs 179for CF in $configs
188do 180do
189 if test -f "$CONFIGFRAG/$kversion/$CF" 181 if test -f "$CONFIGFRAG/$CF"
190 then 182 then
191 cpu_count=`configNR_CPUS.sh $CONFIGFRAG/$kversion/$CF` 183 cpu_count=`configNR_CPUS.sh $CONFIGFRAG/$CF`
192 cpu_count=`configfrag_boot_cpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$kversion/$CF" "$cpu_count"` 184 cpu_count=`configfrag_boot_cpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$CF" "$cpu_count"`
193 echo $CF $cpu_count >> $T/cfgcpu 185 echo $CF $cpu_count >> $T/cfgcpu
194 else 186 else
195 echo "The --configs file $CF does not exist, terminating." 187 echo "The --configs file $CF does not exist, terminating."
@@ -252,7 +244,6 @@ END {
252cat << ___EOF___ > $T/script 244cat << ___EOF___ > $T/script
253CONFIGFRAG="$CONFIGFRAG"; export CONFIGFRAG 245CONFIGFRAG="$CONFIGFRAG"; export CONFIGFRAG
254KVM="$KVM"; export KVM 246KVM="$KVM"; export KVM
255KVPATH="$KVPATH"; export KVPATH
256PATH="$PATH"; export PATH 247PATH="$PATH"; export PATH
257TORTURE_BOOT_IMAGE="$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE 248TORTURE_BOOT_IMAGE="$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE
258TORTURE_BUILDONLY="$TORTURE_BUILDONLY"; export TORTURE_BUILDONLY 249TORTURE_BUILDONLY="$TORTURE_BUILDONLY"; export TORTURE_BUILDONLY
@@ -285,7 +276,7 @@ then
285fi 276fi
286___EOF___ 277___EOF___
287awk < $T/cfgcpu.pack \ 278awk < $T/cfgcpu.pack \
288 -v CONFIGDIR="$CONFIGFRAG/$kversion/" \ 279 -v CONFIGDIR="$CONFIGFRAG/" \
289 -v KVM="$KVM" \ 280 -v KVM="$KVM" \
290 -v ncpus=$cpus \ 281 -v ncpus=$cpus \
291 -v rd=$resdir/$ds/ \ 282 -v rd=$resdir/$ds/ \