1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU Bison.
4 # Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
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)
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.
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
21 # We need a recent Autotest.
22 m4_version_prereq([2.52g])
25 # AT_COMPILE(OUTPUT, [SOURCES = OUTPUT.c])
26 # ----------------------------------------
28 m4_define([AT_COMPILE],
29 [AT_CHECK([$CC $CFLAGS $CPPFLAGS m4_default([$2], [$1.c]) -o $1], 0,
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])])
43 # Testing resistance to user bugs.
44 m4_include([input.at])
46 # Testing output file names.
47 m4_include([output.at])
49 # Testing the part of the engine that computes FOLLOW etc.
52 # Testing grammar reduction.
53 m4_include([reduce.at])
55 # Testing that #lines are correct.
56 m4_include([synclines.at])
58 # Testing that headers are sane.
59 m4_include([headers.at])
61 # Testing that user actions are properly performed.
62 m4_include([actions.at])
64 # Testing conflicts detection and resolution.
65 m4_include([conflicts.at])
67 # Fulling testing (compilation and execution of the parser) on calc.
70 # Huge artificial grammars.
71 # Torturing the stack expansion at runtime.
72 m4_include([torture.at])
74 # Checking big, real world grammars.
75 m4_include([existing.at])
78 m4_include([regression.at])
80 # GLR tests: C++ types, simplified
81 m4_include([cxx-type.at])