automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: check for old PR/47


From: Alexandre Duret-Lutz
Subject: FYI: check for old PR/47
Date: Thu, 06 Jun 2002 19:22:08 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

This PR is weird.  It was submitted on 1999-12-15, and
fixed on 1999-04-10, probably using a time machine.
It is still open today.

My theory is that the one who jumped in the past to make the fix
could not close the PR (because the PR did not exist at that
time) and forgot to close it once back in the present (amnesia
being a common sequel of time jumps).

Anyway, this adds a simple check for it in the testsuite, so
there is really no more reason to leave the PR open.

2002-06-06  Alexandre Duret-Lutz  <address@hidden>

        For PR automake/47 (fixed a long time ago):
        * tests/yacc7.test: Also check that parser sources are distributed.

Index: tests/yacc7.test
===================================================================
RCS file: /cvs/automake/automake/tests/yacc7.test,v
retrieving revision 1.5
diff -u -r1.5 yacc7.test
--- tests/yacc7.test    26 Dec 2001 08:22:06 -0000      1.5
+++ tests/yacc7.test    6 Jun 2002 17:00:31 -0000
@@ -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'
@@ -35,5 +41,8 @@
 $MAKE foo.h || exit 1
 
 test -f foo.h || exit 1
+
+rm -f foo.h foo.c
+$MAKE check-dist || exit 1
 
 exit 0

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]