]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'master' into ng/master
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Oct 2012 15:52:35 +0000 (17:52 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Oct 2012 15:52:35 +0000 (17:52 +0200)
* master:
  tests: remove spurious leftover use of 'Exit'
  tests: remove an obsolete, and probably now wrong, comment
  tests: remove obsolescent references to './defs'
  tests: prefer including 'test-init.sh' rather than './defs'

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
440 files changed:
1  2 
contrib/t/parallel-tests-html-recursive.sh
contrib/t/parallel-tests-html.sh
gen-testsuite-part
t/aclocal4.sh
t/add-missing.tap
t/all2.sh
t/am-default-source-ext.sh
t/amopts-variable-expansion.sh
t/autodist-aclocal-m4.sh
t/autodist-configure-no-subdir.sh
t/autodist-stamp-vti.sh
t/autodist-subdir.sh
t/autodist.sh
t/autohdr-subdir-pr12495.sh
t/autohdr3.sh
t/auxdir.sh
t/auxdir6.sh
t/auxdir7.sh
t/auxdir8.sh
t/ax/depcomp.sh
t/ax/tap-summary-aux.sh
t/ax/testsuite-summary-checks.sh
t/built-sources-fork-bomb.sh
t/built-sources.sh
t/canon.sh
t/canon5.sh
t/ccnoco2.sh
t/ccnoco3.sh
t/check-concurrency-bug9245.sh
t/check10.sh
t/check11.sh
t/check12.sh
t/check2.sh
t/check4.sh
t/check5.sh
t/check7.sh
t/check8.sh
t/colon5.sh
t/colon6.sh
t/colon7.sh
t/color-tests.sh
t/color-tests2.sh
t/comment4.sh
t/comment6.sh
t/comment8.sh
t/cond30.sh
t/cond38.sh
t/condlib.sh
t/condman3.sh
t/confdeps.sh
t/conffile-leading-dot.sh
t/confh.sh
t/confh4.sh
t/confh8.sh
t/conflnk2.sh
t/cscope.tap
t/cxx-lt-demo.sh
t/dejagnu2.sh
t/deleted-am.sh
t/deleted-m4.sh
t/depcomp-implicit-auxdir.sh
t/depcomp8a.sh
t/depcomp8b.sh
t/depdist.sh
t/depend.sh
t/depend4.sh
t/dist-auxfile-2.sh
t/dist-auxfile.sh
t/dist-formats.tap
t/dist-missing-am.sh
t/dist-missing-included-m4.sh
t/dist-missing-m4.sh
t/dist-obsolete-opts.sh
t/dist-repeated.sh
t/distcheck-configure-flags-am.sh
t/distcheck-configure-flags-subpkg.sh
t/distcheck-configure-flags.sh
t/distcheck-hook.sh
t/distcheck-hook2.sh
t/distcheck-missing-m4.sh
t/distcheck-outdated-m4.sh
t/distcheck-override-infodir.sh
t/distcheck-pr10470.sh
t/distcheck-pr9579.sh
t/distcom-subdir.sh
t/distcom3.sh
t/distcom4.sh
t/distcom5.sh
t/distdir.sh
t/distlinksbrk.sh
t/dollar.sh
t/exeext.sh
t/exeext4.sh
t/exsource.sh
t/ext.sh
t/ext2.sh
t/extra10.sh
t/extra11.sh
t/extra12.sh
t/flavor.sh
t/fort2.sh
t/fort4.sh
t/fort5.sh
t/gcj.sh
t/gettext-config-rpath.sh
t/gettext-macros.sh
t/gettext-pr381.sh
t/gettext.sh
t/gettext2.sh
t/gnits2.sh
t/gnits3.sh
t/gnumake.sh
t/hdr-vars-defined-once.sh
t/insh2.sh
t/installdir.sh
t/instdir-java.sh
t/instdir-lisp.sh
t/instdir-ltlib.sh
t/instdir-no-empty.sh
t/instdir-prog.sh
t/instdir-python.sh
t/instdir-texi.sh
t/instdir.sh
t/instdir2.sh
t/insthook.sh
t/instmany-mans.sh
t/instmany-python.sh
t/instmany.sh
t/instspc.tap
t/interp3.sh
t/java-compile-install.sh
t/java-compile-run-flat.sh
t/java-compile-run-nested.sh
t/java-nobase.sh
t/java.sh
t/javaflags.sh
t/lex-depend-cxx.sh
t/lex-depend.sh
t/lex-header.sh
t/lex-lib-external.sh
t/lex-libobj.sh
t/lex-line.sh
t/lex-nodist.sh
t/lex-noyywrap.sh
t/lex-subobj-nodep.sh
t/lex3.sh
t/lex5.sh
t/lflags.sh
t/lflags2.sh
t/libobj19.sh
t/libobj20b.sh
t/libobj20c.sh
t/libobj7.sh
t/library2.sh
t/libtoo10.sh
t/libtool3.sh
t/libtool7.sh
t/libtool9.sh
t/link_cond.sh
t/lisp-flags.sh
t/lisp8.sh
t/location.sh
t/longline.sh
t/make-dryrun.tap
t/makej.sh
t/makej2.sh
t/maken.sh
t/maken3.sh
t/man3.sh
t/man6.sh
t/man8.sh
t/mdate2.sh
t/mkinst3.sh
t/no-extra-makefile-code.sh
t/no-spurious-install-recursive.sh
t/nobase-python.sh
t/nodist.sh
t/nodist3.sh
t/noinst.sh
t/nostdinc.sh
t/objc-basic.sh
t/objcxx-basic.sh
t/objdir.sh
t/option-ng.sh
t/output11.sh
t/output6.sh
t/override-conditional-1.sh
t/parallel-tests-basics.sh
t/parallel-tests-concurrency-2.sh
t/parallel-tests-concurrency.sh
t/parallel-tests-empty.sh
t/parallel-tests-exeext.sh
t/parallel-tests-exit-statuses.sh
t/parallel-tests-extra-programs.sh
t/parallel-tests-fd-redirect-exeext.sh
t/parallel-tests-fd-redirect.sh
t/parallel-tests-fork-bomb.sh
t/parallel-tests-generated-and-distributed.sh
t/parallel-tests-harderror.sh
t/parallel-tests-log-compiler-1.sh
t/parallel-tests-log-override.sh
t/parallel-tests-logvars-example.sh
t/parallel-tests-no-color-in-log.sh
t/parallel-tests-no-repeat.sh
t/parallel-tests-recheck-pr11791.sh
t/parallel-tests-recheck.sh
t/parallel-tests-srcdir-in-test-name.sh
t/parallel-tests-suffix-prog.sh
t/parallel-tests-unreadable.sh
t/pattern-rules.sh
t/pattern-rules2.sh
t/phony.sh
t/pluseq3.sh
t/pluseq5.sh
t/posixsubst-ldadd.sh
t/posixsubst-libraries.sh
t/posixsubst-ltlibraries.sh
t/posixsubst-sources.sh
t/pr2.sh
t/pr224.sh
t/pr401.sh
t/pr401b.sh
t/pr401c.sh
t/pr87.sh
t/pr9.sh
t/primary-prefix-couples-force-valid.sh
t/primary-prefix-valid-couples.sh
t/python-virtualenv.sh
t/recurs-user-keep-going.sh
t/recurs-user-phony.sh
t/recurs-user-wrap.sh
t/relativize.tap
t/remake-after-acinclude-m4.sh
t/remake-after-aclocal-m4.sh
t/remake-after-configure-ac.sh
t/remake-after-makefile-am.sh
t/remake-all-1.sh
t/remake-deleted-m4-file.sh
t/remake-gnulib-add-acsubst.sh
t/remake-gnulib-add-header.sh
t/remake-gnulib-remove-header.sh
t/remake-include-aclocal.sh
t/remake-include-configure.sh
t/remake-include-makefile.sh
t/remake-makefile-intree.sh
t/remake-makefile-vpath.sh
t/remake-mild-stress.sh
t/remake-moved-m4-file.sh
t/remake-not-after-make-dist.sh
t/remake-recurs-user.sh
t/remake-renamed-am.sh
t/remake-renamed-m4-file.sh
t/remake-renamed-m4-macro-and-file.sh
t/remake-renamed-m4-macro.sh
t/remake-subdir-from-subdir.sh
t/remake-subdir-gnu.sh
t/remake-subdir-grepping.sh
t/remake-subdir-long-time.sh
t/remake-subdir.sh
t/remake-timing-bug-pr8365.sh
t/repeated-options.sh
t/reqd.sh
t/self-check-dir.tap
t/serial-tests.sh
t/silent-configsite.sh
t/silent-lex.sh
t/silent-many-gcc.sh
t/silent-many-generic.sh
t/silent-yacc.sh
t/silent.sh
t/silent2.sh
t/silent3.sh
t/silent4.sh
t/silent6.sh
t/silent7.sh
t/silent9.sh
t/silentcxx-gcc.sh
t/silentcxx.sh
t/silentf77.sh
t/silentf90.sh
t/specflg-dummy.sh
t/specflg6.sh
t/spell.sh
t/spell2.sh
t/spy-foreach.sh
t/spy-phony.sh
t/spy-wildcard.sh
t/stdinc-no-repeated.sh
t/subdir-order.sh
t/subdir.sh
t/subobj-clean-lt-pr10697.sh
t/subobj-clean-pr10697.sh
t/subobj-cxx-grep.sh
t/subobj10.sh
t/subobj11a.sh
t/subobj5.sh
t/subobj8.sh
t/subobj9.sh
t/subpkg-yacc.sh
t/subpkg.sh
t/substref.sh
t/suffix-chain.sh
t/suffix-custom-subobj-and-specflg.sh
t/suffix-custom-subobj.sh
t/suffix-obj.sh
t/suffix-rules-old-fashioned.sh
t/suffix.sh
t/suffix10.sh
t/suffix2.sh
t/suffix5.sh
t/suffix8.sh
t/suffix9.sh
t/tags-id.sh
t/tags-pr12372.sh
t/tap-autonumber.sh
t/tap-bad-prog.tap
t/tap-bailout-leading-space.sh
t/tap-bailout-suppress-later-errors.sh
t/tap-bailout.sh
t/tap-basic.sh
t/tap-color.sh
t/tap-common-setup.sh
t/tap-deps.sh
t/tap-diagnostic-custom.sh
t/tap-diagnostic.sh
t/tap-doc.sh
t/tap-doc2.sh
t/tap-global-log.sh
t/tap-global-result.sh
t/tap-lazy-check.sh
t/tap-log.sh
t/tap-merge-stdout-stderr.sh
t/tap-more.sh
t/tap-more2.sh
t/tap-msg0-bailout.sh
t/tap-msg0-planskip.sh
t/tap-out-of-order.sh
t/tap-passthrough-exit.sh
t/tap-passthrough.sh
t/tap-plan-corner.sh
t/tap-plan-leading-zero.sh
t/tap-plan-malformed.sh
t/tap-plan-middle.sh
t/tap-plan-whitespace.sh
t/tap-plan.sh
t/tap-planskip-and-logging.sh
t/tap-planskip-case-insensitive.sh
t/tap-planskip-late.sh
t/tap-planskip-unplanned-corner.sh
t/tap-planskip-whitespace.sh
t/tap-planskip.sh
t/tap-realtime.sh
t/tap-recheck.sh
t/tap-signal.tap
t/tap-test-number-0.sh
t/tap-todo-skip.sh
t/tap-unplanned.sh
t/targetclash.sh
t/test-driver-acsubst.sh
t/test-driver-cond.sh
t/test-driver-create-log-dir.sh
t/test-driver-custom-multitest-recheck.sh
t/test-driver-custom-multitest-recheck2.sh
t/test-driver-custom-multitest.sh
t/test-driver-custom-xfail-tests.sh
t/test-driver-custom.sh
t/test-driver-fail.sh
t/test-driver-is-distributed.sh
t/test-driver-strip-vpath.sh
t/test-extensions-cond.sh
t/test-extensions-invalid.sh
t/test-log.sh
t/test-metadata-global-log.sh
t/test-metadata-global-result.sh
t/test-metadata-recheck.sh
t/test-metadata-results.sh
t/test-missing.sh
t/test-trs-basic.sh
t/test-trs-recover-parallel.sh
t/test-trs-recover.sh
t/testsuite-summary-count-many.sh
t/testsuite-summary-reference-log.sh
t/transform3.sh
t/txinfo-unrecognized-extension-2.sh
t/txinfo.sh
t/txinfo17.sh
t/txinfo2.sh
t/txinfo20.sh
t/txinfo21.sh
t/txinfo8.sh
t/uninstall-fail.sh
t/vala-headers.sh
t/vala-libs.sh
t/vala-mix.sh
t/vala-mix2.sh
t/vala-parallel.sh
t/vala-vapi.sh
t/vala-vpath.sh
t/vala2.sh
t/vala3.sh
t/vala5.sh
t/vars-assign.sh
t/vartar.sh
t/vartypos.sh
t/version7.sh
t/vpath.sh
t/vtexi.sh
t/vtexi2.sh
t/vtexi3.sh
t/vtexi4.sh
t/warning-groups-win-over-strictness.sh
t/warnings-obsolete-default.sh
t/warnings-override.sh
t/warnings-precedence.sh
t/warnings-strictness-interactions.sh
t/warnings-win-over-strictness.sh
t/warnopts.sh
t/werror.sh
t/werror2.sh
t/werror3.sh
t/xsource.sh
t/yacc-auxdir.sh
t/yacc-basic.sh
t/yacc-bison-skeleton-cxx.sh
t/yacc-bison-skeleton.sh
t/yacc-cxx.sh
t/yacc-d-basic.sh
t/yacc-d-cxx.sh
t/yacc-deleted-headers.sh
t/yacc-depend2.sh
t/yacc-dist-nobuild-subdir.sh
t/yacc-dist-nobuild.sh
t/yacc-grepping2.sh
t/yacc-line.sh
t/yacc-mix-c-cxx.sh
t/yacc-nodist.sh
t/yacc-subdir.sh
t/yflags-cmdline-override.sh
t/yflags.sh
t/yflags2.sh

Simple merge
Simple merge
diff --cc t/aclocal4.sh
Simple merge
Simple merge
diff --cc t/all2.sh
Simple merge
Simple merge
index a11f57633977fef14c53801f7cf3073e6d338f26,d63b5f0fa07a145cb9124f64559be2a1ef5ae927..44812210e70d9a0d5865303d74f92f62d03b0ded
@@@ -16,8 -16,7 +16,8 @@@
  
  # Check that AUTOMAKE_OPTIONS support variable expansion.
  
- . ./defs || exit 1
 +am_create_testdir=empty
+ . test-init.sh
  
  # We want complete control over automake options.
  AUTOMAKE=$am_original_AUTOMAKE
Simple merge
index dbb62c9d5e18eb1fb8985c0dc60f621f623235fe,8fd325beb2bf44c3177b40f224933a6a682cd5ee..bdecc62b257e1e408891972280b2e34f761ae560
  # 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 'configure', 'configure.ac' and 'configure.in' are *not*
 -# automatically distributed when placed in a subdirectory.
 +# Check that 'configure' and 'configure.ac' are *not* automatically
 +# distributed when placed in a subdirectory.
  # Related to automake bug#7819.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac <<END
  AC_CONFIG_FILES([sub/Makefile])
Simple merge
Simple merge
diff --cc t/autodist.sh
Simple merge
Simple merge
diff --cc t/autohdr3.sh
Simple merge
diff --cc t/auxdir.sh
Simple merge
diff --cc t/auxdir6.sh
Simple merge
diff --cc t/auxdir7.sh
Simple merge
diff --cc t/auxdir8.sh
Simple merge
diff --cc t/ax/depcomp.sh
Simple merge
Simple merge
Simple merge
index 827970447c28710664243b8c292587a48d672d31,bfb1b4283d84e22c0d51f95f69b72a7b0da58fa8..ee444d7785b9798d7a8646fb0f9aa9925d9d5a8a
  # For more background, see:
  # <http://lists.gnu.org/archive/html/help-smalltalk/2012-08/msg00027.html>
  # <http://lists.gnu.org/archive/html/automake-patches/2012-08/msg00052.html>
 -# Backported to improve coverage of mainline Automake.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  echo AC_OUTPUT >> configure.ac
  
Simple merge
diff --cc t/canon.sh
Simple merge
diff --cc t/canon5.sh
Simple merge
diff --cc t/ccnoco2.sh
index e97558b86c8adf9cf25f9fb1d51c16c0665d02ed,52301822461a8a7d4fa7d1d95bd11e551822177a..72a2e9231f3b0022edc954398f5b9183b3bb83a2
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Make sure Automake requires AM_PROG_CC_C_O when either per-targets
 -# flags or subdir-objects are used.
 +# flags or subdir objects are used.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >>configure.ac <<EOF
 +AC_CONFIG_FILES([src/Makefile])
  AC_PROG_CC
  AC_OUTPUT
  EOF
diff --cc t/ccnoco3.sh
Simple merge
index 108f142dd962b3585a75f88c3abce3c26397fb38,ac0e66b91bed243fe808c237493ab95fcb6c93cf..6872f915280925b38c950de09df664e9c8418c7c
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Look for a bug where FreeBSD make in concurrent mode reported success
 -# even when the Automake-generated parallel testsuite harness failed.
 +# Look for a bug where make in concurrent mode reported success even
 +# when the Automake-generated parallel testsuite harness failed.
 +# This issue was originally present only with FreeBSD make, but we
 +# keep the test anyway, for extra safety.
  # See automake bug#9245.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
diff --cc t/check10.sh
Simple merge
diff --cc t/check11.sh
Simple merge
diff --cc t/check12.sh
Simple merge
diff --cc t/check2.sh
Simple merge
diff --cc t/check4.sh
Simple merge
diff --cc t/check5.sh
Simple merge
diff --cc t/check7.sh
Simple merge
diff --cc t/check8.sh
Simple merge
diff --cc t/colon5.sh
Simple merge
diff --cc t/colon6.sh
Simple merge
diff --cc t/colon7.sh
Simple merge
Simple merge
Simple merge
diff --cc t/comment4.sh
Simple merge
diff --cc t/comment6.sh
Simple merge
diff --cc t/comment8.sh
Simple merge
diff --cc t/cond30.sh
index da954ed6d395279bdcd2d4c706014fa57be81d8c,09ea343d52c53e0c852b065fd7453e5a0e5238d7..75125690cae12e0964d070dfd7ee6ec9158d5f48
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# For PR/352: make sure we support bin_PROGRAMS being defined conditionally.
 +# For PR/352: make sure we support bin_PROGRAMS, lib_LIBRARIES and
 +#             lib_LTLIBRARIES being defined conditionally.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >>configure.ac <<'EOF'
 -AM_CONDITIONAL([C1], [test -z "$two"])
 -AM_CONDITIONAL([C2], [test -n "$two"])
 +m4_define([AM_PROG_AR], [:])
 +AM_PROG_AR
 +AM_CONDITIONAL([C1], [test x"$two" != x"yes"])
 +AM_CONDITIONAL([C2], [test x"$two"  = x"yes"])
  AC_OUTPUT
  EOF
  
diff --cc t/cond38.sh
Simple merge
diff --cc t/condlib.sh
Simple merge
diff --cc t/condman3.sh
Simple merge
diff --cc t/confdeps.sh
Simple merge
index 2146183f990de2baab104e1e6d99ca59b295772e,acdbc1f53e5c7badabc795868f3c8c68c0809b92..b55b987087f587b2f28bb13bf527293bf51fb6f0
@@@ -18,7 -18,8 +18,7 @@@
  # with a dot (like "./Makefile"), since the remake rules might be subtly
  # broken in that case.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  cat > configure.ac << END
  AC_INIT([$me], [1.0])
diff --cc t/confh.sh
Simple merge
diff --cc t/confh4.sh
index 9331fcb1649617d233de20812a32432e0b1cc04c,65c03c54803fade87c4954c8650bcdb0f9dc5a91..16dbf2c4fc96b1d601655b9238caa5faef250f15
  # > How-To-Repeat:
  #  Use AM_CONFIG_HEADER(subdir/config.h) to place configuration
  #  header in subdirectory and observe that it is not included.
 +# Also check that our preprocessing code is smart enough not to pass
 +# repeated '-I<DIR>' options on the compiler command line.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AC_CONFIG_FILES([include/Makefile])
 +AC_CONFIG_FILES([include/Makefile sub/Makefile])
  AC_CONFIG_HEADERS([include/config.h])
 -AC_PROG_CC
 +AC_PROG_FGREP
 +AC_OUTPUT
  END
  
 -cat > Makefile.am << 'END'
 +mkdir include sub
 +: > include/config.h.in
 +
 +cat > c-defs.am << 'END'
 +## To bring in the definition of AM_DEFAULT_INCLUDES
 +CC = who-cares
 +AUTOMAKE_OPTIONS = no-dependencies
  bin_PROGRAMS = foo
 -foo_SOURCES = foo.c
  END
  
 -mkdir include
 -: > include/Makefile.am
 -: > include/config.h.in
 +cat > Makefile.am << 'END'
 +include $(top_srcdir)/c-defs.am
 +.PHONY: test-default-includes
 +test-default-includes:
 +      echo ' ' $(AM_DEFAULT_INCLUDES) ' ' \
 +        | $(FGREP) ' -I$(top_builddir)/include '
 +END
 +
 +cp Makefile.am sub
 +
 +cat > include/Makefile.am << 'END'
 +include $(top_srcdir)/c-defs.am
 +.PHONY: test-default-includes
 +test-default-includes:
 +      echo ' ' $(AM_DEFAULT_INCLUDES) ' ' | $(FGREP) ' -I. '
 +      case ' $(AM_DEFAULT_INCLUDES) ' in \
 +        *'$(top_builddir)'*) exit 1;; \
 +        *include*) exit 1;; \
 +        *-I.*-I.*) exit 1;; \
 +        *' -I. ') exit 0;; \
 +        *) exit 1;; \
 +      esac
 +END
  
  $ACLOCAL
 +$AUTOCONF
  $AUTOMAKE
  
 -grep '^ *DEFAULT_INCLUDES *=.* -I\$(top_builddir)/include' Makefile.in
 +./configure
 +
 +$MAKE test-default-includes
 +$MAKE -C sub test-default-includes
 +$MAKE -C include test-default-includes
  
  :
