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