* tests/Makefile.am (package.m4): New.

* tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
(_AT_CHECK_CALC_ERROR): Likewise.
Factor the `, ' part of verbose error messages.
This commit is contained in:
Akim Demaille
2001-09-18 10:51:36 +00:00
parent 6f0d1fd89d
commit 3068221b53
4 changed files with 51 additions and 20 deletions

View File

@@ -30,7 +30,7 @@ TESTSUITE = $(srcdir)/testsuite
AUTOM4TE = autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
$(srcdir)/$(TESTSUITE): $(TESTSUITE_AT)
$(srcdir)/$(TESTSUITE): package.m4 $(TESTSUITE_AT)
$(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
mv $@.tmp $@
@@ -49,3 +49,17 @@ check-local: atconfig atlocal $(TESTSUITE)
# Run the test suite on the *installed* tree.
installcheck-local:
$(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
## ------------ ##
## package.m4. ##
## ------------ ##
package.m4: $(top_srcdir)/configure.in
{ \
echo '# Signature of the current package.'; \
echo 'm4_define([PACKAGE_NAME], [@PACKAGE_NAME@])'; \
echo 'm4_define([PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
echo 'm4_define([PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
echo 'm4_define([PACKAGE_STRING], [@PACKAGE_STRING@])'; \
echo 'm4_define([PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
} >package.m4