autoconf/tests
Akim Demaille e491f83180 First stab at preserving warnings between calls to autom4te,
including when the cache is used.
There are still several issues: (i) there are too many runs of m4
(one for include, one for warnings, and some more), (ii) warnings
spreading on several lines are not handled gracefully, (iii) the
code meant to have the call stack display for errors does not work
(its handling should move from m4 to autom4te).
* bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
Use them.
(@preselect): Add m4_warn.
($exit_status): Remove, use $exit_code.
($help): Use Autom4te::ChannelDefs::usage.
(&handle_m4): No longer define the m4_warnings.
At each run, extract and report the warnings.
Always cache the result, including if the exit status is on
failure, since if nothing changes, we should result in the same
failure, hence we can use the cache.
* lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
Remove.
(m4_warn): Redefine as a do-nothing: it is its invocation that
matters, as warnings are now reported via traces.
* lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
the contents of m4_warn: make it _call_ m4_warn, so that tracing
the latter reveals calls to the former.
Adjust the tests.
* tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
2003-08-21 17:25:28 +00:00
..
.cvsignore
acautoheader.at
acautoupdate.at
acc.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acfortran.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acfunctions.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acgeneral.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acheaders.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
aclang.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
aclibs.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acprograms.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acspecific.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
acstatus.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
actypes.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
atlocal.in
base.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
c.at Test AC_C_RESTRICT. 2003-04-12 20:53:19 +00:00
compile.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
foreign.at * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4, 2003-05-22 13:24:04 +00:00
fortran.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
local.at * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being 2003-06-23 14:53:18 +00:00
m4sh.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
m4sugar.at First stab at preserving warnings between calls to autom4te, 2003-08-21 17:25:28 +00:00
Makefile.am * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
Makefile.in * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files) 2003-08-20 06:29:54 +00:00
mktests.sh * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
semantics.at * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4, 2003-05-22 13:24:04 +00:00
suite.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
tools.at * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice. 2003-06-23 11:11:41 +00:00
torture.at * tests/torture.at (#define header templates): Don't use quotes in 2003-06-23 14:34:48 +00:00
wrapper.as * tests/wrapsh.as, tests/wrappl.as: Merge into... 2002-07-17 10:13:32 +00:00
wrapper.in * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4, 2003-05-22 13:24:04 +00:00