2 # Copyright (C) 2011-2017 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
([sub
1/Makefile sub
2/Makefile
])
28 cat > Makefile.am
<< 'END'
34 cat > sub
1/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
>> sub
1/Makefile.am
<< 'END'
45 echo $
(TEST_LOGS
) |
grep .
&& exit 1; exit 0
49 cat > sub
2/Makefile.am
<< 'END'
53 cat > sub
2/foo.
test <<'END'
57 chmod a
+x sub
2/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 run_make VERBOSE
=yes TESTS
= check
85 run_make VERBOSE
=yes TEST_LOGS
= check