* tests/yacc7.test: Actually add this file: was accidentally omitted.
authorRichard Boulton <richard@tartarus.org>
Thu, 23 Aug 2001 15:05:36 +0000 (15:05 +0000)
committerRichard Boulton <richard@tartarus.org>
Thu, 23 Aug 2001 15:05:36 +0000 (15:05 +0000)
ChangeLog
tests/yacc7.test [new file with mode: 0755]

index 6bfeed9..1a34dc4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-23  Richard Boulton <richard@tartarus.org>
+
+       * tests/yacc7.test: Actually add this file: was accidentally omitted.
+
 2001-08-22  Tom Tromey  <tromey@redhat.com>
 
        * automake.texi (Conditionals): Mention that conditionals must
diff --git a/tests/yacc7.test b/tests/yacc7.test
new file mode 100755 (executable)
index 0000000..1661930
--- /dev/null
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+# Test to make sure dependencies are generated correctly for .h files.
+# Report from Richard Boulton.
+
+. $srcdir/defs || exit 1
+
+$needs_gnu_make
+$needs_autoconf
+
+cat > configure.in << 'END'
+AC_INIT
+AM_INIT_AUTOMAKE(nonesuch, nonesuch)
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+AC_PROG_CC
+AC_PROG_YACC
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = foo
+foo_SOURCES = foo.y
+AM_YFLAGS = -d
+END
+
+cat > foo.y << 'END'
+%%
+WORD: "up";
+%%
+END
+
+$ACLOCAL || exit 1
+$AUTOMAKE -a || exit 1
+$AUTOCONF || exit 1
+./configure || exit 1
+
+$MAKE foo.h || exit 1
+
+test -e foo.h || exit 1
+
+exit 0