123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #! /bin/sh
- . test-init.sh
- . tap-setup.sh
- echo 'XFAIL_TESTS = $(TESTS)' >> Makefile
- cat > all.test <<END
- 1..6
- ok 1
- not ok 2
- ok 3
- not ok 4
- ok 5
- not ok 6
- Bail out!
- END
- run_make -O -e FAIL check
- count_test_results total=7 pass=0 fail=0 xpass=2 xfail=3 skip=1 error=1
- grep '^XPASS: all\.test 1$' stdout
- grep '^XFAIL: all\.test 2$' stdout
- grep '^XPASS: all\.test 3 # TODO' stdout
- grep '^XFAIL: all\.test 4 # TODO' stdout
- grep '^SKIP: all\.test 5 # SKIP' stdout
- grep '^XFAIL: all\.test 6 # SKIP' stdout
- grep '^ERROR: all\.test - Bail out!' stdout
- cat > all.test <<END
- 1..3
- not ok 1
- ok 2
- not ok 3
- END
- run_make -O check
- count_test_results total=3 pass=0 fail=0 xpass=0 xfail=2 skip=1 error=0
- :
|