From 2085e7d65f5a2a845649dea8efc4156cdd0116df Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Thu, 6 Jun 2002 17:22:09 +0000 Subject: [PATCH] For PR automake/47 (fixed a long time ago): * tests/yacc7.test: Also check that parser sources are distributed. --- ChangeLog | 5 +++++ tests/yacc7.test | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f68ba238..69a66b93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-06 Alexandre Duret-Lutz + + For PR automake/47 (fixed a long time ago): + * tests/yacc7.test: Also check that parser sources are distributed. + 2002-06-06 Alexandre Duret-Lutz * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable. diff --git a/tests/yacc7.test b/tests/yacc7.test index 2989697a..7bd62748 100755 --- a/tests/yacc7.test +++ b/tests/yacc7.test @@ -2,23 +2,29 @@ # Test to make sure dependencies are generated correctly for .h files. # Report from Richard Boulton. +# +# Also check that the sources of the generated parser are distributed. +# PR/47. . $srcdir/defs || exit 1 $needs_gnu_make -cat > configure.in << 'END' -AC_INIT -AM_INIT_AUTOMAKE(nonesuch, nonesuch) +cat >> configure.in << 'END' AC_PROG_CC AC_PROG_YACC -AC_OUTPUT(Makefile) +AC_OUTPUT END cat > Makefile.am << 'END' bin_PROGRAMS = foo foo_SOURCES = foo.y AM_YFLAGS = -d + +check-dist: distdir + test -f $(distdir)/foo.y + test -f $(distdir)/foo.c + test -f $(distdir)/foo.h END cat > foo.y << 'END' @@ -36,4 +42,7 @@ $MAKE foo.h || exit 1 test -f foo.h || exit 1 +rm -f foo.h foo.c +$MAKE check-dist || exit 1 + exit 0 -- 2.43.5