summaryrefslogtreecommitdiff
path: root/lib/test-driver
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-06-30 14:55:43 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-07-21 17:30:22 +0200
commit15400bca303910d059f1a68f94b25cffb1a8ac2f (patch)
tree893ce00eb9d71804211809c4ee62b481494e384a /lib/test-driver
parent61b2bb0d647ea5f192e49f5f5885009ea83968be (diff)
downloadautomake-15400bca303910d059f1a68f94b25cffb1a8ac2f.tar.gz
parallel-tests: new recognized test result 'ERROR'
* lib/am/check.am ($(TEST_SUITE_LOG)): Recognize a new test result `ERROR'. Use it when encountering unreadable test logs (previously a simple `FAIL' was used in this situations). * lib/test-driver: Set the global test result to `ERROR' when the test exit status is 99. When doing colorized output, color `ERROR' results in magenta. * doc/automake.texi (Log files generation and test results recording): Update by also listing `ERROR' among the list of valid `:test-results:' arguments. * NEWS: Update. * tests/trivial-test-driver: Update. * tests/parallel-tests.test: Likewise. * tests/parallel-tests-harderror.test: Likewise. * tests/parallel-tests-no-spurious-summary.test: Likewise. * tests/test-driver-global-log.test: Likewise. * tests/test-driver-recheck.test: Likewise. * tests/test-driver-custom-multitest-recheck.test: Likewise. * tests/test-driver-custom-multitest-recheck2.test: Likewise. * tests/test-driver-custom-multitest.test: Likewise. * tests/test-driver-custom-no-html.test: Likewise. * tests/test-driver-end-test-results.test: Likewise. * tests/color.test: Likewise. Also, make stricter, and also test from VPATH. * tests/color2.test: Likewise, and improve syncing with color.test. * tests/parallel-tests-exit-statuses.test: New test. * tests/parallel-tests-console-output.test: Likewise. * tests/Makefile.am (TESTS): Update.
Diffstat (limited to 'lib/test-driver')
-rwxr-xr-xlib/test-driver5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/test-driver b/lib/test-driver
index 145bbeae8..aa39c5be6 100755
--- a/lib/test-driver
+++ b/lib/test-driver
@@ -85,9 +85,10 @@ if test $color_tests = yes; then
grn='' # Green.
lgn='' # Light green.
blu='' # Blue.
+ mgn='' # Magenta.
std='' # No color.
else
- red= grn= lgn= blu= std=
+ red= grn= lgn= blu= mgn= std=
fi
tmpfile=$logfile-t
@@ -109,7 +110,7 @@ case $estatus:$expect_failure in
0:yes) col=$red; res=XPASS;;
0:*) col=$grn; res=PASS ;;
77:*) col=$blu; res=SKIP ;;
- 99:*) col=$red; res=FAIL ;;
+ 99:*) col=$mgn; res=ERROR;;
*:yes) col=$lgn; res=XFAIL;;
*:*) col=$red; res=FAIL ;;
esac