#! /bin/sh # -*- Autoconf -*- # Validation suite for Bison. # Copyright 2000 Free Software Foundation, Inc. AT_INIT([bison]) ## ---------------------------- ## ## Checking output file names. ## ## ---------------------------- ## AT_SETUP([Checking output file names.]) AT_DATA([foo.y], [[%% foo: {} ]]) # AT_CHECK_BISON_OUTPUT(FLAGS, EXPECTED-FILES-SORTED) # --------------------------------------------------- AT_DEFINE([AT_CHECK_BISON_OUTPUT], [rm -rf $2 AT_CHECK([bison -dv foo.y $1], 0, ignore, ignore) AT_CHECK([ls $2 | sort | tr '\n' ' ' | sed 's/.$//g'], 0, [$2]) rm -f $2]) AT_CHECK_BISON_OUTPUT([], [foo.output foo.tab.c foo.tab.h]) AT_CHECK_BISON_OUTPUT([-o foo.c], [foo.c foo.h foo.output]) AT_CHECK_BISON_OUTPUT([-o foo.tab.c], [foo.output foo.tab.c foo.tab.h]) AT_CHECK_BISON_OUTPUT([-y], [y.output y.tab.c y.tab.h]) AT_CHECK_BISON_OUTPUT([-b bar], [bar.output bar.tab.c bar.tab.h]) AT_CLEANUP AT_INCLUDE([calc.at]) AT_INCLUDE([regression.at])