source: trunk/essentials/sys-devel/automake-1.4/tests/colon3.test

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 962 bytes
Line 
1#! /bin/sh
2
3# Make sure ":" works with files automake generates.
4# This test is for multiple ":"s.
5
6. $srcdir/defs || exit 1
7
8cat > configure.in << 'END'
9PACKAGE=nonesuch
10VERSION=nonesuch
11AC_ARG_PROGRAM
12AC_PROG_INSTALL
13AC_OUTPUT(Makefile:zardoz.in:two.in:three.in)
14END
15
16: > zardoz.am
17: > two.in
18: > three.in
19
20$AUTOMAKE || exit 1
21
22# We actually check several things here.
23# Automake should have created zardoz.in.
24test -f zardoz.in || exit 1
25
26# The generated file should refer to zardoz.in and zardoz.am, but
27# never just "zardoz" -- except the actual automake invocation can
28# refer to it (don't ask).
29echo Grep1
30grep zardoz zardoz.in | fgrep -v 'zardoz.in' | fgrep -v 'zardoz.am' \
31 | fgrep -v AUTOMAKE > O
32# We cat the output file so we see in when verbose.
33cat O
34test -z "`cat O`" || exit 1
35
36# Makefile should depend on two.in.
37echo Grep2
38grep '^Makefile:.* two.in' zardoz.in || exit 1
39# Likewise three.in.
40echo Grep3
41grep '^Makefile:.* three.in' zardoz.in
Note: See TracBrowser for help on using the repository browser.