summaryrefslogtreecommitdiff
path: root/tests/output.at
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-10-11 06:36:17 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-10-11 06:53:45 +0200
commit0c56c195e0f469b2bb93c975622513b383b97316 (patch)
tree935e3ca5b9a41da33b48037c5297a3a05a5b76b4 /tests/output.at
parent3dd2ae4415841c6296b5dcaadec91c722eecbbca (diff)
downloadbison-0c56c195e0f469b2bb93c975622513b383b97316.tar.gz
tests: be really robust to Perl missing
My previous tests (with ./configure PERL=false) have been fooled by configure, that managed to find perl anyway. This time, I ran this on a Fedora in Docker, without Perl. * tests/calc.at, tests/diagnostics.at, tests/headers.at, * tests/input.at, tests/local.at, tests/named-refs.at, * tests/output.at, tests/regression.at, tests/skeletons.at, * tests/synclines.at, tests/torture.at: Don't require Perl.
Diffstat (limited to 'tests/output.at')
-rw-r--r--tests/output.at6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/output.at b/tests/output.at
index fd880f04..5f0ca876 100644
--- a/tests/output.at
+++ b/tests/output.at
@@ -23,10 +23,10 @@ AT_BANNER([[Output file names.]])
# Check that the current directory contains FILE... (sorted).
m4_define([AT_CHECK_FILES],
[AT_CHECK([[find . -type f |
- $PERL -ne '
+ "$PERL" -ne '
s,\./,,; chomp;
push @file, $_ unless m{^($2|testsuite.log)$};
- END { print join (" ", sort @file), "\n" }']],
+ END { print join (" ", sort @file), "\n" }' || exit 77]],
[], [$1
])])
@@ -48,7 +48,7 @@ foo: '0' {};
]])
# There is not AT_DATA_UNQUOTED.
-AT_CHECK([$PERL -pi -e 's{\$at_dir}'"{$at_group_dir}g" $1])
+AT_CHECK(["$PERL" -pi -e 's{\$at_dir}'"{$at_group_dir}g" $1 || exit 77])
AT_BISON_CHECK([$3 $1], [$5], [], [ignore])[