]>
Commit | Line | Data |
---|---|---|
342b8b6e AD |
1 | # Process this file with autom4te to create testsuite. -*- Autotest -*- |
2 | ||
3 | # Test suite for GNU Bison. | |
817e9f41 | 4 | # Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
342b8b6e 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 | ||
21 | # We need a recent Autotest. | |
d803322e | 22 | m4_version_prereq([2.52g]) |
342b8b6e | 23 | |
1154cced AD |
24 | |
25 | # AT_COMPILE(OUTPUT, [SOURCES = OUTPUT.c]) | |
26 | # ---------------------------------------- | |
27 | # | |
28 | m4_define([AT_COMPILE], | |
29 | [AT_CHECK([$CC $CFLAGS $CPPFLAGS m4_default([$2], [$1.c]) -o $1], 0, | |
30 | [], [ignore])]) | |
31 | ||
32 | ||
33 | # AT_PARSER_CHECK(COMMAND, EXIT-STATUS, EXPOUT, EXPERR) | |
34 | # ----------------------------------------------------- | |
35 | # So that we can run `./testsuite PREPARSER='valgrind -q' for instance. | |
36 | m4_define([AT_PARSER_CHECK], | |
37 | [AT_CHECK([$PREPARSER $1], [$2], [$3], [$4])]) | |
38 | ||
342b8b6e AD |
39 | AT_INIT |
40 | ||
41 | AT_TESTED([bison]) | |
42 | ||
3c31a486 | 43 | # Testing resistance to user bugs. |
9b2d0677 | 44 | m4_include([input.at]) |
3c31a486 AD |
45 | |
46 | # Testing output file names. | |
342b8b6e | 47 | m4_include([output.at]) |
3c31a486 AD |
48 | |
49 | # Testing the part of the engine that computes FOLLOW etc. | |
ed8e1f68 | 50 | m4_include([sets.at]) |
3c31a486 AD |
51 | |
52 | # Testing grammar reduction. | |
cb4956ee | 53 | m4_include([reduce.at]) |
3c31a486 | 54 | |
642cb8f8 AD |
55 | # Testing that #lines are correct. |
56 | m4_include([synclines.at]) | |
57 | ||
3c31a486 | 58 | # Testing that headers are sane. |
b9cecb91 | 59 | m4_include([headers.at]) |
3c31a486 AD |
60 | |
61 | # Testing that user actions are properly performed. | |
82c035a8 | 62 | m4_include([actions.at]) |
3c31a486 AD |
63 | |
64 | # Testing conflicts detection and resolution. | |
65 | m4_include([conflicts.at]) | |
66 | ||
67 | # Fulling testing (compilation and execution of the parser) on calc. | |
342b8b6e | 68 | m4_include([calc.at]) |
3c31a486 | 69 | |
817e9f41 | 70 | # Huge artificial grammars. |
3c31a486 | 71 | # Torturing the stack expansion at runtime. |
6d7d248e | 72 | m4_include([torture.at]) |
3c31a486 | 73 | |
817e9f41 AD |
74 | # Checking big, real world grammars. |
75 | m4_include([existing.at]) | |
76 | ||
3c31a486 | 77 | # Some old bugs. |
342b8b6e | 78 | m4_include([regression.at]) |
676385e2 | 79 | |
09903f30 PH |
80 | # GLR tests: |
81 | # C++ types, simplified | |
676385e2 | 82 | m4_include([cxx-type.at]) |
09903f30 PH |
83 | # Regression test for state-folding optimization |
84 | m4_include([glr-regr1.at]) |