]>
Commit | Line | Data |
---|---|---|
c95f2d78 | 1 | #! /bin/sh |
19c50364 | 2 | # -*- Autoconf -*- |
c95f2d78 AD |
3 | # Validation suite for Bison. |
4 | # Copyright 2000 Free Software Foundation, Inc. | |
5 | ||
6 | AT_INIT([bison]) | |
7 | ||
19c50364 AD |
8 | ## ---------------------------- ## |
9 | ## Checking output file names. ## | |
10 | ## ---------------------------- ## | |
11 | ||
12 | AT_SETUP([Checking output file names.]) | |
13 | ||
14 | AT_DATA([foo.y], | |
15 | [[%% | |
16 | foo: {} | |
17 | ]]) | |
18 | ||
19 | # AT_CHECK_BISON_OUTPUT(FLAGS, EXPECTED-FILES-SORTED) | |
20 | # --------------------------------------------------- | |
21 | AT_DEFINE([AT_CHECK_BISON_OUTPUT], | |
22 | [rm -rf $2 | |
23 | AT_CHECK([bison -dv foo.y $1], 0, ignore, ignore) | |
24 | AT_CHECK([ls $2 | sort | tr '\n' ' ' | sed 's/.$//g'], 0, [$2]) | |
25 | rm -f $2]) | |
26 | ||
5d3214b8 | 27 | AT_CHECK_BISON_OUTPUT([], [foo.output foo.tab.c foo.tab.h]) |
19c50364 | 28 | AT_CHECK_BISON_OUTPUT([-o foo.c], [foo.c foo.h foo.output]) |
5d3214b8 AD |
29 | AT_CHECK_BISON_OUTPUT([-o foo.tab.c], [foo.output foo.tab.c foo.tab.h]) |
30 | AT_CHECK_BISON_OUTPUT([-y], [y.output y.tab.c y.tab.h]) | |
31 | AT_CHECK_BISON_OUTPUT([-b bar], [bar.output bar.tab.c bar.tab.h]) | |
19c50364 AD |
32 | |
33 | AT_CLEANUP | |
5d3214b8 AD |
34 | |
35 | ||
36 | AT_INCLUDE([calc.at]) | |
37 | AT_INCLUDE([regression.at]) |