diff --cc t/confh8.sh
Simple merge
diff --cc t/conflnk2.sh
index e9d00e0af415a3324031f09c074abba9b42166e2,66b1a49f396719708bbfa6121825f4b85ed5ceca..8271f38b0473b905fd36580188b995b868bb42d6
  # Test to make sure that sources for links created by AC_CONFIG_LINKS
  # are distributed.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat > Makefile.am << 'END'
 -SUBDIRS = sdir
 -.PHONY: test
 -test: distdir
 -      test -f $(distdir)/src
 -      test -f $(distdir)/src2
 -      test -f $(distdir)/sdir/src3
 -      test -f $(distdir)/sdir-no-make/src4
 -      test 2 -gt `find $(distdir)/sdir -type d | wc -l`
 -      test 2 -gt `find $(distdir)/sdir-no-make -type d | wc -l`
 -      test 4 -gt `find $(distdir) -type d | wc -l`
 -END
 +echo SUBDIRS = sdir > Makefile.am
  
  : > src
  : > src2
diff --cc t/cscope.tap
Simple merge
Simple merge
diff --cc t/dejagnu2.sh
Simple merge
diff --cc t/deleted-am.sh
Simple merge
diff --cc t/deleted-m4.sh
Simple merge
Simple merge
diff --cc t/depcomp8a.sh
Simple merge
diff --cc t/depcomp8b.sh
Simple merge
diff --cc t/depdist.sh
Simple merge
diff --cc t/depend.sh
Simple merge
diff --cc t/depend4.sh
Simple merge
Simple merge
Simple merge
index 5737227e68b3c1ba1b355cfb6752cd9a46ecbdac,6f217133f7169a042bc5fefdc23543c30961d9c0..50b0e43a35624eee0ad360e17d2f27ab4c1545af
  # Check support for different compression formats used by distribution
  # archives.
  
- . ./defs || exit 1
 -am_create_testdir=empty
+ . test-init.sh
  
 -plan_ 70
 +plan_ 18
  
 -# ---------------------------------------------------- #
 -#  Common and/or auxiliary subroutines and variables.  #
 -# ---------------------------------------------------- #
 -
 -ocwd=$(pwd) || fatal_ "getting current working directory"
 +# -------------------------------------- #
 +#  Auxiliary subroutines and variables.  #
 +# -------------------------------------- #
  
  TAR='' && unset TAR
  
Simple merge
Simple merge
Simple merge
index 06bea8d9131bac0971a32e3cf36d673ce3f0bcaa,46015ed4f2f1f2d4a452766be1898de1c6fb3fdb..8e5e846a8c0d5b1e85ca2b429fd1077e37a5ea6d
  # 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 support for no-dist-gzip with lzma.
 +# Obsolete 'dist-*' and 'no-dist-gzip' options.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -errmsg='support for lzma.*removed'
 +$ACLOCAL
  
 -echo AUTOMAKE_OPTIONS = dist-lzma > Makefile.am
 -$ACLOCAL --force
 -AUTOMAKE_fails -Wnone -Wno-error
 -grep "^Makefile\\.am:1:.*$errmsg" stderr
 +for fmt in gzip bzip2 xz lzip zip tarZ lzma shar; do
 +  echo AUTOMAKE_OPTIONS = dist-$fmt > Makefile.am
 +  AUTOMAKE_fails -Wnone -Wno-error
 +  grep "^Makefile\\.am:1:.* 'dist-$fmt' option.* no more supported" stderr
 +  grep "^Makefile\\.am:1:.* use AM_DIST_FORMATS .*instead" stderr
 +done
 +
 +rm -rf autom4te*.cache
  
  cat > configure.ac << 'END'
 -AC_INIT([lzma], [1.0])
 -AM_INIT_AUTOMAKE([no-dist-gzip dist-lzma])
 +AC_INIT([foo], [1.0])
 +AM_INIT_AUTOMAKE([no-dist-gzip dist-xz])
  AC_CONFIG_FILES([Makefile])
 -AC_OUTPUT
  END
  : > Makefile.am
 -
 -rm -rf autom4te*.cache
  $ACLOCAL
  AUTOMAKE_fails -Wnone -Wno-error
 -grep "^configure\\.ac:2:.*$errmsg" stderr
 +grep "^configure\\.ac:2:.* 'no-dist-gzip' option.* no more supported" stderr
 +grep "^configure\\.ac:2:.* 'dist-xz' option.* no more supported" stderr
 +grep "^configure\\.ac:2:.*use AM_DIST_FORMATS .*instead" stderr
  
  :
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 3774a7523491d38958af42e7f9c4bcb1ecac73af,b0cbf12de0de8224e5a0d9d05dc742415a67f1cb..9b2f7f49d641c9e1d5d28e14dab1266a4d4d1762
@@@ -17,8 -17,7 +17,8 @@@
  # Test to make sure that if an auxfile (here depcomp) is required
  # by a subdir Makefile.am, it is distributed by that Makefile.am.
  
- . ./defs || exit 1
 +required=cc
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_CONFIG_FILES([subdir/Makefile])
diff --cc t/distcom3.sh
index b1fcd8b8549280ed9e7954bec5a4e13d62caf24b,35dc73908f57f9792c54af6f8b024159741a6c78..ead374ffa240602988fa1d22c5bf9261cdd28a76
  # Test to make sure that non-existing common files are distributed
  # if they are buildable.
  
- . ./defs || exit 1
+ . test-init.sh
  
 +echo AC_OUTPUT >> configure.ac
 +
  cat > Makefile.am << 'END'
  README:
        echo 'I bet you are reading me.' > README
