]> git.saurik.com Git - bison.git/blame - tests/Makefile.am
Remove remaining dependence on CVS Id keyword.
[bison.git] / tests / Makefile.am
CommitLineData
e79137ac
AD
1## Process this file with automake to create Makefile.in.
2
3## Makefile for Bison testsuite.
31d7addb 4
78029cd5
JD
5## Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
6## Software Foundation, Inc.
e79137ac 7
f16b0819
PE
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
e79137ac 20
48c4080d 21EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4
e79137ac 22
be2a1a68 23DISTCLEANFILES = atconfig $(check_SCRIPTS)
342b8b6e 24MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
e79137ac 25
73784c64
AD
26## ------------ ##
27## package.m4. ##
28## ------------ ##
29
c53d18b1 30$(srcdir)/package.m4: $(top_srcdir)/configure
73f2e47e 31 { \
73784c64 32 echo '# Signature of the current package.'; \
04098407
PE
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)])'; \
73784c64
AD
38 } >$(srcdir)/package.m4
39
73784c64
AD
40## ------------ ##
41## Test suite. ##
42## ------------ ##
43
342b8b6e 44TESTSUITE_AT = \
67a25fed 45 local.at \
342b8b6e 46 testsuite.at \
9b2d0677 47 input.at \
a7867f53 48 output.at sets.at reduce.at skeletons.at \
642cb8f8
AD
49 synclines.at headers.at actions.at conflicts.at \
50 calc.at \
676385e2 51 torture.at existing.at regression.at \
e019c247 52 c++.at \
8405b70c 53 java.at \
eb1b0740
JD
54 cxx-type.at glr-regression.at \
55 push.at
f499b062 56
342b8b6e 57TESTSUITE = $(srcdir)/testsuite
e79137ac 58
342b8b6e 59AUTOTEST = $(AUTOM4TE) --language=autotest
643a5994 60$(TESTSUITE): package.m4 $(TESTSUITE_AT)
342b8b6e
AD
61 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
62 mv $@.tmp $@
e79137ac 63
342b8b6e
AD
64atconfig: $(top_builddir)/config.status
65 cd $(top_builddir) && ./config.status tests/$@
e79137ac 66
342b8b6e 67clean-local:
6a5ecb38 68 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
342b8b6e
AD
69
70check-local: atconfig atlocal $(TESTSUITE)
d390b02b 71 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
342b8b6e 72
be2a1a68
AD
73check_SCRIPTS = bison
74
342b8b6e
AD
75# Run the test suite on the *installed* tree.
76installcheck-local:
d390b02b 77 $(SHELL) $(TESTSUITE) AUTOTEST_PATH="$(bindir)" $(TESTSUITEFLAGS)
f377f69f
AD
78
79# Be real mean with it.
d43baf71
AD
80.PHONY: maintainer-check-g++
81maintainer-check-g++: $(TESTSUITE)
a22ff96f 82 $(TESTSUITE) CC='$(CXX)'
d43baf71
AD
83
84.PHONY: maintainer-check-posix
85maintainer-check-posix: $(TESTSUITE)
a22ff96f 86 $(TESTSUITE) POSIXLY_CORRECT=1 _POSIX2_VERSION=200112
d43baf71 87
f377f69f
AD
88.PHONY: maintainer-check-valgrind
89maintainer-check-valgrind: $(TESTSUITE)
73f2e47e 90 test -z '$(VALGRIND)' || \
eb095650 91 VALGRIND_OPTS='--leak-check=full --show-reachable=yes' \
73f2e47e 92 $(TESTSUITE) PREBISON='$(VALGRIND) -q' PREPARSER='$(VALGRIND) -q'
f377f69f 93
f377f69f 94.PHONY: maintainer-check
d43baf71 95maintainer-check: maintainer-check-posix maintainer-check-valgrind maintainer-check-g++
945e396c
JD
96
97.PHONY: maintainer-push-check
98maintainer-push-check:
99 BISON_USE_PUSH_FOR_PULL=1 $(MAKE) $(AM_MAKEFLAGS) maintainer-check
da730230
JD
100
101.PHONY: maintainer-xml-check
102maintainer-xml-check:
103 BISON_TEST_XML=1 $(MAKE) $(AM_MAKEFLAGS) maintainer-check