aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-26 19:38:52 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-05-14 12:45:46 -0400
commita0edd47ca4f0ffa33df137c13a08189bae66bcc3 (patch)
tree8c7198e167a6248913d30d0af2457dfafd24da3f /tools/testing
parent805ffee232dc9e3e102e379142181034e86e3357 (diff)
torture: Rename RCU_QEMU_INTERACTIVE to TORTURE_QEMU_INTERACTIVE
This commit makes the torture scripts a bit more RCU-independent. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/rcutorture/bin/functions.sh12
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh4
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh
index 9b17e810ddc3..623939cf814e 100644
--- a/tools/testing/selftests/rcutorture/bin/functions.sh
+++ b/tools/testing/selftests/rcutorture/bin/functions.sh
@@ -107,14 +107,14 @@ identify_qemu () {
107# identify_qemu_append qemu-cmd 107# identify_qemu_append qemu-cmd
108# 108#
109# Output arguments for the qemu "-append" string based on CPU type 109# Output arguments for the qemu "-append" string based on CPU type
110# and the RCU_QEMU_INTERACTIVE environment variable. 110# and the TORTURE_QEMU_INTERACTIVE environment variable.
111identify_qemu_append () { 111identify_qemu_append () {
112 case "$1" in 112 case "$1" in
113 qemu-system-x86_64|qemu-system-i386) 113 qemu-system-x86_64|qemu-system-i386)
114 echo noapic selinux=0 initcall_debug debug 114 echo noapic selinux=0 initcall_debug debug
115 ;; 115 ;;
116 esac 116 esac
117 if test -n "$RCU_QEMU_INTERACTIVE" 117 if test -n "$TORTURE_QEMU_INTERACTIVE"
118 then 118 then
119 echo root=/dev/sda 119 echo root=/dev/sda
120 else 120 else
@@ -125,7 +125,7 @@ identify_qemu_append () {
125# identify_qemu_args qemu-cmd serial-file 125# identify_qemu_args qemu-cmd serial-file
126# 126#
127# Output arguments for qemu arguments based on the RCU_QEMU_MAC 127# Output arguments for qemu arguments based on the RCU_QEMU_MAC
128# and RCU_QEMU_INTERACTIVE environment variables. 128# and TORTURE_QEMU_INTERACTIVE environment variables.
129identify_qemu_args () { 129identify_qemu_args () {
130 case "$1" in 130 case "$1" in
131 qemu-system-x86_64|qemu-system-i386) 131 qemu-system-x86_64|qemu-system-i386)
@@ -133,17 +133,17 @@ identify_qemu_args () {
133 qemu-system-ppc64) 133 qemu-system-ppc64)
134 echo -enable-kvm -M pseries -cpu POWER7 -nodefaults 134 echo -enable-kvm -M pseries -cpu POWER7 -nodefaults
135 echo -device spapr-vscsi 135 echo -device spapr-vscsi
136 if test -n "$RCU_QEMU_INTERACTIVE" -a -n "$RCU_QEMU_MAC" 136 if test -n "$TORTURE_QEMU_INTERACTIVE" -a -n "$RCU_QEMU_MAC"
137 then 137 then
138 echo -device spapr-vlan,netdev=net0,mac=$RCU_QEMU_MAC 138 echo -device spapr-vlan,netdev=net0,mac=$RCU_QEMU_MAC
139 echo -netdev bridge,br=br0,id=net0 139 echo -netdev bridge,br=br0,id=net0
140 elif test -n "$RCU_QEMU_INTERACTIVE" 140 elif test -n "$TORTURE_QEMU_INTERACTIVE"
141 then 141 then
142 echo -net nic -net user 142 echo -net nic -net user
143 fi 143 fi
144 ;; 144 ;;
145 esac 145 esac
146 if test -n "$RCU_QEMU_INTERACTIVE" 146 if test -n "$TORTURE_QEMU_INTERACTIVE"
147 then 147 then
148 echo -monitor stdio -serial pty -S 148 echo -monitor stdio -serial pty -S
149 else 149 else
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 73c586f6bdf6..c7d925bcd5b3 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -114,7 +114,7 @@ do
114 shift 114 shift
115 ;; 115 ;;
116 --interactive) 116 --interactive)
117 RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE 117 TORTURE_QEMU_INTERACTIVE=1; export TORTURE_QEMU_INTERACTIVE
118 ;; 118 ;;
119 --kmake-arg) 119 --kmake-arg)
120 checkarg --kmake-arg "(kernel make arguments)" $# "$2" '.*' '^error$' 120 checkarg --kmake-arg "(kernel make arguments)" $# "$2" '.*' '^error$'
@@ -378,7 +378,7 @@ then
378 echo TORTURE_INITRD="$TORTURE_INITRD; export TORTURE_INITRD" 378 echo TORTURE_INITRD="$TORTURE_INITRD; export TORTURE_INITRD"
379 echo TORTURE_KMAKE_ARG="$TORTURE_KMAKE_ARG; export TORTURE_KMAKE_ARG" 379 echo TORTURE_KMAKE_ARG="$TORTURE_KMAKE_ARG; export TORTURE_KMAKE_ARG"
380 echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD" 380 echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD"
381 echo RCU_QEMU_INTERACTIVE="$RCU_QEMU_INTERACTIVE; export RCU_QEMU_INTERACTIVE" 381 echo TORTURE_QEMU_INTERACTIVE="$TORTURE_QEMU_INTERACTIVE; export TORTURE_QEMU_INTERACTIVE"
382 echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC" 382 echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC"
383 echo "mkdir -p "$resdir" || :" 383 echo "mkdir -p "$resdir" || :"
384 echo "mkdir $resdir/$ds" 384 echo "mkdir $resdir/$ds"