diff --cc t/distcom4.sh
Simple merge
diff --cc t/distcom5.sh
index 23b48e8e0062b5a5d789b9594290230fbaccf28e,29ea76c09a8cb08ece72519e84d167c394e0b15a..43753bc2f1b715418b835911183c6a32e2ff1b16
  # a Makefile in that directory.  'distcom4.sh' performs the same
  # test without Makefile in the directory.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -extract_distcommon ()
 -{
 -  sed -n -e '/^DIST_COMMON =.*\\$/ {
 -    :loop
 -    p
 -    n
 -    t clear
 -    :clear
 -    s/\\$/\\/
 -    t loop
 -    p
 -    n
 -    }' -e '/^DIST_COMMON =/ p' ${1+"$@"}
 -}
 -
  cat >> configure.ac << 'END'
     AC_CONFIG_FILES([tests/autoconf:tests/wrapper.in],
                     [chmod +x tests/autoconf])
diff --cc t/distdir.sh
index 0f46625c92af74c3e309423e22d1b3f7645a5e19,d4694fbc8e48a3384b1da0c32ac15513ad186e43..f586f1d8176e1697ab1826e9ea7f52c104eea1a2
  # 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 to make sure subdirs in EXTRA_DIST work.  Also tests to make
 -# sure *srcdir is properly handled.  Note that using './', as in
 -#   EXTRA_DIST = ./joe
 -# does not work portably: it fails with HP-UX and Tru64 make.
 -# Also test DISTFILES containing a directory and a file in it,
 -# and repeated directories.
 +# Test to make sure subdirs in EXTRA_DIST work.
 +# Also tests to make sure *srcdir is properly handled.
 +# Also test the situation where the list of distributed files contains
 +# a directory and a file in it, and repeated directories.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
Simple merge
diff --cc t/dollar.sh
index 214345b96be2a5f400838e8da2f8da31ed4b524c,642c07fe0c871621d09015bc535d630aa27a482a..430537b45e24397159d1ba501ab42eb9205a4b65
  # Java people need this.
  # PR/317, reported by Eric Siegerman and Philip Fong.
  
- . ./defs || exit 1
 -# Require GNU make for this test.  SunOS Make does not support
 -# '$$' in a target or a dependency (it outputs the empty string instead).
 -required=GNUmake
+ . test-init.sh
  
  echo AC_OUTPUT >> configure.ac
  
diff --cc t/exeext.sh
Simple merge
diff --cc t/exeext4.sh
index acb16cc238ab7c88b7a3153b8d2768949548797f,bd455e092fa9bde5418a5251cbb54e6e42aae2ab..600655befe8a5dbb06c62a15290198242eaf9cf6
@@@ -17,8 -17,8 +17,8 @@@
  # Make sure $(EXEEXT) is appended to programs and to tests that are
  # programs, but not to @substitutions@.
  
 -# For gen-testsuite-part: ==> try-with-serial-tests <==
 +am_serial_tests=yes
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AM_CONDITIONAL([COND], [test -n "$cond"])
diff --cc t/exsource.sh
Simple merge
diff --cc t/ext.sh
Simple merge
diff --cc t/ext2.sh
Simple merge
diff --cc t/extra10.sh
index f12b076b21f232a1d229d10150c31eecff21c801,bd49d3c5850317c45bc51b97c22849e4b05d080f..29324147061bc83f24785b5ea9f62042ec4af667
@@@ -19,7 -19,8 +19,7 @@@
  # See also sister test 'extra11.sh', that checks a similar usage
  # with the involvement of the $(wildcard) GNU make builtin.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  echo AC_OUTPUT >> configure.ac
  
diff --cc t/extra11.sh
index 3f97e6bd66864f789c4ac9190674db9a9eb4b338,6d42d8df260a36f31036e2c873bd83ff010eb930..3cea106a0064b72f937ca7582b5988afe2ced840
@@@ -17,7 -17,8 +17,7 @@@
  # Check for more complex usage of wildcards in EXTRA_DIST.
  # Suggested by observations from Braden McDaniel.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  echo AC_OUTPUT >> configure.ac
  
diff --cc t/extra12.sh
index 67fa1fe4e9de6c6464d72543942f57402f544741,0dc817c6224a5ce196e680c4a7704f473dc6a9af..21278fda2b5e8c9aa97ba0524946856bd1996b1c
@@@ -18,7 -18,8 +18,7 @@@
  # $srcdir != $builddir, if properly declared.
  # Suggested by observations from Braden McDaniel.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  echo AC_OUTPUT >> configure.ac
  
diff --cc t/flavor.sh
index 058e55fe25090ace063820849742bd115e926798,383c5c7abb73f1564a6ea254a8a35594f190c376..0085e997f357d46656102327cfc0d44d3bf48e2b
  # options like '--ignore-deps' and '--silent-rules' are preserved across
  # automake reruns.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AM_MAINTAINER_MODE
  AC_OUTPUT
  END
  
diff --cc t/fort2.sh
index 6afa5032d6b386468a330963dcedce2fa6ae59ac,b6c2ead60bb9aa8133e73309e97a21501ad48383..68ae86acc597b12b83753bbc41edc46249d32fd7
@@@ -19,8 -19,7 +19,8 @@@
  
  # Cf. 'fort1.sh' and 'link_f90_only.sh'.
  
- . ./defs || exit 1
 +required=gfortran # Required only in order to run ./configure.
+ . test-init.sh
  
  mkdir sub
  
diff --cc t/fort4.sh
Simple merge
diff --cc t/fort5.sh
Simple merge
diff --cc t/gcj.sh
index 849302413f881a86a67dcf3a10f9b829db475c94,f0a3897501e6e0308054dab3d53fdb4942dfd018..885db3c88d95bf3d6edcc76d63c08b3492ec78f2
+++ b/t/gcj.sh
  
  # Test of compiled java.
  
- . ./defs || exit 1
 +required='gcc gcj'
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -_AM_DEPENDENCIES([GCJ])
 -AC_SUBST([GCJ])
 +# FIXME: AM_PROG_GCJ should cause OBJEXT and EXEEXT to be set, but
 +# FIXME: it currently does not.  See also xfailing test 'gcj6.sh'.
 +AC_PROG_CC
 +AM_PROG_GCJ
 +AC_OUTPUT
  END
  
  cat > Makefile.am << 'END'
index 613ee8276b9a745f39321252c77ba05b61a63412,d73eaec5f37b9604a17d1ad81eab150ee8be04e9..987c02fccc42ea0baee6431f4c03617ff53dbff9
  # 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 to make sure we recognize a Makefile.in, even if post-processed
 -# and renamed.
 +# Check the config.rpath requirement.
  
 -required=cc
 +required='gettext'
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >configure.ac <<END
 -AC_INIT([$me], [1.0])
 -AM_INIT_AUTOMAKE
 -AC_PROG_CC
 -AC_CONFIG_FILES([myMakefile])
 +cat >> configure.ac << 'END'
 +AM_GNU_GETTEXT
 +# config.rpath is required by versions >= 0.14.3.
 +AM_GNU_GETTEXT_VERSION([0.14.3])
  AC_OUTPUT
  END
  
Simple merge
index 1bb6320f119fd053e95ad72a569dd256408d019e,d1f11625998fd98b02d3894c672ff13aba910caa..75e2ba8595ed56e07e43f932b4b66b2d8d12ffa3
  # 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 libtool is removed.
 -# Report from Kevin Dalley.
 +# Automake gettext support: regression check for PR/381:
 +# 'SUBDIRS = po intl' must not be required if 'po/' doesn't exist.
  
 -required=libtool
 +required='gettext'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AC_LIBTOOL_DLOPEN
 -AC_DISABLE_SHARED
 -AC_PROG_LIBTOOL
 -AC_SUBST([LIBTOOL_DEPS])
 +AM_GNU_GETTEXT
 +AC_OUTPUT
  END
  
 -: > Makefile.am
 +$ACLOCAL
  
 -: > ltmain.sh
  : > config.guess
 +: > config.rpath
  : > config.sub
  
 -$ACLOCAL
 +test ! -d po # Sanity check.
 +mkdir sub
 +echo 'SUBDIRS = sub' > Makefile.am
  $AUTOMAKE
  
 -grep 'rm -f libtool' Makefile.in
 +# Still, SUBDIRS must be defined.
 +
 +: > Makefile.am
 +AUTOMAKE_fails
 +grep '^configure\.ac:.*AM_GNU_GETTEXT used but SUBDIRS not defined' stderr
  
  :
diff --cc t/gettext.sh
index 5f89b6195691b87c52b6924340af7a5c10d82c74,7cf62efaba6db9b9b0c63886f0dadc2a0e04a79b..87498436eb4ba2ef172c39daa7b85edda925f983
  # Check gettext support.
  
  required='gettext'
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >>configure.ac <<END
 +cat >> configure.ac << 'END'
  AM_GNU_GETTEXT
 -AM_GNU_GETTEXT_VERSION([0.14.3])
  AC_OUTPUT
  END
  
diff --cc t/gettext2.sh
Simple merge
diff --cc t/gnits2.sh
Simple merge
diff --cc t/gnits3.sh
Simple merge
diff --cc t/gnumake.sh
index 7b1fbfe57c1a65200c618ef8765ea17f46ea126f,a1447554bf5899068c1f2930757f6b41ee50a254..c8433ba111f6cbebce494f127df28bdf4e54ea7e
@@@ -17,7 -17,8 +17,7 @@@
  # Automake should not assume that make files are called Makefile.
  # Report from Braden McDaniel.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_CONFIG_FILES([sub/GNUmakefile])
Simple merge
diff --cc t/insh2.sh
Simple merge
diff --cc t/installdir.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/instdir.sh
Simple merge
diff --cc t/instdir2.sh
Simple merge
diff --cc t/insthook.sh
Simple merge
Simple merge
Simple merge
diff --cc t/instmany.sh
Simple merge
diff --cc t/instspc.tap
Simple merge
diff --cc t/interp3.sh
index b0ed1c7f006133c1c78ae78bb8777128d5ef9c39,4fb227ff84803d6d67021ef1b3b8e5eedce00fa3..0e5670d3f891b796a21a530259bb61eed9d92122
  # 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 '../foo/foo.cpp' generates a rule.
 -# Report from Dave Brolley.
 +# Variable interpolation should work even when GNU make functions are
 +# involved.  This is unfortunately not the case currently, due to
 +# historical and hard-to-lift limitations (this is also documented in
 +# the manual, using an example that is a stripped-down version of this
 +# test case).
  
- . ./defs || exit 1
 +required=cc
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/java.sh
Simple merge
diff --cc t/javaflags.sh
Simple merge
Simple merge
diff --cc t/lex-depend.sh
Simple merge
diff --cc t/lex-header.sh
Simple merge
Simple merge
diff --cc t/lex-libobj.sh
Simple merge
diff --cc t/lex-line.sh
index fbc05a578a764415d9b995ffa6831cb52b4d0939,4a51c1edb7842e37c971d834005f7a7e0eaf8079..299996c80ebc9d32e783a2805c2b26684fb60843
  # See also sister test 'yacc-line.sh'.
  
  required='cc lex'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AC_CONFIG_FILES([sub/Makefile])
  AC_PROG_CC
  AM_PROG_CC_C_O
  AC_PROG_LEX
diff --cc t/lex-nodist.sh
index 19e5968a665943692cff649a8b7148ca44c8130f,e318c3ee2682673aefb67301c23ae0fb9c7d1f7b..8114c24b51981bfad2109ed2660ada49908c4043
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Checks for .c files derived from non-distributed .l sources.
 -# The test 'lex-pr204.sh' does similar check with AM_MAINTAINER_MODE
 -# enabled.
 -# The tests 'yacc-nodist.sh' and 'yacc-pr204.sh' does similar checks
 -# for yacc-generated .c and .h files.
 +# The test 'yacc-nodist.sh' does similar checks for yacc-generated
 +# .c and .h files.
  
  required='cc lex'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
Simple merge
index 526e01b64be074e45944bc9a4660a27818041a7e,2d6405160009272454b5a770a781492302092691..d80be7950cb93eaeea81211ebb4138b16732d2a3
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Ensure subdirs for subdir scanners are generated when subdir-objects
 -# are used, even when dependency tracking is disabled.
 +# Ensure subdirs for subdir scanners are generated, even when dependency
 +# tracking is disabled.
  
  required='cc lex'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >>configure.ac <<\END
  AC_PROG_CC
diff --cc t/lex3.sh
Simple merge
diff --cc t/lex5.sh
Simple merge
diff --cc t/lflags.sh
Simple merge
diff --cc t/lflags2.sh
Simple merge
diff --cc t/libobj19.sh
Simple merge
diff --cc t/libobj20b.sh
index fce4ab342eea3d850f16259290d9b6644cb0f4c5,b42b8c90126fc88700c4829efca02473bc252eba..8175a08c3369d09c668a3b3ffbb4252a5bc5eb4e
@@@ -15,9 -15,9 +15,9 @@@
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Test error reporting for AC_CONFIG_LIBOBJ_DIR.
 -# See also sister tests 'libobj20a.sh' and 'libobj20c.sh'.
 +# See also sister test 'libobj20c.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_CONFIG_LIBOBJ_DIR([libobj-dir])
diff --cc t/libobj20c.sh
index 533f195a18fcf5da431a91a03cfb22b095574b1c,295eeacd0c8b6e06f5f2cc1cf81b726db29e28ac..e2e7c2b7fadcb27ff7ee9d9fa80538ed70fd0de4
@@@ -15,9 -15,9 +15,9 @@@
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Test error reporting for AC_CONFIG_LIBOBJ_DIR.
 -# See also sister tests 'libobj20a.sh' and 'libobj20b.sh'.
 +# See also sister test 'libobj20b.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_CONFIG_LIBOBJ_DIR([libobj-dir])
diff --cc t/libobj7.sh
Simple merge
diff --cc t/library2.sh
Simple merge
diff --cc t/libtoo10.sh
index 3fd8444cde6630e2e0ccedd2f88b37536ae821d3,968bcb91811160e7ea7c942d22edba2d2b79502b..f56c8074cb388dc7898a056b90f3aa6a1deac82e
  
  # Make sure .libs directories are removed for _PROGRAMS.
  # Report from Guillermo Ontañón.
 +# Also make sure the 'so_locations' files generated by some linkers
 +# (OSF, IRIX) are removed.
 +# And also make sure the generated 'libtool' script as well as the
 +# *.lo files are removed when they should.
  
  required='cc libtoolize'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AM_PROG_AR
