12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #! /bin/sh
- . test-init.sh
- . tap-setup.sh
- cat > foo.test << 'END'
- 1..5
- Bail out!
- ok 4
- 1..2
- Bail out! Not seen.
- END
- cat > bar.test << 'END'
- 1..0
- Bail out!
- ok 1
- END
- cat > baz.test << 'END'
- 1..1
- ok 1
- Bail out!
- ok 2
- ok 3
- END
- run_make -e FAIL -O TESTS='foo.test bar.test baz.test' check
- count_test_results total=5 pass=1 fail=0 xpass=0 xfail=0 skip=1 error=3
- grep '^ERROR: foo\.test - Bail out!$' stdout
- grep '^ERROR: bar\.test - Bail out!$' stdout
- grep '^SKIP: bar\.test' stdout
- grep '^ERROR: baz\.test - Bail out!$' stdout
- grep '^PASS: baz\.test 1$' stdout
- $FGREP 'Not seen' stdout && exit 1
- test $($FGREP -c ': foo.test' stdout) -eq 1
- test $($FGREP -c ': bar.test' stdout) -eq 2
- test $($FGREP -c ': baz.test' stdout) -eq 2
- :
|