Add support for an Autotest test suite for Bison.

* m4/m4.m4, m4/atconfig.m4: New files.
* m4/Makefile.am (EXTRA_DIST): Adjust.
* tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
files.
* src/getargs.c: Display a more standard --version message.
* src/reader.c (reader): Formatting changes.
No longer depend upon VERSION_STRING.
* configure.in: No longer use `dnl'.
Set up the test suite and the new directory `tests/.
(VERSION_STRING): Remove.
This commit is contained in:
Akim Demaille
2000-09-18 13:01:59 +00:00
parent 8aa892b461
commit e79137accc
19 changed files with 1633 additions and 898 deletions

View File

@@ -1,3 +1,10 @@
## Process this file with automake to produce Makefile.in -*-Makefile-*-
EXTRA_DIST = bison-decl.m4 error.m4 gettext.m4 lcmessage.m4 progtest.m4 \
warning.m4
EXTRA_DIST = \
atconfig.m4 \
bison-decl.m4 \
error.m4 \
gettext.m4 \
lcmessage.m4 \
m4.m4 \
progtest.m4 \
warning.m4

13
m4/atconfig.m4 Normal file
View File

@@ -0,0 +1,13 @@
## ----------------------##
## Prepare for testing. ##
## ----------------------##
# serial 1
# Single argument says where are built sources to test, relative to the
# built test directory. Maybe omitted if the same (flat distribution).
AC_DEFUN(AT_CONFIG,
[AT_TESTPATH=ifelse($1, , ., $1)
AC_SUBST(AT_TESTPATH)
])

14
m4/m4.m4 Normal file
View File

@@ -0,0 +1,14 @@
# serial 1
# BISON_AC_PROG_GNU_M4
# --------------------
# Check for GNU m4, at least 1.3 (supports frozen files).
AC_DEFUN([BISON_AC_PROG_GNU_M4],
[AC_PATH_PROGS(M4, gm4 gnum4 m4, m4)
AC_CACHE_CHECK(whether m4 supports frozen files, ac_cv_prog_gnu_m4,
[ac_cv_prog_gnu_m4=no
if test x"$M4" != x; then
case `$M4 --help < /dev/null 2>&1` in
*reload-state*) ac_cv_prog_gnu_m4=yes ;;
esac
fi])])