diff --cc t/libtool3.sh
Simple merge
diff --cc t/libtool7.sh
Simple merge
diff --cc t/libtool9.sh
Simple merge
diff --cc t/link_cond.sh
Simple merge
diff --cc t/lisp-flags.sh
Simple merge
diff --cc t/lisp8.sh
index cc8a315b78b5743d1044312c1e8cbc93886c06dd,7348e4147a72d15746b4bb1b19bd9f85993ea2d5..e64b7694b11247a7e94801d9ca45e19218c40ff7
@@@ -16,8 -16,8 +16,8 @@@
  
  # Check the recover rule of lisp_LISP with parallel make.
  
 -required='GNUmake emacs'
 +required=emacs
- . ./defs || exit 1
+ . test-init.sh
  
  cat > Makefile.am << 'EOF'
  dist_lisp_LISP = am-one.el am-two.el am-three.el
diff --cc t/location.sh
index d8921c816d9514e25ee7533c4eacdd413084aa13,0ff7090bb13ec5fa20c4a9ee653c145c0fc3f4c6..bf2399a168a10ed4132f3a83b33940d18864c271
  
  # Test for locations in error messages.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AM_CONDITIONAL([COND1], [true])
  AM_CONDITIONAL([COND2], [true])
  AC_PROG_CC
  AM_PROG_AR
diff --cc t/longline.sh
index 25acc675fc99aa7b662badc4251ba5aa2ea609e5,b262f45fe22646ad90afaae8c806ef56de74efc4..5b2a4ead1bd07ce16c0bd88d1881893548c13bd6
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Long lines of += should be wrapped.
 +# Long lines of = and += should be wrapped.
  # Report from Simon Josefsson.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -(echo DUMMY = some_long_filename_1;
 -for i in 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20;
 -do
 -  echo DUMMY += some_long_filename_$i
 -done) > Makefile.am
 +i=0
 +while test $i -lt 30; do
 +  echo some_very_very_long_variable_content_$i
 +  i=$(($i + 1))
 +done > t
 +
 +{ echo "DUMMY =" && sed 's/^/DUMMY +=/' t; } > Makefile.am
 +{ echo "ZARDOZ =" && cat t; } | tr '\012\015' '  ' >> Makefile.am
  
  $ACLOCAL
  $AUTOMAKE
index 487681be6bf50e1a2325d16ef368f4ab02645163,adf2f044103deaeed761f1ac44f4284be54c7a1f..09932984034865f5d86c6fd9521d9de984124bb7
@@@ -14,9 -14,9 +14,9 @@@
  # 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 $(am__make_dryrun) works as expected.
 +# Check that $(am.make.dry-run) works as expected.
  
- . ./defs || exit 1
+ . test-init.sh
  
  plan_ 14
  
diff --cc t/makej.sh
index 3b236bf2fd6462598d917822b2a54f54f48ee7b6,e8d1ea57a015d268219a4d01cb1d9020b68e0ac5..29c6a22002a61407f1e136c3791b0658db1a880a
@@@ -21,7 -21,8 +21,7 @@@
  # depend on the time at which autoconf and automake update the cache
  # via autom4te.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  cat >configure.ac <<END
  m4_include([version.m4])
diff --cc t/makej2.sh
index b7ec43a3137661bb6beb95f1eea0920b48390208,20ebb57ec39078f8452f819ef3b68ac511645b98..c6dafc1f4657e40f326b681add3a32dfaa532ee4
  # Test to make sure known BSD 'make -jN' issues are fixed:
  # without -B, it may reuse the same shell for separate commands in a
  # rule, which can lead to interesting results.
 +# Problems like this shouldn't happen with GNU make, but we keep the
 +# test anyway for the moment, for extra safety.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >>configure.ac <<'END'
  AC_OUTPUT
diff --cc t/maken.sh
index e4254e532430dbe705f74da5920d238cefe110be,5087b9259a30c5b082d2e192f0b77bf0f55c0675..40575088a33d52016d91956f7baaff1fd45c4e48
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Ensure that 'make -n dist' and 'make -n distcheck' do not change files
 +# Ensure that "make -n dist" and "make -n distcheck" do not change files
  # on disk, due to GNU make executing rules containing '$(MAKE)'.
 -# Also, ensure that 'make -n dist' and 'make -n distcheck' show what
 -# would happen, at least when using GNU make.
 +# Also, ensure that "make -n dist" and "make -n distcheck" show what
 +# would happen.
  
- . ./defs || exit 1
+ . test-init.sh
  
  mkdir sub
  
diff --cc t/maken3.sh
index 5dbe7d23a66fe4f1443b82ac0ea81e75cd1d5d89,dbbdb4afa1d971d9ad2a2bd6f8b22fe518d95d37..683f3d4f93a241dd1ae09a1791fda9cb8c01f738
  # as well as tags.
  
  # For gen-testsuite-part: ==> try-with-serial-tests <==
- . ./defs || exit 1
+ . test-init.sh
  
 -# Does $MAKE support the '.MAKE' special target?
 -have_dotmake=false
 -if using_gmake; then
 -  have_dotmake=: # GNU make must support it.
 -else
 -  unindent > mk.tmp << 'END'
 -    targ.tmp:
 -      : > $@
 -    .MAKE: targ.tmp
 -END
 -  if $MAKE -n -f mk.tmp targ.tmp && test -f targ.tmp; then
 -    have_dotmake=:
 -  fi
 -fi
 -
  mkdir sub sub2
  
  cat >> configure.ac << 'END'
diff --cc t/man3.sh
Simple merge
diff --cc t/man6.sh
index c2f21a9b7efe1a3353ff62920239df882168cb06,d854732b2c3d69bcc0cc437939e0ab83f855a3ce..9d96dcdeed6964e48e1df9fe61006e1f4d34178e
+++ b/t/man6.sh
  # even if the 'missing' script is involved.
  
  required=help2man
- . ./defs || exit 1
+ . test-init.sh
  
 -# Avoid a spurious failure due to a known FreeBSD make incompatibility.
 -useless_vpath_rebuild \
 -  && skip_ "VPATH useless rebuild detected (see bug#7884)"
 -
  cat > Makefile.am << 'END'
  dist_man_MANS = $(srcdir)/foobar.1 bazquux.1 zardoz.1
  dist_bin_SCRIPTS = foobar bazquux zardoz
diff --cc t/man8.sh
index 597093f948a7432090dcbc9e8cd0a419255d5161,7396006ecb479939d562ecfffc85678153c09bbd..f6ad408b676b3ad7ce0567b2ed98a077fe37545d
+++ b/t/man8.sh
  
  # Check for a bug in distcheck w.r.t. generated manpages.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -# Avoid a spurious failure due to a known FreeBSD make incompatibility.
 -useless_vpath_rebuild \
 -  && skip_ "VPATH useless rebuild detected (see bug#7884)"
 -
  cat > Makefile.am << 'END'
  dist_man_MANS = foo.1
  foo.1:
diff --cc t/mdate2.sh
Simple merge
diff --cc t/mkinst3.sh
index 880d417b3e988d84d3f297a73205163cbd581bb8,02dca5e74b14b0111d79791e3c96c7b4738cf2a8..f34afd3e88a1bb59cc789c8fb147362230f98446
  # 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 mkinstalldirs with spaces in directory names.
 +# Test "install-sh -d" with spaces in directory names.
  
  am_create_testdir=empty
- . ./defs || exit 1
+ . test-init.sh
  
  cwd=$(pwd) || fatal_ "getting current working directory"
  
Simple merge
Simple merge
Simple merge
diff --cc t/nodist.sh
Simple merge
diff --cc t/nodist3.sh
Simple merge
diff --cc t/noinst.sh
Simple merge
diff --cc t/nostdinc.sh
index 2ec2b82dab0871787d9d619c17504974df9d510b,93761d55ae60b947b3c43280078fff5df951f16b..8ebb4e8ff28f99a72a0298bb680bd73af21cc78a
  
  # Test to make sure nostdinc option works correctly.
  
 -# We don't require a C compiler explicitly, because the first part of the
 -# test (where 'Makefile.in' is grepped) does not require one.  Insted, we
 -# just skip the rest of the test if configure fails to find a working C
 -# compiler.
 -
 +required=cc
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
diff --cc t/objc-basic.sh
Simple merge
Simple merge
diff --cc t/objdir.sh
index 5d2a599b8e5297b9467982ce9ff6b610e014b5c6,7b77a906ba03699fb828a81eff66096be7987712..12aff49c8fd9895f186fe4c3277146592250427f
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Naming a subdirectory 'obj/' is a bad idea.  Automake should say so.
 +# A directory named 'obj' could create problems with BSD make, but
 +# shouldn't with GNU make; so check that
 +#  - the old portability warning diagnosing it is gone, and
 +#  - such a directory truly causes no problems with GNU make.
  
- . ./defs || exit 1
 +am_create_testdir=empty
+ . test-init.sh
  
 -mkdir obj
 -
 -cat >>configure.ac << 'END'
 -AC_CONFIG_FILES([obj/Makefile])
 +cat > configure.ac <<END
 +AC_INIT([$me], [1.0])
 +AC_CONFIG_AUX_DIR([obj])
 +AM_INIT_AUTOMAKE
 +AC_REQUIRE_AUX_FILE([Makefile])
 +AC_CONFIG_FILES([Makefile])
  AC_OUTPUT
  END
  
diff --cc t/option-ng.sh
index 11044273ac7a67a06d058730154ca4b5b143c7c1,549ead8b8ce11efa6d42efb06406bcbe64d1a06d..12e2e7f6da0826a2c0a5801b4c3c02a36f806286
  # 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 to make sure '.txi' extension works.
 +# Automake-NG should recognize the (no-op) 'ng' option.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat > Makefile.am << 'END'
 -info_TEXINFOS = foo.txi
 +cat > configure.ac <<END
 +AC_INIT([$me], [1.0])
 +AM_INIT_AUTOMAKE([ng])
 +AC_CONFIG_FILES([Makefile])
  END
  
 -echo '@setfilename foo.info' > foo.txi
 -: > texinfo.tex
 +echo AUTOMAKE_OPTIONS = ng > Makefile.am
  
  $ACLOCAL
  $AUTOMAKE
diff --cc t/output11.sh
Simple merge
diff --cc t/output6.sh
Simple merge
Simple merge
index 42940c32ada0acebd2476743a438aa3e4f07ef53,3022e22827b8efc7a67d868c25053e7f385cf8a3..326d673977cf545c9212a85f30fd62e89ba03793
  #  - log files, and what goes in 'test-suite.log'
  #  - make clean
  #  - dependencies between tests
 -#  - TESTS redefinition at runtime
 -#  - TEST_LOGS redefinition at runtime
 -#  - RECHECK_LOGS redefinition at runtime
 +#  - TESTS redefinition at runtime (with and without test suffixes)
 +#  - AM_LAZY_CHECK
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
index f7aac36a5e96d723a7f40ccbffb0ae01f8bfa2d4,bb38d509cbd6b7b76658fd8ef1c793bb59a70977..2d153936a853d8b3ecb406f7f8c8c92a23a5760a
@@@ -20,8 -20,8 +20,8 @@@
  # Actually, this test doesn't ensure that things happen concurrently.
  # It merely serves as demonstration.  :-)
  
 -required='cc native GNUmake'
 +required='cc native'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
Simple merge
index bbcbf871fe61cda73096fc2d385d0629c28ce8a4,a367038caaecf2719c729421ee523ecb40c48bd4..1a8ec022927adaf1a9af61938148ec2375c99b8f
  # 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 features:
 -# - empty TESTS
 -# BSD make will expand '$(TESTS:=.log)' to '.log' unless overridden.
 -# See 'parallel-tests-trailing-whitespace.sh' for a similar issue.
 +# Check parallel-tests features: empty TESTS
  
- . ./defs || exit 1
+ . test-init.sh
 +
  cat >> configure.ac << 'END'
 +AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])
  AC_OUTPUT
  END
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 71d844e802455435b3217028f7847ecc32d59f1f,ff6c2f50b7f36ff01b31bce0390631eccf84e888..3f4d482b63e716800523e66bda0050849382a3d0
  # 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 features:
 -# - generated distributed tests.
 -# - listing $(srcdir)/ or $(top_srcdir)/ in TESTS doesn't work ATM,
 -#   and is thus diagnosed.
 -
 -# TODO: this test should also ensure that the 'make' implementation
 -#       properly adheres to rules in all cases.  See the Autoconf
 -#       manual for the ugliness in this area, when VPATH comes into
 -#       play.  :-/
 +# Check parallel-tests features: generated distributed tests.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
Simple merge
Simple merge
Simple merge
index 50bdba2f16f57c94a0de58967aa822cc8fe3cec6,1c0d44d863cc899db361c9304b347d8657f4af8b..6b159a7c8e14c0e71e1753b928cd46d0208f91eb
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Test the example of usage of generic and extension-specific
 -# LOG_COMPILER and LOG_FLAGS given in the manual.
 +# LOG_COMPILER, LOG_FLAGS and LOG_DEPENDNECIES given in the manual.
  
  required=python
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac <<END
  AC_SUBST([PERL], ['$PERL'])
