]>
Commit | Line | Data |
---|---|---|
eb095650 | 1 | # Test suite for GNU Bison. -*- Autotest -*- |
342b8b6e | 2 | |
a7867f53 | 3 | # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007 Free Software |
eb095650 | 4 | # Foundation, Inc. |
342b8b6e | 5 | |
f16b0819 | 6 | # This program is free software: you can redistribute it and/or modify |
342b8b6e | 7 | # it under the terms of the GNU General Public License as published by |
f16b0819 PE |
8 | # the Free Software Foundation, either version 3 of the License, or |
9 | # (at your option) any later version. | |
10 | # | |
342b8b6e AD |
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. | |
f16b0819 | 15 | # |
342b8b6e | 16 | # You should have received a copy of the GNU General Public License |
f16b0819 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
342b8b6e | 18 | |
342b8b6e | 19 | |
eb095650 PE |
20 | # Bison often leaks memory when its exit status is non-zero, so set |
21 | # --leak-check=summary for Valgrind in that case. | |
22 | m4_pushdef([ORIGINAL_AT_CHECK], m4_defn([AT_CHECK])) | |
23 | m4_pushdef([AT_CHECK], | |
24 | [ORIGINAL_AT_CHECK( | |
bd9d212b | 25 | m4_if(m4_index(m4_quote($1), [bison ]), 0, |
405d53b7 | 26 | m4_if(m4_quote($2), [0], [], m4_quote($2), [], [], |
eb095650 PE |
27 | [[VALGRIND_OPTS="$VALGRIND_OPTS --leak-check=summary --show-reachable=no"; export VALGRIND_OPTS; ]]))$@)]) |
28 | ||
3c31a486 | 29 | # Testing resistance to user bugs. |
9b2d0677 | 30 | m4_include([input.at]) |
3c31a486 AD |
31 | |
32 | # Testing output file names. | |
342b8b6e | 33 | m4_include([output.at]) |
3c31a486 | 34 | |
a7867f53 JD |
35 | # Testing skeleton support. |
36 | m4_include([skeletons.at]) | |
37 | ||
3c31a486 | 38 | # Testing the part of the engine that computes FOLLOW etc. |
ed8e1f68 | 39 | m4_include([sets.at]) |
3c31a486 AD |
40 | |
41 | # Testing grammar reduction. | |
cb4956ee | 42 | m4_include([reduce.at]) |
3c31a486 | 43 | |
642cb8f8 AD |
44 | # Testing that #lines are correct. |
45 | m4_include([synclines.at]) | |
46 | ||
3c31a486 | 47 | # Testing that headers are sane. |
b9cecb91 | 48 | m4_include([headers.at]) |
3c31a486 AD |
49 | |
50 | # Testing that user actions are properly performed. | |
82c035a8 | 51 | m4_include([actions.at]) |
3c31a486 AD |
52 | |
53 | # Testing conflicts detection and resolution. | |
54 | m4_include([conflicts.at]) | |
55 | ||
56 | # Fulling testing (compilation and execution of the parser) on calc. | |
342b8b6e | 57 | m4_include([calc.at]) |
3c31a486 | 58 | |
817e9f41 | 59 | # Huge artificial grammars. |
3c31a486 | 60 | # Torturing the stack expansion at runtime. |
6d7d248e | 61 | m4_include([torture.at]) |
3c31a486 | 62 | |
817e9f41 AD |
63 | # Checking big, real world grammars. |
64 | m4_include([existing.at]) | |
65 | ||
3c31a486 | 66 | # Some old bugs. |
342b8b6e | 67 | m4_include([regression.at]) |
676385e2 | 68 | |
e019c247 AD |
69 | # Some C++ specific tests. |
70 | m4_include([c++.at]) | |
71 | ||
8405b70c PB |
72 | # And some Java specific tests. |
73 | m4_include([java.at]) | |
74 | ||
9501dc6e | 75 | # GLR tests: |
09903f30 | 76 | # C++ types, simplified |
676385e2 | 77 | m4_include([cxx-type.at]) |
ede3d3bc PH |
78 | # Regression tests |
79 | m4_include([glr-regression.at]) | |
eb095650 | 80 | |
eb1b0740 JD |
81 | # Push parsing specific tests. |
82 | m4_include([push.at]) | |
83 | ||
eb095650 PE |
84 | m4_popdef([AT_CHECK]) |
85 | m4_popdef([ORIGINAL_AT_CHECK]) |