tests: fix some botched/outdated comments
[platform/upstream/automake.git] / t / tap-msg0-result.sh
1 #! /bin/sh
2 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
3 #
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.
8 #
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.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 # TAP support:
18 #  - the string "0" as a test description
19
20 . test-init.sh
21
22 . tap-setup.sh
23
24 cat > all.test << 'END'
25 1..10
26 ok 1 0
27 ok - 0
28 not ok 3 0
29 not ok - 0
30 ok 5 0 # TODO
31 ok - 0 # TODO
32 not ok 7 0 # TODO
33 not ok - 0 # TODO
34 ok 9 0 # SKIP
35 ok - 0 # SKIP
36 END
37
38 $MAKE check >stdout && { cat stdout; exit 1; }
39 cat stdout
40
41 count_test_results total=10 pass=2 fail=2 xpass=2 xfail=2 skip=2 error=0
42
43 cat > exp << 'END'
44 PASS: all.test 1 0
45 PASS: all.test 2 - 0
46 FAIL: all.test 3 0
47 FAIL: all.test 4 - 0
48 XPASS: all.test 5 0 # TODO
49 XPASS: all.test 6 - 0 # TODO
50 XFAIL: all.test 7 0 # TODO
51 XFAIL: all.test 8 - 0 # TODO
52 SKIP: all.test 9 0 # SKIP
53 SKIP: all.test 10 - 0 # SKIP
54 END
55
56 $FGREP ': all.test' stdout > got
57
58 cat exp
59 cat got
60 diff exp got
61
62 :