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/>.
17 # Older versions of prove and TAP::Harness (e.g., 3.17) didn't recognize
18 # a "Bail out!" directive that was preceded by whitespace, but more modern
19 # versions (e.g., 3.23) do. So we leave this behaviour undefined for the
20 # perl implementation of the Automake TAP driver, but expect the latter,
21 # "more modern" behaviour in our awk TAP driver.
23 am_tap_implementation
=shell
42 ${tab} ${tab}${tab}Bail out! FUBAR! $tab
47 ERROR: a.test - Bail out!
49 ERROR: b.test - Bail out!
50 ERROR: c.test - Bail out! FUBAR!
53 TESTS
='a.test b.test c.test' $MAKE -e check
>stdout \
54 && { cat stdout
; exit 1; }
57 count_test_results total
=5 pass
=1 fail
=0 xpass
=0 xfail
=0 skip
=1 error
=3
62 # We need the sort below to account for parallel make usage.
63 grep ': [abcde]\.test' stdout \
64 |
sed "s/[ $tab]*#[ $tab]*SKIP.*//" \