]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'maint'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 28 Jun 2012 11:27:49 +0000 (13:27 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 28 Jun 2012 11:37:53 +0000 (13:37 +0200)
* maint:
  tests: simpler workaround for shells losing the exit status in exit trap

+ Extra non-trivial edits:
* Several tests: Adjusted to use 'exit' rather than 'Exit'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
97 files changed:
1  2 
configure.ac
syntax-checks.mk
t/ac-output-old.tap
t/aclocal-acdir.sh
t/aclocal-autoconf-version-check.sh
t/aclocal-path-precedence.sh
t/aclocal-print-acdir.sh
t/acsilent.sh
t/am-missing-prog.sh
t/aminit-moreargs-no-more.sh
t/ax/tap-summary-aux.sh
t/ax/test-init.sh
t/ax/testsuite-summary-checks.sh
t/backcompat-acout.sh
t/check-exported-srcdir.sh
t/check-no-test-driver.sh
t/check-subst.sh
t/check-tests-in-builddir.sh
t/check8.sh
t/comment7.sh
t/compile_f_c_cxx.sh
t/confh-subdir-clean.sh
t/confh.sh
t/confh4.sh
t/confh6.sh
t/confh7.sh
t/confh8.sh
t/confsub.sh
t/cygnus-no-more.sh
t/depend5.sh
t/dirlist.sh
t/dirlist2.sh
t/dist-auxdir-many-subdirs.sh
t/distcom4.sh
t/dollarvar.sh
t/ext.sh
t/flavor.sh
t/gettext-macros.sh
t/help-silent.sh
t/instdir-texi.sh
t/java-compile-run-flat.sh
t/java-compile-run-nested.sh
t/man6.sh
t/missing-version-mismatch.sh
t/missing3.sh
t/nodep2.sh
t/objc-flags.sh
t/objc-megademo.sh
t/objcxx-basic.sh
t/objcxx-deps.sh
t/objcxx-flags.sh
t/objcxx-minidemo.sh
t/parallel-tests-driver-install.sh
t/parallel-tests-dry-run-1.sh
t/parallel-tests-dry-run-2.sh
t/parallel-tests-interrupt.tap
t/parallel-tests-many.sh
t/parallel-tests-no-color-in-log.sh
t/parallel-tests-reset-term.sh
t/parallel-tests-subdir.sh
t/perf/testsuite-summary.sh
t/remake-aclocal-version-mismatch.sh
t/remake6.sh
t/req.sh
t/self-check-explicit-skips.sh
t/silent-configsite.sh
t/silent-lex.sh
t/silent-many-gcc.sh
t/silent-many-generic.sh
t/silent-yacc-headers.sh
t/silent-yacc.sh
t/silent.sh
t/silent2.sh
t/silent3.sh
t/silent4.sh
t/silent6.sh
t/silent7.sh
t/silent8.sh
t/silent9.sh
t/silentcxx-gcc.sh
t/silentcxx.sh
t/silentf77.sh
t/silentf90.sh
t/stamph2.sh
t/tap-doc2.sh
t/test-driver-is-distributed.sh
t/test-metadata-global-log.sh
t/tests-environment-backcompat.sh
t/txinfo-no-clutter.sh
t/txinfo13.sh
t/txinfo21.sh
t/txinfo23.sh
t/txinfo24.sh
t/txinfo25.sh
t/txinfo28.sh
t/txinfo33.sh
t/vtexi4.sh

diff --cc configure.ac
Simple merge
Simple merge
Simple merge
index e5b2bd2c5f50ba501b829e69c8f84a4568ec2dbb,abd7857d195b23274fae5a95c9a837be3b1a6c29..ac5de4cac90784a3fa7dd76b1fb90849ee97e9e7
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Test aclocal's '--acdir', '--automake-acdir' and '--system-acdir'
 -# options.  Also check that stuff in the automake acdir takes precedence
 -# over stuff in the system acdir.
 +# Test aclocal's '--automake-acdir' and '--system-acdir' options.  Also
 +# check that stuff in the automake acdir takes precedence over stuff in
 +# the system acdir.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  mkdir am sys
  
@@@ -70,6 -70,26 +70,6 @@@ $ACLOCAL --automake-acdir am --system-a
  $AUTOCONF --force
  $FGREP 'fake--init--automake' configure
  $FGREP 'am--macro' configure
- $FGREP 'my--macro' configure && Exit 1 # Just to be sure.
+ $FGREP 'my--macro' configure && exit 1 # Just to be sure.
  
 -rm -rf autom4te*.cache
 -
 -# Obsolescent '--acdir' option.
 -$ACLOCAL -Wobsolete --acdir am 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep '.*--acdir.*deprecated' stderr
 -
 -rm -rf autom4te*.cache
 -
 -$ACLOCAL -Wno-obsolete --acdir am
 -$AUTOCONF --force
 -$FGREP 'fake--init--automake' configure
 -$FGREP 'am--macro' configure
 -
 -rm -rf autom4te*.cache
 -
 -$ACLOCAL -Wno-obsolete --acdir sys 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep 'macro .*AM_INIT_AUTOMAKE.* not found' stderr
 -
  :
Simple merge
Simple merge
Simple merge
diff --cc t/acsilent.sh
index 7d13fa0adeec17b294793aa0ce21a8e557c49750,18f18ff92faee42d0b34bb9c0f32c0fcafb518de..92c43002a4987d525908933e74d9347bcd954304
  
  # Test to make sure there are no spurious acinclude warnings.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >configure.ac <<EOF
 -AC_INIT
 +AC_INIT([$me], [1.0])
  AM_INIT_GUILE_MODULE
  EOF
  
Simple merge
index d013d9aad9e6b439748c4004ba53d0d1c45884e6,a8d4605e2fe26c08551ec07bbafbb99cd821afc0..ce30c2995eeb6c38385d1c51e38fcdbd7fc9966d
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Check that automake warns against old-style usages of AM_INIT_AUTOMAKE
 -# (i.e., calls with two or three arguments).
 +# Check that automake error out (with an helpful error message) against
 +# old-style usages of AM_INIT_AUTOMAKE (i.e., calls with two or three
 +# arguments).
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
 -warn_rx='AM_INIT_AUTOMAKE.* two-.* three-arguments form.*deprecated'
 +warn_rx='AM_INIT_AUTOMAKE.* old-style two-.* three-arguments form.*unsupported'
 +
 +$ACLOCAL
 +mv aclocal.m4 aclocal.sav
  
  cat > configure.ac <<'END'
  AC_INIT([Makefile.am])
@@@ -34,11 -30,13 +34,11 @@@ EN
  do_check()
  {
    rm -rf autom4te*.cache
 -  for cmd in "$AUTOCONF" "$AUTOMAKE"; do
 -    $cmd -Werror -Wnone -Wobsolete 2>stderr && { cat stderr; exit 1; }
 +  for cmd in "$ACLOCAL" "$AUTOCONF" "$AUTOMAKE"; do
 +    cp aclocal.sav aclocal.m4
-     $cmd -Wnone -Wno-error 2>stderr && { cat stderr; Exit 1; }
++    $cmd -Wnone -Wno-error 2>stderr && { cat stderr; exit 1; }
      cat stderr >&2
      grep "^configure\.ac:2:.*$warn_rx" stderr
 -    $cmd -Werror -Wall -Wno-obsolete || exit 1
    done
  }
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index f86b4da9c53563ff9f949ad950df34fe6742403c,7df5251f8eb4e646bed41e0791077a9eb97ccc7f..bcb2cc9273c5591f6154d9766b783eaeb73397e1
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Check that auxiliary script 'test-driver' doesn't get needlessly
 -# installed or referenced when the 'parallel-tests' option is not
 -# used.
 +# installed or referenced when the 'serial-tests' option is used.
  
  am_serial_tests=yes
- . ./defs || Exit 1
+ . ./defs || exit 1
  
 -echo 'TESTS = foo.test' > Makefile.am
 +cat > Makefile.am <<'END'
 +AUTOMAKE_OPTIONS = serial-tests
 +TESTS = foo.test
 +END
  
  $ACLOCAL
  
Simple merge
index 5b3cb222c8135c64d969df1fe87c80fe3873d23e,de453d22216c57517fe97f27d48482d44cbb2856..6785877c82ed6369d90e267c6f58a482d73aafd3
@@@ -52,10 -52,10 +52,10 @@@ exit 
  END
  chmod a+x bar.test
  
- $MAKE check >out 2>&1 || { cat out; Exit1; }
+ $MAKE check >out 2>&1 || { cat out; exit 1; }
  cat out
 -# The simple-tests driver does not strip VPATH components from
 -# the name of the test, but the parallel-tests driver should.
 +# The serial test driver does not strip VPATH components from
 +# the name of the test, but the parallel driver should.
  if test x"$am_serial_tests" = x"yes"; then
    grep '^PASS: .*foo\.test *$' out
  else
@@@ -66,10 -66,10 +66,10 @@@ grep '^PASS: bar\.test *$' ou
  
  rm -f test-suite.log foo.log bar.log
  
- FOO_EXIT_STATUS=1 $MAKE check >out 2>&1 && { cat out; Exit1; }
+ FOO_EXIT_STATUS=1 $MAKE check >out 2>&1 && { cat out; exit 1; }
  cat out
 -# The simple-tests driver does not strip VPATH components from
 -# the name of the test, but the parallel-tests driver should.
 +# The serial test driver does not strip VPATH components from
 +# the name of the test, but the parallel driver should.
  if test x"$am_serial_tests" = x"yes"; then
    grep '^FAIL: .*foo\.test *$' out
  else
diff --cc t/check8.sh
index 4db8e866a1d73a9fb6b33f0d628c62993c9c2085,b968c3a0df0e78c0ee3bdf302febb4bf636cb9a1..6fcd30ae232d783aad0f1f5dfcab7dff532384a7
@@@ -75,10 -75,10 +75,10 @@@ grep '^[^X]*PASS.* bar' stdou
  grep '^[^X]*PASS.* sub/bar' stdout
  grep '^[^X]*FAIL.* baz' stdout
  grep 'XFAIL.* sub/baz' stdout
 -# 'parallel-tests' should not add circular dependencies.
 +# The parallel test driver should cause circular dependencies.
  # Look for known warnings from a couple of 'make' implementations.
- grep -i 'circular.*dependency' stderr && Exit 1
- grep -i 'graph cycles' stderr && Exit 1
+ grep -i 'circular.*dependency' stderr && exit 1
+ grep -i 'graph cycles' stderr && exit 1
  
  $MAKE distclean
  
diff --cc t/comment7.sh
Simple merge
Simple merge
index 26f39572419e666ad0f57eb71b6a7f9ad6a0eea5,5a942da5bc766ec2558a72e88c5d64b7480d4e5f..75024f679bd9165ac037198d2f75c80ac5bd2a00
  
  # Test to make sure config headers in subdirectories are cleaned.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -AM_CONFIG_HEADER([sub/config.h:sub/config.hin])
 +AC_CONFIG_HEADERS([sub/config.h:sub/config.hin])
  AC_OUTPUT
  END
  
diff --cc t/confh.sh
index 9dc2f15b1cf7d1659985ee3af36c77f35b5a95a7,c86b63e8409dd21a9f774b4ffd60ba77c175ea6d..14077577312829e5c5ef3c19dd75de2620a4716d
  # Test to make sure config.h works in a subdir.
  # Report from Alexandre Oliva.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -AM_CONFIG_HEADER([include/config.h])
 +AC_CONFIG_HEADERS([include/config.h])
  AC_OUTPUT
  END
  
diff --cc t/confh4.sh
Simple merge
diff --cc t/confh6.sh
index c94c7ba92f4fd166378e238da3c953317882203d,5479491ca6df613795ad5648a85f46e25693f514..fa6aab4441f2fb155b13ce2f736cf573554b2ecd
  # idea is that if config.h is in a subdir, and there is no Makefile in
  # that subdir, then we want to build config.h as the top level.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -AM_CONFIG_HEADER([subdir/config.h])
 +AC_CONFIG_HEADERS([subdir/config.h])
  AC_OUTPUT
  END
  
diff --cc t/confh7.sh
index 0bc2465cd59ee83ae746e380c78cfb087b6c01cc,d771b3d966acab371d4d71c1c555463b15dd1638..ec0edbe9d9f0b39a2a627938dfbda9c7dae44a54
  # Test to make sure several config headers are allowed.
  # See also sister "semantic" test 'confh8.test'.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -AM_CONFIG_HEADER([config.h two.h])
 +AC_CONFIG_HEADERS([config.h two.h])
  END
  
  : > Makefile.am
diff --cc t/confh8.sh
index 2feaae582246461f127beeb6a92aa1d4e8e8091d,45fbe8e5f5a31e5e5686169fe88ac6732f3658e3..7379a341d57ee40d66eb55f98a77e6af03ec2749
  # Test to make sure several config headers are allowed.
  # See also sister "minimalistic" test 'confh7.test'.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -AM_CONFIG_HEADER([one.h two.h])
 +AC_CONFIG_HEADERS([one.h two.h])
  AC_OUTPUT
  END
  
diff --cc t/confsub.sh
Simple merge
index 4be0561bf4802767228e69edb4802c1f1b0a87da,551d0e66a3211a140998105f89a007d702fa8619..66ef57d45a9cf500eea6f06f0c24fc8212d83e3b
  # That feature will be removed in the next major Automake release.
  # See automake bug#11034.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
 -warn_rx='support for Cygnus.*trees.*deprecated'
 -
 -cat >> configure.ac <<'END'
 -AC_PROG_CC
 -AM_MAINTAINER_MODE
 -END
 +warn_rx='support for Cygnus.*trees.*removed'
  
  $ACLOCAL
 -$AUTOCONF
 -
 -: > Makefile.am
  
 -# 'cygnus' option from command line
 -$AUTOMAKE --cygnus -Wno-obsolete
 -AUTOMAKE_fails --cygnus
 -grep "^automake.*: .*$warn_rx" stderr
 -AUTOMAKE_fails -Wnone -Wobsolete --cygnus
 -grep "^automake.*: .*$warn_rx" stderr
 -AUTOMAKE_fails --cygnus -Wnone -Wobsolete
 -grep "^automake.*: .*$warn_rx" stderr
 -
 -rm -rf autom4te*.cache
 +# Use of 'cygnus' option must raise an unconditional error, not a
 +# warning.
 +AUTOMAKE="$am_original_AUTOMAKE -Wnone -Wno-error"
  
  # 'cygnus' option in Makefile.am
  echo "AUTOMAKE_OPTIONS = cygnus" > Makefile.am
diff --cc t/depend5.sh
Simple merge
diff --cc t/dirlist.sh
index 98cd71061aeae48eeae1d32b049d3f73480ef657,e188777114d6b7a7535aa1c41ec5f514875e53c8..319726c5da69f010e193ab34e5cb09a4f776dbf5
  
  # Check dirlist support.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat > configure.ac <<EOF
 -AC_INIT
 +AC_INIT([$me], [1.0])
  AM_INIT_GUILE_MODULE
  EOF
  
diff --cc t/dirlist2.sh
index 3eacd2f8c617b6eb93adf7cd709e400dbe7509a9,5a11769c24b15b68a3f391ad8da68798193a3c2b..26320f60e083e2825c992c526dcfe233845e332e
  
  # Check dirlist globbing support.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat > configure.ac <<EOF
 -AC_INIT
 +AC_INIT([$me], [1.0])
  AM_INIT_GUILE_MODULE
  AM_FOO_BAR
  EOF
Simple merge
diff --cc t/distcom4.sh
index b785fecbb6e99faa1f91813bcb81da44a5709f1a,400533c27ab05b682ab2c0dc8443838b9b7d39d6..c7088eb7212b6f34b3f1a6ff4ec01bed33776ccb
@@@ -18,8 -18,9 +18,8 @@@
  # This tries to distribute a file from a subdirectory, without
  # Makefile in that directory.  distcom5.test performs the same
  # test with a Makefile in the directory.
 -# Also make sure that README appears first in DIST_COMMON.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
     AC_CONFIG_FILES([tests/autoconf:tests/wrapper.in],
diff --cc t/dollarvar.sh
Simple merge
diff --cc t/ext.sh
Simple merge
diff --cc t/flavor.sh
Simple merge
Simple merge
index dbf45a0956eb71dc28398faba13e1f0ccb0a4ad3,b7e805e7626e5f4ebe3c0e9c524d21e637c9552c..601666c76dd02b26fe05a499c18f9fbca0faf33b
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Make sure that our macro 'AM_SILENT_RULES' adds proper text to
 -# the configure help screen.
 +# Make sure configure options relative to automake silent rules are
 +# added to the configure help screen.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
 -cat > configure.ac <<END
 -AC_INIT([$me], [1.0])
 -AM_SILENT_RULES
 -END
 -
 +: > Makefile.am
  $ACLOCAL
  
 -mv -f configure.ac configure.tmpl
 +cp configure.ac configure.tmpl
  
 -for args in '' '([])' '([yes])' '([no])'; do
 -  sed "s/AM_SILENT_RULES.*/&$args/" configure.tmpl >configure.ac
 -  cat configure.ac
 +for args in '' 'yes' 'no'; do
 +  cp -f configure.tmpl configure.ac
 +  test x"$args" = x || echo "AM_SILENT_RULES([$args])/" >> configure.ac
 +  cat configure.ac # For debugging.
    $AUTOCONF --force
    grep_configure_help --enable-silent-rules \
                        ' less verbose build.*\(undo.*"make V=1".*\)'
index dc7428507decefcb66515afb0052c610d31908a9,1d8015ccb6f131f7fd309ae945f48b3288ae167d..b15ecaac845c48d719d89cc986a744259a9246bc
@@@ -17,8 -17,8 +17,8 @@@
  # If $(infodir) is the empty string, then nothing should be installed there.
  # Likewise for the other install-* targets used for texinfo files.
  
 -required='makeinfo-html tex texi2dvi'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  dvips --help \
    || skip_ "dvips is missing"
Simple merge
index f5b7b957753fb772987d2e8368bf5a2ee358ac85,fccc7415a544f92a881b972770b5fe8a4ba47dc8..f6bb2173f7d2854a5dd38ad4d113e2ee453351c0
  # Also meddle with wrapper scripts, as would be probably seen in a real
  # "UNIX-style" use case.
  # This test uses a typical "nested" source tree setup (i.e., different
 -# components/aspects are separated into different subdirectories),
 -# and uses the 'parallel-tests' testsuite driver.  The sister test
 -# 'java-compile-run-flat.test' do similar checks with a "flat" setup
 -# (i.e., everything in the top-level directory), and forcing the use
 -# of the older non-parallel 'simple-tests' driver.
 +# components/aspects are separated into different subdirectories), and
 +# uses the parallel testsuite driver.
 +# The sister test 'java-compile-run-flat.test' do similar checks with a
 +# "flat" setup (i.e., everything in the top-level directory), and forcing
 +# the use of the older 'serial-tests' driver.
  
  required='java javac'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.ac
  
diff --cc t/man6.sh
Simple merge
index 4a2910a04d4caeac077f7f547fd1aaedb2254a30,7b9c231d80c83336def0077291f0ed22aeb33145..e4a1033f3d71fef636b18dd54ff9abdb906c7796
  
  # Test missing with version mismatches.
  
- . ./defs || Exit 1
 +am_create_testdir=empty
+ . ./defs || exit 1
  
 -cat >>configure.ac <<'EOF'
 -m4_include([v.m4])
 -AC_OUTPUT
 -EOF
 +get_shell_script missing
  
 -: > v.m4
 +do_check ()
 +{
 +  progname=$1; shift;
-   ./missing "$@" 2>stderr && { cat stderr >&2; Exit 1; }
++  ./missing "$@" 2>stderr && { cat stderr >&2; exit 1; }
 +  cat stderr >&2
 +  $FGREP "WARNING: '$progname' is probably too old." stderr
 +}
  
 -: > Makefile.am
 +echo 'AC_INIT([x], [1.0]) AC_PREREQ([9999])' >> configure.ac
  
 -get_shell_script missing
 +do_check autoconf               $AUTOCONF
 +do_check autoheader             $AUTOHEADER
 +do_check aclocal-$APIVERSION    $am_original_ACLOCAL
 +
 +cat > configure.ac << 'END'
 +AC_INIT([x], [0])
 +AM_INIT_AUTOMAKE
 +AC_CONFIG_FILES([Makefile])
 +END
  
 +echo AUTOMAKE_OPTIONS = 9999.9999 > Makefile.am
  $ACLOCAL
 -$AUTOCONF
 -$AUTOMAKE --add-missing
 -
 -# See missing.test for explanations about this.
 -MYAUTOCONF="./missing --run $AUTOCONF"
 -unset AUTOCONF
 -
 -./configure AUTOCONF="$MYAUTOCONF"
 -
 -$MAKE
 -$sleep
 -# Hopefully the install version of Autoconf cannot compete with this one...
 -echo 'AC_PREREQ(9999)' > v.m4
 -$MAKE distdir
 -
 -# Run again, but without missing, to ensure that timestamps were updated.
 -export AUTOMAKE ACLOCAL
 -./configure AUTOCONF="$MYAUTOCONF"
 -$MAKE
 -
 -# Make sure $MAKE fail when timestamps aren't updated and missing is not used.
 -$sleep
 -touch v.m4
 -$MAKE && exit 1
 +: > install-sh
 +# FIXME: this doesn't work due to a bug in automake (not 'missing').
 +#do_check automake-$APIVERSION  $am_original_AUTOMAKE
  
  :
diff --cc t/missing3.sh
index e8641da180222e7b7d031848cf341330caefb256,c5db4f038222bda36159ce723cb0bb8fc00d33c9..3a9ba013fb712f62cdb3ff2cc1713959545b7482
@@@ -23,26 -23,31 +23,26 @@@ get_shell_script missin
  
  # b7cb8259 assumed not to exist.
  
 -./missing b7cb8259 --version 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep . stderr && exit 1
 -./missing b7cb8259 --grep 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep WARNING stderr
 -
 -./missing --run b7cb8259 --version && exit 1
 -./missing --run b7cb8259 --grep 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep WARNING stderr
 +run_cmd ()
 +{
 +  st=0; "$@" >stdout 2>stderr || st=$?
 +  cat stdout
 +  cat stderr >&2
 +  return $st
 +}
 +
- ./missing b7cb8259 --version && Exit 1
- grep WARNING stderr && Exit 1
- run_cmd ./missing b7cb8259 --grep && Exit 1
++./missing b7cb8259 --version && exit 1
++grep WARNING stderr && exit 1
++run_cmd ./missing b7cb8259 --grep && exit 1
 +grep 'WARNING:.*missing on your system' stderr
  
  # missing itself it known to exist :)
  
- run_cmd ./missing ./missing --version || Exit 1
 -./missing ./missing --version 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep . stderr && exit 1
 -./missing ./missing --grep 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep WARNING stderr
 -
 -./missing --run ./missing --version 2>stderr || { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep . stderr && exit 1
 -./missing --run ./missing --grep 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
++run_cmd ./missing ./missing --version || exit 1
 +grep 'missing .*(GNU [aA]utomake)' stdout
- test -s stderr && Exit 1
- run_cmd ./missing ./missing --grep && Exit 1
- grep WARNING stderr && Exit 1
++test -s stderr && exit 1
++run_cmd ./missing ./missing --grep && exit 1
+ grep WARNING stderr && exit 1
 -grep Unknown stderr
 +grep "missing:.* unknown '--grep'" stderr
 +
 +:
diff --cc t/nodep2.sh
Simple merge
diff --cc t/objc-flags.sh
index 25f805b702ac2d22b3a3c98a2606578f43ab6445,e98a8112819c8ee580831a9b8301c1c9a2399b86..2f65d467c73505f4b667d86f91bd560fdf4666de
@@@ -52,11 -52,11 +52,11 @@@ $AUTOCON
  $AUTOMAKE -a
  
  $FGREP OBJCFLAGS Makefile.in # For debugging.
- grep '\$(OBJCFLAGS).*\$(AM_OBJCFLAGS)'       Makefile.in && Exit 1
- grep '\$(OBJCFLAGS).*\$(foo.*_OBJCFLAGS)'    Makefile.in && Exit 1
- grep '\$(foo.*_OBJCFLAGS).*\$(AM_OBJCFLAGS)' Makefile.in && Exit 1
+ grep '\$(OBJCFLAGS).*\$(AM_OBJCFLAGS)'       Makefile.in && exit 1
+ grep '\$(OBJCFLAGS).*\$(foo.*_OBJCFLAGS)'    Makefile.in && exit 1
+ grep '\$(foo.*_OBJCFLAGS).*\$(AM_OBJCFLAGS)' Makefile.in && exit 1
  
  ./configure OBJCFLAGS=-UERROR
 -$MAKE 
 +$MAKE
  
  :
Simple merge
Simple merge
index c072da287e91ac8bf489b3eba0834d5a190e02bb,fef4ac549b1191058fde2a92aa40b9c86f2272de..950663bfe9ea4e4ef65e0d3630f2f257345ace2d
  # Automatic dependency tracking for Objective C++.
  # See also sister test 'objc-deps.sh'.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -dnl Support for Object C++ was introduced only in Autoconf 2.65.
 -AC_PREREQ([2.65])
  AC_PROG_OBJCXX
  AC_OUTPUT
  END
index 082f7fbdc1baaa10a9a86680b00b0a66c074fc41,8f5df45cbc7116cda87829ffbb1fc62dc26fe8ff..6e79fc59b6f01d82d8de552097245caa523ac1da
  # Test Objective C++ compilation flags.
  # See also sister test 'objc-flags.sh'.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -dnl Support for Object C++ was introduced only in Autoconf 2.65.
 -AC_PREREQ([2.65])
  AC_PROG_OBJCXX
  AC_OUTPUT
  END
@@@ -53,11 -62,11 +53,11 @@@ $AUTOCON
  $AUTOMAKE -a
  
  $FGREP OBJCXXFLAGS Makefile.in # For debugging.
- grep '\$(OBJCXXFLAGS).*\$(AM_OBJCXXFLAGS)'       Makefile.in && Exit 1
- grep '\$(OBJCXXFLAGS).*\$(foo.*_OBJCXXFLAGS)'    Makefile.in && Exit 1
- grep '\$(foo.*_OBJCXXFLAGS).*\$(AM_OBJCXXFLAGS)' Makefile.in && Exit 1
+ grep '\$(OBJCXXFLAGS).*\$(AM_OBJCXXFLAGS)'       Makefile.in && exit 1
+ grep '\$(OBJCXXFLAGS).*\$(foo.*_OBJCXXFLAGS)'    Makefile.in && exit 1
+ grep '\$(foo.*_OBJCXXFLAGS).*\$(AM_OBJCXXFLAGS)' Makefile.in && exit 1
  
  ./configure OBJCXXFLAGS=-UERROR
 -$MAKE 
 +$MAKE
  
  :
index e1eabca204cc9777a65b1031bcf1251b87d9fbf4,e4e776789f108a683e01e9884d3d707746019549..cf62e31f6c571fbd2aeb4b8cc0a1520a1e085a49
  # See also sister test 'objc-minidemo.sh'.
  
  required=native
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
 -dnl Support for Object C++ was introduced only in Autoconf 2.65.
 -AC_PREREQ([2.65])
  AC_PROG_OBJCXX
  AC_CONFIG_HEADERS([config.h])
  AC_OUTPUT
index a04e9b1d213a25088cadbf9927bd8b25c1a1769d,aa9ac120c61407e2de092dec77977586500b545c..78dff6b8b5ceb7e3cf3dd70303fff9f5a5e12902
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Check that auxiliary script 'test-driver' gets automatically installed
 -# in the correct directory by 'parallel-tests' option.
 +# in the correct directory.
  
- . ./defs || Exit 1
 +am_create_testdir=empty
+ . ./defs || exit 1
  
 -: Try first with parallel-tests defined in AM_INIT_AUTOMAKE.
 -
 -mkdir am-init-automake
 -cd am-init-automake
 -
  cat > configure.ac <<END
  AC_INIT([$me], [1.0])
  AC_CONFIG_AUX_DIR([my_aux_dir])
index f5496e3d3898fe5bd53301f67f75727fd563c54c,3f6172de21465d88f6204e7b41a2ed051a8df624..382ae206bf0b950ee66bd026b30676608df043b0
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Check parallel-tests interactions with "make -n".
 +# Check interactions between the parallel test harness and "make -n".
  # See also sister test 'parallel-tests-dry-run-2.test'.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  echo AC_OUTPUT >> configure.ac
  
index f3ce42ea440b09b873d82990cc56b53bd01f42c7,0bd6523a0ca0f421ed44ae6475fa26d9db4432b2..940cab29f5b5bb76d9a8c8435d17fc4429593842
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Check parallel-tests interactions with "make -n".
 +# Check interactions between the parallel test harness and "make -n".
  # See also sister test 'parallel-tests-dry-run-1.test'.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
Simple merge
index b2c1f7626f53b5c0129f8e9d56c472ae7aa281ba,420a54a20e1dd4698def8a712ca2456e11c81e44..a12f53422cdb3e6e3438513aab85ff76b830a4c8
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Check that the parallel-tests harness does not hit errors due to
 -# an exceeded command line length when there are many tests.
 +# Check that the parallel testsuite harness does not hit errors due
 +# to an exceeded command line length when there are many tests.
  # For automake bug#7868.  This test is currently expected to fail.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
Simple merge
Simple merge
index 336fcd80ee4129b7d7604c8b376f7eddf2b0ac1a,d57133f9708de6ca1cde68b4767aa45d093aa4ea..b7bb481d16bf86353543740d67b1398b4e10e8c4
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Check that the parallel-tests driver creates parent directories for
 +# Check that the parallel test harness creates parent directories for
  # the log files when needed.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
Simple merge
Simple merge
diff --cc t/remake6.sh
index b5e9646f1eeee0a7ae3ab234f0a6ccfa56f288c8,b6c580ca35e80e5db345524fb1b0d0afdf8f036e..2146b381a254e4312d76a09156df8a4e2bf37390
@@@ -37,9 -37,9 +37,9 @@@ $MAK
  
  do_check ()
  {
-   $MAKE >stdout || { cat stdout; Exit 1; }
+   $MAKE >stdout || { cat stdout; exit 1; }
    cat stdout
 -  test $(grep -c " --run " stdout) -eq 1
 +  test $(grep -c "/missing " stdout) -eq 1
  }
  
  # Now, we are set up.  Ensure that, for either missing Makefile.in,
diff --cc t/req.sh
index b814ae748aaadc83997356e8b0d8737e2776e8be,cfeb44c1ee42c9c845d6f6c0dd2998b003d83a35..27b0ab1afb0a9fa9fef6629b97be0533855e0e93
+++ b/t/req.sh
  
  # Test to make sure macro used in m4 file is included.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat > configure.ac <<EOF
 -AC_INIT
 +AC_INIT([$me], [1.0])
  AM_INIT_GUILE_MODULE
  EOF
  
index a16794131f6391d33a0c77cf5f845d86b60dc296,95ed31329c1cf8f96f279f63580d51d5857b0a35..fa1626e93a9b1b42bd151aa16d854a73aedf9efd
@@@ -35,21 -38,21 +38,21 @@@ run_dummy_test (
  }
  
  run_dummy_test '(exit 77); exit 77'
- test $? -eq 77 || Exit 1
+ test $? -eq 77 || exit 1
  
  run_dummy_test 'sh -c "exit 77"' am_explicit_skips=no
- test $? -eq 77 || Exit 1
+ test $? -eq 77 || exit 1
  
 -run_dummy_test '(exit 77); exit 77' am_explicit_skips=yes 
 +run_dummy_test '(exit 77); exit 77' am_explicit_skips=yes
- test $? -eq 78 || Exit 1
+ test $? -eq 78 || exit 1
  
  run_dummy_test 'sh -c "exit 77"' am_explicit_skips=y
- test $? -eq 78 || Exit 1
+ test $? -eq 78 || exit 1
  
- run_dummy_test 'Exit 77' am_explicit_skips=yes
- test $? -eq 77 || Exit 1
+ run_dummy_test 'exit 77' am_explicit_skips=yes
+ test $? -eq 77 || exit 1
  
  run_dummy_test 'skip_ "foo"' am_explicit_skips=y
- test $? -eq 77 || Exit 1
+ test $? -eq 77 || exit 1
  
  :
index d8c2b3322a9ff2244e3eb923d45e2e4f9a19f985,4adc601378936489d1238cbcee93363953866fec..c70d8c8603628d725cd92e50cfb804d3483ff953
  # from config.site, and that this default can be overridden from
  # either the ./configure or make command line.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac <<'EOF'
 -AM_SILENT_RULES
 +# This line will be edited later to force silent-rules default.
  AC_OUTPUT
  EOF
  
diff --cc t/silent-lex.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/silent.sh
Simple merge
diff --cc t/silent2.sh
Simple merge
diff --cc t/silent3.sh
Simple merge
diff --cc t/silent4.sh
Simple merge
diff --cc t/silent6.sh
index c7e7819f1c122f209a98bae91328d41a4877732a,3593adf5d725114e6faf70d17f8e06f504bdc48c..a4b0f69f0ffc8cffe242b80deb36ee9927c7f01b
  
  # Check user extensibility of silent-rules mode.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >>configure.ac <<'EOF'
 -AM_SILENT_RULES
  AC_CONFIG_FILES([sub/Makefile])
  AC_OUTPUT
  EOF
diff --cc t/silent7.sh
index 716eadaadd25fde6456a2ef5d620243790525552,898a4423b92413be1a35d092555d95faeba6a4e9..5e5472e12b40127956e8f4429a8c83affdaa44a2
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Check user extensibility of silent-rules mode.
 +# Aslo check that silent rules are disabled by default.
  
- . ./defs || Exit 1
+ . ./defs || exit 1
  
 -cat >>configure.ac <<'EOF'
 -AM_SILENT_RULES
 -AC_OUTPUT
 -EOF
 +echo AC_OUTPUT >> configure.ac
  
  cat > Makefile.am <<'EOF'
  all-local: foo
@@@ -39,12 -41,10 +39,12 @@@ $ACLOCA
  $AUTOMAKE --add-missing
  $AUTOCONF
  
 -./configure --disable-silent-rules
 +# Silent rules are disabled by default, since we haven't called
 +# "AM_SILENT_RULES([yes])" explicitly.
 +./configure
- $MAKE >stdout || { cat stdout; Exit 1; }
+ $MAKE >stdout || { cat stdout; exit 1; }
  cat stdout
- grep 'GEN ' stdout && Exit 1
+ grep 'GEN ' stdout && exit 1
  grep 'cp ' stdout
  grep 'echo ' stdout
  
diff --cc t/silent8.sh
index 6a8200868da096ae2963805317aadbc7a3f242b6,76bf62c80c490dede36919bfd12e7bf7a714efd5..5d7b135d64528926c7c1ef68f10c36f80cd05c57
  
  # Check texinfo rules in silent-rules mode.
  
 -required='makeinfo-html tex texi2dvi-o dvips'
 +required='makeinfo tex texi2dvi dvips'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
 -cat >>configure.ac <<'EOF'
 -AM_SILENT_RULES
 -AC_OUTPUT
 -EOF
 +echo AC_OUTPUT >> configure.ac
  
  cat > Makefile.am <<'EOF'
  info_TEXINFOS = foo.texi
diff --cc t/silent9.sh
Simple merge
Simple merge
diff --cc t/silentcxx.sh
Simple merge
diff --cc t/silentf77.sh
Simple merge
diff --cc t/silentf90.sh
Simple merge
diff --cc t/stamph2.sh
index 5346bfc4cd306501c5d31680219c8a9ba08c1a0a,c6663914b6e70cb0746081f3412e8295df7f1fa6..e2ccbdaeb4c014131c6c574c0aad92d82c32b55e
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Make sure stamp-h* files are created where we expect
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << END
 -AM_CONFIG_HEADER([1.h
 -                  2.h:config.hin
 -                  3.h:sdir1/config1.hin])
 -# AM_CONFIG_HEADER and AC_CONFIG_HEADERS should be synonyms.
 +AC_CONFIG_HEADERS([1.h
 +                   2.h:config.hin
 +                   3.h:sdir1/config1.hin])
  AC_CONFIG_HEADERS([sdir1/4.h
                     sdir1/5.h:config.hin
                     sdir1/6.h:sdir1/config1.hin
diff --cc t/tap-doc2.sh
Simple merge
Simple merge
Simple merge
Simple merge
index 43b83da1f8fd39311af3ae551d37841f7032a984,3de21b4881842c432c658a1a901a79c1a24db981..3dc1a2928c633a1335f6271dac3e27382517699a
@@@ -17,8 -17,8 +17,8 @@@
  # The pdf, ps and dvi targets shouldn't let clutter in the build directory.
  # Related to automake bug#11146.
  
 -required='makeinfo tex texi2dvi-o dvips'
 +required='makeinfo tex texi2dvi dvips'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  mkdir sub
  
@@@ -93,8 -93,7 +93,8 @@@ for fmt in info pdf ps dvi html all; d
    $MAKE $fmt
    ls -l . sub # For debugging.
    ls -d foo* baz* sub/bar* > lst
 -  $EGREP -v '^(foo|sub/bar|baz)\.(texi|dvi|ps|pdf|html|info)$' lst && exit 1
 +  $EGREP -v '^(foo|sub/bar|baz)\.(texi|dvi|ps|pdf|html|info|t2[dp])$' \
-     lst && Exit 1
++    lst && exit 1
    $MAKE clean
  done
  
diff --cc t/txinfo13.sh
index d3a7079b003be086dfb64a5c4904597686245d89,6c06942e454bb763e650fafe8940568ff3c365f9..2f9938bc04cd402e83130eea302b9a55f7b5f8f7
@@@ -18,8 -18,8 +18,8 @@@
  # Also make sure we do not distribute too much foo.info* files (Report
  # from Vincent Lefevre).
  
 -required='makeinfo tex texi2dvi-o'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  echo AC_OUTPUT >> configure.ac
  
diff --cc t/txinfo21.sh
index fd9e679e73d758c025b6d00218adbb5f83f9fcd4,9936c0e6638941ff40a7afd3d393b6b78ce84624..5ad12544ccf34e92be7e2405caf68756d2de995b
@@@ -17,8 -17,8 +17,8 @@@
  # Test support for building HTML documentation, and the many
  # install-DOC flavors.
  
 -required='makeinfo-html tex texi2dvi'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >>configure.ac <<\EOF
  AC_CONFIG_FILES([rec/Makefile])
diff --cc t/txinfo23.sh
index 4ac9e9f022531a7023ee1d0378fba084273b85f7,02b2ca175fca081ef205a8239039ef09fccb6665..ebf62b0354aaba2b6ee19a0021cc9b3dcb6c2ee9
@@@ -19,8 -19,8 +19,8 @@@
  # (Similar to txinfo13.test, plus DISTCLEANFILES).
  # (See also txinfo24.test and txinfo25.test).
  
 -required='makeinfo tex texi2dvi-o'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
diff --cc t/txinfo24.sh
index ecf4e9c0b5a0ca3b554f3b9ee2d75868d066d5e7,e7bc9642a6f13b714c3bb3e16e981197342cbfdf..c613bd693c9e08da501fb7a8dfb18e8ab659ac88
@@@ -18,8 -18,8 +18,8 @@@
  # (Similar to txinfo16.test, plus CLEANFILES).
  # (See also txinfo23.test and txinfo25.test).
  
 -required='makeinfo tex texi2dvi-o'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
diff --cc t/txinfo25.sh
index 0d217d52f0010a4fdf7f5bf1ec1bb83f31061279,15f5544942f4c23f5f77c82fe682390616233058..46dfc5060709cf1c90901895df5caebf0e887f8f
@@@ -20,8 -20,8 +20,8 @@@
  # (Similar to txinfo16.test, plus CLEANFILES).
  # (See also txinfo23.test and txinfo24.test).
  
 -required='makeinfo tex texi2dvi-o'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
diff --cc t/txinfo28.sh
index cd09f41ad85c3e35c41f398f9787fee6264e2e26,e6613b40e5cd230007b127708357c6d8e330b4d1..9bcf6e2c4135b0558808e28199d6e16c530e6b46
@@@ -19,8 -19,8 +19,8 @@@
  # references.
  # Report from Ralf Corsepius.
  
 -required='makeinfo tex texi2dvi-o'
 +required='makeinfo tex texi2dvi'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  # This setting, when honored by GNU ls, used to cause an infinite loop
  # in mdate-sh.
diff --cc t/txinfo33.sh
index d35d0d3199f99b19b5f791e7e5123a96d4f682f0,28c9f1a18743e628b660f972bec1706fb2c53d38..b457cb0170da3307883c917459870e0fbcbf41f1
@@@ -17,8 -17,8 +17,8 @@@
  # DVIS, PDFS, PSS, HTMLS should not be cleaned upon 'mostlyclean'.
  # Similar to txinfo25.test.
  
 -required='makeinfo tex texi2dvi-o dvips'
 +required='makeinfo tex texi2dvi dvips'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  mkdir sub
  
diff --cc t/vtexi4.sh
index 975bf0ed815ac3b6592582a48bc6b4e8385c20a1,864818f6797f1c5a7f512fbe7149484ca6e5f8dd..8e77e86c2c64873596b8647363e9d56fe79dca70
@@@ -21,8 -21,8 +21,8 @@@
  # for more vers*.texi files, and does not require makeinfo, tex and
  # texi2dvi.
  
 -required='makeinfo tex texi2dvi-o grep-nonprint'
 +required='makeinfo tex texi2dvi grep-nonprint'
- . ./defs || Exit 1
+ . ./defs || exit 1
  
  test $(LC_ALL=C date '+%u') -gt 0 && test $(LC_ALL=C date '+%u') -lt 8 \
    && day=$(LC_ALL=C date '+%d')   && test -n "$day" \