]> sourceware.org Git - automake.git/commitdiff
refined multi-: test for AC_OUTPUT
authorTom Tromey <tromey@redhat.com>
Sat, 7 Mar 1998 04:17:38 +0000 (04:17 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 7 Mar 1998 04:17:38 +0000 (04:17 +0000)
tests/ChangeLog
tests/colon3.test

index c365294a0c1dc0ae7345fbfb6ed620e808bd7f8f..1a85d626779fbd3996db374dfea46bf6cd49d20d 100644 (file)
@@ -1,3 +1,7 @@
+Fri Mar  6 21:17:10 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * colon3.test: Refined tests.
+
 Tue Feb 24 12:29:05 1998  Tom Tromey  <tromey@cygnus.com>
 
        * man.test: Removed.
index 1d5f83236cb86c19910fcf5f3736d85d4e8aa73d..c31938f411d7d479af78abc7f4360a835da0996f 100755 (executable)
@@ -10,15 +10,27 @@ PACKAGE=nonesuch
 VERSION=nonesuch
 AC_ARG_PROGRAM
 AC_PROG_INSTALL
-AC_OUTPUT(Makefile:zardoz.in:two.in)
+AC_OUTPUT(Makefile:zardoz.in:two.in:three.in)
 END
 
 : > zardoz.am
 : > two.in
+: > three.in
 
 $AUTOMAKE || exit 1
 
 # We actually check several things here.
+# Automake should have created zardoz.in.
 test -f zardoz.in || exit 1
-grep '^zardoz:' zardoz.in && exit 1
-grep ' two.in' zardoz.in
+
+# The generated file should refer to zardoz.in and zardoz.am, but
+# never just "zardoz".
+grep zardoz zardoz.in | fgrep -v 'zardoz.in' | fgrep -v 'zardoz.am' > O
+# We cat the output file so we see in when verbose.
+cat O
+test -z "`cat O`" || exit 1
+
+# Makefile should depend on two.in.
+grep '^Makefile:.* two.in' zardoz.in || exit 1
+# Likewise three.in.
+grep '^Makefile:.* three.in' zardoz.in
This page took 0.031306 seconds and 5 git commands to generate.