m4-patches
[Top][All Lists]
Advanced

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

/floppy/m4-patches/19-fyi-installcheck.test


From: Akim Demaille
Subject: /floppy/m4-patches/19-fyi-installcheck.test
Date: Mon, 27 Aug 2001 09:29:05 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * tests/Makefile.am (installcheck-local): New.
        * tests/testsuite.at (AT_CHECK_M4): Pass `-b' so that C-c works on
        the test suite.
        Prefer options over envvars.
        * src/main.c (main): First bug caught by the test suite (yeah!):
        --batch lacked a `break' which resulted in an accidental
        invocation of --discard-comments.

Index: src/main.c
--- src/main.c Sat, 18 Aug 2001 10:08:06 +0200 akim
+++ src/main.c Sat, 25 Aug 2001 10:15:23 +0200 akim
@@ -369,6 +369,7 @@ Debugging:\n\

       case 'b':
        interactive = FALSE;
+       break;

       case 'c':
        discard_comments = TRUE;
Index: tests/Makefile.am
--- tests/Makefile.am Fri, 24 Aug 2001 19:16:52 +0200 akim
+++ tests/Makefile.am Fri, 24 Aug 2001 19:38:36 +0200 akim
@@ -51,3 +51,7 @@ clean-local:
        $(AUTOTEST) -I $(srcdir) testsuite.at -o address@hidden
        chmod +x address@hidden
        mv address@hidden $@
+
+# Run the test suite on the *installed* tree.
+installcheck-local:
+       $(SHELL) $(srcdir)/$(TESTSUITE) AUTOTEST_PATH=$$dc_install_base/bin
Index: tests/testsuite.at
--- tests/testsuite.at Fri, 24 Aug 2001 19:16:52 +0200 akim
+++ tests/testsuite.at Sat, 25 Aug 2001 10:23:05 +0200 akim
@@ -26,7 +26,7 @@
 # Hide the impact of libtool on program_invocation_name, and hide
 # the differences of paths when src != build.
 m4_define([AT_CHECK_M4],
-[AT_CHECK([M4PATH=$top_srcdir m4 -M $top_builddir/modules -d $1],
+[AT_CHECK([m4 -I $top_srcdir -M $top_builddir/modules -b -d $1],
           [$2], [$3], [$4])
 ])



reply via email to

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