X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/342b8b6e2156e923797745af2da2596e3086ccd5..bf46a7c193d2d7033cb57c15d24658652ceba292:/tests/output.at diff --git a/tests/output.at b/tests/output.at index 964e9119..147e8b28 100644 --- a/tests/output.at +++ b/tests/output.at @@ -26,12 +26,12 @@ m4_define([AT_CHECK_OUTPUT], AT_DATA([$1], [[$2 %% -foo: {} +foo: {}; ]]) AT_CHECK([bison $3 $1], 0) AT_CHECK([ls $4], [], [ignore]) -AT_CLEANUP($4) +AT_CLEANUP ]) AT_CHECK_OUTPUT([foo.y], [], [-dv], @@ -53,6 +53,19 @@ AT_CHECK_OUTPUT([foo.y], [%defines %verbose], [], AT_CHECK_OUTPUT([foo.y], [%defines %verbose %yacc],[], [y.output y.tab.c y.tab.h]) +AT_CHECK_OUTPUT([foo.yy], [%defines %verbose %yacc],[], + [y.output y.tab.c y.tab.h]) + +# Exercise %output and %file-prefix +AT_CHECK_OUTPUT([foo.y], [%file-prefix="bar" %defines %verbose], [], + [bar.output bar.tab.c bar.tab.h]) +AT_CHECK_OUTPUT([foo.y], [%output="bar.c" %defines %verbose %yacc],[], + [bar.output bar.c bar.h]) +AT_CHECK_OUTPUT([foo.y], + [%file-prefix="baz" %output="bar.c" %defines %verbose %yacc], + [], + [bar.output bar.c bar.h]) + # Check priorities of extension control. AT_CHECK_OUTPUT([foo.yy], [%defines %verbose], [],