]> git.saurik.com Git - bison.git/blob - tests/Makefile.am
Use bitset operations when possible, not loops over bits.
[bison.git] / tests / Makefile.am
1 ## Process this file with automake to create Makefile.in.
2
3 ## Makefile for Bison testsuite.
4 ## Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
5
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
9 ## any later version.
10
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
15
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 ## 02111-1307, USA.
20
21 EXTRA_DIST = $(TESTSUITE_AT) testsuite
22
23 DISTCLEANFILES = atconfig $(check_SCRIPTS)
24 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
25
26 ## ------------ ##
27 ## package.m4. ##
28 ## ------------ ##
29
30 $(srcdir)/package.m4: $(top_srcdir)/configure.in
31 { \
32 echo '# Signature of the current package.'; \
33 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
34 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
35 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
36 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
37 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
38 } >$(srcdir)/package.m4
39
40 EXTRA_DIST += package.m4
41
42 ## ------------ ##
43 ## Test suite. ##
44 ## ------------ ##
45
46 TESTSUITE_AT = \
47 testsuite.at \
48 input.at \
49 output.at sets.at reduce.at \
50 headers.at actions.at calc.at \
51 torture.at regression.at \
52 semantic.at
53
54 TESTSUITE = $(srcdir)/testsuite
55
56 AUTOTEST = $(AUTOM4TE) --language=autotest
57 $(srcdir)/$(TESTSUITE): package.m4 $(TESTSUITE_AT)
58 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
59 mv $@.tmp $@
60
61 atconfig: $(top_builddir)/config.status
62 cd $(top_builddir) && ./config.status tests/$@
63
64 clean-local:
65 $(SHELL) $(TESTSUITE) --clean
66
67 check-local: atconfig atlocal $(TESTSUITE)
68 $(SHELL) $(TESTSUITE)
69
70 check_SCRIPTS = bison
71
72 # Run the test suite on the *installed* tree.
73 installcheck-local:
74 $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin