]> git.saurik.com Git - bison.git/blame - tests/Makefile.am
* djgpp/config.bat: Fix that inttypes.h and inttypes_.h map on the same 8.3 alias.
[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
945e396c 5## Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
31d7addb 6## Foundation, Inc.
e79137ac
AD
7
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 2, or (at your option)
11## 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, write to the Free Software
0fb669f9
PE
20## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21## 02110-1301, USA.
e79137ac 22
48c4080d 23EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4
e79137ac 24
be2a1a68 25DISTCLEANFILES = atconfig $(check_SCRIPTS)
342b8b6e 26MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
e79137ac 27
73784c64
AD
28## ------------ ##
29## package.m4. ##
30## ------------ ##
31
b6347355 32$(srcdir)/package.m4: $(top_srcdir)/configure.ac
73f2e47e 33 { \
73784c64 34 echo '# Signature of the current package.'; \
04098407
PE
35 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])'; \
36 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])'; \
37 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])'; \
38 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])'; \
39 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
73784c64
AD
40 } >$(srcdir)/package.m4
41
73784c64
AD
42## ------------ ##
43## Test suite. ##
44## ------------ ##
45
342b8b6e 46TESTSUITE_AT = \
67a25fed 47 local.at \
342b8b6e 48 testsuite.at \
9b2d0677 49 input.at \
a7867f53 50 output.at sets.at reduce.at skeletons.at \
642cb8f8
AD
51 synclines.at headers.at actions.at conflicts.at \
52 calc.at \
676385e2 53 torture.at existing.at regression.at \
e019c247 54 c++.at \
8405b70c 55 java.at \
ede3d3bc 56 cxx-type.at glr-regression.at
f499b062 57
342b8b6e 58TESTSUITE = $(srcdir)/testsuite
e79137ac 59
342b8b6e 60AUTOTEST = $(AUTOM4TE) --language=autotest
643a5994 61$(TESTSUITE): package.m4 $(TESTSUITE_AT)
342b8b6e
AD
62 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
63 mv $@.tmp $@
e79137ac 64
342b8b6e
AD
65atconfig: $(top_builddir)/config.status
66 cd $(top_builddir) && ./config.status tests/$@
e79137ac 67
342b8b6e 68clean-local:
6a5ecb38 69 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
342b8b6e
AD
70
71check-local: atconfig atlocal $(TESTSUITE)
d390b02b 72 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
342b8b6e 73
be2a1a68
AD
74check_SCRIPTS = bison
75
342b8b6e
AD
76# Run the test suite on the *installed* tree.
77installcheck-local:
d390b02b 78 $(SHELL) $(TESTSUITE) AUTOTEST_PATH="$(bindir)" $(TESTSUITEFLAGS)
f377f69f
AD
79
80# Be real mean with it.
d43baf71
AD
81.PHONY: maintainer-check-g++
82maintainer-check-g++: $(TESTSUITE)
a22ff96f 83 $(TESTSUITE) CC='$(CXX)'
d43baf71
AD
84
85.PHONY: maintainer-check-posix
86maintainer-check-posix: $(TESTSUITE)
a22ff96f 87 $(TESTSUITE) POSIXLY_CORRECT=1 _POSIX2_VERSION=200112
d43baf71 88
f377f69f
AD
89.PHONY: maintainer-check-valgrind
90maintainer-check-valgrind: $(TESTSUITE)
73f2e47e 91 test -z '$(VALGRIND)' || \
eb095650 92 VALGRIND_OPTS='--leak-check=full --show-reachable=yes' \
73f2e47e 93 $(TESTSUITE) PREBISON='$(VALGRIND) -q' PREPARSER='$(VALGRIND) -q'
f377f69f 94
f377f69f 95.PHONY: maintainer-check
d43baf71 96maintainer-check: maintainer-check-posix maintainer-check-valgrind maintainer-check-g++
945e396c
JD
97
98.PHONY: maintainer-push-check
99maintainer-push-check:
100 BISON_USE_PUSH_FOR_PULL=1 $(MAKE) $(AM_MAKEFLAGS) maintainer-check