2 # Copyright (C) 2011-2012 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
22 . "$am_testauxdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh"
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 TESTS='a.test b.test c.test d.test' $MAKE -e check >stdout \
61 && { cat stdout; Exit 1; }
64 count_test_results total=17 pass=8 fail=0 xpass=0 xfail=1 skip=0 error=8
66 test $($FGREP -c ': a.test' stdout) -eq 3
67 test $($FGREP -c ': b.test' stdout) -eq 5
68 test $($FGREP -c ': c.test' stdout) -eq 4
69 test $($FGREP -c ': d.test' stdout) -eq 5
71 grep '^ERROR: a\.test 71 # OUT-OF-ORDER (expecting 3)$' stdout
72 grep '^ERROR: b\.test 4 foo # OUT-OF-ORDER (expecting 3)$' stdout
73 grep '^ERROR: b\.test 2 bar # OUT-OF-ORDER (expecting 4)$' stdout
74 grep '^ERROR: c\.test 4 - zardoz # OUT-OF-ORDER (expecting 3)$' stdout
75 grep '^ERROR: c\.test 3 # OUT-OF-ORDER (expecting 4)$' stdout
76 grep '^ERROR: d\.test 15 # OUT-OF-ORDER (expecting 3)$' stdout
77 grep '^ERROR: d\.test 16 # OUT-OF-ORDER (expecting 4)$' stdout
78 grep '^ERROR: d\.test 17 # OUT-OF-ORDER (expecting 5)$' stdout