[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Checking stderr form autoconf and autoheader
From: |
Pavel Roskin |
Subject: |
Checking stderr form autoconf and autoheader |
Date: |
Thu, 21 Sep 2000 00:47:22 -0400 (EDT) |
Hello!
This patch makes the testsuite always check the stderr from autoconf and
autoheader. Intentional warnings (i.e. those produced by AC_MSG_WARN) are
suppressed by "-W none" whenever they are expected.
In one case the testsuite didn't check whether autoheader prints anything
to stderr when it exists with an error. Now it does.
ChangeLog:
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Check stderr from
autoconf and autoheader. Expected warnings disabled by "-W none"
Comment before that code removed as no longer relevant.
* tests/semantics.m4 (AC_CHECK_PROG & AC_PATH_PROG): Check
stderr from autoconf.
(AC_PATH_PROG & AC_PATH_PROGS): Likewise.
(AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Likewise.
* tests/tools.m4 (autoheader): Check that autoheader prints
a warning for missing templates. Check stderr from autoconf.
* tests/torture.m4 (config.status under extreme conditions):
Check stderr from autoconf and autoheader.
(command line interface): Check stderr from autoconf.
Regards,
Pavel Roskin
__________________________________
Index: tests/atspecific.m4
--- tests/atspecific.m4 Wed Sep 20 23:01:01 2000
+++ tests/atspecific.m4 Thu Sep 21 00:05:59 2000
@@ -91,12 +91,8 @@
AC_OUTPUT
])
-dnl FIXME: Here we just don't consider the stderr from Autoconf.
-dnl Maybe some day we could be more precise and filter out warnings.
-dnl The problem is that currently some warnings are spread on several
-dnl lines, so grepping -v warning is not enough.
-AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([autoconf -W none --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([top_srcdir=$top_srcdir ./configure], 0, ignore, [])
test -n "$at_verbose" && echo "--- config.log" && cat config.log
Index: tests/semantics.m4
--- tests/semantics.m4 Tue Sep 19 23:00:32 2000
+++ tests/semantics.m4 Thu Sep 21 00:08:52 2000
@@ -251,7 +251,7 @@
exit $fail
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0, ignore)
@@ -283,7 +283,7 @@
exit $fail
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0, ignore)
AT_CLEANUP(path config.log config.cache configure)
@@ -393,7 +393,7 @@
AC_OUTPUT
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
# Create a header
AT_CHECK([./configure what_to_test=header], 0, ignore)
Index: tests/tools.m4
--- tests/tools.m4 Tue Sep 19 23:00:33 2000
+++ tests/tools.m4 Thu Sep 21 00:15:43 2000
@@ -104,7 +104,9 @@
AC_DEFINE(that, "whatever you want.")
]])
-AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, ignore, ignore)
+AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, [],
+[autoheader: No template for symbol `that'
+])
# 3. Check TOP and BOTTOM.
@@ -146,7 +148,7 @@
Bottom2 from configure.in.
/* Bottom from acconfig.h. */
-]], ignore)
+]], [])
AT_CLEANUP
@@ -178,7 +180,7 @@
AC_CONFIG_FILES([Makefile])
AC_CONFIG_COMMANDS([default],[[echo $fubar]],[[fubar=$fubar]])
AC_OUTPUT
-]], ignore)
+]], [])
AT_CLEANUP
Index: tests/torture.m4
--- tests/torture.m4 Wed Jul 19 22:16:06 2000
+++ tests/torture.m4 Thu Sep 21 00:10:44 2000
@@ -75,8 +75,8 @@
AC_OUTPUT
])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0, ignore)
# Checking that AC_DEFINE worked properly.
@@ -116,7 +116,7 @@
AC_OUTPUT
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure one=one --enable-two=two --with-three=three |
sed -n -e 's/^result=//p'], 0,
__________________________________
- Checking stderr form autoconf and autoheader,
Pavel Roskin <=