diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-05-05 02:01:20 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-05-05 02:16:24 +0200 |
commit | 67b86e0868d04d53e4c630633cbdccb6c5900cdf (patch) | |
tree | 32945c94ea38222901ac13967f1c4f3f04bf571d /t/tap-signal.tap | |
parent | 33f4f7d391152e679232479a7dec4cc2cb90a12f (diff) | |
download | automake-67b86e0868d04d53e4c630633cbdccb6c5900cdf.tar.gz |
maintcheck: reduce code duplication, increase coverage
* syntax-checks.mk: Move ...
(sc_tests_plain_aclocal,
sc_tests_plain_autoconf,
sc_tests_plain_perl,
sc_tests_plain_autoupdate,
sc_tests_plain_automake,
sc_tests_plain_make,
sc_tests_plain_autoheader,
sc_tests_plain_autoreconf,
sc_tests_plain_autom4te): ... all these targets ...
(sc_tests_plain_egrep_fgrep): ... and part of this target ...
(sc_tests_plain_check_rules): ... into this variable, and
reimplement their recipes ...
($(sc_tests_plain_check_rules)): ... with this static pattern
rule. Enhance the coverage they offer a little since we are
at it.
(sc_m4_am_plain_egrep_fgrep): New rule, the part of the old
'sc_tests_plain_egrep_fgrep' rule that checked for use of
'fgrep' and 'egrep' in *.am and *.m4 fragments (rather than
in test scripts).
(syntax_check_rules): Update.
* t/dist-formats.tap: Fix bad use of "make" instead of "$MAKE"
revealed by the extra coverage.
* t/cond5.sh, t/auxdir-autodetect.sh: Cosmetic changes to avoid
spuriously triggering the maintainer checks due to the
enhanced coverage.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/tap-signal.tap')
-rwxr-xr-x | t/tap-signal.tap | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/tap-signal.tap b/t/tap-signal.tap index ab1cd40ef..cf5c9454c 100755 --- a/t/tap-signal.tap +++ b/t/tap-signal.tap @@ -49,7 +49,7 @@ for sig in $all_signals; do # to themselves consistently). The shebang is dummy here, as we prefer # to rely on the definition of TEST_LOG_COMPILER instead. unindent > signal-$sig.test <<END - #! perl + #! /usr/bin/env perl # We need autoflush to avoid losing output, which could cause spurious # "no test plan seen" in the TAP driver. BEGIN { $| = 1 } @@ -95,7 +95,8 @@ signal_caught () wbound_re="($|[^a-zA-Z0-9_-])" pfx_re="^ERROR: signal-$numeric\\.test" case $am_tap_implementation in - perl) rx="$pfx_re - terminated by signal $sig_re$";; + # Dummy escape to please maintainer-check. + per\l) rx="$pfx_re - terminated by signal $sig_re$";; shell) rx="$pfx_re .*terminated by signal $sig_re$wbound_re";; *) fatal_ "invalid \$am_tap_implementation '$am_tap_implementation'";; esac |