]>
Commit | Line | Data |
---|---|---|
1 | # Test suite for GNU Bison. -*- Autotest -*- | |
2 | ||
3 | # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 Free Software | |
4 | # 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., 51 Franklin Street, Fifth Floor, Boston, MA | |
19 | # 02110-1301, USA. | |
20 | ||
21 | ||
22 | # Bison often leaks memory when its exit status is non-zero, so set | |
23 | # --leak-check=summary for Valgrind in that case. | |
24 | m4_pushdef([ORIGINAL_AT_CHECK], m4_defn([AT_CHECK])) | |
25 | m4_pushdef([AT_CHECK], | |
26 | [ORIGINAL_AT_CHECK( | |
27 | m4_if(m4_quote(m4_substr(m4_quote($1), 0, 5)), [bison], | |
28 | m4_if(m4_quote($2), [0], [], m4_quote($2), [], [], | |
29 | [[VALGRIND_OPTS="$VALGRIND_OPTS --leak-check=summary --show-reachable=no"; export VALGRIND_OPTS; ]]))$@)]) | |
30 | ||
31 | # Testing resistance to user bugs. | |
32 | m4_include([input.at]) | |
33 | ||
34 | # Testing output file names. | |
35 | m4_include([output.at]) | |
36 | ||
37 | # Testing the part of the engine that computes FOLLOW etc. | |
38 | m4_include([sets.at]) | |
39 | ||
40 | # Testing grammar reduction. | |
41 | m4_include([reduce.at]) | |
42 | ||
43 | # Testing that #lines are correct. | |
44 | m4_include([synclines.at]) | |
45 | ||
46 | # Testing that headers are sane. | |
47 | m4_include([headers.at]) | |
48 | ||
49 | # Testing that user actions are properly performed. | |
50 | m4_include([actions.at]) | |
51 | ||
52 | # Testing conflicts detection and resolution. | |
53 | m4_include([conflicts.at]) | |
54 | ||
55 | # Fulling testing (compilation and execution of the parser) on calc. | |
56 | m4_include([calc.at]) | |
57 | ||
58 | # Huge artificial grammars. | |
59 | # Torturing the stack expansion at runtime. | |
60 | m4_include([torture.at]) | |
61 | ||
62 | # Checking big, real world grammars. | |
63 | m4_include([existing.at]) | |
64 | ||
65 | # Some old bugs. | |
66 | m4_include([regression.at]) | |
67 | ||
68 | # Some C++ specific tests. | |
69 | m4_include([c++.at]) | |
70 | ||
71 | # GLR tests: | |
72 | # C++ types, simplified | |
73 | m4_include([cxx-type.at]) | |
74 | # Regression tests | |
75 | m4_include([glr-regression.at]) | |
76 | ||
77 | m4_popdef([AT_CHECK]) | |
78 | m4_popdef([ORIGINAL_AT_CHECK]) |