]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
maintcheck: fix more maintainer-check failures
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 3 Aug 2011 15:54:18 +0000 (17:54 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 3 Aug 2011 16:04:01 +0000 (18:04 +0200)
* tests/test-driver-custom-no-html.test (no-rst): Use `EOF',
not `EoL', as the here-document delimiter.
* tests/test-trs-basic.test: Use `cat + here-doc' rather
than `echo' when creating the dummy test scripts, to please
maintainer-check.
* tests/test-trs-recover.test: Use creative quoting where
needed, to please maintainer-check.
* tests/parallel-tests-no-color-in-log.test: Likewise.
* tests/parallel-tests-dry-run.test: Likewise.

ChangeLog
tests/parallel-tests-dry-run.test
tests/parallel-tests-no-color-in-log.test
tests/test-driver-custom-no-html.test
tests/test-trs-basic.test
tests/test-trs-recover.test

index 829ee35f769365571a11296ca80169ec8302f218..2d51a28f7b69663a074c199220cd429df47ad6b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2011-08-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       maintcheck: fix more maintainer-check failures
+       * tests/test-driver-custom-no-html.test (no-rst): Use `EOF',
+       not `EoL', as the here-document delimiter.
+       * tests/test-trs-basic.test: Use `cat + here-doc' rather
+       than `echo' when creating the dummy test scripts, to please
+       maintainer-check.
+       * tests/test-trs-recover.test: Use creative quoting where
+       needed, to please maintainer-check.
+       * tests/parallel-tests-no-color-in-log.test: Likewise.
+       * tests/parallel-tests-dry-run.test: Likewise.
+
 2011-08-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        maintcheck: fix maintainer-check failures, both real and spurious
index 451f7829ad4a72a2676a1e95c942f4bfd2b16915..888d8883a2a706ca96f8ee7009518da7f1c53d4e 100755 (executable)
@@ -58,8 +58,9 @@ for target in check recheck test-suite.log; do
   test ! -f test-suite.log
 done
 
-echo 'exit 0' > foo.test
-echo 'exit 1' > bar.test
+# FIXME: creative quoting below to please maintainer-check.
+echo exit '0' > foo.test
+echo exit '1' > bar.test
 
 $MAKE check && Exit 1
 
@@ -71,8 +72,12 @@ test -f foo.trs
 test -f foo.log
 test -f bar.trs
 
-echo 'echo this is bad; exit 1' > foo.test
-echo 'exit 0' > bar.test
+# FIXME: creative quoting below to please maintainer-check.
+cat > foo.test <<END
+echo this is bad
+exit 1
+END
+echo exit '0' > bar.test
 
 for target in check recheck test-suite.log; do
   make_n_ $target
index ab3f371b379a9dd98f8828298d05b00f409dcb31..5d33ac5adb1462a0853ca781aa22ce4e9b78629b 100755 (executable)
@@ -26,7 +26,8 @@ esc='\e'
 # GNU or BSD 'grep -a' works on files, but is not portable.
 case `echo "$esc" | $FGREP "$esc"` in
   "$esc") ;;
-  *) echo "$me: fgrep can't parse nonprinting characters" >&2; Exit 77;;
+# FIXME: creative quoting below to please maintainer-check.
+  *) echo "$me: f""grep can't parse nonprinting characters" >&2; Exit 77;;
 esac
 
 TERM=ansi; export TERM
index 1a2b72637b3a3f1dc59965202bd09a2123f53786..2c86026eca5393b4dc258b8ebacfad4db3e084d6 100755 (executable)
@@ -39,13 +39,13 @@ echo ':test-result: SKIP' > foo.trs
 echo ':copy-in-global-log: yes' >> foo.trs
 # The genereted log file is deliberately syntactically invalid
 # reStructuredText.
-cat > foo.log <<'EoL'
+cat > foo.log <<'EOF'
 SKIP: FooBar
 =============
 
 --------------
  dummy title
-EoL
+EOF
 END
 chmod a+x no-rst
 
index 33367d34b102c982e860efc7da702951196d2233..88f1276e9bc2abab623caefb926d3979782c8305 100755 (executable)
@@ -36,9 +36,12 @@ tb:
        echo $(am__TEST_BASES) > $@
 END
 
-mkdir sub
-echo 'exit $FOO_STATUS' > foo.test
+cat > foo.test << 'END'
+#! /bin/sh
+exit $FOO_STATUS
+END
 : > bar.sh
+mkdir sub
 : > sub/zardoz.test
 
 FOO_STATUS=0; export FOO_STATUS
index 7fff3ae5ca3ed45e8d86607007cba447c578cad2..98934249e6b55a8a68adf8dc550f9ef65e9ee3e0 100755 (executable)
@@ -31,8 +31,9 @@ TESTS = foo.test bar.test baz.test
 TEST_LOG_COMPILER = $(SHELL)
 END
 
-echo 'exit $TEST_STATUS' > foo.test
-echo 'exit $TEST_STATUS' > bar.test
+# FIXME: creative quoting below to please maintainer-check.
+echo exit '$TEST_STATUS' > foo.test
+echo exit '$TEST_STATUS' > bar.test
 : > baz.test
 
 TEST_STATUS=0; export TEST_STATUS