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)
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/>.
18 # - how does TAP result numbers with leading zero fares?
26 run_make
-O -e FAIL check
27 count_test_results
"$@"
28 # Allow some normalization of leading zeros, without forcing it.
29 LC_ALL
=C
sed -n 's/: all\.test 0*\([0-9]\)/: all.test \1/p' stdout
> got
65 SKIP: all.test 5 # SKIP
66 SKIP: all.test 6 # SKIP
67 XFAIL: all.test 7 # TODO
68 XFAIL: all.test 8 # TODO
73 SKIP: all.test 13 # SKIP
74 XFAIL: all.test 14 # TODO
75 XPASS: all.test 15 # TODO
78 do_checks total
=15 pass
=5 fail
=3 xpass
=1 xfail
=3 skip
=3 error
=0
95 ERROR: all.test 10 # OUT-OF-ORDER (expecting 1)
96 ERROR: all.test 3 # OUT-OF-ORDER (expecting 2)
97 ERROR: all.test 1 # OUT-OF-ORDER (expecting 3)
98 ERROR: all.test 10 # OUT-OF-ORDER (expecting 4)
99 ERROR: all.test 100 # OUT-OF-ORDER (expecting 5)
105 do_checks total
=8 pass
=3 fail
=0 xpass
=0 xfail
=0 skip
=0 error
=5