]> git.saurik.com Git - bison.git/blame - tests/Makefile.am
Don't impose std::string for filenames.
[bison.git] / tests / Makefile.am
CommitLineData
e79137ac
AD
1## Process this file with automake to create Makefile.in.
2
3## Makefile for Bison testsuite.
d390b02b 4## Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
e79137ac
AD
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
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
b6347355 30$(srcdir)/package.m4: $(top_srcdir)/configure.ac
73784c64
AD
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
73784c64
AD
40## ------------ ##
41## Test suite. ##
42## ------------ ##
43
342b8b6e 44TESTSUITE_AT = \
67a25fed 45 local.at \
342b8b6e 46 testsuite.at \
9b2d0677 47 input.at \
b9cecb91 48 output.at sets.at reduce.at \
642cb8f8
AD
49 synclines.at headers.at actions.at conflicts.at \
50 calc.at \
676385e2 51 torture.at existing.at regression.at \
ede3d3bc 52 cxx-type.at glr-regression.at
f499b062 53
342b8b6e 54TESTSUITE = $(srcdir)/testsuite
e79137ac 55
342b8b6e 56AUTOTEST = $(AUTOM4TE) --language=autotest
643a5994 57$(TESTSUITE): package.m4 $(TESTSUITE_AT)
342b8b6e
AD
58 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
59 mv $@.tmp $@
e79137ac 60
342b8b6e
AD
61atconfig: $(top_builddir)/config.status
62 cd $(top_builddir) && ./config.status tests/$@
e79137ac 63
342b8b6e 64clean-local:
6a5ecb38 65 test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
342b8b6e
AD
66
67check-local: atconfig atlocal $(TESTSUITE)
d390b02b 68 $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS)
342b8b6e 69
be2a1a68
AD
70check_SCRIPTS = bison
71
342b8b6e
AD
72# Run the test suite on the *installed* tree.
73installcheck-local:
d390b02b 74 $(SHELL) $(TESTSUITE) AUTOTEST_PATH="$(bindir)" $(TESTSUITEFLAGS)
f377f69f
AD
75
76# Be real mean with it.
d43baf71
AD
77.PHONY: maintainer-check-g++
78maintainer-check-g++: $(TESTSUITE)
79 if test -n "$(VALGRIND)"; then \
80 $(TESTSUITE) CC='$(GXX)'; \
81 else \
82 true; \
83 fi
84
85.PHONY: maintainer-check-posix
86maintainer-check-posix: $(TESTSUITE)
87 $(TESTSUITE) POSIXLY_CORRECT=1
88
f377f69f
AD
89.PHONY: maintainer-check-valgrind
90maintainer-check-valgrind: $(TESTSUITE)
91 if test -n "$(VALGRIND)"; then \
92 $(TESTSUITE) PREBISON='$(VALGRIND) -q' PREPARSER='$(VALGRIND) -q'; \
93 else \
94 true; \
95 fi
96
f377f69f 97.PHONY: maintainer-check
d43baf71 98maintainer-check: maintainer-check-posix maintainer-check-valgrind maintainer-check-g++