Simple merge
index dae8b60131c7892a5cd51297991d8cbaf1d3319f,912ef418d67c23180bdcdee6c035f5ad4630995a..b28cf8050817cd747e78a93734e49c98ddc3d1f9
  # 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 to make sure that mdate-sh is added to the right directory.
 -# Report from Kevin Dalley.
 +# The parallel-tests harness do not cause the same test to be
 +# uselessly run multiple times.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >> configure.ac << 'END'
 -AC_CONFIG_FILES([sub/Makefile])
 -END
 -
 -cat > Makefile.am << 'END'
 -SUBDIRS = sub
 -END
 +echo AC_OUTPUT >> configure.ac
 +echo TESTS = foo.test > Makefile.am
  
 -mkdir sub
 -
 -cat > sub/Makefile.am << 'END'
 -info_TEXINFOS = textutils.texi
 -END
 -
 -cat > sub/textutils.texi << 'END'
 -@include version.texi
 -@setfilename textutils.info
 +cat > foo.test <<'END'
 +#! /bin/sh
 +ls -l && mkdir bar
  END
 +chmod a+x foo.test
  
  $ACLOCAL
 +$AUTOCONF
  $AUTOMAKE -a
 -ls -l sub
 -test -f sub/mdate-sh
 +
 +./configure
 +
 +$MAKE -j1 check || { cat test-suite.log; exit 1; }
 +rmdir bar
 +$MAKE -j2 check || { cat test-suite.log; exit 1; }
 +rmdir bar
 +$MAKE -j4 check || { cat test-suite.log; exit 1; }
  
  :
Simple merge
Simple merge
index 72dc491b5dfb9c1cd9ec749fcb692dadc1cb9184,751ddb02090d70a111493bb602a4f86b82d78365..b9e91266f86d77f85ff778dd748c1b51de37856f
  # 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 ':test-results:' directives in test scripts' output doesn't
 -# originate spurious results in the testsuite summary.
 +# Check parallel-tests features: listing $(srcdir)/ in TESTS works.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >> configure.ac << 'END'
 -AC_OUTPUT
 -END
 +echo AC_OUTPUT >> configure.ac
  
  cat > Makefile.am << 'END'
 -TESTS = foo.test bar.test
 +TESTS = \
 +  $(srcdir)/foo \
 +  @srcdir@/foo2 \
 +  @srcdir@/bar.test \
 +  ${srcdir}/sub/baz.test \
 +  built.test
 +
 +XFAIL_TESTS = $(srcdir)/bar.test foo2
 +
 +built.test:
 +      (echo '#!/bin/sh' && echo 'exit 77') >$@-t
 +      chmod a-w,a+x $@-t && mv -f $@-t $@
  END
  
 -cat > foo.test <<'END'
 -#! /bin/sh
 -echo :test-result:XFAIL
 -echo :test-result: SKIP
 -echo :test-result:ERROR
 +cat > foo <<'END'
 +#!/bin/sh
  exit 0
  END
 -cat > bar.test <<'END'
 -#! /bin/sh
 -echo :test-result: ERROR
 -echo :test-result:FAIL
 -echo :test-result: XPASS
 -exit 0
 +chmod a+x foo
 +
 +cat > foo2 <<'END'
 +#!/bin/sh
 +exit 1
  END
 -chmod a+x foo.test bar.test
 +chmod a+x foo2
 +
 +cp foo2 bar.test
 +
 +mkdir sub
 +cp foo sub/baz.test
  
  $ACLOCAL
  $AUTOCONF
Simple merge
Simple merge
index 8e96d592a190f67f3421633b97908980e71c9c6d,ddf37d09057eea2909b7cc7bef29b89539ad5f28..da9bdbeeb14a8074275012c2c98868171ba2dcc8
  # 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 a documented limitation of the Automake's Makefile parser
 -# w.r.t. POSIX variable substitutions used in the name of targets.
 -# See Section "General Operation" in the Automake manual.
 -# If you cause some parts of this test to fail, chances are that you've
 -# improved the Automake parser ;-)
 -# See: <http://lists.gnu.org/archive/html/automake/2010-08/msg00074.html>
 -# or: <http://thread.gmane.org/gmane.comp.sysutils.automake.general/11943/focus=11962>
 +# Automake do not complain about nor messes up pattern rules.
  
- . ./defs || exit 1
+ . test-init.sh
  
 +echo AC_OUTPUT >> configure.ac
 +
  cat > Makefile.am <<'END'
 -$(FOO:=x): bar
 +foo/%.out: bar/%.in
 +      test -d $(dir $@) || $(MKDIR_P) $(dir $@)
 +      cp $< $@
 +%.sh: %/z
 +      cp $< $@
 +%:
 +      echo True > $@
 +noinst_DATA = foo/one.out
 +noinst_SCRIPTS = two.sh mu.py
  END
  
 +mkdir bar two
 +echo "123456789" > bar/one.in
 +echo "#!/bin/sh" > two/z
 +
  $ACLOCAL
 -AUTOMAKE_fails
 +$AUTOCONF
 +$AUTOMAKE
  
 -grep 'bad characters.*variable name.*\$(FOO' stderr
 -grep ':=.*assignments.*not portable' stderr
 +for vpath in : false; do
 +  if $vpath; then
 +    mkdir build
 +    cd build
 +    srcdir=..
 +  else
 +    srcdir=.
 +  fi
 +  $srcdir/configure
 +  $MAKE
 +  diff $srcdir/bar/one.in ./foo/one.out
 +  diff $srcdir/two/z ./two.sh
 +  test "$(cat mu.py)" = True
 +  cd $srcdir
 +done
  
  :
Simple merge
diff --cc t/phony.sh
Simple merge
diff --cc t/pluseq3.sh
Simple merge
diff --cc t/pluseq5.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/pr2.sh
Simple merge
diff --cc t/pr224.sh
Simple merge
diff --cc t/pr401.sh
Simple merge
diff --cc t/pr401b.sh
Simple merge
diff --cc t/pr401c.sh
Simple merge
diff --cc t/pr87.sh
Simple merge
diff --cc t/pr9.sh
index 15e8b4b97e4072fbf9ffb4fd3324133b0b6905e2,7d75cc4bc2e23beb9042b055fae1b86acc35950f..5db775f93c39f8d084ae1c30ea5f9494b46ffd48
+++ b/t/pr9.sh
  # == Report ==
  # When AC_CONFIG_AUX_DIR is set (in my case to 'support'), make dist
  # no longer automatically includes config.guess, config.sub, install-sh,
 -# ltconfig, ltmain.sh, mdate-sh, missing, and mkinstalldirs.  In fact,
 -# the entire 'support/' directory is omitted.
 +# ltconfig, ltmain.sh, mdate-sh, and missing.  In fact, the entire
 +# 'support/' directory is omitted.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat > configure.ac << END
  AC_INIT([$me], [1.0])
Simple merge
Simple merge
Simple merge
index 93ee973e2bedd7f86f996cdc7a4af416fdce54a0,274f441c0de123cf9a63dfa843f1febf02590f7c..c6e42a2eff8e12246a6cb256d86861c5019e6789
  # Check that user-defined recursive targets and their associate
  # '-local', '-am' and '-recursive' targets are declared as phony.
  
- . ./defs || exit 1
 -# Require GNU make, because some vendo makes (e.g., Solaris) doesn't
 -# truly respect .PHONY.
+ required=GNUmake
 -. test-init.sh
  
  cat >> configure.ac <<'END'
  AC_CONFIG_FILES([sub/Makefile])
index c2e70b4a8ac9ee701b7a67f32b5b8e8d54cf640e,15a210cb234d86d09e1822f50793748083d98949..59042a66454fe975f193891b90059c171a76cd52
@@@ -17,7 -17,8 +17,7 @@@
  # Check that rules generated by user recursion are apt to be wrapped
  # by other makefiles.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AM_EXTRA_RECURSIVE_TARGETS([extra])
index a9644af055fb8305ab509dc9c0d9806f85e370db,6d469344174c8ff64818f38ecead4b2c68e16fd0..50cc98b9341ce46b1a08fd67e668afa74c3ffdda
  # 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 Automake-provided internal make macro $(am__relativize).
 +# Test Automake-provided internal make macro $(am.dist.relativize-path).
  
  am_create_testdir=empty
- . ./defs || exit 1
+ . test-init.sh
  
  plan_ later
  
Simple merge
Simple merge
Simple merge
index e304b6ea2f35c5e605c29af931058a054fc97f5e,2161790cf21c3135f1e2801d11eaa1e350f602a9..885cacb3daa8e3a7ae715bbcd2f3316f45009445
  # Test remake rules when Makefile.am or its prerequisites change.
  # Keep in sync with the other sister tests 'remake-after-*.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -if using_gmake; then
 -  remake_() { $MAKE nil; }
 -else
 -  remake_() { $MAKE Makefile && $MAKE foo.sh; }
 -fi
 -
  magic1=::MagicStringOne::
  magic2=__MagicStringTwo__
  
index a6ec8e2ad360343a79d64cfda4b53f2fa3a9b0db,29cefd4769bfb7018ba0a7e4182473904a0bf7a1..3f21dd919c8f3cfb1a89d4e7fea4ce37e6f3d2da
@@@ -15,8 -15,9 +15,8 @@@
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Check that the "all" target triggers rebuilt of outdated Makefiles.
 -# See also sister test 'remake-all-2.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
  mkfile=Makefile
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index b216b0eef3050c0315a0cf622968dbce2a8c0434,a00ae57583a777340005fcfe0851dbd6f1e83c2a..eb2c4ada3aeea608a1bc32eee66634705dd96e1e
@@@ -20,7 -20,8 +20,7 @@@
  # See also the other similar tests 'remake-subdir*.sh', and the
  # related test 'aclocal5.sh'
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
  magic1='::MagicString::One::'
  magic2='__MagicString__Two__'
Simple merge
Simple merge
index 9c7e0f4aef262eb921248480d7b8f3d40e6659f1,a8014cf8f337ef13530a23a6e6dc51b9acebacf2..9e90fcbf96bd72160627070eacad055104ab7cd8
  # See also the other similar tests 'remake-subdir*.sh', and the
  # related test 'aclocal5.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -if using_gmake; then
 -  remake=$MAKE
 -else
 -  remake="$MAKE Makefile"
 -fi
 -
  magic1='::MagicString::One::'
  magic2='__MagicString__Two__'
  
Simple merge
index 489c31344873a74e90ca1d45763af809d052acf6,83253d3cc13c08f721c4410b332dd1328d7b47fc..6da754ab229623743f64d811712cf70ba8af52fd
@@@ -17,7 -17,8 +17,7 @@@
  # Check that automake does not complain on repeated options, nor
  # generate broken or incorrect makefiles.
  
- . ./defs || exit 1
 -required='cc bzip2'
+ . test-init.sh
  
  cat >configure.ac <<END
  AC_INIT([$me], [1.0])
diff --cc t/reqd.sh
Simple merge
Simple merge
index 8bf43aa3d4e66fbe4adfcff83d0067fa6c231dac,52178c58f7097d0b0207b5c82ecdd4107912e3f6..0641da89ad4f794c7c67b0699e061b2dd906f4b3
  
  # Option 'serial-tests'.
  
- . ./defs || exit 1
 -am_create_testdir=empty
+ . test-init.sh
  
 -hasnt_parallel_tests ()
 -{
 -  $EGREP 'TEST_SUITE_LOG|TEST_LOGS|\.log.*:' $1 && exit 1
 -  grep 'recheck.*:' $1 && exit 1
 -  grep '^check-TESTS: \$(TESTS)$' $1
 -}
 -
 -has_parallel_tests ()
 -{
 -  $EGREP '(^| )check-TESTS.*:' $1
 -  $EGREP '(^| )recheck.*:' $1
 -  grep '^\$(TEST_SUITE_LOG): \$(TEST_LOGS)$' $1
 -  grep '^\.test\.log:$' $1
 -}
 -
 -mkdir one two
 -
 -cat > one/configure.ac <<END
 -AC_INIT([$me], [1.0])
 -AM_INIT_AUTOMAKE([serial-tests])
 -AC_CONFIG_FILES([Makefile])
 -END
 -
 -echo 'TESTS = foo.test bar.test' > one/Makefile.am
 -
 -cat > two/configure.ac <<END
 -AC_INIT([$me], [2.0])
 -AC_CONFIG_AUX_DIR([config])
 -AM_INIT_AUTOMAKE([parallel-tests])
 -AC_CONFIG_FILES([aMakefile bMakefile])
 -END
 -
 -cp one/Makefile.am two/aMakefile.am
 -cat - one/Makefile.am > two/bMakefile.am <<END
 +cat > Makefile.am << 'END'
  AUTOMAKE_OPTIONS = serial-tests
 +TESTS = foo.test bar.test
  END
  
 -cd one
 -touch missing install-sh
  $ACLOCAL
  $AUTOMAKE
 -grep TEST Makefile.in # For debugging.
 -hasnt_parallel_tests Makefile.in
 -test ! -e test-driver
 -cd ..
 -
 -cd two
 -mkdir config
 -$ACLOCAL
 -$AUTOMAKE --add-missing
 -grep TEST [ab]Makefile.in # For debugging.
 -has_parallel_tests aMakefile.in
 -hasnt_parallel_tests bMakefile.in
 -mv aMakefile.in aMakefile.sav
 -mv bMakefile.in bMakefile.sav
 +grep '^include .*/am-ng/serial-tests\.mk$' Makefile.in
 +$FGREP 'parallel-tests.mk' Makefile.in && exit 1
 +test -f am-ng/serial-tests.mk
 +test ! -e am-ng/parallel-tests.mk
  test ! -e test-driver
 -test -f config/test-driver
 -$AUTOMAKE
 -diff aMakefile.sav aMakefile.in
 -diff bMakefile.sav bMakefile.in
 -cd ..
  
  :
Simple merge
diff --cc t/silent-lex.sh
index 5b98a1bb66e570533e949a09780e6eb0473f0f42,6cc04308eb21a47eb7230ec2d76ef62bbd2fa91a..4c0b09484d4144e7fce150b8ddaadd0555418a7d
  # Check silent-rules mode for Lex.
  
  required='cc lex'
- . ./defs || exit 1
+ . test-init.sh
  
 -mkdir sub
 -
  cat >>configure.ac <<'EOF'
  AM_PROG_CC_C_O
  AC_PROG_LEX
Simple merge
Simple merge
index 6330fc7efaa44d14231e939e789ba34a768c6572,b54bfe2d7671190503e663d281594bd53d11afd2..4d7eb8350f4115e9ba69cee2038cc2c394663906
  # Keep this in sync with sister test 'silent-yacc-gcc.sh'.
  
  required='cc yacc'
