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 # parallel-tests: some checks on console output about testsuite
22 cat >> configure.ac << 'END'
26 cat > Makefile.am << 'END'
27 XFAIL_TESTS = sub/xpass.test xfail.test error.test
28 TESTS = $(XFAIL_TESTS) fail.test pass.test a/b/skip.test sub/error2.test
31 sub/xpass.log: error.log
32 sub/error2.log: xfail.log
33 a/b/skip.log: sub/error2.log
42 ERROR: sub/error2.test
48 cat > pass.test << 'END'
52 cp pass.test sub/xpass.test
54 cat > fail.test << 'END'
59 cat > xfail.test << 'END'
61 # The sleep should ensure expected execution order of tests
62 # even when make is run in parallel mode.
63 # Creative quoting below to plase maintainer-check.
68 cat > error.test << 'END'
72 cp error.test sub/error2.test
74 cat > a/b/skip.test << 'END'
79 chmod a+x pass.test fail.test xfail.test sub/xpass.test \
80 a/b/skip.test error.test sub/error2.test
86 for vpath in : false; do
95 $MAKE check >stdout && { cat stdout; exit 1; }
97 LC_ALL=C grep '^[A-Z][A-Z]*:' stdout > got