diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-07-04 18:12:07 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-08-02 23:01:15 +0200 |
commit | 1bb5974d3d955590eb771e547a2858430284f477 (patch) | |
tree | fbfa743719ce2c746603d2e7fe39195a5c5e513b /tests/parallel-tests-log-override-recheck.test | |
parent | eaac33fe13811cf104f45a09a6ece911c135fa83 (diff) | |
download | automake-1bb5974d3d955590eb771e547a2858430284f477.tar.gz |
test defs: new auxiliary function 'count_test_results'
* tests/defs (count_test_results): New function.
* tests/check11.test: Use it.
* tests/test-driver-custom-multitest.test: Likewise.
* tests/test-driver-custom-multitest-recheck.test: Likewise.
* tests/test-driver-custom-multitest-recheck2.test: Likewise.
* tests/parallel-tests-log-override-recheck.test: Likewise.
* tests/parallel-tests-log-override-recheck.test: Likewise.
* tests/parallel-tests-no-spurious-summary.test: Likewise, and
slightly improve debugging output.
* tests/parallel-tests.test: Make use of `count_test_results'.
Also, make grepping of "make check" output slightly stricter
* tests/parallel-tests9.test: Likewise.
* tests/parallel-tests-log-override-2.test: Likewise, and throw
in a small optimization.
Diffstat (limited to 'tests/parallel-tests-log-override-recheck.test')
-rwxr-xr-x | tests/parallel-tests-log-override-recheck.test | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/parallel-tests-log-override-recheck.test b/tests/parallel-tests-log-override-recheck.test index 613bea1da..d8cab8a16 100755 --- a/tests/parallel-tests-log-override-recheck.test +++ b/tests/parallel-tests-log-override-recheck.test @@ -65,9 +65,7 @@ TEST_SUITE_LOG=my.log $MAKE -e recheck >stdout \ && { cat stdout; Exit 1; } cat stdout ls -l -grep '^# TOTAL: *2$' stdout -grep '^# FAIL: *1$' stdout -grep '^# ERROR: *1$' stdout +count_test_results total=2 pass=0 fail=1 skip=0 xfail=0 xpass=0 error=1 for x in stdout my.log; do $FGREP foo.test $x && Exit 1 $FGREP bar.test $x @@ -79,9 +77,7 @@ BAZ_EXIT_STATUS=0 TEST_SUITE_LOG=my2.log $MAKE -e recheck >stdout \ && { cat stdout; Exit 1; } cat stdout ls -l -grep '^# TOTAL: *2$' stdout -grep '^# PASS: *1$' stdout -grep '^# ERROR: *1$' stdout +count_test_results total=2 pass=1 fail=0 skip=0 xfail=0 xpass=0 error=1 $FGREP foo.test stdout && Exit 1 $FGREP bar.test stdout $FGREP baz.test stdout |