From 725b26a23b53173fe3e954b16a1c4f2bd184f746 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Thu, 23 Aug 2001 15:05:36 +0000 Subject: [PATCH] * tests/yacc7.test: Actually add this file: was accidentally omitted. --- ChangeLog | 4 ++++ tests/yacc7.test | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 tests/yacc7.test diff --git a/ChangeLog b/ChangeLog index 6bfeed9..1a34dc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-08-23 Richard Boulton + + * tests/yacc7.test: Actually add this file: was accidentally omitted. + 2001-08-22 Tom Tromey * automake.texi (Conditionals): Mention that conditionals must diff --git a/tests/yacc7.test b/tests/yacc7.test new file mode 100755 index 0000000..1661930 --- /dev/null +++ b/tests/yacc7.test @@ -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 -- 2.7.4