silent-rules reorganization, --enable-silent-rules switch.
[automake.git] / tests / parallel-tests4.test
blobca3e18b2e20e816f644fa1338475b9f39795e6d1
1 #! /bin/sh
2 # Copyright (C) 2009 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 3, or (at your option)
7 # any later version.
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:
18 # - suffix rules
20 . ./defs-p || Exit 1
21 set -e
23 cat >> configure.in << 'END'
24 AC_PROG_CC
25 AC_OUTPUT
26 END
28 cat > Makefile.am << 'END'
29 ## Note that automake should not match the '/test' part
30 ## of 'sub/test' as '.test' suffix.
31 TESTS = foo.chk bar.test $(check_PROGRAMS) sub/test
32 check_PROGRAMS = baz bla.test bli.suff
33 TEST_EXTENSIONS = .chk .test
34 END
36 mkdir sub
38 cat >foo.chk << 'END'
39 #! /bin/sh
40 exit 0
41 END
42 chmod a+x foo.chk
43 cp foo.chk bar.test
44 cp foo.chk sub/test
46 cat >baz.c << 'END'
47 int main (void)
49 return 0;
51 END
52 cp baz.c bla.c
53 cp baz.c bli.c
55 $ACLOCAL
56 $AUTOCONF
57 $AUTOMAKE -a
59 unset TESTS || :
61 ./configure
62 $MAKE
63 $MAKE check
64 test -f foo.log
65 test -f bar.log
66 test -f baz.log
67 test -f bla.log
68 test -f bli.suff.log
69 test -f sub/test.log