doc: update Vala documentation
[automake.git] / t / tap-msg0-misc.sh
bloba45fee2f2db67d4303b5c96f84252905d205c664
1 #! /bin/sh
2 # Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # TAP support:
18 # - literal "0" and "0.0" in a test description and a TODO/SKIP message
19 # at the same time
21 . test-init.sh
23 . tap-setup.sh
25 cat > all.test << 'END'
26 1..14
28 ok 1 0
29 ok 2 0.0
31 ok 3 0 # TODO 0
32 ok 4 0.0 # TODO 0
33 ok 5 0 # TODO 0.0
34 ok 6 0.0 # TODO 0.0
36 not ok 7 0 # TODO 0
37 not ok 8 0.0 # TODO 0
38 not ok 9 0 # TODO 0.0
39 not ok 10 0.0 # TODO 0.0
41 ok 11 0 # SKIP 0
42 ok 12 0.0 # SKIP 0
43 ok 13 0 # SKIP 0.0
44 ok 14 0.0 # SKIP 0.0
46 END
48 run_make -O -e FAIL check
49 count_test_results total=14 pass=2 fail=0 xpass=4 xfail=4 skip=4 error=0
51 sed '/^ *$/d' > exp << 'END'
53 PASS: all.test 1 0
54 PASS: all.test 2 0.0
56 XPASS: all.test 3 0 # TODO 0
57 XPASS: all.test 4 0.0 # TODO 0
58 XPASS: all.test 5 0 # TODO 0.0
59 XPASS: all.test 6 0.0 # TODO 0.0
61 XFAIL: all.test 7 0 # TODO 0
62 XFAIL: all.test 8 0.0 # TODO 0
63 XFAIL: all.test 9 0 # TODO 0.0
64 XFAIL: all.test 10 0.0 # TODO 0.0
66 SKIP: all.test 11 0 # SKIP 0
67 SKIP: all.test 12 0.0 # SKIP 0
68 SKIP: all.test 13 0 # SKIP 0.0
69 SKIP: all.test 14 0.0 # SKIP 0.0
71 END
73 $FGREP ': all.test' stdout > got
75 cat exp
76 cat got
77 diff exp got