]>
Commit | Line | Data |
---|---|---|
e79137ac AD |
1 | ## Process this file with automake to create Makefile.in. |
2 | ||
3 | ## Makefile for Bison testsuite. | |
31d7addb | 4 | |
c932d613 | 5 | ## Copyright (C) 2000-2012 Free Software Foundation, Inc. |
e79137ac | 6 | |
f16b0819 PE |
7 | # This program is free software: you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation, either version 3 of the License, or | |
10 | # (at your option) any later version. | |
11 | # | |
12 | # This program is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
e79137ac | 19 | |
48c4080d | 20 | EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4 |
e79137ac | 21 | |
be2a1a68 | 22 | DISTCLEANFILES = atconfig $(check_SCRIPTS) |
342b8b6e | 23 | MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) |
e79137ac | 24 | |
73784c64 AD |
25 | ## ------------ ## |
26 | ## package.m4. ## | |
27 | ## ------------ ## | |
28 | ||
c53d18b1 | 29 | $(srcdir)/package.m4: $(top_srcdir)/configure |
08ab0101 | 30 | $(AM_V_GEN) { \ |
73784c64 | 31 | echo '# Signature of the current package.'; \ |
04098407 PE |
32 | echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])'; \ |
33 | echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])'; \ | |
34 | echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])'; \ | |
35 | echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])'; \ | |
36 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \ | |
08ab0101 AD |
37 | } >$@.tmp |
38 | $(AM_V_at) mv $@.tmp $@ | |
73784c64 | 39 | |
73784c64 AD |
40 | ## ------------ ## |
41 | ## Test suite. ## | |
42 | ## ------------ ## | |
43 | ||
342b8b6e | 44 | TESTSUITE_AT = \ |
67a25fed | 45 | local.at \ |
342b8b6e | 46 | testsuite.at \ |
36dfe466 JD |
47 | input.at named-refs.at \ |
48 | output.at skeletons.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 \ |
e019c247 | 52 | c++.at \ |
8405b70c | 53 | java.at \ |
eb1b0740 JD |
54 | cxx-type.at glr-regression.at \ |
55 | push.at | |
f499b062 | 56 | |
342b8b6e | 57 | TESTSUITE = $(srcdir)/testsuite |
e79137ac | 58 | |
342b8b6e | 59 | AUTOTEST = $(AUTOM4TE) --language=autotest |
9097fda0 | 60 | $(TESTSUITE): $(srcdir)/package.m4 $(TESTSUITE_AT) |
08ab0101 AD |
61 | $(AM_V_GEN) $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp |
62 | $(AM_V_at) mv $@.tmp $@ | |
e79137ac | 63 | |
342b8b6e AD |
64 | atconfig: $(top_builddir)/config.status |
65 | cd $(top_builddir) && ./config.status tests/$@ | |
e79137ac | 66 | |
342b8b6e | 67 | clean-local: |
6a5ecb38 | 68 | test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean |
342b8b6e AD |
69 | |
70 | check-local: atconfig atlocal $(TESTSUITE) | |
d390b02b | 71 | $(SHELL) $(TESTSUITE) $(TESTSUITEFLAGS) |
342b8b6e | 72 | |
be2a1a68 AD |
73 | check_SCRIPTS = bison |
74 | ||
342b8b6e | 75 | # Run the test suite on the *installed* tree. |
d5c20d1a | 76 | installcheck-local: atconfig atlocal $(TESTSUITE) |
7f7fdba4 | 77 | $(TESTSUITE) AUTOTEST_PATH="$(bindir)" $(TESTSUITEFLAGS) |
f377f69f AD |
78 | |
79 | # Be real mean with it. | |
d43baf71 | 80 | .PHONY: maintainer-check-g++ |
d5c20d1a | 81 | maintainer-check-g++: atconfig atlocal $(TESTSUITE) |
7f7fdba4 | 82 | $(TESTSUITE) $(TESTSUITEFLAGS) --compile-c-with-cxx |
d43baf71 AD |
83 | |
84 | .PHONY: maintainer-check-posix | |
d5c20d1a | 85 | maintainer-check-posix: atconfig atlocal $(TESTSUITE) |
7f7fdba4 | 86 | $(TESTSUITE) $(TESTSUITEFLAGS) POSIXLY_CORRECT=1 _POSIX2_VERSION=200112 |
d43baf71 | 87 | |
f377f69f | 88 | .PHONY: maintainer-check-valgrind |
d5c20d1a | 89 | maintainer-check-valgrind: atconfig atlocal $(TESTSUITE) |
7f7fdba4 AD |
90 | test -z '$(VALGRIND)' || \ |
91 | $(TESTSUITE) $(TESTSUITEFLAGS) \ | |
bcbbf654 | 92 | PREBISON='$(VALGRIND_PREBISON)' PREPARSER='$(VALGRIND) -q' \ |
7f7fdba4 | 93 | VALGRIND_OPTS='--leak-check=full --show-reachable=yes' |
f377f69f | 94 | |
f377f69f | 95 | .PHONY: maintainer-check |
d43baf71 | 96 | maintainer-check: maintainer-check-posix maintainer-check-valgrind maintainer-check-g++ |
945e396c JD |
97 | |
98 | .PHONY: maintainer-push-check | |
99 | maintainer-push-check: | |
100 | BISON_USE_PUSH_FOR_PULL=1 $(MAKE) $(AM_MAKEFLAGS) maintainer-check | |
da730230 JD |
101 | |
102 | .PHONY: maintainer-xml-check | |
103 | maintainer-xml-check: | |
104 | BISON_TEST_XML=1 $(MAKE) $(AM_MAKEFLAGS) maintainer-check | |
a0cd287e AD |
105 | |
106 | .PHONY: maintainer-release-check | |
107 | maintainer-release-check: maintainer-check maintainer-push-check maintainer-xml-check |