* depcomp (ddashmd): Removed case.
[automake.git] / tests / colon3.test
blobf43b3534d9b5779cb8d7782806f834c661a145e2
1 #! /bin/sh
3 # Make sure ":" works with files automake generates.
4 # This test is for multiple ":"s.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
10 PACKAGE=nonesuch
11 VERSION=nonesuch
12 AC_ARG_PROGRAM
13 AC_PROG_INSTALL
14 AC_PROG_MAKE_SET
15 AC_OUTPUT(Makefile:zardoz.in:two.in:three.in)
16 END
18 : > zardoz.am
19 : > two.in
20 : > three.in
22 $AUTOMAKE || exit 1
24 # We actually check several things here.
25 # Automake should have created zardoz.in.
26 test -f zardoz.in || exit 1
28 # The generated file should refer to zardoz.in and zardoz.am, but
29 # never just "zardoz" -- except the actual automake invocation can
30 # refer to it (don't ask).
31 echo Grep1
32 grep zardoz zardoz.in | fgrep -v 'zardoz.in' | fgrep -v 'zardoz.am' \
33 | fgrep -v AUTOMAKE > O
34 # We cat the output file so we see in when verbose.
35 cat O
36 test -z "`cat O`" || exit 1
38 # Makefile should depend on two.in.
39 echo Grep2
40 grep '^Makefile:.* two.in' zardoz.in || exit 1
41 # Likewise three.in.
42 echo Grep3
43 grep '^Makefile:.* three.in' zardoz.in