- . ./defs || exit 1
+ . test-init.sh
  
 -mkdir sub
 -
  cat >>configure.ac <<'EOF'
  AM_PROG_CC_C_O
  AC_PROG_YACC
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
Simple merge
diff --cc t/silent7.sh
index d34e8d198560ce2067c188e72b3137297a3f271e,42e5a83e540e224ed4ddbdf90c77b4d0205d8d8b..ee56ce337fb09a8e84d5c55bf69159da4b2b2039
@@@ -15,9 -15,9 +15,9 @@@
  # 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.
 +# Also check that silent rules are disabled by default.
  
- . ./defs || exit 1
+ . test-init.sh
  
  echo AC_OUTPUT >> configure.ac
  
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
Simple merge
diff --cc t/specflg6.sh
Simple merge
diff --cc t/spell.sh
index 58202af4ba4bc314817f632413f640ebb23a7a71,3bed9b1869184b05ab03165babf67f1a9c63d000..23b0b330b99577c85e8f3144bf39f437ac67d1f7
  
  # Test to make sure misspellings in _SOURCES variables cause failure.
  
- . ./defs || exit 1
 +required=cc
+ . test-init.sh
  
 +cat >> configure.ac << 'END'
 +AC_PROG_CC
 +AC_OUTPUT
 +END
 +
  cat > Makefile.am << 'END'
  bin_PROGRAMS = zardoz foo
  zardoz_SOURCES = x.c
diff --cc t/spell2.sh
index 839e363d56c8acb21e1536dba16ce0a3cb9e5baa,98550afe18b1714ac4f54616fe3b88ed6e6a0a5b..f21f0c6f4f6cce3c17e7008a4cf4631a800fef87
  # 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 to make sure misspellings in _SOURCES variables cause failure.
 +# Test to make sure misspellings in _LDADD variable cause failure.
  
- . ./defs || exit 1
 +required=cc
+ . test-init.sh
  
 -echo AC_PROG_CC >> configure.ac
 +cat >> configure.ac << 'END'
 +AC_PROG_CC
 +AC_OUTPUT
 +END
  
  cat > Makefile.am << 'END'
  bin_PROGRAMS = zardoz
index e71bd812458e6a1091f19b600eea3803d24177fc,7973d92ccf505859a500ccc541583bdfe0f91987..05141b07ea783d99229a4a6fbca9aafa69e9eb00
  # 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_ENABLE_MULTILIB' adds proper text to
 -# the configure help screen.
 +# Verify that iterating variable used in a $(foreach ...) builtin is
 +# only temporary, and restored to its previous variable if it was already
 +# set.
  
- . ./defs || exit 1
 +am_create_testdir=empty
+ . test-init.sh
  
 -cat > configure.ac <<END
 -AC_INIT([$me], [1.0])
 -AM_ENABLE_MULTILIB
 +cat > Makefile <<'END'
 +$(foreach x,1 2,$(warning foo-$(x))$(eval y:=$$(x)))
 +$(foreach u,oops ko,$(warning bar-$(u))$(eval v=$(u)))
 +test:
 +      test .'$(x)' = .
 +      test .'$(origin x)' = .'undefined'
 +      test .'$(y)' = .2
 +      test .'$(v)' = .ko
 +      test .'$(u)' = .ok
 +      test .'$(origin u)' = .'command line'
  END
  
 -cat "$am_top_srcdir"/contrib/multilib/multi.m4 > aclocal.m4
 -$AUTOCONF
 -
 -grep_configure_help --enable-multilib ' many library versions \(default\)'
 +x= y= u= v=; unset x y u v
 +$MAKE test u=ok
  
  :
diff --cc t/spy-phony.sh
index 105a44a9fdd8f91fc6ba4c164046c2536fad2748,6f3b1ee00e28f2eccca0189ee662795050afd7e6..1bd3c10fe62f1322d3eb347ae92f54b10f807778
  # 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 AM_PROG_MKDIR_P macro is deprecated.  It will be
 -# be removed in the next major Automake release.
 +# Check that the '.PHONY' semantics we expect truly hold.
  
- . ./defs || exit 1
 +am_create_testdir=empty
+ . test-init.sh
  
 -echo AM_PROG_MKDIR_P >> configure.ac
 -: > Makefile.am
 -
 -grep_err ()
 -{
 -  loc='^configure.ac:4:'
 -  grep "$loc.*AM_PROG_MKDIR_P.*deprecated" stderr
 -  grep "$loc.* use .*AC_PROG_MKDIR_P" stderr
 -  grep "$loc.* use '\$(MKDIR_P)' instead of '\$(mkdir_p)'.*Makefile" stderr
 -}
 -
 -$ACLOCAL
 -
 -$AUTOCONF -Werror -Wobsolete 2>stderr && { cat stderr >&2; exit 1; }
 -cat stderr >&2
 -grep_err
 -
 -$AUTOCONF -Werror -Wno-obsolete
 -
 -#AUTOMAKE_fails
 -#grep_err
 -AUTOMAKE_fails --verbose -Wnone -Wobsolete
 -grep_err
 -
 -$AUTOMAKE -Wno-obsolete
 +cat > Makefile <<'END'
 +.PHONY: pdir pfile
 +pdir rdir:
 +      echo foo > $@/foo
 +pfile rfile:
 +      echo bar >$@
 +.PHONY: other
 +other:
 +      echo baz >> dummy
 +indirect: other
 +      echo run > $@
 +END
 +
 +: > rfile
 +mkdir rdir
 +$MAKE rdir rfile
 +test ! -s rfile
 +test ! -f rdir/foo
 +
 +: > pfile
 +mkdir pdir
 +$MAKE pdir pfile
 +test "$(cat pfile)" = bar
 +test "$(cat pdir/foo)" = foo
 +
 +$MAKE other
 +test "$(cat dummy)" = baz
 +$MAKE other
 +test "$(cat dummy)" = "baz${nl}baz"
 +
 +echo not run > indirect
 +$MAKE indirect
 +test "$(cat indirect)" = run
 +test "$(cat dummy)" = "baz${nl}baz${nl}baz"
  
  :
index 9a8e47dafc352881a5fa7257fd2ace1e281cdffe,dd1adaa4324d428e08e3dd1de73569f2655763b1..612fde496eb0bd67f1ff2152843b354595017ee0
  # 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 that := definitions work as expected at make time.
 +# Check that the behaviour of the $(wildcard) builtin in corner cases
 +# matches the assumptions done in our recipes.
  
- . ./defs || exit 1
 -required=GNUmake
+ . test-init.sh
  
 -cat >> configure.ac << 'END'
 -AC_OUTPUT
 -END
 +mkdir dir
 +echo dummy > file
  
 -cat > Makefile.am << 'END'
 -BAR := $(FOO)
 -BAZ = $(FOO)
 -FOO := foo
 +cat > Makefile <<'END'
  .PHONY: test
  test:
 -      test x'$(FOO)' = x'foo'
 -      test x'$(BAZ)' = x'foo'
 -      test x'$(BAR)' = x
 +      test x'$(wildcard dir)'    = x'dir'
 +      test x'$(wildcard file)'   = x'file'
 +      test x'$(wildcard dir/)'   = x'dir/'
 +      test x'$(wildcard file/.)' = x''
  END
  
 -$ACLOCAL
 -$AUTOCONF
 -$AUTOMAKE -Wno-portability
 -
 -./configure
  $MAKE test
  
  :
index afeb1fd3c8e6062d3a02b26bda4422b0a61b1cb1,d6f7caf5c21a2a3982eee8e07bf08ee3a9322544..6fe775bfbaffe7947f330d9aca178cd11c76230a
  # 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 to make sure .info-less @setfilename works.
 +# Check that automake rules do not use repeated "-I $(srcdir)" in the
 +# compiler invocation.
  
 -required='makeinfo tex texi2dvi'
 +required=cc
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 +AC_PROG_CC
  AC_OUTPUT
  END
  
Simple merge
diff --cc t/subdir.sh
index fb1e2469c04de932103131d1525d414ef75b67ca,e8719997d66bb3f31fe1ac370efd86253cfc5f17..c33de211ff15edd4960e4ea5e8fbb6dc3f6bfb67
  # 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 to make sure install-sh and mkinstalldirs correctly found in
 -# subdirs.
 +# Test to make sure install-sh is correctly found in subdirs.
  
- . ./defs || exit 1
+ . test-init.sh
  
  mkdir zot
  
Simple merge
Simple merge
index b1f6980b6a47300f7b1e29fdb4ba057486c5149e,d0b05fe3beb9f21c7a2300f5f6bc8c9dbdbfb636..ac18bc270e21f2859277f92a9dc3d5ee5d4e1fd4
  # 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 of subdir objects with C++.
 +# Grepping checks on the use of subdir objects with C++.
 +# See relate test 't/subobj-cxx-grep.sh' for semantic checks.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >> configure.ac << 'END'
 -AC_PROG_CXX
 -END
 +echo AC_PROG_CXX >> configure.ac
  
  cat > Makefile.am << 'END'
 -AUTOMAKE_OPTIONS = subdir-objects
  bin_PROGRAMS = wish
  wish_SOURCES = generic/a.cc generic/b.cxx
  END
diff --cc t/subobj10.sh
index 55776a7228cb391f69ee21cb84634802698c290b,68f0e32b1017618700af8649a6d9d34051aefcfb..880b659efb8a6991be29ec8fd925601b3f78c99a
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# PR 492: Test asm subdir-objects.
 +# PR 492: Test asm subdir objects.
  
  required=gcc
- . ./defs || exit 1
+ . test-init.sh
  
 -cat > configure.ac << END
 -AC_INIT([$me], [1.0])
 -AM_INIT_AUTOMAKE([subdir-objects])
 -
 +cat >> configure.ac << 'END'
  AM_PROG_AS
  AM_PROG_AR
  AC_PROG_RANLIB
diff --cc t/subobj11a.sh
index 615ed6300afafd328ae5f5def86be406acc9dc1d,4bd88630349a87b45dab9e0d1a7e4994bffe0a5a..106d8eb017181ec46200e9ca6a5dc2f91197a0d4
  # 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 that automake works around a bug of Solaris Make. The bug is the
 -# following.  If we have a Makefile containg a file inclusion like this:
 +# If we have a Makefile containing a file inclusion like this:
 +#
  #   include .//foo.mk
 -# Solaris make fails with a message like:
 +#
 +# Solaris 10 make fails with a message like:
 +#
  #   make: ... can't find '/foo.mk': No such file or directory
  #   make: fatal error ... read of include file '/foo.mk' failed
 -# (even if the file 'foo.mk' exists). The error disappear by collapsing
 -# the repeated slash '/' characters into a single one.
  #
 -# See also sister "grepping" test 'subobj11b.sh', and related test
 -# 'subobj11c.sh'.
 +# (even if the file 'foo.mk' exists).  Our dependency tracking support
 +# code used to generate include directives like that sometimes, thus
 +# causing spurious failures.
 +#
 +# GNU make shouldn't suffer from that Solaris make bug, but we check
 +# the problematic setup anyway -- better safe than sorry.
  
  required=cc
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
diff --cc t/subobj5.sh
Simple merge
diff --cc t/subobj8.sh
index cd25f66924c2ffcb66fd47b96a38e0df5af1a609,fe0d0c8881d1db664e8fade12a6d4a3ba5f3f3df..ef0f0d60ad8beea8d3cd9e7eefbbda46b51affbd
  # 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 'compile' is included when subdir-objects is used in a subdir.
 +# Make sure 'compile' is included when subdir objects are used in a
 +# subdir.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat > configure.ac << END
  AC_INIT([$me], [1.0])
diff --cc t/subobj9.sh
index 4b3c4d5fb1402da9bfa5dd9c7234b40faa768619,69675760bce4e921c864aa8dc0ef7939927ff16e..e568c20950d66cedf24a2a13e4ab157799edd0d2
  # forgets '.../<file>.o'.
  
  required='c++ libtoolize'
- . ./defs || exit 1
+ . test-init.sh
  
 -cat > configure.ac << END
 -AC_INIT([$me], [1.0])
 -AM_INIT_AUTOMAKE([subdir-objects])
 +cat >> configure.ac << END
  AC_PROG_CXX
  AM_PROG_AR
  AM_PROG_LIBTOOL
index fe170ef6342d93ba5c7e95a8756a2a70b5df17c6,f05396f74277c41c57b819d885468dfe6321c568..6cb2485129c6954e742fca8ca0d26302ebe9162e
  # properly, when a subpackage is involved.
  
  required='cc yacc'
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >>configure.ac <<'END'
 +cat > configure.ac <<'END'
 +AC_INIT([suya], [0.5a], [automake-ng@gnu.org])
 +AM_INIT_AUTOMAKE([foreign -Wall])
  AC_PROG_CC
 +AC_CONFIG_FILES([GNUmakefile])
  AC_CONFIG_SUBDIRS([lib])
  AC_OUTPUT
  END
diff --cc t/subpkg.sh
Simple merge
diff --cc t/substref.sh
Simple merge
index 7ac4997f61618025557109f874e78a8305daf62c,20656db657d463629fbf41c6d951952914bc716e..91aaea6f29bd425408c6c6bbf46b4f37fe854c34
  # See automake bug#7824 and bug#7670.
  
  required=cc
- . ./defs || exit 1
+ . test-init.sh
  
 -plan_ 8
 -
  cat >> configure.ac <<'END'
  AC_PROG_CC
  AC_OUTPUT
index 83e677dd36974b1ad6ff432fc0f216a6da921d88,15aa56aa985c2472c3f3a05a1333a99633100be9..0d3684bc94a6bcb16a883094a360f3254e75a52a
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Tests that Automake understands suffix rules with renamed objects
 -# and subdir objects.
 -# Reported by Florian Briegel.
 +# Tests that Automake understands suffix-based pattern rules with
 +# renamed objects and subdir objects.  Reported by Florian Briegel.
  
  required=cc
- . ./defs || exit 1
+ . test-init.sh
  
  cat >>configure.ac <<EOF
  AC_PROG_CC
