diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-04-29 12:53:34 -0400 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-06-26 13:58:41 -0400 |
| commit | 9bee2c6fb49d93678e4fb506a911c0b5ffe455ee (patch) | |
| tree | 31739d5ee2e4cdbd86597ecae4f9b443290a89e8 | |
| parent | 57e60d0b9e6c36c607471cdcd82d3465fb7f4c37 (diff) | |
torture: Clean up diagnostics from --buildonly runs
Currently the post-processing complains about the lack of rcutorture
output when --buildonly is set and also emits misleading messages about
kernels being started and finishing. This commit suppresses these
complaints and messages.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
| -rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-recheck.sh | 8 | ||||
| -rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 8 | ||||
| -rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 21 |
3 files changed, 25 insertions, 12 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck.sh index ee1f6cae3d70..3f6c9b78d177 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-recheck.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck.sh | |||
| @@ -54,10 +54,16 @@ do | |||
| 54 | if test -f "$i/qemu-cmd" | 54 | if test -f "$i/qemu-cmd" |
| 55 | then | 55 | then |
| 56 | print_bug qemu failed | 56 | print_bug qemu failed |
| 57 | echo " $i" | ||
| 58 | elif test -f "$i/buildonly" | ||
| 59 | then | ||
| 60 | echo Build-only run, no boot/test | ||
| 61 | configcheck.sh $i/.config $i/ConfigFragment | ||
| 62 | parse-build.sh $i/Make.out $configfile | ||
| 57 | else | 63 | else |
| 58 | print_bug Build failed | 64 | print_bug Build failed |
| 65 | echo " $i" | ||
| 59 | fi | 66 | fi |
| 60 | echo " $i" | ||
| 61 | fi | 67 | fi |
| 62 | done | 68 | done |
| 63 | done | 69 | done |
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 fa37010c34db..0f69dcbf9def 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | |||
| @@ -132,7 +132,10 @@ boot_args=$6 | |||
| 132 | 132 | ||
| 133 | cd $KVM | 133 | cd $KVM |
| 134 | kstarttime=`awk 'BEGIN { print systime() }' < /dev/null` | 134 | kstarttime=`awk 'BEGIN { print systime() }' < /dev/null` |
| 135 | echo ' ---' `date`: Starting kernel | 135 | if test -z "$TORTURE_BUILDONLY" |
| 136 | then | ||
| 137 | echo ' ---' `date`: Starting kernel | ||
| 138 | fi | ||
| 136 | 139 | ||
| 137 | # Generate -smp qemu argument. | 140 | # Generate -smp qemu argument. |
| 138 | qemu_args="-nographic $qemu_args" | 141 | qemu_args="-nographic $qemu_args" |
| @@ -158,12 +161,13 @@ boot_args="`configfrag_boot_params "$boot_args" "$config_template"`" | |||
| 158 | # Generate kernel-version-specific boot parameters | 161 | # Generate kernel-version-specific boot parameters |
| 159 | boot_args="`per_version_boot_params "$boot_args" $builddir/.config $seconds`" | 162 | boot_args="`per_version_boot_params "$boot_args" $builddir/.config $seconds`" |
| 160 | 163 | ||
| 161 | echo $QEMU $qemu_args -m 512 -kernel $builddir/$BOOT_IMAGE -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd | ||
| 162 | if test -n "$TORTURE_BUILDONLY" | 164 | if test -n "$TORTURE_BUILDONLY" |
| 163 | then | 165 | then |
| 164 | echo Build-only run specified, boot/test omitted. | 166 | echo Build-only run specified, boot/test omitted. |
| 167 | touch $resdir/buildonly | ||
| 165 | exit 0 | 168 | exit 0 |
| 166 | fi | 169 | fi |
| 170 | echo $QEMU $qemu_args -m 512 -kernel $builddir/$BOOT_IMAGE -append \"$qemu_append $boot_args\" > $resdir/qemu-cmd | ||
| 167 | ( $QEMU $qemu_args -m 512 -kernel $builddir/$BOOT_IMAGE -append "$qemu_append $boot_args"; echo $? > $resdir/qemu-retval ) & | 171 | ( $QEMU $qemu_args -m 512 -kernel $builddir/$BOOT_IMAGE -append "$qemu_append $boot_args"; echo $? > $resdir/qemu-retval ) & |
| 168 | qemu_pid=$! | 172 | qemu_pid=$! |
| 169 | commandcompleted=0 | 173 | commandcompleted=0 |
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 40285c58653e..589e9c38413b 100644 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
| @@ -340,12 +340,18 @@ function dump(first, pastlast) | |||
| 340 | for (j = 1; j < jn; j++) { | 340 | for (j = 1; j < jn; j++) { |
| 341 | builddir=KVM "/b" j | 341 | builddir=KVM "/b" j |
| 342 | print "rm -f " builddir ".ready" | 342 | print "rm -f " builddir ".ready" |
| 343 | print "echo ----", cfr[j], cpusr[j] ovf ": Starting kernel. `date`"; | 343 | print "if test -z \"$TORTURE_BUILDONLY\"" |
| 344 | print "echo ----", cfr[j], cpusr[j] ovf ": Starting kernel. `date` >> " rd "/log"; | 344 | print "then" |
| 345 | print "\techo ----", cfr[j], cpusr[j] ovf ": Starting kernel. `date`"; | ||
| 346 | print "\techo ----", cfr[j], cpusr[j] ovf ": Starting kernel. `date` >> " rd "/log"; | ||
| 347 | print "fi" | ||
| 345 | } | 348 | } |
| 346 | print "wait" | 349 | print "wait" |
| 347 | print "echo ---- All kernel runs complete. `date`"; | 350 | print "if test -z \"$TORTURE_BUILDONLY\"" |
| 348 | print "echo ---- All kernel runs complete. `date` >> " rd "/log"; | 351 | print "then" |
| 352 | print "\techo ---- All kernel runs complete. `date`"; | ||
| 353 | print "\techo ---- All kernel runs complete. `date` >> " rd "/log"; | ||
| 354 | print "fi" | ||
| 349 | for (j = 1; j < jn; j++) { | 355 | for (j = 1; j < jn; j++) { |
| 350 | builddir=KVM "/b" j | 356 | builddir=KVM "/b" j |
| 351 | print "echo ----", cfr[j], cpusr[j] ovf ": Build/run results:"; | 357 | print "echo ----", cfr[j], cpusr[j] ovf ": Build/run results:"; |
| @@ -385,10 +391,7 @@ echo | |||
| 385 | echo | 391 | echo |
| 386 | echo " --- `date` Test summary:" | 392 | echo " --- `date` Test summary:" |
| 387 | echo Results directory: $resdir/$ds | 393 | echo Results directory: $resdir/$ds |
| 388 | if test -z "$TORTURE_BUILDONLY" | 394 | kvm-recheck.sh $resdir/$ds |
| 389 | then | ||
| 390 | kvm-recheck.sh $resdir/$ds | ||
| 391 | fi | ||
| 392 | ___EOF___ | 395 | ___EOF___ |
| 393 | 396 | ||
| 394 | if test "$dryrun" = script | 397 | if test "$dryrun" = script |
| @@ -403,7 +406,7 @@ then | |||
| 403 | sed -e 's/:.*$//' -e 's/^echo //' | 406 | sed -e 's/:.*$//' -e 's/^echo //' |
| 404 | exit 0 | 407 | exit 0 |
| 405 | else | 408 | else |
| 406 | # Not a dryru, so run the script. | 409 | # Not a dryrun, so run the script. |
| 407 | sh $T/script | 410 | sh $T/script |
| 408 | fi | 411 | fi |
| 409 | 412 | ||
