mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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
13
m4/atconfig.m4
Normal 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
14
m4/m4.m4
Normal 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])])
|
||||
Reference in New Issue
Block a user