]> git.saurik.com Git - bison.git/blob - tests/Makefile.am
* src/lalr.c (build_relations): Rename `states' as `states1'.
[bison.git] / tests / Makefile.am
1 ## Process this file with automake to create Makefile.in.
2
3 ## Makefile for Bison testsuite.
4 ## Copyright 2000, 2001 Free Software Foundation, Inc.
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
21 EXTRA_DIST = $(TESTSUITE_AT) testsuite
22
23 DISTCLEANFILES = atconfig bison package.m4
24 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
25
26 TESTSUITE_AT = \
27 testsuite.at \
28 output.at sets.at reduce.at calc.at torture.at regression.at \
29 semantic.at
30
31 TESTSUITE = $(srcdir)/testsuite
32
33 AUTOTEST = $(AUTOM4TE) --language=autotest
34 $(srcdir)/$(TESTSUITE): $(TESTSUITE_AT)
35 $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
36 mv $@.tmp $@
37
38 atconfig: $(top_builddir)/config.status
39 cd $(top_builddir) && ./config.status tests/$@
40
41 clean-local:
42 $(SHELL) $(TESTSUITE) --clean
43
44 check-local: atconfig atlocal $(TESTSUITE)
45 $(SHELL) $(TESTSUITE)
46
47 # Run the test suite on the *installed* tree.
48 installcheck-local:
49 $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin