]> git.saurik.com Git - bison.git/blame - tests/Makefile.am
Instead of attaching lookaheads and duplicating the rules being
[bison.git] / tests / Makefile.am
CommitLineData
e79137ac
AD
1## Process this file with automake to create Makefile.in.
2
3## Makefile for Bison testsuite.
fdbcd8e2 4## Copyright (C) 2000, 2001, 2002 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
f987e9d2 21EXTRA_DIST = $(TESTSUITE_AT) testsuite
e79137ac 22
be2a1a68 23DISTCLEANFILES = atconfig $(check_SCRIPTS)
342b8b6e 24MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
e79137ac 25
73784c64
AD
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
40EXTRA_DIST += package.m4
41
42## ------------ ##
43## Test suite. ##
44## ------------ ##
45
342b8b6e
AD
46TESTSUITE_AT = \
47 testsuite.at \
9b2d0677 48 input.at \
b9cecb91 49 output.at sets.at reduce.at \
642cb8f8
AD
50 synclines.at headers.at actions.at conflicts.at \
51 calc.at \
676385e2
PH
52 torture.at existing.at regression.at \
53 cxx-type.at
f499b062 54
342b8b6e 55TESTSUITE = $(srcdir)/testsuite
e79137ac 56
342b8b6e 57AUTOTEST = $(AUTOM4TE) --language=autotest
643a5994 58$(TESTSUITE): package.m4 $(TESTSUITE_AT)
342b8b6e
AD
59 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
60 mv $@.tmp $@
e79137ac 61
342b8b6e
AD
62atconfig: $(top_builddir)/config.status
63 cd $(top_builddir) && ./config.status tests/$@
e79137ac 64
342b8b6e
AD
65clean-local:
66 $(SHELL) $(TESTSUITE) --clean
67
68check-local: atconfig atlocal $(TESTSUITE)
69 $(SHELL) $(TESTSUITE)
70
be2a1a68
AD
71check_SCRIPTS = bison
72
342b8b6e
AD
73# Run the test suite on the *installed* tree.
74installcheck-local:
75 $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin