Skip to content

Commit a7d89cf

Browse files
committed
torture: Change KVM environment variable to RCUTORTURE
The torture-test scripting's long-standing use of KVM as the environment variable tracking the pathname of the rcutorture directory now conflicts with allmodconfig builds due to the virt/kvm/Makefile.kvm file's use of this as a makefile variable. This commit therefore changes the torture-test scripting from KVM to RCUTORTURE, avoiding the name conflict. Reported-by: Zhouyi Zhou <zhouzhouyi@gmail.com> Tested-by: Zhouyi Zhou <zhouzhouyi@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent e31ccc1 commit a7d89cf

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

tools/testing/selftests/rcutorture/bin/kvm-again.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ else
4747
exit 1
4848
fi
4949

50-
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
51-
PATH=${KVM}/bin:$PATH; export PATH
50+
RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
51+
PATH=${RCUTORTURE}/bin:$PATH; export PATH
5252
. functions.sh
5353

5454
dryrun=

tools/testing/selftests/rcutorture/bin/kvm-check-branches.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ fi
4949
mkdir $resdir/$ds
5050
echo Results directory: $resdir/$ds
5151

52-
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
53-
PATH=${KVM}/bin:$PATH; export PATH
52+
RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
53+
PATH=${RCUTORTURE}/bin:$PATH; export PATH
5454
. functions.sh
5555
echo Using all `identify_qemu_vcpus` CPUs.
5656

tools/testing/selftests/rcutorture/bin/kvm-end-run-stats.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ T=${TMPDIR-/tmp}/kvm-end-run-stats.sh.$$
2222
trap 'rm -rf $T' 0
2323
mkdir $T
2424

25-
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
26-
PATH=${KVM}/bin:$PATH; export PATH
25+
RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
26+
PATH=${RCUTORTURE}/bin:$PATH; export PATH
2727
. functions.sh
2828
default_starttime="`get_starttime`"
2929
starttime="${2-default_starttime}"

tools/testing/selftests/rcutorture/bin/kvm-remote.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ then
1919
exit 1
2020
fi
2121

22-
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
23-
PATH=${KVM}/bin:$PATH; export PATH
22+
RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
23+
PATH=${RCUTORTURE}/bin:$PATH; export PATH
2424
. functions.sh
2525

2626
starttime="`get_starttime`"
@@ -108,8 +108,8 @@ else
108108
cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log"
109109
exit 2
110110
fi
111-
cp -a "$rundir" "$KVM/res/"
112-
oldrun="$KVM/res/$ds"
111+
cp -a "$rundir" "$RCUTORTURE/res/"
112+
oldrun="$RCUTORTURE/res/$ds"
113113
fi
114114
echo | tee -a "$oldrun/remote-log"
115115
echo " ----" kvm-again.sh output: "(`date`)" | tee -a "$oldrun/remote-log"

tools/testing/selftests/rcutorture/bin/kvm.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ LANG=en_US.UTF-8; export LANG
2525

2626
dur=$((30*60))
2727
dryrun=""
28-
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
29-
PATH=${KVM}/bin:$PATH; export PATH
28+
RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
29+
PATH=${RCUTORTURE}/bin:$PATH; export PATH
3030
. functions.sh
3131

3232
TORTURE_ALLOTED_CPUS="`identify_qemu_vcpus`"
3333
TORTURE_DEFCONFIG=defconfig
3434
TORTURE_BOOT_IMAGE=""
3535
TORTURE_BUILDONLY=
36-
TORTURE_INITRD="$KVM/initrd"; export TORTURE_INITRD
36+
TORTURE_INITRD="$RCUTORTURE/initrd"; export TORTURE_INITRD
3737
TORTURE_KCONFIG_ARG=""
3838
TORTURE_KCONFIG_GDB_ARG=""
3939
TORTURE_BOOT_GDB_ARG=""
@@ -262,7 +262,7 @@ else
262262
exit 1
263263
fi
264264

265-
CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG
265+
CONFIGFRAG=${RCUTORTURE}/configs/${TORTURE_SUITE}; export CONFIGFRAG
266266

267267
defaultconfigs="`tr '\012' ' ' < $CONFIGFRAG/CFLIST`"
268268
if test -z "$configs"
@@ -272,7 +272,7 @@ fi
272272

273273
if test -z "$resdir"
274274
then
275-
resdir=$KVM/res
275+
resdir=$RCUTORTURE/res
276276
fi
277277

278278
# Create a file of test-name/#cpus pairs, sorted by decreasing #cpus.
@@ -386,7 +386,7 @@ END {
386386
# Generate a script to execute the tests in appropriate batches.
387387
cat << ___EOF___ > $T/script
388388
CONFIGFRAG="$CONFIGFRAG"; export CONFIGFRAG
389-
KVM="$KVM"; export KVM
389+
RCUTORTURE="$RCUTORTURE"; export RCUTORTURE
390390
PATH="$PATH"; export PATH
391391
TORTURE_ALLOTED_CPUS="$TORTURE_ALLOTED_CPUS"; export TORTURE_ALLOTED_CPUS
392392
TORTURE_BOOT_IMAGE="$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE
@@ -569,7 +569,7 @@ ___EOF___
569569
awk < $T/cfgcpu.pack \
570570
-v TORTURE_BUILDONLY="$TORTURE_BUILDONLY" \
571571
-v CONFIGDIR="$CONFIGFRAG/" \
572-
-v KVM="$KVM" \
572+
-v RCUTORTURE="$RCUTORTURE" \
573573
-v ncpus=$cpus \
574574
-v jitter="$jitter" \
575575
-v rd=$resdir/$ds/ \

tools/testing/selftests/rcutorture/bin/torture.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
scriptname=$0
1414
args="$*"
1515

16-
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
17-
PATH=${KVM}/bin:$PATH; export PATH
16+
RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
17+
PATH=${RCUTORTURE}/bin:$PATH; export PATH
1818
. functions.sh
1919

2020
TORTURE_ALLOTED_CPUS="`identify_qemu_vcpus`"

0 commit comments

Comments
 (0)