Tune local.at so that people can "autom4te -l autotest calc.at -o

calc" for instance, to extract a sub test suite.
* tests/testsuite.at: Move the initialization, Autotest version
requirement, and AT_TESTED invocation into...
* tests/local.at: here.
* tests/testsuite.at: Include it for compatibility with Autoconf
2.57.
* tests/Makefile.am ($(TESTSUITE)): Report that the warning should
be ignore.
This commit is contained in:
Akim Demaille
2003-08-25 07:15:49 +00:00
parent 750a5211c0
commit 1f7a61ff99
4 changed files with 33 additions and 9 deletions

View File

@@ -1,3 +1,16 @@
2003-08-25 Akim Demaille <akim@epita.fr>
Tune local.at so that people can "autom4te -l autotest calc.at -o
calc" for instance, to extract a sub test suite.
* tests/testsuite.at: Move the initialization, Autotest version
requirement, and AT_TESTED invocation into...
* tests/local.at: here.
* tests/testsuite.at: Include it for compatibility with Autoconf
2.57.
* tests/Makefile.am ($(TESTSUITE)): Report that the warning should
be ignore.
2003-08-04 Paul Eggert <eggert@twinsun.com> 2003-08-04 Paul Eggert <eggert@twinsun.com>
Rework code slightly to avoid gcc -Wtraditional warnings. Rework code slightly to avoid gcc -Wtraditional warnings.
@@ -12,7 +25,7 @@
yyresolveStates, yyprocessOneStack): yyresolveStates, yyprocessOneStack):
Use `YYASSERT (FOO);' rather than `if (! (FOO)) abort ();'. Use `YYASSERT (FOO);' rather than `if (! (FOO)) abort ();'.
Derived from a suggestion by Frank Heckenbach. Derived from a suggestion by Frank Heckenbach.
2003-07-25 Paul Eggert <eggert@twinsun.com> 2003-07-25 Paul Eggert <eggert@twinsun.com>
* data/glr.c (yyglrReduce): Don't use C89 string concatenation, * data/glr.c (yyglrReduce): Don't use C89 string concatenation,

View File

@@ -55,6 +55,7 @@ TESTSUITE = $(srcdir)/testsuite
AUTOTEST = $(AUTOM4TE) --language=autotest AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): package.m4 $(TESTSUITE_AT) $(TESTSUITE): package.m4 $(TESTSUITE_AT)
echo "WARNING: Multiple inclusion warning should be ignored." >&2
$(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
mv $@.tmp $@ mv $@.tmp $@

View File

@@ -18,6 +18,9 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA. # 02111-1307, USA.
# We want a recent Autotest.
m4_version_prereq([2.57])
## ------------------------------- ## ## ------------------------------- ##
## Macros decoding Bison options. ## ## Macros decoding Bison options. ##
@@ -190,3 +193,14 @@ AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS m4_default([$2], [$1.c]) -o $1],
# So that we can run `./testsuite PREPARSER='valgrind -q' for instance. # So that we can run `./testsuite PREPARSER='valgrind -q' for instance.
m4_define([AT_PARSER_CHECK], m4_define([AT_PARSER_CHECK],
[AT_CHECK([$PREPARSER $1], [$2], [$3], [$4])]) [AT_CHECK([$PREPARSER $1], [$2], [$3], [$4])])
## ----------------------- ##
## Launch the test suite. ##
## ----------------------- ##
AT_INIT
AT_TESTED([bison])

View File

@@ -18,15 +18,11 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA. # 02111-1307, USA.
# We want a recent Autotest. # Initializes Autotest, imports macros etc. It will trigger a warning
m4_version_prereq([2.57]) # with Autoconf 2.58, because it includes this file automatically, but
# it causes no real problem.
m4_include([input.at])
# Helping macros.
m4_include([local.at])
AT_INIT
AT_TESTED([bison])
# Testing resistance to user bugs. # Testing resistance to user bugs.
m4_include([input.at]) m4_include([input.at])