index 070be7439f820ce522962240ab455f99470be1a3,ae49151a61128dd6bd963adcab08cf6347734886..7e70aaafa1c697d7784c40ddbd82d8e9ec5ca47f
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Tests that Automake understands suffix rules with subdir objects.
 -# Reported by John Ratliff.
 +# Tests that pattern rules with subdir objects are understood.
 +# Originally reported by John Ratliff against suffix rules.
  
  required=cc
- . ./defs || exit 1
+ . test-init.sh
  
  cat >>configure.ac <<EOF
  AC_PROG_CC
diff --cc t/suffix-obj.sh
index 38bf38faa601b624b58d3faedbb2793ddb4d358c,ae3399fa8132d02f23152e7d38040ea36c83319c..67ec59762193ea742f8d64a6ad0bdfdf703466e8
@@@ -15,8 -15,9 +15,8 @@@
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Test to make sure that '.o' and '.obj' are handled like '.$(OBJEXT)'.
 -# See also related "grepping" test 'suffix6.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  # $(LINK) is not defined automatically by Automake, since the *_SOURCES
index c0dd3d5dc531c47edba23bf126b9f9a246f66501,df25abb5bb5ad2a1362b950a4a1aebdb808b016c..891f301eb1d0e21ab908d62ec28328e6c846c3c0
  # 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 libtool clean targets exist.
 -# Report from Eric Magnien.
 +# Automake-NG still accepts old-fashioned suffix rules.
  
- . ./defs || exit 1
 -required=libtoolize
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AC_PROG_CC
 -AM_PROG_AR
 -AC_PROG_LIBTOOL
  AC_CONFIG_FILES([sub/Makefile])
  AC_OUTPUT
  END
diff --cc t/suffix.sh
Simple merge
diff --cc t/suffix10.sh
index 6f95391c94badde70d3cb1207ac04981c3e4208a,1f83590eb79954f5971ec2925154d648e1489e70..7e316aea7b05f7f6390689a7e97edeb4ff943d92
  # (related to PR/37)
  
  required='cc libtoolize yacc'
- . ./defs || exit 1
+ . test-init.sh
  
 -plan_ 7
 -
  cat >>configure.ac <<EOF
  AC_PROG_CC
  AC_PROG_YACC
diff --cc t/suffix2.sh
index 802775466a6262f3129ed5eccaaac7f8fc6fbfec,9fc8f2b588e2ff074ded8aee08bec28f442607ec..d343cef3d516f85ca4eb04080b4d7732ded78d03
  # 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 proper suffix rules for C compilation are produced,
 +# Make sure proper pattern rules for C compilation are produced,
  # and only once, even for libtool libraries.
  # See also related test 'suffix.sh'.
 -required=libtoolize
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
diff --cc t/suffix5.sh
Simple merge
diff --cc t/suffix8.sh
index 30bb6e4c2ef18dd30894f292c010b33199e95062,f61a6b094581f0406131e481685ecc0841205967..2cd07c6e4a83b7fc1528aa85288e83121af1f96e
  # From PR/37.
  
  required='cc libtoolize'
- . ./defs || exit 1
+ . test-init.sh
  
 -plan_ 10
 -
  cat >>configure.ac <<'END'
  AM_PROG_AR
  AM_PROG_LIBTOOL
diff --cc t/suffix9.sh
Simple merge
diff --cc t/tags-id.sh
index 9032125fcfa952341ed4604fe5b75fec0d07af78,deeea16be9997eb34c6b3e92e700ad554e588f1e..22d9b613284a43a863003f46aa4a48ccc8ec55fe
  # Test for bug reported by Harlan Stenn: the tags target doesn't work
  # when there are only headers in a directory.
  
- . ./defs || exit 1
 +required=mkid
+ . test-init.sh
  
 +echo AC_OUTPUT >> configure.ac
 +
  cat > Makefile.am << 'END'
  noinst_HEADERS = iguana.h
 +test-id: ID
 +      test -f $(srcdir)/iguana.h
 +      test -f ID
 +check-local: test-id
 +END
 +
 +cat > iguana.h << 'END'
 +#define FOO "bar"
 +int zap (int x, char y);
  END
  
  $ACLOCAL
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/tap-basic.sh
Simple merge
diff --cc t/tap-color.sh
Simple merge
index 32a474a4f16cd075a0a41d4c8b312fcca07f6166,63af43caf8c0a12492e92fdf002c12efa83197f3..b6e722873b03631709c4b14a368b90c7276a232d
  
  # Auxiliary test to set up common data used by many tests on TAP support.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >> configure.ac << END
 -AC_OUTPUT
 -END
 +echo AC_OUTPUT >> configure.ac
  
  cat > Makefile.am << 'END'
  TEST_LOG_DRIVER = $(srcdir)/tap-driver
diff --cc t/tap-deps.sh
index 472ae3d4fb30a4b1e854749ca5dea1a823cfd403,535c58d4879b0f1991e0013a440fe419f97eea47..ad761275b323eb1845c9c340054ba0867cb4e172
  # Basic TAP test protocol support:
  #  - dependencies between test scripts
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat > Makefile.am << 'END'
 -# The tests are *deliberately* listed in inversed order here.
 +# The tests are *deliberately* listed in inverted order here.
  TESTS = c.test b.test a.test
  b.log: a.log
  c.log: b.log
Simple merge
Simple merge
diff --cc t/tap-doc.sh
Simple merge
diff --cc t/tap-doc2.sh
Simple merge
Simple merge
Simple merge
index 7d3e93ac50142533a963d77cbfdb202b4d9d7a92,69c0fe2ea33164b61ad4e88795deadee46f42ee7..c16567907b634f475e13fcf54f5c482ed56df007
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# TAP support:
 -# - RECHECK_LOGS
 +# TAP support: AM_LAZY_CHECK
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat > Makefile.am << 'END'
  TEST_LOG_COMPILER = cat
diff --cc t/tap-log.sh
Simple merge
Simple merge
diff --cc t/tap-more.sh
Simple merge
diff --cc t/tap-more2.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/tap-plan.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index d8de857dd9f1bd1c4fec3c3cce3e7fb133ccaa92,b87d035a171dfa9a745097291a83a815edbb0a20..6d60cc41724d9c53fd2a90575c145703fc7e59c3
  
  # Custom test drivers: try the "recheck" functionality with test protocols
  # that allow multiple testcases in a single test script.  In particular,
 -# check that this still works when we override $(TESTS) and $(TEST_LOGS)
 -# at make runtime.
 -# See also related tests 'test-driver-custom-multitest-recheck.sh' and
 -# 'parallel-tests-recheck-override.sh'.
 +# check that this still works when we override $(TESTS) at make runtime.
 +# See also related tests 'test-driver-custom-multitest-recheck.sh'.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cp "$am_testauxdir"/trivial-test-driver . \
    || fatal_ "failed to fetch auxiliary script trivial-test-driver"
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 73f617b70c826ea4ebf1f618fe90193d86c33e06,3cc7d85ff5d2a37ef912b394c82cc175479529ca..fdfbb974de87a27368f17f9a83565668d9b736cb
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# Expose bug in conditional definition of TEST_EXTENSIONS.
 +# Conditional definition of TEST_EXTENSIONS is supported.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AM_CONDITIONAL([COND], [:])
 -AM_CONDITIONAL([COND2], [:])
 +AC_CONFIG_FILES([sub/Makefile])
 +AM_CONDITIONAL([COND1], [test x"$cond1" = x"yes"])
 +AM_CONDITIONAL([COND2], [test x"$cond2" = x"yes"])
 +AC_OUTPUT
  END
  
 -$ACLOCAL
 +mkdir sub
  
 -cat > 1.am << 'END'
 -TESTS =
 -if COND
 -## lineno 4
 -TEST_EXTENSIONS = .foo
 +cat > Makefile.am << 'END'
 +SUBDIRS = sub
 +TESTS = foo.sh bar.test
 +if COND1
 +TEST_EXTENSIONS = .sh
  endif
  END
  
index ebc3c75ea7af49b56a0d466c5a885a558027e954,3dc417a874c739736b1336b9ee7197c5f3c31101..014589900a10cfb308577df9afe080eb0ae75111
  # 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 'acconfig.h' is automatically distributed if it exists
 -# (at automake runtime).
 -# Related to automake bug#7819.
 +# Make sure that invalid entries in TEST_EXTENSIONS are diagnosed at
 +# make runtime.  See automake bug#9400.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >> configure.ac <<END
 -AC_OUTPUT
 -END
 +echo AC_OUTPUT >> configure.ac
  
 -cat > Makefile.am <<'END'
 -.PHONY: test
 -test: distdir
 -      ls -l $(distdir)
 -      echo ' ' $(DIST_COMMON) ' ' | grep '[ /]acconfig\.h '
 -      test -f $(distdir)/acconfig.h
 +cat > Makefile.am << 'END'
 +TESTS =
 +TEST_EXTENSIONS = mu x1 .foo _ x2
  END
  
 -: > acconfig.h
 -
  $ACLOCAL
 -$AUTOMAKE
  $AUTOCONF
 +$AUTOMAKE -a
  
  ./configure
 -$MAKE test
 +
 +$MAKE 2>stderr && { cat stderr >&2; exit 1; }
 +cat stderr >&2
 +for suf in mu x1 _ x2; do
 +  $FGREP "invalid test extension: '$suf'" stderr
 +done
 +
 +# Verify that we don't report valid suffixes, even if intermixed
 +# with invalid ones.
 +grep 'invalid.*extension.*foo' stderr && exit 1
  
  :
diff --cc t/test-log.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index fb7974c4eb652c4b9ec1a5fb51fc857944181a09,f8302487d8ca6e46182aa56de01b58f265663dc3..9d86e19aa66f1680ea2dd290ebd28cfff34f4358
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -# parallel-tests:
 -#  - non-existent scripts listed in TESTS get diagnosed
 -# See also related test 'test-missing2.sh'.
 +# parallel-tests: non-existent scripts listed in TESTS get diagnosed.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_OUTPUT
Simple merge
index bc8b51de22d04a4b6ca6eb3c2e9c1c1d3a4c47dd,835d53ed8bc4651aa24efe93bd42fc0e4bd507f5..24e2bd1ccc12fa7a8928747f9fe0fba5086368e0
  # 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 'acconfig.h' is *not* automatically distributed when
 -# placed in a subdirectory.
 -# Related to automake bug#7819.
 +# Check parallel harness features:
 +#  - recovery from deleted '.log' and '.trs' files, with parallel make
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >> configure.ac <<END
 -AC_CONFIG_FILES([sub/Makefile])
 -AC_OUTPUT
 -END
 +all= log= trs=
 +for i in 1 2 3 4 5 6 7 8 9 10 11 12; do
 +  all="$all $i" log="$log $i" trs="$trs $i"
 +done
  
 -cat > Makefile.am <<'END'
 -SUBDIRS = sub
 -sub/acconfig.h:
 -      echo target $@ should not be built >&2; exit 1
 -check-local: distdir
 -      ls -l $(distdir)/sub
 -      test ! -f $(distdir)/sub/acconfig.h
 -END
 +echo AC_OUTPUT >> configure.ac
 +echo TESTS = > Makefile.am
  
 -mkdir sub
 +for i in $all; do
 +  echo TESTS += $i.test >> Makefile.am
 +  (echo "#!/bin/sh" && echo "mkdir $i.d") > $i.test
 +  chmod a+x $i.test
 +done
  
 -cat > sub/Makefile.am <<'END'
 -acconfig.h:
 -      echo target $@ should not be built >&2; exit 1
 -check-local:
 -      echo $(DISTFILES) | grep 'acconfig\.h' && exit 1; :
 -      echo $(DIST_COMMON) | grep 'acconfig\.h' && exit 1; :
 -END
 -
 -: > sub/acconfig.h
 +ls -l # For debugging.
  
  $ACLOCAL
 -$AUTOMAKE
  $AUTOCONF
 +$AUTOMAKE -a
  
  ./configure
 +
 +: Create the required log files.
  $MAKE check
  
 +for n in 1 2 5 7 12; do
 +  for suf in log trs; do
 +    rmdir *.d
 +    rm -f *.$suf
 +    $MAKE -j$n check
 +    for f in $all; do
 +      test -f $f.log
 +      test -f $f.trs
 +    done
 +  done
 +done
 +
  :
Simple merge
index 55b2eb42e8e812c138c57ed3b030d121d4866fbd,866b92251c30554dd5ca5c73b12d691101e66eb8..1519c2831186ed21f17f599ef3ac82a52c9b1067
  # Incidentally, this test also checks that the testsuite summary doesn't
  # give any bug-report address if it's not defined.
  
- . ./defs || exit 1
+ . test-init.sh
  
 +expensive_
 +
  for s in trivial-test-driver extract-testsuite-summary.pl; do
    cp "$am_testauxdir/$s" . || fatal_ "failed to fetch auxiliary script $s"
  done
Simple merge
diff --cc t/transform3.sh
Simple merge
index ac52e4ad16e2b68ae6263a4a4271b1234f0e263b,c7ea3120b4a0718404ade59cfc316835685dbf2b..abede4aeae5daf63c2c1cea7d33e2494f24fb225
  # 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 backslash-newline-hash combinations are diagnosed as
 -# comments following a trailing backslash, even when the combination
 -# follows a variable assignment that is preceded by a comment.
 +# Test that automake complains properly when texinfo input files
 +# specify output info files with an invalid extension.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat > Makefile.am << 'END'
 -# initial comment
 -variable = value-before-comment \
 -#
 -
 -# comment
 -SUBDIRS = foo \
 -# bar
 -
 +info_TEXINFOS = foo.texi bar.texi baz.texi
  END
  
 -mkdir foo
 +echo '@setfilename foo.inf'     > foo.texi
 +echo '@setfilename bar'         > bar.texi
 +echo '@setfilename baz.texi'    > baz.texi
 +: > texinfo.tex
  
  $ACLOCAL
  AUTOMAKE_fails
