X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/bfcf1f3af044b8aa2193a4271a065085f7868777..85ac3861e7c7de8877562ac0dbb1233d91c705c2:/tests/output.at?ds=inline diff --git a/tests/output.at b/tests/output.at index 147e8b28..12a49b90 100644 --- a/tests/output.at +++ b/tests/output.at @@ -1,5 +1,5 @@ # Checking the output filenames. -*- Autotest -*- -# Copyright 2000, 2001 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -13,29 +13,32 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. AT_BANNER([[Output file names.]]) -# AT_CHECK_OUTPUT(INPUT-FILE, [DIRECTIVES], [FLAGS], EXPECTED-FILES) -# ------------------------------------------------------------------ +# AT_CHECK_OUTPUT(INPUT-FILE, [DIRECTIVES], [FLAGS], EXPECTED-FILES, [SHELLIO]) +# ----------------------------------------------------------------------------- m4_define([AT_CHECK_OUTPUT], -[AT_SETUP([Output files: $2 & $3.]) +[AT_SETUP([Output files: $2 & $3 $5.]) AT_DATA([$1], [[$2 %% foo: {}; ]]) -AT_CHECK([bison $3 $1], 0) +AT_CHECK([bison $3 $1 $5], 0) AT_CHECK([ls $4], [], [ignore]) AT_CLEANUP ]) AT_CHECK_OUTPUT([foo.y], [], [-dv], [foo.output foo.tab.c foo.tab.h]) +AT_CHECK_OUTPUT([foo.y], [], [-dv], + [foo.output foo.tab.c foo.tab.h], + [>&-]) AT_CHECK_OUTPUT([foo.y], [], [-dv -o foo.c], [foo.c foo.h foo.output]) AT_CHECK_OUTPUT([foo.y], [], [-dv -o foo.tab.c],