123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #! /bin/sh
- . test-init.sh
- echo TESTS = > Makefile.am
- for st in 1 2 77 99; do
- unindent > exit${st}.test <<END
-
- echo 1..1
- echo ok 1
- exit $st
- END
- echo TESTS += exit${st}.test >> Makefile.am
- done
- chmod a+x *.test
- . tap-setup.sh
- run_make -O -e FAIL check
- count_test_results total=8 pass=4 fail=0 xpass=0 xfail=0 skip=0 error=4
- grep '^ERROR: exit1\.test - exited with status 1$' stdout
- grep '^ERROR: exit2\.test - exited with status 2$' stdout
- grep '^ERROR: exit77\.test - exited with status 77$' stdout
- grep '^ERROR: exit99\.test - exited with status 99$' stdout
- echo TEST_LOG_DRIVER_FLAGS = --ignore-exit >> Makefile
- run_make -O check
- count_test_results total=4 pass=4 fail=0 xpass=0 xfail=0 skip=0 error=0
- :
|