2 # Copyright (C) 2011-2017 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 <http://www.gnu.org/licenses/>.
18 # - out-of-order test results
36 not ok 2 bar # TODO um
48 # This is documented as an "test out of sequence" error in the
49 # TAP::Parser documentation. Keep it in sync with the example
60 run_make
-O -e FAIL TESTS
='a.test b.test c.test d.test' check
61 count_test_results total
=17 pass
=8 fail
=0 xpass
=0 xfail
=1 skip
=0 error
=8
63 test $
($FGREP -c ': a.test' stdout
) -eq 3
64 test $
($FGREP -c ': b.test' stdout
) -eq 5
65 test $
($FGREP -c ': c.test' stdout
) -eq 4
66 test $
($FGREP -c ': d.test' stdout
) -eq 5
68 grep '^ERROR: a\.test 71 # OUT-OF-ORDER (expecting 3)$' stdout
69 grep '^ERROR: b\.test 4 foo # OUT-OF-ORDER (expecting 3)$' stdout
70 grep '^ERROR: b\.test 2 bar # OUT-OF-ORDER (expecting 4)$' stdout
71 grep '^ERROR: c\.test 4 - zardoz # OUT-OF-ORDER (expecting 3)$' stdout
72 grep '^ERROR: c\.test 3 # OUT-OF-ORDER (expecting 4)$' stdout
73 grep '^ERROR: d\.test 15 # OUT-OF-ORDER (expecting 3)$' stdout
74 grep '^ERROR: d\.test 16 # OUT-OF-ORDER (expecting 4)$' stdout
75 grep '^ERROR: d\.test 17 # OUT-OF-ORDER (expecting 5)$' stdout