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 # Check parallel-tests features:
23 cat >> configure.ac << 'END'
24 AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])
28 cat > Makefile.am << 'END'
34 cat > sub1/Makefile.am << 'END'
38 # When $(TESTS) is empty, NetBSD 5.1 make ends up defining $(TESTS_LOGS)
39 # to ".log" rather than to the empty string (as would be expected).
40 # But our recipes are smart enough to work around such a botched-up
41 # substitution, so let's not bother too much about it.
43 unindent >> sub1/Makefile.am << 'END'
45 echo $(TEST_LOGS) | grep . && exit 1; exit 0
49 cat > sub2/Makefile.am << 'END'
53 cat > sub2/foo.test <<'END'
57 chmod a+x sub2/foo.test
65 ls -1 *.log | grep -v '^test-suite\.log$' | grep . && exit 1
66 grep '^# TOTAL: *0$' test-suite.log
70 for vpath in : false; do
80 VERBOSE=yes $MAKE check
83 VERBOSE=yes TESTS='' $MAKE -e check
85 VERBOSE=yes TEST_LOGS='' $MAKE -e check