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
23 cat >> configure.ac << 'END'
27 cat > Makefile.am << 'END'
28 XFAIL_TESTS = sub/xpass.test xfail.test error.test
29 TESTS = $(XFAIL_TESTS) fail.test pass.test a/b/skip.test sub/error2.test
32 sub/xpass.log: error.log
33 sub/error2.log: xfail.log
34 a/b/skip.log: sub/error2.log
43 ERROR: sub/error2.test
49 cat > pass.test << 'END'
53 cp pass.test sub/xpass.test
55 cat > fail.test << 'END'
60 cat > xfail.test << 'END'
62 # The sleep should ensure expected execution order of tests
63 # even when make is run in parallel mode.
64 # Creative quoting below to plase maintainer-check.
69 cat > error.test << 'END'
73 cp error.test sub/error2.test
75 cat > a/b/skip.test << 'END'
80 chmod a+x pass.test fail.test xfail.test sub/xpass.test \
81 a/b/skip.test error.test sub/error2.test
87 for vpath in : false; do
96 $MAKE check >stdout && { cat stdout; Exit 1; }
98 LC_ALL=C grep '^[A-Z][A-Z]*:' stdout > got