]> git.saurik.com Git - bison.git/blobdiff - tests/Makefile.am
* src/Makefile.am (bison_SOURCES): Add parse-skel.h and
[bison.git] / tests / Makefile.am
index bd17ad605f4ffcbb8931afeab140b3e989df1f3b..caf1d9b32055801257ae1217160aced93c5a612f 100644 (file)
 ## 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 = calc.at regression.at
+DISTCLEANFILES       = atconfig bison package.m4
+MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
 
-EXTRA_DIST = atgeneral.m4 suite.at $(SUITE) $(noinst_SCRIPTS)
+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 $(srcdir)/testsuite
-       $(SHELL) $(srcdir)/testsuite
+TESTSUITE = $(srcdir)/testsuite
 
-testsuite: atgeneral.m4 suite.at $(SUITE)
-       $(M4) -I $(srcdir) atgeneral.m4 suite.at | \
-          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 empty
-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