diff --cc t/txinfo.sh
Simple merge
diff --cc t/txinfo17.sh
Simple merge
diff --cc t/txinfo2.sh
Simple merge
diff --cc t/txinfo20.sh
Simple merge
diff --cc t/txinfo21.sh
Simple merge
diff --cc t/txinfo8.sh
Simple merge
Simple merge
index 1c23cf86f356036455f1966adee4a4fd7687a457,79a7b27c801e143600076842472204800c3c7d51..11c0d102106780e71b07abcf13fdf64b6d598913
@@@ -16,8 -16,8 +16,8 @@@
  
  # Test to make sure compiling Vala code really works with recursive make.
  
 -required="pkg-config valac gcc GNUmake"
 +required="pkg-config valac gcc"
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
diff --cc t/vala-libs.sh
index 0eab4feb03dc33199765d1ef42e2e961d8cd9359,c38740f99eab089fc180598924f206fc06fcab70..4469eb8ded3be99e8844f0e80510dc2307bad9e5
@@@ -17,8 -17,8 +17,8 @@@
  # Building libraries (libtool and static) from Vala sources.
  # And use of vapi files to call C code from Vala.
  
 -required="valac cc pkg-config libtoolize GNUmake"
 +required="valac cc pkg-config libtoolize"
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
diff --cc t/vala-mix.sh
index e16c02cd24fcad93394efbb228a2b4b6a5675946,5e2e7ce287ea6e3515ed32ed6aa40f27caf516aa..274d506786cb11f08cd77630e059838fe1022eeb
@@@ -16,8 -16,8 +16,8 @@@
  
  # Vala sources and C sources in the same program.  Functional test.
  
 -required='valac cc GNUmake'
 +required='valac cc'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac <<'END'
  AC_PROG_CC
diff --cc t/vala-mix2.sh
index 7a2d32449771591dbc3d7b40a8ae2466a0995dca,9b2402dec4fc3e8fc577db3926a1490ad8525dfc..753a5d144dbc18d73c239af2e9bcededc9b95dde
@@@ -17,8 -17,8 +17,8 @@@
  # Vala sources, C and C++ sources and C and C++ headers in the same
  # program.  Functional test.  See automake bug#10894.
  
 -required='valac cc c++ GNUmake'
 +required='valac cc c++'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac <<'END'
  AC_PROG_CC
index 347913540e4c37e245fb3afa65be50907c8b965f,c71420ad7719e59d48c750b67e5f17f2de8fead4..19b5570a35cd0467e75c6354d588c8dc4fb1bde6
@@@ -16,8 -16,8 +16,8 @@@
  
  # Vala support with parallel make.
  
 -required='valac cc GNUmake'
 +required='valac cc'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac <<'END'
  AC_PROG_CC
diff --cc t/vala-vapi.sh
index eea61609f4268d5dd61798679cc5d827c7e619fd,f006832a9ddb4bb1d117a039379deb1bab22977b..66d033ed7e2557122339293bed1b452fcb3acef4
@@@ -16,8 -16,8 +16,8 @@@
  
  # Test and that vapi files are correctly handled by Vala support.
  
 -required='valac cc GNUmake'
 +required='valac cc'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac <<'END'
  AC_PROG_CC
diff --cc t/vala-vpath.sh
index 53b13585c425c21e2338348fb59a1fab6d7f5a4e,7428b9765b277d486d413b4160d7c41c26e1da37..ad5acf680eaa08afecbde4fef70728961f5869ed
@@@ -17,8 -17,8 +17,8 @@@
  # Test to make sure vala support handles from-scratch VPATH builds.
  # See automake bug#8753.
  
 -required="cc valac GNUmake"
 +required="cc valac"
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_CONFIG_SRCDIR([hello.vala])
diff --cc t/vala2.sh
index a392a7a4e4748cdcd1fddf0310b52d53bc8c6dee,2543c78e9b7aba9a76ed1a0b727842147dbf2cb4..9103a3fbd88e1771cebdd829d68bdafb5c69ddcd
@@@ -16,8 -16,8 +16,8 @@@
  
  # Test to make sure compiling Vala code really works with recursive make.
  
 -required="pkg-config valac gcc GNUmake"
 +required="pkg-config valac gcc"
- . ./defs || exit 1
+ . test-init.sh
  
  mkdir src
  
diff --cc t/vala3.sh
index ccce705fc0373fe62735dbaa35d3c61b1a00d95a,96135d34e04ba0b2187454b17240b585cd7f71ad..b3712e9e18f200d0f5b32d10a707549bb8bda6f3
@@@ -16,8 -16,8 +16,8 @@@
  
  # Test to make sure compiling Vala code really works with non-recursive make.
  
 -required="pkg-config valac gcc GNUmake"
 +required="pkg-config valac gcc"
- . ./defs || exit 1
+ . test-init.sh
  
  mkdir src
  
diff --cc t/vala5.sh
index 7f5fba231361c70439e01299f39d988fc1bf0358,9cd57f8d156838f4aad28f3c9c2316d3a4c31d1f..94ae7aa013a2a357229a2b9d2cd4f36fc472e4d5
@@@ -16,8 -16,8 +16,8 @@@
  
  # Test per-target flags.
  
 -required="pkg-config valac gcc GNUmake"
 +required="pkg-config valac gcc"
- . ./defs || exit 1
+ . test-init.sh
  
  mkdir src
  
index 36d3dc7367a961a654d28f710900b0511597893f,4878b50abea6691b9ff66c5193e35ed72c552e24..700640089bd3178aa689992ede834d47720d0836
  # 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 for _AM_OUTPUT_DEPENDENCY_COMMANDS grouping bug,
 -# reported by Markus Duft.
 +# Automake do not complain about nor messes up GNU make specific
 +# variable assignments (":=" and "?=").
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >>configure.ac << END
 -AC_PROG_CC
 -AC_OUTPUT
 -END
 +echo AC_OUTPUT >> configure.ac
  
 -cat > Makefile.am << END
 -bin_PROGRAMS = foo
 -foo_SOURCES = foo.c foo.h
 -END
 +unset PREFOO FOO BAR BAZ XFOO XBAZ || :
 +
 +cat > Makefile.am <<'END'
 +PREFOO = bar
 +FOO := foo$(PREFOO)$(XFOO)
 +XFOO = fail
 +BAR ?= barbar
  
 -cat >foo.c << END
 -#include "foo.h"
 +.PHONY: test1 test2
 +test1:
 +      test $(FOO) = foobar
 +      test $(BAR) = barbar
 +test2:
 +      test $(FOO) = foobar
 +      test $(BAR) = rabrab
  END
 -: >foo.h
  
  $ACLOCAL
 -$AUTOMAKE
  $AUTOCONF
 -./configure --disable-dependency-tracking 2>stderr || {
 -  stat=$?; cat stderr >&2; exit $stat;
 -}
 -cat stderr >&2
 -grep shift stderr && exit 1
 +$AUTOMAKE
 +./configure
 +$MAKE test1
 +PREFOO=notseen FOO=notseen BAR=rabrab $MAKE test2
  
  :
diff --cc t/vartar.sh
index 91d8fb9b0ca83a6bcd67667e0768de1b83993e07,384538a468abc236b1fdbaf19d6f8a325bdb23b7..590c9d90055ad8934ff832d9b02356141d185059
  
  # Targets and macros are two different name spaces.
  
- . ./defs || exit 1
+ . test-init.sh
  
  cat > Makefile.am << 'END'
 -install = install
 -install:
 -      $(install) install
 +xinstall = xinstall
 +xinstall:
 +      $(xinstall) xinstall
  END
  
  $ACLOCAL
diff --cc t/vartypos.sh
index 79271633f9cf8eda8feba242c81730bf8bb9d4fe,e8da7e74ca76ab88d96a235e5cd633342b186dac..68f18dbb76293ca75b8b23c6741d0d5f6bc031f5
  
  # Make sure we warn about possible variable typos when we should.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >>configure.ac <<'END'
 +: > ltmain.sh
 +
 +cat >> configure.ac <<'END'
 +m4_define([AC_PROG_RANLIB], [AC_SUBST([RANLIB],  [who-cares])])
 +m4_define([AM_PROG_AR],     [AC_SUBST([AR],      [who-cares])])
 +m4_define([LT_INIT],        [AC_SUBST([LIBTOOL], [who-cares])])
 +LT_INIT
 +AM_PROG_AR
  AC_PROG_RANLIB
  AC_OUTPUT
  END
diff --cc t/version7.sh
Simple merge
diff --cc t/vpath.sh
index 20908104e75ecec966eba9ee282cbb9ec9fa8ebc,a67af17d8b7423b489ca5b398fed6f76cbf313e2..33f6f0aad50706265bdfcb630a4d335e8f10965b
  # Test to make sure VPATH can be overridden.
  # Report from Anthony Green.
  
- . ./defs || exit 1
+ . test-init.sh
  
 +echo AC_OUTPUT >> configure.ac
 +
  cat > Makefile.am << 'END'
  VPATH = zardoz
 +%.bar: %.foo
 +      cp $< $@
  END
  
  $ACLOCAL
diff --cc t/vtexi.sh
Simple merge
diff --cc t/vtexi2.sh
Simple merge
diff --cc t/vtexi3.sh
Simple merge
diff --cc t/vtexi4.sh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/warnopts.sh
index c3be6179851b11ba3a59038eb464a20eff04ce2f,65165b731094f9897da9e592b095c86e66c2c07f..a368f23c51eaaf858f4122b4c0f586bb8cffd83a
  
  # Make sure that we can enable or disable warnings on a per-file basis.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -cat >>configure.ac <<END
 +cat >> configure.ac << 'END'
 +AC_PROG_CC
  AC_CONFIG_FILES([sub/Makefile])
 +AM_CONDITIONAL([COND_FALSE], [false])
  AC_OUTPUT
  END
  
diff --cc t/werror.sh
index d6c6587c1118b9d579c760d2daa4d1a5c58f0006,57f6d648bd463478e42a28e9ff0d26d50177f689..1475e444c9978b7f181dc55cd236d8749cebd1da
  
  # Test to make sure -Werror and --add-missing work together.
  
- . ./defs || exit 1
 +am_create_testdir=empty
+ . test-init.sh
  
 -: > Makefile.am
 -
 -rm -f install-sh depcomp missing mkinstalldirs
 +cat > configure.ac <<END
 +AC_INIT([$me], [1.0])
 +AM_INIT_AUTOMAKE
 +AC_CONFIG_FILES([Makefile])
 +END
  
 +: > Makefile.am
 +test ! -f install-sh    # Sanity check.
  $ACLOCAL
  $AUTOMAKE -Werror --add-missing
 +test -f install-sh      # Sanity check.
 +
 +:
diff --cc t/werror2.sh
index 8b42833adaf9d02a7bda866019abc8e2a0533d09,b1feeff217ec1650e5bc3c63a7e8012c2fd6a5af..b56448d70904ad80c64dafd709baf241b3a9d0aa
@@@ -19,9 -19,9 +19,9 @@@
  # succeed if make is run a second time immediately afterwards.
  # Report from Harlan Stenn.
  
- . ./defs || exit 1
+ . test-init.sh
  
 -echo AC_OUTPUT>>configure.ac
 +echo AC_OUTPUT >> configure.ac
  
  : > Makefile.am
  
diff --cc t/werror3.sh
Simple merge
diff --cc t/xsource.sh
Simple merge
Simple merge
diff --cc t/yacc-basic.sh
Simple merge
Simple merge
Simple merge
diff --cc t/yacc-cxx.sh
Simple merge
Simple merge
diff --cc t/yacc-d-cxx.sh
Simple merge
Simple merge
index 281dcd2769323a134ef9b0d28ad89e41c2fbecba,f20604deeb5412295d362aa4931b93341f806415..af5196a7036788d812f4c75554b34dcb4dcfbac2
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Make sure depcomp does not needlessly update headers and objects
 -# for yacc rules.  This test still fails with FreeBSD make (but passes
 -# with NetBSD make).
 +# for yacc rules.
  
  required='cc yacc'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
index 94919aa40d91357c7b48c69a03805e63aa096875,f6064e7d41d0cccf8785b537bea8607dea11d7bb..3b34065f9d2439422ccd12ccf9d873936b8ac0b6
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Check that VPATH builds and "make distcheck" works with packages
 -# using yacc and the automake 'subdir-objects' option.
 -# Exposes automake bug#8485.
 +# using yacc sources in a subdir option.  Exposes automake bug#8485.
  
  required='cc yacc'
- . ./defs || exit 1
+ . test-init.sh
  
 -# This test is bounded to fail for any implementation that
 -# triggers automake bug#7884.
 -useless_vpath_rebuild && skip_ "would trip on automake bug#7884"
 -
  cat >> configure.ac << 'END'
  AC_PROG_CC
  AM_PROG_CC_C_O
Simple merge
Simple merge
diff --cc t/yacc-line.sh
index f7626b0a9a7fd43bd86331c7ccba69bd0df8f85d,1b2b4848e7401198fcc2f7f9e437b264e17810cd..7f01d7686a1117ec33b4acc677080b2cb6883070
  # See also sister test 'lex-line.sh'.
  
  required='cc yacc'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
 -AC_CONFIG_FILES([sub/Makefile])
  AC_PROG_CC
  AM_PROG_CC_C_O
  AC_PROG_YACC
Simple merge
index 1be007c188794c66ea7547746fc3e7a49f211f8a,78191d9b1b7247a1e617d833187fda36df64844e..8ccf7b80d7e8f5b674b47689be35f326063794c6
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  # Checks for .c and .h files derived from non-distributed yacc sources.
 -# The test 'yacc-pr204.sh' does similar check with AM_MAINTAINER_MODE
 -# enabled.
 -# The tests 'lex-nodist.sh' and 'lex-pr204.sh' does similar checks
 -# for lex-generated .c files.
 +# The test 'lex-sh.test' does similar checks for lex-generated '.c'
  
  required='cc yacc'
- . ./defs || exit 1
+ . test-init.sh
  
  cat >> configure.ac << 'END'
  AC_PROG_CC
Simple merge
Simple merge
diff --cc t/yflags.sh
Simple merge
diff --cc t/yflags2.sh
Simple merge