]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix the `missing dummy.in' reported by the test suite.
authorAkim Demaille <akim@epita.fr>
Thu, 17 Feb 2000 09:31:34 +0000 (09:31 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 17 Feb 2000 09:31:34 +0000 (09:31 +0000)
Reported by Erez Zadok.

* tests/torture.m4 (config.status under extreme conditions):
Reorganized.  Because files required by this test were created
outside the pair AT_SETUP/AT_CLEANUP, when the test fails and
autotest extracts this test, the `debug' script does not contain
the files it needs.  Now AT_SETUP/AT_CLEANUP encloses the full
auto contained section.

ChangeLog
tests/torture.m4

index c176aa73f84fa19a090a821c5683413f2793d347..8a9abdc2700b79da65e7c1b2eb55c622d0a4ab9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2000-02-17  Akim Demaille  <akim@epita.fr>
+
+       Fix the `missing dummy.in' reported by the test suite.
+       Reported by Erez Zadok.
+
+       * tests/torture.m4 (config.status under extreme conditions):
+       Reorganized.  Because files required by this test were created
+       outside the pair AT_SETUP/AT_CLEANUP, when the test fails and
+       autotest extracts this test, the `debug' script does not contain
+       the files it needs.  Now AT_SETUP/AT_CLEANUP encloses the full
+       auto contained section.
+
 2000-02-16  Akim Demaille  <akim@epita.fr>
 
        * tests/actest.m4 (AC_ENV_SAVE): X_EXTRA_LIBS can be changed by
index 4e849d20f8825d345101903859743983130bd23e..70efdc97b9a4daa0733cee6e98251d1dda0a3bd1 100644 (file)
@@ -40,18 +40,29 @@ dnl This call was quite delicate to write because we didn't want to
 dnl produce the 100 commands by hand.  Be very careful if you want to
 dnl touch something.
 
+
+
+## ------------------------- ##
+## Torturing config.status.  ##
+## ------------------------- ##
+
 ## Require 100 AC_DEFINE and AC_SUBST with a significantly big value.
 ## This is mostly to check that Autoconf produces portable sed scripts
 ## in config.status.  sed is used to skip the first two lines
 ## `Generated by...'.
 
+AT_SETUP(config.status under extreme conditions)
+
 AT_DATA(dummy.in,
 [m4_for(AT_Count, 1, 100,
 [@AT_DUMMY_VAR(AT_Count)@
 ])])
 
-AT_TEST_MACRO(config.status under extreme conditions,
-[AC_CONFIG_FILES(dummy)
+AT_DATA(configure.in,
+[AC_INCLUDE(actest.m4)
+AC_INIT
+AC_CONFIG_HEADERS(config.h:config.hin)
+AC_CONFIG_FILES(dummy)
 [define]([AC_DEFUBST_VALUE], Big_Value)
 dnl The following 4 lines are a transfert from AT_DUMMY_VAR in Autotest
 dnl to AC_DUMMY_VAR in Autoconf.
@@ -61,8 +72,15 @@ changequote({{, }})dnl
 changequote([, ]))
 m4_for(AT_Count, 1, 100,
 [AC_DEFUBST(AT_Count)
-])],
-[# Checking that AC_DEFINE worked properly.
+])
+AC_OUTPUT
+])
+
+AT_CHECK([../autoconf -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoheader -m .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([./configure], 0, ignore)
+
+# Checking that AC_DEFINE worked properly.
 AT_DATA(expout,
 [m4_for(AT_Count, 1, 100,
 [
@@ -70,27 +88,26 @@ AT_DATA(expout,
 [#define] AT_DUMMY_VAR(AT_Count) "Big_Value"
 ])])
 AT_CHECK([sed -n -e '3,$ p' config.h], 0, expout)
+
 # Checking that AC_SUBST worked properly.
 AT_DATA(expout,
 [m4_for(AT_Count, 1, 100,
 [Big_Value
 ])])
-])
 
-dnl Remove test files.
-rm -f dummy dummy.in
+AT_CLEANUP(dummy)
 
 
 
-dnl ## ------------------------------------------------------ ##
-dnl ## Check that `configure' and `config.status' honor their ##
-dnl ## interface.                                             ##
-dnl ## ------------------------------------------------------ ##
+## ------------------------------------------------------ ##
+## Check that `configure' and `config.status' honor their ##
+## interface.                                             ##
+## ------------------------------------------------------ ##
 
-dnl We run `./configure result=val' and verify that (i) `configure'
-dnl correctly receives `val' and (ii) correctly passes it to
-dnl `config.status', which we check by running `config.status
-dnl --recheck' (which *must* preserve the value of `result').
+# We run `./configure result=val' and verify that (i) `configure'
+# correctly receives `val' and (ii) correctly passes it to
+# `config.status', which we check by running `config.status --recheck'
+# (which *must* preserve the value of `result').
 
 AT_SETUP(command line interface)