X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e79137accc7ea0352cd4677ff22818f9c68d4eab..25d810906cecc2ac321e2893b1ad38b376f3d313:/tests/Makefile.am diff --git a/tests/Makefile.am b/tests/Makefile.am index 3ea9fe34..caf1d9b3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to create Makefile.in. ## Makefile for Bison testsuite. -## Copyright (C) 2000 Free Software Foundation, Inc. +## Copyright 2000, 2001 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,23 +18,34 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -# Distribute the testsuite since GNU M4 is needed to build it. -noinst_SCRIPTS = testsuite +EXTRA_DIST = $(TESTSUITE_AT) testsuite -SUITE = +DISTCLEANFILES = atconfig bison package.m4 +MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) -EXTRA_DIST = atgeneral.m4 suite.m4 $(SUITE) +TESTSUITE_AT = \ + testsuite.at \ + output.at sets.at reduce.at \ + headers.at actions.at calc.at \ + torture.at regression.at \ + semantic.at -check-local: atconfig testsuite - $(SHELL) testsuite +TESTSUITE = $(srcdir)/testsuite -testsuite: atgeneral.m4 suite.m4 $(SUITE) - $(M4) -I $(srcdir) atgeneral.m4 suite.m4 | \ - sed -e 's/[ ]*$$//' | \ - sed -e '/^$$/N;/\n$$/D' > $@-tmp - chmod +x $@-tmp - mv $@-tmp $@ +AUTOTEST = $(AUTOM4TE) --language=autotest +$(srcdir)/$(TESTSUITE): $(TESTSUITE_AT) + $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp + mv $@.tmp $@ -CLEANFILES = debug-*.sh -DISTCLEANFILES = atconfig -MAINTAINERCLEANFILES = testsuite +atconfig: $(top_builddir)/config.status + cd $(top_builddir) && ./config.status tests/$@ + +clean-local: + $(SHELL) $(TESTSUITE) --clean + +check-local: atconfig atlocal $(TESTSUITE) + $(SHELL) $(TESTSUITE) + +# Run the test suite on the *installed* tree. +installcheck-local: + $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin