]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: prefer including 'test-init.sh' rather than './defs'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Oct 2012 14:41:39 +0000 (16:41 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Oct 2012 14:44:28 +0000 (16:44 +0200)
This is a follow-up to today's commit v1.12.4-22-g0610fc8,
"tests: prepare to move ./defs to t/ax/test-init.sh"

* All tests: To run the common setup, use the command:

    . test-init.sh

instead of the older, "historical" one:

    . ./defs || exit 1

Note that the "|| exit 1" wasn't really useful, since the 'errexit'
shell flag is in effect in both './defs' and 'test-init.sh', and all
the known shells that are good enough to run the automake testsuite
do automatically exit with error when a sourced file cannot be found
(at least, they do so in non-interactive mode, which is the only
mode that concerns us in the testsuite).

* t/ax/tap-summary-aux.sh, t/ax/testsuite-summary-checks.sh: Likewise.

* gen-testsuite-part: Do the same in the generated tests.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
1214 files changed:
contrib/t/help-multilib.sh
contrib/t/multilib.sh
contrib/t/parallel-tests-html-recursive.sh
contrib/t/parallel-tests-html.sh
gen-testsuite-part
t/acloca10.sh
t/acloca11.sh
t/acloca12.sh
t/acloca13.sh
t/acloca14.sh
t/acloca14b.sh
t/acloca15.sh
t/acloca16.sh
t/acloca17.sh
t/acloca18.sh
t/acloca19.sh
t/acloca20.sh
t/acloca21.sh
t/acloca22.sh
t/acloca22b.sh
t/acloca23.sh
t/aclocal-acdir.sh
t/aclocal-amflags.sh
t/aclocal-autoconf-version-check.sh
t/aclocal-install-absdir.sh
t/aclocal-install-fail.sh
t/aclocal-install-mkdir.sh
t/aclocal-macrodir.tap
t/aclocal-no-install-no-mkdir.sh
t/aclocal-path-install-serial.sh
t/aclocal-path-install.sh
t/aclocal-path-nonexistent.sh
t/aclocal-path-precedence.sh
t/aclocal-path.sh
t/aclocal-print-acdir.sh
t/aclocal-verbose-install.sh
t/aclocal.sh
t/aclocal3.sh
t/aclocal4.sh
t/aclocal5.sh
t/aclocal6.sh
t/aclocal7.sh
t/aclocal8.sh
t/aclocal9.sh
t/acsilent.sh
t/acsubst.sh
t/acsubst2.sh
t/add-missing.tap
t/all.sh
t/all2.sh
t/alloca.sh
t/alloca2.sh
t/alpha.sh
t/alpha2.sh
t/am-default-source-ext.sh
t/am-macro-not-found.sh
t/am-missing-prog.sh
t/am-tests-environment.sh
t/amassign.sh
t/amhello-binpkg.sh
t/amhello-cflags.sh
t/amhello-cross-compile.sh
t/aminit-moreargs-deprecation.sh
t/amopt.sh
t/amopts-location.sh
t/amopts-variable-expansion.sh
t/amsubst.sh
t/ansi2knr-no-more.sh
t/ar-lib.sh
t/ar-lib2.sh
t/ar-lib3.sh
t/ar-lib4.sh
t/ar-lib5a.sh
t/ar-lib5b.sh
t/ar-lib6a.sh
t/ar-lib6b.sh
t/ar-lib7.sh
t/ar.sh
t/ar2.sh
t/ar3.sh
t/ar4.sh
t/ar5.sh
t/asm.sh
t/asm2.sh
t/asm3.sh
t/autodist-acconfig-no-subdir.sh
t/autodist-acconfig.sh
t/autodist-aclocal-m4.sh
t/autodist-config-headers.sh
t/autodist-configure-no-subdir.sh
t/autodist-no-duplicate.sh
t/autodist-stamp-vti.sh
t/autodist-subdir.sh
t/autodist.sh
t/autohdr-subdir-pr12495.sh
t/autohdr.sh
t/autohdr3.sh
t/autohdr4.sh
t/autohdrdry.sh
t/automake-cmdline.tap
t/auxdir-autodetect.sh
t/auxdir-computed.tap
t/auxdir-misplaced.sh
t/auxdir-nonexistent.sh
t/auxdir-unportable.tap
t/auxdir.sh
t/auxdir6.sh
t/auxdir7.sh
t/auxdir8.sh
t/ax/tap-summary-aux.sh
t/ax/testsuite-summary-checks.sh
t/backcompat-acout.sh
t/backcompat.sh
t/backcompat2.sh
t/backcompat3.sh
t/backcompat6.sh
t/backsl.sh
t/backsl2.sh
t/backsl3.sh
t/backsl4.sh
t/badline.sh
t/badopt.sh
t/badprog.sh
t/block.sh
t/built-sources-check.sh
t/built-sources-cond.sh
t/built-sources-fork-bomb.sh
t/built-sources-install.sh
t/built-sources-subdir.sh
t/built-sources.sh
t/candist.sh
t/canon-name.sh
t/canon.sh
t/canon2.sh
t/canon3.sh
t/canon4.sh
t/canon5.sh
t/canon6.sh
t/canon7.sh
t/canon8.sh
t/ccnoco.sh
t/ccnoco2.sh
t/ccnoco3.sh
t/check-concurrency-bug9245.sh
t/check-exported-srcdir.sh
t/check-fd-redirect.sh
t/check-no-test-driver.sh
t/check-subst-prog.sh
t/check-subst.sh
t/check-tests-in-builddir.sh
t/check.sh
t/check10.sh
t/check11.sh
t/check12.sh
t/check2.sh
t/check4.sh
t/check5.sh
t/check6.sh
t/check7.sh
t/check8.sh
t/checkall.sh
t/clean.sh
t/colneq.sh
t/colneq2.sh
t/colneq3.sh
t/colon.sh
t/colon2.sh
t/colon3.sh
t/colon4.sh
t/colon5.sh
t/colon6.sh
t/colon7.sh
t/color-tests-opt.sh
t/color-tests.sh
t/color-tests2.sh
t/commen10.sh
t/commen11.sh
t/comment.sh
t/comment2.sh
t/comment3.sh
t/comment4.sh
t/comment5.sh
t/comment6.sh
t/comment7.sh
t/comment8.sh
t/comment9.sh
t/comments-in-var-def.sh
t/compile.sh
t/compile2.sh
t/compile3.sh
t/compile4.sh
t/compile5.sh
t/compile6.sh
t/compile_f90_c_cxx.sh
t/compile_f_c_cxx.sh
t/cond-basic.sh
t/cond.sh
t/cond10.sh
t/cond11.sh
t/cond13.sh
t/cond14.sh
t/cond15.sh
t/cond16.sh
t/cond17.sh
t/cond18.sh
t/cond19.sh
t/cond20.sh
t/cond21.sh
t/cond22.sh
t/cond23.sh
t/cond24.sh
t/cond25.sh
t/cond26.sh
t/cond27.sh
t/cond28.sh
t/cond3.sh
t/cond30.sh
t/cond31.sh
t/cond32.sh
t/cond33.sh
t/cond34.sh
t/cond35.sh
t/cond36.sh
t/cond37.sh
t/cond38.sh
t/cond39.sh
t/cond4.sh
t/cond40.sh
t/cond41.sh
t/cond42.sh
t/cond43.sh
t/cond44.sh
t/cond45.sh
t/cond46.sh
t/cond5.sh
t/cond6.sh
t/cond7.sh
t/cond8.sh
t/cond9.sh
t/condd.sh
t/condhook.sh
t/condhook2.sh
t/condinc.sh
t/condinc2.sh
t/condlib.sh
t/condman2.sh
t/condman3.sh
t/confdeps.sh
t/conff.sh
t/conff2.sh
t/conffile-leading-dot.sh
t/confh-subdir-clean.sh
t/confh.sh
t/confh4.sh
t/confh5.sh
t/confh6.sh
t/confh7.sh
t/confh8.sh
t/configure.sh
t/confincl.sh
t/conflnk.sh
t/conflnk2.sh
t/conflnk3.sh
t/conflnk4.sh
t/confsub.sh
t/confvar.sh
t/confvar2.sh
t/copy.sh
t/cscope.tap
t/cscope2.sh
t/cscope3.sh
t/cxx-demo.sh
t/cxx-lt-demo.sh
t/cxx.sh
t/cxx2.sh
t/cxxcpp.sh
t/cxxlibobj.sh
t/cxxlink.sh
t/cxxnoc.sh
t/cygnus-no-more.sh
t/cygwin32.sh
t/dash.sh
t/defun.sh
t/defun2.sh
t/dejagnu-absolute-builddir.sh
t/dejagnu-relative-srcdir.sh
t/dejagnu-siteexp-append.sh
t/dejagnu-siteexp-extend.sh
t/dejagnu-siteexp-useredit.sh
t/dejagnu.sh
t/dejagnu2.sh
t/dejagnu3.sh
t/dejagnu4.sh
t/dejagnu5.sh
t/dejagnu6.sh
t/dejagnu7.sh
t/deleted-am.sh
t/deleted-m4.sh
t/depacl2.sh
t/depcomp-implicit-auxdir.sh
t/depcomp.sh
t/depcomp2.sh
t/depcomp8a.sh
t/depcomp8b.sh
t/depdist.sh
t/depend.sh
t/depend3.sh
t/depend4.sh
t/depend5.sh
t/depend6.sh
t/deprecated-acinit.sh
t/destdir.sh
t/dir-named-obj-is-bad.sh
t/dirlist-abspath.sh
t/dirlist.sh
t/dirlist2.sh
t/discover.sh
t/dist-auxdir-many-subdirs.sh
t/dist-auxfile-2.sh
t/dist-auxfile.sh
t/dist-formats.tap
t/dist-included-parent-dir.sh
t/dist-missing-am.sh
t/dist-missing-included-m4.sh
t/dist-missing-m4.sh
t/dist-pr109765.sh
t/dist-readonly.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/distcheck-writable-srcdir.sh
t/distcleancheck.sh
t/distcom-subdir.sh
t/distcom2.sh
t/distcom3.sh
t/distcom4.sh
t/distcom5.sh
t/distdir.sh
t/disthook.sh
t/distlinks.sh
t/distlinksbrk.sh
t/distname.sh
t/dmalloc.sh
t/doc-parsing-buglets-colneq-subst.sh
t/doc-parsing-buglets-tabs.sh
t/dollar.sh
t/dollarvar.sh
t/dollarvar2.sh
t/double.sh
t/dup2.sh
t/else.sh
t/empty-data-primary.sh
t/empty-sources-primary.tap
t/exdir.sh
t/exdir2.sh
t/exdir3.sh
t/exeext.sh
t/exeext2.sh
t/exeext3.sh
t/exeext4.sh
t/exsource.sh
t/ext.sh
t/ext2.sh
t/ext3.sh
t/extra-portability.sh
t/extra-portability2.sh
t/extra-portability3.sh
t/extra-programs-empty.sh
t/extra.sh
t/extra10.sh
t/extra11.sh
t/extra12.sh
t/extra2.sh
t/extra3.sh
t/extra4.sh
t/extra5.sh
t/extra6.sh
t/extra7.sh
t/extra8.sh
t/extra9.sh
t/extradep.sh
t/extradep2.sh
t/f90only.sh
t/flavor.sh
t/flibs.sh
t/fn99.sh
t/fn99subdir.sh
t/fnoc.sh
t/fonly.sh
t/forcemiss.sh
t/forcemiss2.sh
t/fort1.sh
t/fort2.sh
t/fort4.sh
t/fort5.sh
t/fortdep.sh
t/gcj.sh
t/gcj2.sh
t/gcj3.sh
t/gcj4.sh
t/gcj5.sh
t/gcj6.sh
t/get-sysconf.sh
t/gettext-macros.sh
t/gettext.sh
t/gettext2.sh
t/gettext3.sh
t/gnits.sh
t/gnits2.sh
t/gnits3.sh
t/gnumake.sh
t/gnuwarn.sh
t/gnuwarn2.sh
t/hdr-vars-defined-once.sh
t/header.sh
t/help-depend.sh
t/help-depend2.sh
t/help-dmalloc.sh
t/help-init.sh
t/help-lispdir.sh
t/help-python.sh
t/help-silent.sh
t/help-upc.sh
t/help.sh
t/help2.sh
t/help3.sh
t/help4.sh
t/hfs.sh
t/implicit.sh
t/init.sh
t/init2.sh
t/insh2.sh
t/install-info-dir.sh
t/install2.sh
t/installdir.sh
t/instdat.sh
t/instdat2.sh
t/instdir-cond.sh
t/instdir-cond2.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/instexec.sh
t/instfail-info.sh
t/instfail-java.sh
t/instfail-libtool.sh
t/instfail.sh
t/insthook.sh
t/instman.sh
t/instman2.sh
t/instmany-mans.sh
t/instmany-python.sh
t/instmany.sh
t/instsh.sh
t/instsh2.sh
t/instsh3.sh
t/instspc.tap
t/interp.sh
t/interp2.sh
t/java-check.sh
t/java-clean.sh
t/java-compile-install.sh
t/java-compile-run-flat.sh
t/java-compile-run-nested.sh
t/java-empty-classpath.sh
t/java-extra.sh
t/java-mix.sh
t/java-no-duplicate.sh
t/java-nobase.sh
t/java-noinst.sh
t/java-rebuild.sh
t/java-sources.sh
t/java-uninstall.sh
t/java.sh
t/java2.sh
t/java3.sh
t/javadir-undefined.sh
t/javaflags.sh
t/javaprim.sh
t/javasubst.sh
t/ldadd.sh
t/ldflags.sh
t/lex-clean-cxx.sh
t/lex-clean.sh
t/lex-depend-cxx.sh
t/lex-depend-grep.sh
t/lex-depend.sh
t/lex-header.sh
t/lex-lib-external.sh
t/lex-lib.sh
t/lex-libobj.sh
t/lex-line.sh
t/lex-nodist.sh
t/lex-noyywrap.sh
t/lex-pr204.sh
t/lex-subobj-nodep.sh
t/lex.sh
t/lex2.sh
t/lex3.sh
t/lex5.sh
t/lexcpp.sh
t/lexvpath.sh
t/lflags.sh
t/lflags2.sh
t/libexec.sh
t/libobj-basic.sh
t/libobj10.sh
t/libobj12.sh
t/libobj13.sh
t/libobj14.sh
t/libobj15a.sh
t/libobj15b.sh
t/libobj15c.sh
t/libobj16a.sh
t/libobj16b.sh
t/libobj17.sh
t/libobj18.sh
t/libobj19.sh
t/libobj2.sh
t/libobj20a.sh
t/libobj20b.sh
t/libobj20c.sh
t/libobj3.sh
t/libobj4.sh
t/libobj5.sh
t/libobj7.sh
t/library.sh
t/library2.sh
t/library3.sh
t/libtoo10.sh
t/libtoo11.sh
t/libtool-macros.sh
t/libtool.sh
t/libtool2.sh
t/libtool3.sh
t/libtool4.sh
t/libtool5.sh
t/libtool6.sh
t/libtool7.sh
t/libtool8.sh
t/libtool9.sh
t/license.sh
t/license2.sh
t/link_c_cxx.sh
t/link_cond.sh
t/link_dist.sh
t/link_f90_only.sh
t/link_f_only.sh
t/link_fc.sh
t/link_fccxx.sh
t/link_fcxx.sh
t/link_override.sh
t/lisp-flags.sh
t/lisp-loadpath.sh
t/lisp-pr11806.sh
t/lisp-subdir-mix.sh
t/lisp-subdir.sh
t/lisp-subdir2.sh
t/lisp2.sh
t/lisp3.sh
t/lisp4.sh
t/lisp5.sh
t/lisp6.sh
t/lisp7.sh
t/lisp8.sh
t/lispdry.sh
t/listval.sh
t/location.sh
t/longlin2.sh
t/longline.sh
t/ltcond.sh
t/ltcond2.sh
t/ltconv.sh
t/ltdeps.sh
t/ltinit.sh
t/ltinstloc.sh
t/ltlibobjs.sh
t/ltlibsrc.sh
t/ltorder.sh
t/lzma.sh
t/m4-inclusion.sh
t/maintclean-vpath.sh
t/maintclean.sh
t/maintmode-configure-msg.sh
t/make-dryrun.tap
t/make.sh
t/makefile-deps.sh
t/makej.sh
t/makej2.sh
t/maken.sh
t/maken3.sh
t/makevars.sh
t/man.sh
t/man2.sh
t/man3.sh
t/man5.sh
t/man6.sh
t/man7.sh
t/man8.sh
t/mdate.sh
t/mdate2.sh
t/mdate3.sh
t/mdate4.sh
t/mdate5.sh
t/mdate6.sh
t/missing-auxfile-stops-makefiles-creation.sh
t/missing-version-mismatch.sh
t/missing3.sh
t/mkdir_p.sh
t/mkdirp-deprecation.sh
t/mkinst2.sh
t/mkinst3.sh
t/mkinstall.sh
t/mmode.sh
t/mmodely.sh
t/no-extra-makefile-code.sh
t/no-spurious-install-recursive.sh
t/nobase-libtool.sh
t/nobase-nodist.sh
t/nobase-python.sh
t/nobase.sh
t/nodef.sh
t/nodef2.sh
t/nodep.sh
t/nodep2.sh
t/nodepcomp.sh
t/nodist.sh
t/nodist2.sh
t/nodist3.sh
t/noinst.sh
t/noinstdir.sh
t/nolink.sh
t/nostdinc.sh
t/notrans.sh
t/number.sh
t/objc-basic.sh
t/objc-deps.sh
t/objc-flags.sh
t/objc-megademo.sh
t/objc-minidemo.sh
t/objcxx-basic.sh
t/objcxx-deps.sh
t/objcxx-flags.sh
t/objcxx-minidemo.sh
t/objext-pr10128.sh
t/oldvars.sh
t/order.sh
t/output-order.sh
t/output.sh
t/output10.sh
t/output11.sh
t/output12.sh
t/output13.sh
t/output2.sh
t/output3.sh
t/output4.sh
t/output5.sh
t/output6.sh
t/output7.sh
t/output8.sh
t/output9.sh
t/override-conditional-1.sh
t/override-conditional-2.sh
t/override-html.sh
t/override-suggest-local.sh
t/parallel-am.sh
t/parallel-am2.sh
t/parallel-am3.sh
t/parallel-tests-basics.sh
t/parallel-tests-cmdline-override.sh
t/parallel-tests-concurrency-2.sh
t/parallel-tests-concurrency.sh
t/parallel-tests-console-output.sh
t/parallel-tests-driver-install.sh
t/parallel-tests-dry-run-1.sh
t/parallel-tests-dry-run-2.sh
t/parallel-tests-empty-testlogs.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-interrupt.tap
t/parallel-tests-log-compiler-1.sh
t/parallel-tests-log-compiler-2.sh
t/parallel-tests-log-compiler-example.sh
t/parallel-tests-log-override-1.sh
t/parallel-tests-log-override-2.sh
t/parallel-tests-log-override-recheck.sh
t/parallel-tests-no-color-in-log.sh
t/parallel-tests-no-spurious-summary.sh
t/parallel-tests-once.sh
t/parallel-tests-recheck-depends-on-all.sh
t/parallel-tests-recheck-pr11791.sh
t/parallel-tests-recheck.sh
t/parallel-tests-reset-term.sh
t/parallel-tests-subdir.sh
t/parallel-tests-suffix-prog.sh
t/parallel-tests-suffix.sh
t/parallel-tests-trailing-bslash.sh
t/parallel-tests-trailing-whitespace.sh
t/parallel-tests-unreadable.sh
t/parse.sh
t/per-target-flags.sh
t/percent.sh
t/percent2.sh
t/perf/cond.sh
t/perf/testsuite-recheck.sh
t/perf/testsuite-summary.sh
t/phony.sh
t/pluseq.sh
t/pluseq10.sh
t/pluseq11.sh
t/pluseq2.sh
t/pluseq3.sh
t/pluseq4.sh
t/pluseq5.sh
t/pluseq6.sh
t/pluseq7.sh
t/pluseq8.sh
t/pluseq9.sh
t/posixsubst-data.sh
t/posixsubst-extradist.sh
t/posixsubst-ldadd.sh
t/posixsubst-libraries.sh
t/posixsubst-ltlibraries.sh
t/posixsubst-programs.sh
t/posixsubst-scripts.sh
t/posixsubst-sources.sh
t/posixsubst-tests.sh
t/postproc.sh
t/ppf77.sh
t/pr2.sh
t/pr211.sh
t/pr220.sh
t/pr224.sh
t/pr229.sh
t/pr243.sh
t/pr266.sh
t/pr279-2.sh
t/pr279.sh
t/pr287.sh
t/pr300-lib.sh
t/pr300-ltlib.sh
t/pr300-prog.sh
t/pr307.sh
t/pr401.sh
t/pr401b.sh
t/pr401c.sh
t/pr72.sh
t/pr87.sh
t/pr9.sh
t/prefix.sh
t/primary-prefix-couples-documented-valid.sh
t/primary-prefix-couples-force-valid.sh
t/primary-prefix-invalid-couples.tap
t/primary-prefix-valid-couples.sh
t/primary.sh
t/primary2.sh
t/primary3.sh
t/print-libdir.sh
t/proginst.sh
t/programs-primary-rewritten.sh
t/py-compile-basedir.sh
t/py-compile-basic.sh
t/py-compile-basic2.sh
t/py-compile-destdir.sh
t/py-compile-env.sh
t/py-compile-option-terminate.sh
t/py-compile-usage.sh
t/python-am-path-iftrue.sh
t/python-dist.sh
t/python-missing.sh
t/python-pr10995.sh
t/python-too-old.sh
t/python-vars.sh
t/python-virtualenv.sh
t/python.sh
t/python10.sh
t/python11.sh
t/python12.sh
t/python2.sh
t/python3.sh
t/recurs-user-deeply-nested.sh
t/recurs-user-indir.sh
t/recurs-user-keep-going.sh
t/recurs-user-many.sh
t/recurs-user-no-subdirs.sh
t/recurs-user-no-top-level.sh
t/recurs-user-override.sh
t/recurs-user-phony.sh
t/recurs-user-wrap.sh
t/recurs-user.sh
t/recurs-user2.sh
t/relativize.tap
t/remake-aclocal-version-mismatch.sh
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-all-2.sh
t/remake-am-pr10111.sh
t/remake-deeply-nested.sh
t/remake-deleted-am-2.sh
t/remake-deleted-am-subdir.sh
t/remake-deleted-am.sh
t/remake-deleted-m4-file.sh
t/remake-fail.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-m4-pr10111.sh
t/remake-macrodir.sh
t/remake-maintainer-mode.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-no-makefile.sh
t/remake-subdir-only.sh
t/remake-subdir.sh
t/remake-subdir2.sh
t/remake-subdir3.sh
t/remake-timing-bug-pr8365.sh
t/repeated-options.sh
t/req.sh
t/reqd.sh
t/reqd2.sh
t/rulepat.sh
t/sanity.sh
t/seenc.sh
t/self-check-configure-help.sh
t/self-check-dir.tap
t/self-check-exit.tap
t/self-check-explicit-skips.sh
t/self-check-is-blocked-signal.tap
t/self-check-is_newest.tap
t/self-check-me.tap
t/self-check-report.sh
t/self-check-seq.tap
t/self-check-unindent.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-nested-vars.sh
t/silent-yacc-headers.sh
t/silent-yacc.sh
t/silent.sh
t/silent2.sh
t/silent3.sh
t/silent4.sh
t/silent6.sh
t/silent7.sh
t/silent8.sh
t/silent9.sh
t/silentcxx-gcc.sh
t/silentcxx.sh
t/silentf77.sh
t/silentf90.sh
t/sourcefile-in-subdir.sh
t/space.sh
t/specflg-dummy.sh
t/specflg6.sh
t/specflg7.sh
t/specflg8.sh
t/specflg9.sh
t/spell.sh
t/spell2.sh
t/spell3.sh
t/spelling.sh
t/spy-rm.tap
t/spy.sh
t/src-acsubst.sh
t/stamph2.sh
t/stdinc.sh
t/stdlib.sh
t/stdlib2.sh
t/strictness-override.sh
t/strictness-precedence.sh
t/strip.sh
t/strip2.sh
t/strip3.sh
t/subdir-ac-subst.sh
t/subdir-add-pr46.sh
t/subdir-add2-pr46.sh
t/subdir-am-cond.sh
t/subdir-cond-err.sh
t/subdir-cond-gettext.sh
t/subdir-distclean.sh
t/subdir-env-interference.sh
t/subdir-order.sh
t/subdir-subsub.sh
t/subdir-with-slash.sh
t/subdir.sh
t/subobj-clean-lt-pr10697.sh
t/subobj-clean-pr10697.sh
t/subobj.sh
t/subobj10.sh
t/subobj11a.sh
t/subobj11b.sh
t/subobj11c.sh
t/subobj2.sh
t/subobj4.sh
t/subobj5.sh
t/subobj6.sh
t/subobj7.sh
t/subobj8.sh
t/subobj9.sh
t/subobjname.sh
t/subpkg-yacc.sh
t/subpkg.sh
t/subpkg2.sh
t/subpkg3.sh
t/subpkg4.sh
t/subst-no-trailing-empty-line.sh
t/subst.sh
t/subst3.sh
t/subst4.sh
t/subst5.sh
t/substre2.sh
t/substref.sh
t/substtarg.sh
t/suffix-chain.tap
t/suffix-custom-subobj-and-specflg.sh
t/suffix-custom-subobj.sh
t/suffix.sh
t/suffix10.tap
t/suffix11.tap
t/suffix2.sh
t/suffix3.tap
t/suffix4.sh
t/suffix5.sh
t/suffix6.sh
t/suffix6b.sh
t/suffix6c.sh
t/suffix7.sh
t/suffix8.tap
t/suffix9.sh
t/symlink.sh
t/symlink2.sh
t/syntax.sh
t/tags-pr12372.sh
t/tags.sh
t/tags2.sh
t/tagsub.sh
t/tap-ambiguous-directive.sh
t/tap-autonumber.sh
t/tap-bad-prog.tap
t/tap-bailout-and-logging.sh
t/tap-bailout-leading-space.sh
t/tap-bailout-suppress-badexit.sh
t/tap-bailout-suppress-later-diagnostic.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-driver-stderr.sh
t/tap-empty-diagnostic.sh
t/tap-empty.sh
t/tap-escape-directive-2.sh
t/tap-escape-directive.sh
t/tap-exit.sh
t/tap-fancy.sh
t/tap-fancy2.sh
t/tap-global-log.sh
t/tap-global-result.sh
t/tap-log.sh
t/tap-merge-stdout-stderr.sh
t/tap-missing-plan-and-bad-exit.sh
t/tap-more.sh
t/tap-more2.sh
t/tap-msg0-bailout.sh
t/tap-msg0-directive.sh
t/tap-msg0-misc.sh
t/tap-msg0-planskip.sh
t/tap-msg0-result.sh
t/tap-negative-numbers.sh
t/tap-no-disable-hard-error.sh
t/tap-no-merge-stdout-stderr.sh
t/tap-no-spurious-numbers.sh
t/tap-no-spurious-summary.sh
t/tap-no-spurious.sh
t/tap-not-ok-skip.sh
t/tap-number-wordboundary.sh
t/tap-numbers-leading-zero.sh
t/tap-numeric-description.sh
t/tap-out-of-order.sh
t/tap-passthrough-exit.sh
t/tap-passthrough.sh
t/tap-plan-corner.sh
t/tap-plan-errors.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-badexit.sh
t/tap-planskip-bailout.sh
t/tap-planskip-case-insensitive.sh
t/tap-planskip-late.sh
t/tap-planskip-later-errors.sh
t/tap-planskip-unplanned-corner.sh
t/tap-planskip-unplanned.sh
t/tap-planskip-whitespace.sh
t/tap-planskip.sh
t/tap-realtime.sh
t/tap-recheck-logs.sh
t/tap-recheck.sh
t/tap-result-comment.sh
t/tap-signal.tap
t/tap-test-number-0.sh
t/tap-todo-skip-together.sh
t/tap-todo-skip-whitespace.sh
t/tap-todo-skip.sh
t/tap-unplanned.sh
t/tap-whitespace-normalization.sh
t/tap-with-and-without-number.sh
t/tap-xfail-tests.sh
t/tar-override.sh
t/tar.sh
t/tar2.sh
t/tar3.sh
t/target-cflags.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-no-extra-driver.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-driver-trs-suffix-registered.sh
t/test-extensions-cond.sh
t/test-extensions.sh
t/test-harness-vpath-rewrite.sh
t/test-log.sh
t/test-logs-repeated.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-missing2.sh
t/test-trs-basic.sh
t/test-trs-recover.sh
t/test-trs-recover2.sh
t/tests-environment-and-log-compiler.sh
t/tests-environment-backcompat.sh
t/tests-environment-fd-redirect.sh
t/tests-environment.sh
t/testsuite-summary-count-many.sh
t/testsuite-summary-reference-log.sh
t/transform.sh
t/transform2.sh
t/transform3.sh
t/txinfo-no-clutter.sh
t/txinfo-unrecognized-extension.sh
t/txinfo.sh
t/txinfo10.sh
t/txinfo13.sh
t/txinfo16.sh
t/txinfo17.sh
t/txinfo19.sh
t/txinfo2.sh
t/txinfo20.sh
t/txinfo21.sh
t/txinfo22.sh
t/txinfo23.sh
t/txinfo24.sh
t/txinfo25.sh
t/txinfo26.sh
t/txinfo27.sh
t/txinfo28.sh
t/txinfo29.sh
t/txinfo3.sh
t/txinfo31.sh
t/txinfo32.sh
t/txinfo33.sh
t/txinfo4.sh
t/txinfo6.sh
t/txinfo7.sh
t/txinfo8.sh
t/txinfo9.sh
t/uninstall-fail.sh
t/uninstall-pr9578.sh
t/unused.sh
t/upc.sh
t/upc2.sh
t/upc3.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/vala.sh
t/vala2.sh
t/vala3.sh
t/vala4.sh
t/vala5.sh
t/var-recurs.sh
t/var-recurs2.sh
t/vars.sh
t/vars3.sh
t/vartar.sh
t/vartypo2.sh
t/vartypos.sh
t/version3.sh
t/version4.sh
t/version6.sh
t/version7.sh
t/version8.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-unknown.sh
t/warnings-win-over-strictness.sh
t/warnopts.sh
t/werror.sh
t/werror2.sh
t/werror3.sh
t/werror4.sh
t/whoami.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-clean-cxx.sh
t/yacc-clean.sh
t/yacc-cxx.sh
t/yacc-d-basic.sh
t/yacc-d-cxx.sh
t/yacc-d-vpath.sh
t/yacc-deleted-headers.sh
t/yacc-depend.sh
t/yacc-depend2.sh
t/yacc-dist-nobuild-subdir.sh
t/yacc-dist-nobuild.sh
t/yacc-grepping.sh
t/yacc-grepping2.sh
t/yacc-headers-and-dist-pr47.sh
t/yacc-line.sh
t/yacc-mix-c-cxx.sh
t/yacc-nodist.sh
t/yacc-pr204.sh
t/yacc-subdir.sh
t/yacc-weirdnames.sh
t/yacc4.sh
t/yaccdry.sh
t/yaccpp.sh
t/yaccvpath.sh
t/yflags-cmdline-override.sh
t/yflags-conditional.sh
t/yflags-d-false-positives.sh
t/yflags-force-conditional.sh
t/yflags-force-override.sh
t/yflags-var-expand.sh
t/yflags.sh
t/yflags2.sh

index 3e89bbe6a40cac013d8b402c6262a3eab0fb98dc..7973d92ccf505859a500ccc541583bdfe0f91987 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that our macro 'AM_ENABLE_MULTILIB' adds proper text to
 # the configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index fef1ec2abdd0f87f250f532929d6149596b310a5..bfcdb530bdde662812317703e5ddf0dd46036494 100755 (executable)
@@ -18,7 +18,7 @@
 # Based on a test case from Ralf Corsepius.
 
 required='gcc GNUmake'
-. ./defs || exit 1
+. test-init.sh
 
 mldir=$am_top_srcdir/contrib/multilib
 mkdir m4
index 12d967ecff28cc91674d49025c72373e9d878795..8d038ef911f1e4f020b86f2d80f056483287c6b7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Recursive use of 'check-html'.  See Automake bug#11287.
 
-. ./defs || exit 1
+. test-init.sh
 
 # Try the variants that are tried in check-html.am.
 while :; do
index e7abc66372f4f1f749f0d255db40ad9e7f8cb9f9..120cb784a5f7010e3718f2ae3126a9b7bbeae5ce 100755 (executable)
@@ -18,7 +18,7 @@
 #  - check-html
 #  - recheck-html
 
-. ./defs || exit 1
+. test-init.sh
 
 # Try the variants that are tried in check-html.am.
 while :; do
index 96f43ccae5e12256a8a422970a165c6113086ce8..59fbf05a5a113c7d26cf1b37ba0246020d08f3eb 100755 (executable)
@@ -380,7 +380,7 @@ foreach my $lt (TRUE, FALSE)
               # Automatically generated test.  DO NOT EDIT BY HAND!
               @vars_init
               required="@required"
-              . ./defs || exit 1
+              . test-init.sh
               plan_ $planned
               . depcomp.sh
               exit \$?
index d1203521453898a08b587ddc88cc20e058c93920..b7d350bd0417ad59825fe960dfaff5dd857338ad 100755 (executable)
@@ -24,7 +24,7 @@
 # TODO: puts third-party macros directly into 'acdir'.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index 3db8508ab117237cdecbd49e12013c31718b3568..f24d4edbdd87bf201fd7728916040c5f06e7a8f8 100755 (executable)
@@ -18,7 +18,7 @@
 # directory, the macro from the lexically greatest file is used.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index 01acb028138bbacbd632ecb11751e63855698f68..d0d4016b62581a1d525a83afeb5fe2023cb5eb69 100755 (executable)
@@ -19,7 +19,7 @@
 # Same as acloca11.sh, but without calling MACRO2.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index bffd4f1f6c7c2644e144a55b0c1e1340657781fa..cb4c8f695b0cfb2e64c5fd5ea034054aac24d0e8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure changes to m4_included files also cause aclocal.m4 to change.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 m4_include([somefile.m4])
index cc6521441417950bc098c20fcba2cdae558953d6..c84023d724460d7991044e9db7dc3b770db0c2fb 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure m4_included files are also scanned for definitions.
 # Report from Phil Edwards.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_MACRO_DIR([defs])
index eb9105dde7ffe5b4da0d1a512c0740254dc940f1..31a05409b1f975722f608a32cdeda8aa340dbc1f 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure m4_included files are also scanned for definitions.
 # Report from Phil Edwards.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_LIBTOOL
index 38c6e3e665e910e2e5f7679f5ddaa69a2beb886e..4ce34abba6910a7fbd83610c3e106159796df23d 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/319.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 # Start macros with AM_ because that causes aclocal to complain if it
 # cannot find them.
index a702f27296da2c3772aa4080afa465582c2c7200..8387439d740112546d7bf45de66cfa932991c03e 100755 (executable)
@@ -18,7 +18,7 @@
 # evaluated.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_SUBST([POM])
index a15cd57a73364275093ca845c4d62b86cd592964..ed8fc322a2058f172710e906f13e6f20c3654f39 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure aclocal report unused required macros.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index 8bdbd5689f08ebead5ee049f81b8b6e87876f50c..2e1cbb5fe130372898e4672c69eb9f77ac198b31 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for --install with #serial numbers.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index c6d23520ebaa894df90fe68586ad0f2619d7ea08..502bc6979569593631c2c7bb98d923c9ca432b58 100755 (executable)
@@ -18,7 +18,7 @@
 # more than just variable definitions.
 # Report from Peter Breitenlohner (PR/450).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<'END'
 AC_INIT([acloca19], [1.0])
index b5881d67fdc31bd707219fd2e3990939118f7eb7..c381dd78f991c5d9f0876e024b0e0118299b8d7e 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure aclocal does not write into symlinked aclocal.m4.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 echo 'm4_define([FOO], [wrong foo])' > foo.m4
 echo 'm4_define([FOO], [right foo])' > acinclude.m4
index 2aca3f9254178749ece04286a5ba62c11c905aeb..812f99b2190e39db90ce6bfb0767b56de3353456 100755 (executable)
@@ -20,7 +20,7 @@
 # an Autoconf macro.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 dnl m4_include(__some_really_bogus_nonexistent_file__.m4)
index ea76579d9426277bdec66c160e68fc8b080bf3a2..1faf212284391f324041b09bda87bdcfcc82fd4a 100755 (executable)
@@ -18,7 +18,7 @@
 # dependencies.  See also related the tests 'remake-deleted-m4-file.sh'
 # and 'remake-renamed-m4-macro-and-file.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_CONFIG_MACRO_DIR([.])
index 0317b120c22c1161e224790521c7f33ff35ab110..f2806991befc1517ce60efc82c21016e05487338 100755 (executable)
@@ -19,7 +19,7 @@
 # NOTE: this test works by using the obsolete 'ACLOCAL_AMFLAGS' make
 # variable; see sister test 'acloca22.test' for a modern equivalent.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 FOO
index 2366fc40b33ac91d2c88e1f0294bf04caff985b9..071ddae33885e619d0f44bd6bf2db97a5dd3c1f6 100755 (executable)
@@ -17,7 +17,7 @@
 # Ensure we diagnose underquoted AC_DEFUN's.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index ac5de4cac90784a3fa7dd76b1fb90849ee97e9e7..59182bbf5dbe02b6171c1b08992e17f2a04517db 100755 (executable)
@@ -18,7 +18,7 @@
 # check that stuff in the automake acdir takes precedence over stuff in
 # the system acdir.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir am sys
 
index 47bf1351abcbb65438e5f1b6bfc3cdfde66f1a67..49bcf5f373ac4bccf5e1f880e94902aebbefefcb 100755 (executable)
@@ -18,7 +18,7 @@
 # Makefile.am still works.  Remove this test once support for this
 # obsolescent idiom is removed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 MACRO_FOO || AS_EXIT([1])
index 8e02ae999d6bcdd122621a5dca26a0c5abe059bf..f5d8101659b7464f3bcf999c4229300448a96d79 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure autoconf version checks in aclocal.m4 are robust.
 
 am_create_testdirs=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 m4_define([AC_AUTOCONF_VERSION], [9999a])
index ada83c229eb461e3973a077c736f7783ba28e36d..450bc74519912035dc6d6e83fdca65c43b61b316 100755 (executable)
@@ -19,7 +19,7 @@
 # ACLOCAL_PATH variable, it is clear that this is the right thing
 # to do.  See also automake bug#8407.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir loc sys
 
index 99fa77ab6cfcc856b7e793442713914c4df651f8..f0cb57320fba815b2c72f3b6986b983e6ba34bf5 100755 (executable)
@@ -19,7 +19,7 @@
 
 am_create_testdir=empty
 required=ro-dir
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 43eec37523b6223e6d1455c1a4aa26eba184418e..57bfd69b3e3dcba30179161123877d6ae1f852f8 100755 (executable)
@@ -19,7 +19,7 @@
 # FIXME: this is a good candidate for a conversion to TAP.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index c35d9e002094bf519f32e74c40417d8eaa9969e0..3daedadc9641ce948f580d9a93b1fd61c749e320 100755 (executable)
@@ -18,7 +18,7 @@
 # aclocal.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 plan_ later
 
index 5b47768774f89db2e45bbb0942aaa4ad5dbd10bf..58dafb998132ff3d14fd0ca53b5454d5b697c5c9 100755 (executable)
@@ -18,7 +18,7 @@
 # if the '--install' option is not given.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 683845ced7c05bb877de4476bf1658901a63ec51..c3f0c8a5662140a19b46dd60812ed853da0bbde7 100755 (executable)
@@ -18,7 +18,7 @@
 # are involved.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index ccad30b20ff5213ff1556f024dbc55f1cb3f6cf5..eb10f99f417200ca27f82fc6c309990b7763f1ad 100755 (executable)
@@ -17,7 +17,7 @@
 # ACLOCAL_PATH and '--install' interactions.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index ad8d5b7ca499c5eb5a43266c086a860892a0ad65..df1bae1dd7e4bcc5059f0006452dc6ffd10ec140 100755 (executable)
@@ -17,7 +17,7 @@
 # Non-existent directories in ACLOCAL_PATH are ok.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index 220533ef40de8109f7bb2dca7c138aa4aadc51f1..054523178f07127404aef45328a9240d1c894641 100755 (executable)
@@ -17,7 +17,7 @@
 # Check precedence rules for ACLOCAL_PATH.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([foo], [1.0])
index c22a7c4bcb0ab334ee678609b0574daccf59eac6..a4ee3ee17a6981dbc2b2b916227a5b3c166742c8 100755 (executable)
@@ -17,7 +17,7 @@
 # Check basic ACLOCAL_PATH support.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index c5a8eb5eae528247457d7fa99d1e05dc67ca471c..440bb723517181039f24fcb853e456638e675235 100755 (executable)
@@ -17,7 +17,7 @@
 # Test on aclocal's '--print-ac-dir' option.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 $ACLOCAL --print-ac-dir
 test "$($ACLOCAL --print-ac-dir)" = "$am_system_acdir"
index 27fa0c5baa4e0a738c43676adfeb385de552ff40..b598bb89a6703564bfa2d322e1d80620883b0884 100755 (executable)
@@ -17,7 +17,7 @@
 # Check verbose messages by 'aclocal --install'.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index d99da5ff82a43c611764c0727edd78987a926269..3234496b79629bfdddc80b9f48c0cc2b5746de65 100755 (executable)
@@ -17,7 +17,7 @@
 # Test on some aclocal options.  Report from Alexandre Oliva.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 echo "AC_INIT([$me], [0]) AM_INIT_AUTOMAKE" > configure.ac
 
index 03aa42d8b0fdf29c483a590af44fb66a4f50a51f..ce93251dade99b85c6d142293fd823e559c36d76 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure include of include detects missing macros
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_INIT([$me], [1.0])
index e542c5326029a2c7dff94f96c58fda475299d577..3e77d9e063b1b702afb4990521c8dccf37860792 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Jim Meyering.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_CONFIG_MACRO_DIR([m4])
index a337986994434256be63a35d7e8aa1541052cafd..947311475b856472dadd86227dc1290f0413defd 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that aclocal.m4's dependencies are honored in
 # sub-directories.  See also related tests 'remake-subdir*.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_MACRO_DIR([m4])
index 80c918a85bbf8a8e1e91f084289583560d806e34..97b748243da6dc3900f4acfb84c8e477c820c3d6 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure aclocal.m4 is rebuilt whenever a configure
 # dependency changes.  Test for acinclude.m4 and VPATH too.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 SOME_DEFS
index c050b07d1f1859691e14d9fae6bf3a940b905809..9f246143e28fa584308e80cea06d8370ff931249 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure aclocal does not overwrite aclocal.m4 needlessly.
 # Also make sure automake --no-force does not overwrite Makefile.in needlessly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 SOME_DEFS
index a242fca36cfdd77df1b78d287ee12b02379e27b5..9f2d1db81bf55e43a5b496ec2fba98ab749ac0a5 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure aclocal does not require unused macros.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index bcdd6f4775d92621a3d5d12d98e442aceb0cfbf2..bcdecb0223dda8edf892ecfc15faf68e24452e92 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure aclocal define macros in the same order as -I's.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
index 92c43002a4987d525908933e74d9347bcd954304..2200d7da6390ea6ddae5cbdca3dd1fabfa81f84c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure there are no spurious acinclude warnings.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<EOF
 AC_INIT([$me], [1.0])
index 19dfbdfc17c2919385cdab786210b678a6844ad4..4081f66fb0ef6d8d8942ac94dcd9b92f6c1ffc60 100755 (executable)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ea7749c37f6a370e2684e095f5b1007c47313b94..da858fd793baa77ba28092d96a409735a1904fdb 100755 (executable)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f15657acb1706f69598bc72186be4a56fb090da8..ac8c763c58fa93150f9a65b1cd952e780def39d8 100755 (executable)
@@ -20,7 +20,7 @@
 # default, but copied if the '--copy' option is used.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 plan_ "later"
 
index 3797acf3f814e8ba29cc2810c4fa556b867f6b4f..0a0216c2394f7a4bbf24e58b397d624e8ebed877 100755 (executable)
--- a/t/all.sh
+++ b/t/all.sh
@@ -16,7 +16,7 @@
 
 # Test to make sure several *-local's in a single rule work.
 
-. ./defs || exit 1
+. test-init.sh
 
 targets='all install-exec install-data uninstall'
 echo "$targets:" | sed -e 's/[ :]/-local&/g' > Makefile.am
index 879cdfcee9096e55d6f9758c56acfdab41842f22..7c9ab324524b222cff3fe85e44f3f837e2aaa321 100755 (executable)
--- a/t/all2.sh
+++ b/t/all2.sh
@@ -16,7 +16,7 @@
 
 # Test to make sure all-local and other -local targets work correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 $ACLOCAL
 
index e054dd4f89fb893322917f513e86aa8afbc0b46e..aa436ff7e3562de85859fa71126087bc9d929f75 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we complain if @ALLOCA@ is used without being set in configure.ac
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AM_PROG_AR
index 38d2cf84fc4476312a81e2ff188119ae015ca6df..6410344a3e235f925dc5e9d4f78908138e58dbe7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we complain if @LTALLOCA@ is used without being set in configure.ac
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index b1315f0b75180b44313fb4364d580c6b7f6817ed..d8dc30a8466b1b0665516be93cd4d79e27685a33 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure README-alpha is distributed when appropriate.  Report from
 # Jim Meyering.
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([alpha], [1.0a])
index 86f60b9c24f4ce63e6051db58f2afa99d9a2aaea..318b1c9496c51d6d8bd69bbf6a0eee0f08705928 100755 (executable)
@@ -17,7 +17,7 @@
 # Another check for README-alpha support.  This time it is requested
 # from configure.ac.  Report from Akim Demaille.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([alpha], [1.0b])
index 4e0fed89359fc547feb8a026a4ccbc35df804430..ec91a19be06cdd2f4eaa95112c0ea1289b6d5f52 100755 (executable)
@@ -17,7 +17,7 @@
 # AM_DEFAULT_SOURCE_EXT
 
 required='cc c++'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 038dabfe9668e1f5b894252ef88998abf940dd7b..37e6959bc39ad53aeb413cce99dee2b7ea05e42d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to see if aclocal correctly reports missing AM_ macro.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AM_ZARDOZ >> configure.ac
 
index e16529dbadafd899427554b37cceb836eb6014be..08fc455f2767b769b7b60d41f396a17e29ab741b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test AM_MISSING_PROG.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AM_MISSING_PROG([NO_SUCH_COMMAND],    [am-none-none])
index e8fbbe38d61edc07fed042f9b838795aba1331a9..eff785013384621e35a4e5fe5f86b15499fdc5db 100755 (executable)
@@ -17,7 +17,7 @@
 # parallel-tests: check AM_TESTS_ENVIRONMENT support, and its
 # interactions with TESTS_ENVIRONMENT.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_MKDIR_P
index 555e3f4b64ac45d1718a42f17e13c8aeecafdd0c..96ec96d07e1c59f6976990d346b1d1e6a97cec45 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to see if AM_ name can be assigned to in configure.ac.
 # Report from Steve Robbins.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CFLAGS=foo
index c1d2575eecb21b1d14c69e39612eee70ff1c3a1a..c87717c742702f7f7ed2a603a0475b2c68586ba2 100755 (executable)
@@ -18,7 +18,7 @@
 # using DESTDIR to build simple, no-frills binary packages.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_docdir"/amhello-1.0.tar.gz . \
   || fatal_ "cannot get amhello tarball"
index a120d81109dbafed6d645f37089647807aa98241..60137899904f97aa68274a6489b45eec6deb65cf 100755 (executable)
@@ -20,7 +20,7 @@
 
 am_create_testdir=empty
 required=gcc
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_docdir"/amhello-1.0.tar.gz . \
   || fatal_ "cannot get amhello tarball"
index d4476570f815fbadf5a83342779766fad703f2a3..c4992d491eeef883eecefcec942a26e53f9e76af 100755 (executable)
@@ -19,7 +19,7 @@
 
 am_create_testdir=empty
 required=i586-mingw32msvc-gcc
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_docdir"/amhello-1.0.tar.gz . \
   || fatal_ "cannot get amhello tarball"
index a8d4605e2fe26c08551ec07bbafbb99cd821afc0..99ac969d163684a19bcf54e6d532978d6a67dd23 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that automake warns against old-style usages of AM_INIT_AUTOMAKE
 # (i.e., calls with two or three arguments).
 
-. ./defs || exit 1
+. test-init.sh
 
 warn_rx='AM_INIT_AUTOMAKE.* two-.* three-arguments form.*deprecated'
 
index 5d6005de563d2ecced27a239780114d2765c20a2..7b4a933015c850a9a8c51dd27010977cce433a3b 100755 (executable)
@@ -17,7 +17,7 @@
 # Make Automake diagnose a conditional AUTOMAKE_OPTIONS.
 # Report from Bas Wijnen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AM_CONDITIONAL([COND], [true])
index c0d471a00739f1e09de31edc35e473edbcedb601..0f489a4ba72ca1c5ffeeeb75af49bc1fd75c7a62 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that errors about AUTOMAKE_OPTIONS refers to correct
 # locations.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 # comment \
index bc0daea286d0a0643403388c150ebbaa521cdf41..d63b5f0fa07a145cb9124f64559be2a1ef5ae927 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that AUTOMAKE_OPTIONS support variable expansion.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want complete control over automake options.
 AUTOMAKE=$am_original_AUTOMAKE
index 49d50c1e0572f6ffdc1af05130d47e47481e2786..c2299243487da0cdf2aa5cab602b26385d8b49d2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check for _AM_SUBST_NOTMAKE.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([backslash], "\\")
index 5387d20fb09516a0e71d27e9b1c82d5836752ea6..e28e65106f595c6d15caf11a4da3bdc7599fd2c3 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that any attempt to use the obsolete de-ANSI-fication support
 # is diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 warn_rx='automatic de-ANSI-fication.*removed'
 
index c6f6a3c88ee3b8049dbc5a5698334af3c643fe86..e7ca34c5b90304f6c35ddd48fcf9038701a9cc11 100755 (executable)
@@ -18,7 +18,7 @@
 
 am_create_testdir=empty
 required=xsi-lib-shell
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script ar-lib
 
index da2b5ca581285f650e6941dbba4f4500943aa7b4..df5332d9d6311c047bf20716db4c562b8b45e1a5 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test if AM_PROG_AR installs ar-lib.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 513808aa2affb8d5069a56554b4518a74b4b95f4..77a8db9f2dde7c9b65a8877c698ed846aff5679e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test if lib_LIBRARIES requests AM_PROG_AR.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2bd93aa902d226df9083dc34125714c60e59e968..0bd51498c2ac15686b10b1a5887ba9ba19dc3c98 100755 (executable)
@@ -17,7 +17,7 @@
 # Test if lib_LTLIBRARIES requests AM_PROG_AR.
 
 required=libtoolize
-. ./defs || exit 1
+. test-init.sh
 
 cp configure.ac X
 
index a11e218f72994cd2401b6f1eff0463f8a8e018ef..6f800e601f5927029835d454e8266e6207b4371a 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep this test in sync with sister test 'ar-lib5b.sh'.
 
 required=lib
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index a3007602c35e63e4e937ed6c6ff19cbe8a0e1ead..fcf45b9ceefa0e14b7a3932dea7e4c47325fd2d7 100755 (executable)
@@ -18,7 +18,7 @@
 # This test does not require Microsoft lib.
 # Keep this test in sync with sister test 'ar-lib5a.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 7ee5257c1d67d29385b18c0e5aee206b1232d981..86b8c991cda07bbe5e99660a00da609ee9881da9 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this test in sync with sister test 'ar-lib6b.sh'.
 
 required=libtoolize
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 92709f8512347bdda44c2e29ee0a27e48abb7c99..e402b63dc96030c6cf88dad5d4284c24dd9de184 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this test in sync with sister test 'ar-lib6a.sh'.
 
 required=libtoolize
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c27cabf47b52ba01e9234da8f86918c4ac89c9ed..dd7d4a73814788ff6214f4c29e14ae56e7f4676c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test if automake warns if ar-lib is missing when AM_PROG_AR is used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR
diff --git a/t/ar.sh b/t/ar.sh
index da01d75377b6dc5624e9a3d0729e5f0d2c6d0e3a..5aa16812fa020455f82c6b0f55ebdd6cc590db84 100755 (executable)
--- a/t/ar.sh
+++ b/t/ar.sh
@@ -16,7 +16,7 @@
 
 # Make sure that AR, ARFLAGS, and RANLIB can be substituted from configure.ac.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR
index 88e90ca02ffe48b5003ff832560706bd79c23d96..bcda001e17d8a295c4b38c2dd8f405922cb7bc91 100755 (executable)
--- a/t/ar2.sh
+++ b/t/ar2.sh
@@ -17,7 +17,7 @@
 # Make sure AR and ARFLAGS are defined for EXTRA_LIBRARIES.
 # Report from Kevin Ryde.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f8bf855e9c66ea7ef8cebe4b4789e83617da0d7c..3b3ab4e740db5579d5e647768430a89df37758d5 100755 (executable)
--- a/t/ar3.sh
+++ b/t/ar3.sh
@@ -17,7 +17,7 @@
 # Make sure that AR, ARFLAGS, etc. works also when the macro AM_PROG_AR
 # is used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index dc82605b8fdfafba9118e863e16b58be0bbc8d50..15c59138b3c56e5a90fc7c8ce652612a4acd4fbf 100755 (executable)
--- a/t/ar4.sh
+++ b/t/ar4.sh
@@ -16,7 +16,7 @@
 
 # Test if configure bails out if $AR does not work and AM_PROG_AR is used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR
index 50cf2b0ba406fad2a59560edf11c3c0e0c939864..90c4f963ea8f113936390be702c56eacca778570 100755 (executable)
--- a/t/ar5.sh
+++ b/t/ar5.sh
@@ -16,7 +16,7 @@
 
 # Test the optional argument of AM_PROG_AR.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR([
index 48df68b2ce8e12ea168e59b88a30dda554470b71..0ce4d07e94de78035a624b4de52ead800553c079 100755 (executable)
--- a/t/asm.sh
+++ b/t/asm.sh
@@ -17,7 +17,7 @@
 # Test of basic assembly functionality.
 # Keep this in sync with sister tests 'asm2.sh' and 'asm3.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.stub
 
index d62cb60b847503a728e5bd71188ffbec980638a9..29ab10bf0af5635598122bb3525a7721fded1ea0 100755 (executable)
--- a/t/asm2.sh
+++ b/t/asm2.sh
@@ -17,7 +17,7 @@
 # Test of basic preprocessed assembly functionality.
 # Keep this in sync with sister tests 'asm.sh' and 'asm3.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.stub
 
index 67bb876a653bcdcc50602b43b1b05361525a0cde..8044c0829f3632c261affda2bccecf3e60c85a68 100755 (executable)
--- a/t/asm3.sh
+++ b/t/asm3.sh
@@ -17,7 +17,7 @@
 # Test of basic preprocessed assembly functionality with extension '.sx'.
 # Keep this in sync with sister tests 'asm.sh' and 'asm2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.stub
 
index 474e05fa2e9613efa2531032b159b68f9b5ef3dc..835d53ed8bc4651aa24efe93bd42fc0e4bd507f5 100755 (executable)
@@ -18,7 +18,7 @@
 # placed in a subdirectory.
 # Related to automake bug#7819.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_CONFIG_FILES([sub/Makefile])
index 98db0a6cdd8b16d24429ec8a97f2193ef594c3b8..3dc417a874c739736b1336b9ee7197c5f3c31101 100755 (executable)
@@ -18,7 +18,7 @@
 # (at automake runtime).
 # Related to automake bug#7819.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index a61d804e96771acafb89d17627de6e10ba7af414..582171dfe09bd0282c05ea6f234537e12c504dc4 100755 (executable)
@@ -21,7 +21,7 @@
 # remove this test.
 # Related to automake bug#7819.
 
-. ./defs || exit 1
+. test-init.sh
 
 { echo 'm4_include([defs.m4])'
   cat configure.ac
index ad61fd667a5944fab416ff248051fef6dabfa825..ab86e8b5ec06b905fc9344fb87f08f043d6e732a 100755 (executable)
@@ -19,7 +19,7 @@
 # exist at automake runtime.
 # Related to automake bug#7819.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_CONFIG_HEADERS([config.h sub/config.h cfg2.h:conf2.hin])
index a48a0a76c4bd7c8c88461d71ae68c5dbfb770e08..8fd325beb2bf44c3177b40f224933a6a682cd5ee 100755 (executable)
@@ -18,7 +18,7 @@
 # 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])
index 58742ceb5a9111271bfc26aab6dc12e198cd9365..20b3caf6c1c1bb83d1309a943241f59a9c6cdbcb 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that there are no duplicates in the list of files automatically
 # distributed by automake.
 
-. ./defs || exit 1
+. test-init.sh
 
 re='Files .*automatically distributed.*if found'
 
index 6d8b02d150a316a44ed237cd6546cf7c30cdd46a..d8e2efda2c4da00d8e38090e57ceef4078b775bc 100755 (executable)
@@ -19,7 +19,7 @@
 # Related to automake bug#7819.
 
 required=makeinfo
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << END
 AC_OUTPUT
index 9af7128acf821db3f822e42105ad9efb65c944bf..0ca57dc409b41667f35ce4e5c398c74a77667de0 100755 (executable)
@@ -24,7 +24,7 @@
 #
 # Keep this test in sync with sister test 'autodist.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub/Makefile])
index 2e591de384363f7871216c500069124a5c873fd1..9834508ed3130b8e8bbb6e853bb6dc3a5cf26e03 100755 (executable)
@@ -20,7 +20,7 @@
 # Keep this test in sync with sister test 'autodist-subdir.sh'.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 77d2522bcc05eacb4c20a23e7bcb48495d6323b9..7517fd575fb2292cbcf9117a9693241581b516ac 100755 (executable)
@@ -18,7 +18,7 @@
 # remake rules for AC_CONFIG_HEADERS arguments after the first one,
 # not even when subdirs are involved.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([a.h b.h sub/c.h])
index 19daabeed35672cb112c4459245286eed75ec5c7..4079c7c574a07bea726156123074c50e199bd01b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that autoheaders works, despite our AC_CONFIG_HEADERS hack.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_CONFIG_HEADERS([thisfile.h])
index 0fccc535a8ed60072c6dfbb8888b20f1602b03bc..93ef52ec293669dc2b3eaef7e9b5c43ba39e3340 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check rebuild rules for autoheader.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 m4_include([foo.m4])
index fa1f8f0f6f9c299be8013ae276f489623519ee1a..6f46aaf653129b78d2d9267f1958a946d59702e8 100755 (executable)
@@ -18,7 +18,7 @@
 # (This should also work without GNU Make.)
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_PROG_CC
index af6c198d134ae2cbd3289b91670c676e0e45882e..0a9acd36e4208c9bbb12dc54eac8aad856224728 100755 (executable)
@@ -17,7 +17,7 @@
 # Removal recovery rules for AC_CONFIG_HEADERS should not remove files
 # with 'make -n'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_CONFIG_HEADERS([config.h])
index dd8b30a480276e0a54f937077aa0082f36815cfc..eb8bf78ff157e44cb15fca557ed11eed7766eccc 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test Automake's command-line options.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 17
 
index 654a30348f7b10e23a9727be8d923de4157ce559..580f631e358435c8657dedff5b75310fa6a3cd13 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that, if AC_CONFIG_AUX_DIR is not specified, Automake tries
 # to use '.', '..' and '../..', in precisely that order.
 
-. ./defs || exit 1
+. test-init.sh
 
 nil=__no_such_program
 
index 95d1003a1feac3b9635ba52bb65a6cebead86147..324d8256fcaf855e50f8695a1989551b9aca5ad6 100755 (executable)
@@ -17,7 +17,7 @@
 # It should be possible to use a computed auxdir.  This might seem
 # bizarre, but it is actually used in multilib builds.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 3
 
index 87259b297e646717a2b52e4aee3bfc82b93d5adc..98e059173a1214efffced09c7e97082a60e09c75 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure we diagnose misplaced AC_CONFIG_AUX_DIR.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_AUX_DIR([.]) dnl this will appear after AM_INIT_AUTOMAKE
index 43eeed2ce055007e51afcaac7dad33ba1394fa5f..82c46b01c9e165dbe83c7d5112a8b2e1b4603e64 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we diagnose non-existent AC_CONFIG_AUX_DIR names.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 8f06999fcb9f37adbcf9c59c9c8f1e584ab50484..c68740608767aa3051fdfcb772d4dea7721d755a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we diagnose unportable AC_CONFIG_AUX_DIR names.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 4
 
index c7f7d732055aec69dec66e4fc5cd0334f179984c..ea16e44f40b27df6ebdafcad66f0851f3afa7369 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure AC_CONFIG_AUX_DIR works correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 # The "./." is here so we don't have to mess with subdirs.
 cat > configure.ac <<END
index b07cd13a32e85ef6e5b85c593aecdec531388f3f..2f81b83f97164e837f491abddba071fa06f72d99 100755 (executable)
@@ -20,7 +20,7 @@
 # config auxdir.
 # Keep this in sync with sister tests 'auxdir7.sh' and 'auxdir8.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 2c82bcbdef2f2b7f5b75eb21e8a4d38e43797814..ed4cb1e30f230c0ed763842b4c1805876cfd9ca6 100755 (executable)
@@ -19,7 +19,7 @@
 # making the top-level directory the config auxdir.
 # Keep this in sync with sister tests 'auxdir6.sh' and 'auxdir8.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index c4043293c3374ffcaa0038ab76321bf42ef6706a..55c0afd94f4a9a930a75789af0b8b5a6e29e2641 100755 (executable)
@@ -21,7 +21,7 @@
 # directory.
 # Keep this in sync with sister tests 'auxdir6.sh' and 'auxdir7.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([subdir/Makefile])
index 451020cd061336a54dfb51a65ae0c81db83a24a6..6f03b696792671b7c0ca4cb77bd43780ef5095d8 100644 (file)
@@ -16,7 +16,7 @@
 
 # Auxiliary script for tests on TAP support: checking testsuite summary.
 
-. ./defs || exit 1
+. test-init.sh
 
 br='============================================================================'
 
index 6eafdc971723888ff57569d44c15893939c1e68e..7e65efbf6dec607d042375006fee51b99c771247 100644 (file)
@@ -20,7 +20,7 @@
 # testsuite output, packages with and without bug-report addresses,
 # testsuites in subdirectories, ...)
 
-. ./defs || exit 1
+. test-init.sh
 
 case $use_colors in
   yes)
index f2e552bf5d96c47f5d2b43558683a0f90a0b6f47..c483be50475c1f19630b64b03c413c5490ca60f7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Backward-compatibility: AC_OUTPUT with arguments.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 : > Makefile.am
index 214515d1740e906d99039e516332375ae9800608..ee7906ea87d7095382ab4957c05473097510cf48 100755 (executable)
@@ -17,7 +17,7 @@
 # Test usage of AM_INIT_AUTOMAKE with two or three arguments, for
 # backward-compatibility.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 .PHONY: test display
index 109483b47785d067b5230a402590235a5142f662..fe3bb07cd737597792eba26104408d5ffe8b5496 100755 (executable)
@@ -19,7 +19,7 @@
 # third argument is empty or non-existent.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 # A trick to make the test run muuuch faster, by avoiding repeated
 # runs of aclocal (one order of magnitude improvement in speed!).
index 26ea7d48b6e59565e0c0de6f8baa979e083763cd..b245e36fcf20e38f6c8043a488bd34ca9f41997c 100755 (executable)
@@ -18,7 +18,7 @@
 # AM_INIT_AUTOMAKE are both given two or more arguments.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 empty=''
 
index bcfd3dc753687eb5ce7741b472de64b1b5aba009..b99321a72bb533624570d9a13f670a229b2bb781 100755 (executable)
@@ -22,7 +22,7 @@
 
 required=cc
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 # Anyone doing something like this in a real-life package probably
 # deserves to be killed.
index fb34ee169204334b477e222378e009aebf1dd882..a781e80109c079976a8350c8f2ebb9594e1c4fdf 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for "\" problems.  Bug report from Joerg-Martin Schwarz.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 5d9d6d158c575badf700cffd26389f5a8a22b177..10046f9273866768b78fb78ef89327ff37bc1399 100755 (executable)
@@ -17,7 +17,7 @@
 # We must skip the backslash, not complain about './\' not existing.
 # Reported by Rick Scott <rwscott@omnisig.com>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 SUBDIRS = \
index 7891753f28f36151e4c15d73b95667c102c099b6..b17631db08f38e8d919ec567a73203ec6383e269 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we diagnose trailing backslash at the end of a file.
 # Report from Akim Demaile <akim@epita.fr>.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 foo = \
index 707d35860bf6ecd5ccba7705c6b4cbed1b8c0556..7ac4c860d8c53eeecc4f4e555c6d671dc82d4686 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we diagnose and fix white spaces following backslash.
 # Report from Peter Muir.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >>configure.ac
 
index 3d714250a3a503ce5bee21b7b18737d58f0b5cbb..e6eb5c80e1cc81b1faeabfa7a9e3223eab69972f 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that line number and file name in error message
 # referring to variable is always correct.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index b548a4f536282eaaef8bdd08c6da800f3bf44b2d..927a10deb6a756104397549e1f983dbc2ff5107f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure bad options cause error.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AUTOMAKE_OPTIONS = zardoz' > Makefile.am
 
index 6134e3e578253c0e7d44a527c1dd5ec5c8126136..e8df06a3bff896406fdc7a599be20a41e09a14af 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that programs with bad names are properly
 # transformed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7cdb5ff27eb493925685c9ff2173de37f3b21532..a50b9d3e78bf84005c65d7d4edbc282c4548f886 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure block comments are not double-spaced.
 # Report from François Pinard.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 #START
index d4d3c51e2a44ae1574cf430b93ea94d8e9743902..3e0204c8815817ba92b15d1dff511ca8f36f117b 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/359.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([dir/Makefile])
index ac78a9756f59e614850c7769f2f72182ce39fafe..a09334ff432dffe38eb64828b140ca3c4e16999b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Interaction of BUILT_SOURCES with conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AM_CONDITIONAL([COND1], [test $cond1 = yes])
index fac37505f430ead60e5d368b255eccbd936c9a77..bfb1b4283d84e22c0d51f95f69b72a7b0da58fa8 100755 (executable)
@@ -24,7 +24,7 @@
 # Backported to improve coverage of mainline Automake.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 2f53bb51edf658bcb22b564d62a81bcf2dffbb0b..e1c0bbc0746da5b06225f338d9eacca2473a96ea 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure 'install:' honors $(BUILT_SOURCES).
 # PR/359.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([dir/Makefile])
index cc162bb99f7761f5d96d2d8d55654019c1859ef6..b1c7764ca7d49c9b4e2b79d35504adcb36e40b6b 100755 (executable)
@@ -19,7 +19,7 @@
 # all-recursive-am which depended on BUILT_SOURCES.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir lib
 
index 51731366091813b74ad27faf6e83970a0a75a9f1..2f960b0aafbc36acd6b44aaced0153f939e69f35 100755 (executable)
@@ -17,7 +17,7 @@
 # Basic test on BUILT_SOURCES.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index d87836a97a8082309021cda7fa067ebfb812692a..4c8416410a4c9a4cf6cccb0e152e8af6606be3be 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure things that cannot be dist_'ed are diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >>configure.ac
 
index 59f8d8dbeccd1187e3ae03b5a7ab2ba08b7c4df1..460fb89381e9fb216a3dc36d286854695f0895bb 100755 (executable)
@@ -17,7 +17,7 @@
 # PR 511: Make sure we warn about e.g. AC_CONFIG_FILES([./gmakefile]),
 # as not all make implementations treat 'file' and './file' equally.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 8b3c756336b675a1034e2ab58798fccd10d0745e..5b229489c9ce8e8ea108108e8f374683bb8fd6fc 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure that name canonicalization error works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index d9869e8a36544e8be1f87bee8ac7da40b754cb25..f79c2a5632b52b719c7b559df840e6696fed75e2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure name canonicalization happens for texinfo.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = zar-doz.texi
index 4a95cb5d356120e9b9e2d0cdba1368a1ef0665de..2efdd4c9c67da4e1748337615b0096109e87d80d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Yet another canonicalization test.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c79b15141106b0bfcb157870f0bf66c44899b5c5..eea87aa945d75bd0464e352f95af35adb91c09dd 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure name canonicalization happens for static libraries.
 # Keep this in sync with sister test 'canon6.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 124da0211c54977ecf3a4140802b0f018b014a2c..dd66ec02570335871ddbcc313624f9d7bb6f87f9 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that we allow variable names starting in
 # non-letters.  Whatever that might mean.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9c7fd94bf8544e2043656cb2082e65aee59a168a..aa1be20ec82443ec0d7c06d2196010807767bd9c 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this in sync with sister test 'canon4.sh'.
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 8ffeffbf85db1e70b6249d88d83f9dc49ef71d75..853db0a75d673a57eeffbd8a023a1f0246f3a715 100755 (executable)
@@ -17,7 +17,7 @@
 # Stress test on canonicalization.
 
 required='cc libtool libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index bb5e7f932498ae60d51eaa7036c3746b1486275b..4c29f6db29402b8b90851a2239a39767c8934f30 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that canonicalization does not transliterate the '@' charactrer.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2e5bd4fb0d4ce99ae00509d791c95f8d88be0707..ac30b01e45bd4a2fc53e4b0f53c13869e28ae040 100755 (executable)
@@ -18,7 +18,7 @@
 # understand '-c -o'.
 
 required=gcc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index dcb6fa70d93dd69f221c0f680676c2eba04dda28..52301822461a8a7d4fa7d1d95bd11e551822177a 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure Automake requires AM_PROG_CC_C_O when either per-targets
 # flags or subdir-objects are used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CC
index ff773f4ca40aa53184aa0b90235a15664961d509..bbe45b6d810c3b6929c5f694d4d98babc405f9c0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure 'compile' doesn't call 'mv SRC SRC'.
 
 required=gcc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 79e8ffcf9f7c3285d9e234314e9d6effb45062a3..ac0e66b91bed243fe808c237493ab95fcb6c93cf 100755 (executable)
@@ -18,7 +18,7 @@
 # even when the Automake-generated parallel testsuite harness failed.
 # See automake bug#9245.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index ff48a5f1c7ac113b8eeed3bce4476e35e934369d..26d481ff2c270ecb24f93a9dda62d113ee629f65 100755 (executable)
@@ -19,7 +19,7 @@
 # environment of the tests.  This is documented in the manual.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 show_info ()
 {
index a11d0cdf80fff4d9cfd7168e59078af479ad7f1a..3eeb52c3fcf447e60633142dea73750f01a9e6fd 100755 (executable)
@@ -19,7 +19,7 @@
 # See also related test 'parallel-tests-fd-redirect.sh'.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index bcb2cc9273c5591f6154d9766b783eaeb73397e1..9632e8e8d5768c233c28320d4a1894d5198eae0c 100755 (executable)
@@ -18,7 +18,7 @@
 # installed or referenced when the 'serial-tests' option is used.
 
 am_serial_tests=yes
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 AUTOMAKE_OPTIONS = serial-tests
index 77538cd9ef8359d0a98fd269543876b0909152c9..5400220b0510a1098dd16b3a508277b86c30d92c 100755 (executable)
@@ -19,7 +19,7 @@
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0b1aedaca314948875dcc9d5d9bd09fa242d445b..47d63592252537491982a65b5bf1c25f6f056b44 100755 (executable)
@@ -20,7 +20,7 @@
 # See also sister test 'check-subst-prog.sh'.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([script_tests], ['subst-pass-script.sh subst-xfail-script.sh'])
index 6785877c82ed6369d90e267c6f58a482d73aafd3..2421b2a9b8963cb7161b3e474fbcaeab130bb9b4 100755 (executable)
@@ -18,7 +18,7 @@
 # well as in builddir, and that is prefers those in the builddir.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 1717e3b0574029f2f1dee71ae81c353da2b65bfd..74fdaa3ddd71cf707b1de63f27079cd3584dc2dd 100755 (executable)
@@ -17,7 +17,7 @@
 # Test Automake style tests.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TESTS = frob.test
index e76773c160bd9f3c64b05966d883abaffc2707a4..1751b60c3f7099abcc37778c2ab6f7c714fbe415 100755 (executable)
@@ -18,7 +18,7 @@
 
 # This test only makes sense for the older serial testsuite driver.
 am_serial_tests=yes
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 2fa489a4400d204b951062f731509204db3c7330..90a5676d79062e6aaa87515be7c4f0f7f9155c74 100755 (executable)
@@ -17,7 +17,7 @@
 # Check skip summary.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 53cc4e62696c7358547c2ca6739aceecc9494444..0294d25715c29b0df5f6fa59cb13bedd0c9662c8 100755 (executable)
@@ -19,7 +19,7 @@
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 2332fd6073fe22a5fa06dc2f1585a068fa8e4f62..8b790242138cc1d543f0cd0ebc1710650a05e816 100755 (executable)
@@ -17,7 +17,7 @@
 # Test Automake style tests.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([dir/Makefile])
index 946290f34c426f209172386d683d443c0a38006f..f351c0cce7b26ccdc2176db4533e2ab15ca9a622 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure 'make -k check' processes all directories.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([dir/Makefile])
index 50113b96a07f51c93429511372880eed4888b23a..2f57e56b6810ddb1e54f9bc2373b4dac96b89374 100755 (executable)
@@ -18,7 +18,7 @@
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index d885713e8c0c3512b15db98adc1a7526fd150592..d0965b1cabb2cce19a8f69a0d6c15d859771f1e3 100755 (executable)
@@ -18,7 +18,7 @@
 # Also test that Solaris make VPATH rewriting is honored
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index e77249fd07c273dff5b513c6dd2fa42789ef40fd..52a52bcc8594ee36310a65ca50e262d3acbcca88 100755 (executable)
@@ -18,7 +18,7 @@
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6fcd30ae232d783aad0f1f5dfcab7dff532384a7..9651c0d441b5576d196fc327d8dd14b680a7a334 100755 (executable)
@@ -18,7 +18,7 @@
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 43205745e6b3c4b4fc4adac1f5fbd17124f7f398..d030738ac8dc80f1d66f3711c0187dd9935bd220 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug where check target doesn't depend on all.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_SCRIPTS = derived
index 80f56df0393bf3a6a37a6dfbb6dbe48fe61840d2..683629c3ee084dea3440e84e2676b87c81e8162c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure a clean target depends on previous one.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index 6df427f3001f3960ec78649cba750d836c921c4c..1db536ab7fea0ee69c83e3245671f202429e9359 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test that := definitions produce warnings, but otherwise work.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 ICONS := $(wildcard *.xbm)
index 124b6d282427969a075848bde0cc8fc2b598095c..7d5d121f009824e4a692754ff8b79512c807e3da 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test that := in var substitutions works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 4211131c79145aacbc73fc91c2bba64fc2460f6b..dd1adaa4324d428e08e3dd1de73569f2655763b1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that := definitions work as expected at make time.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index f3e95a6e31dadcc57c65eb0c4d186c23c797c511..33cf35b1931b34fa1b6557c8c20223945780b97f 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug reported by Nyul Laszlo.  When using the ":" syntax in
 # AC_OUTPUT, Automake fails to find the correct file.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([foo.h:foo.hin])
index febf20a29cd9e2555c580b5c02f5141d320ce0bc..fde35239ffcba998501f7b413a3d53e7bdeb2e5a 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure ":" works with files automake generates.
 # See also sister test 'colon3.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index e594d6fb4b8b4e588d23b0f9767cd4740bcc7d40..49a619161176f8ad0c31083027b1739387e7a67c 100755 (executable)
@@ -18,7 +18,7 @@
 # This test is for multiple ":"s.
 # See also sister test 'colon2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 34f0571d2b384c88a3a63da8503a95d81048e91d..fa4b675747f98cfecdae88114141dd825212b802 100755 (executable)
@@ -18,7 +18,7 @@
 # rebuild rules.
 # Test from Maciej W. Rozycki.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_CONFIG_FILES([zardoz:one:two:three])
index c600679bdadb033ce469f8ef014635ca39af4253..2b7d55b0776d06dabb7d60f9ab4633257ccf7539 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another multi-":" test, this time from Doug Evans.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index d89deaa9d4e6f4baa25da95712ba8554164dde43..8bfb146041f9c95ddb25e49fa0b57a4df0e8e1ef 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Yet another multi-":" test, this time from Ken Pizzini.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 51607c63e31faed5fc19781ddcd31ddf3fc169c6..b2183d7099bea62a2d365d96bb8938d7ef2b2298 100755 (executable)
@@ -17,7 +17,7 @@
 # Another test for a failing ":" in AC_OUTPUT.
 # Report from Maciej Stachowiak.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([colon7], [1.0])
index 87d88c9f95117b70f6503d8cbe3cbc28cdd4a4ea..ac26ab7a9e5a84e39ecfb81ceaf91a9647df7a5d 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the 'color-tests' option, now active by default, is
 # nonetheless still silently accepted, for backward compatibility.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<END
 AC_INIT([$me], [1.0])
index 8ccfc3fc356650b028347a66bf1307fe5760e5b8..b90446e4b63498c631b787602021f02be6b4745a 100755 (executable)
@@ -19,7 +19,7 @@
 
 required='grep-nonprint'
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 # Escape '[' for grep, below.
 red="$esc\[0;31m"
index d067c95693bfa65bd369e48f95fb911cf42e04cc..174d734e136889d14769275d9e1f7c30687bee5f 100755 (executable)
@@ -19,7 +19,7 @@
 
 required='grep-nonprint'
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 # Escape '[' for grep, below.
 red="$esc\[0;31m"
index 1bc60f00885839532dfd70e10036b64f841ea8cd..ea5144795e704daaa728dad444141938ae3f9f09 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure comments following trailing backslashes are diagnosed.
 # Report from Harald Dunkel.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 SUBDIRS = foo \
index 139545d184713daeaba79289f275092a4fb969b4..c7ea3120b4a0718404ade59cfc316835685dbf2b 100755 (executable)
@@ -18,7 +18,7 @@
 # comments following a trailing backslash, even when the combination
 # follows a variable assignment that is preceded by a comment.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 # initial comment
index 3508bed9372d28cf8fe2a8bcfd1535e87557a614..79f6cb614feb544c60a8c5146eeba56e81c766f6 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that '#' as start of word in AUTOMAKE_OPTIONS means
 # comment.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = #no such option
index 124e273d1be84102bd30d92bef14f2cdb392fada..402296dea092e24b582c2bc4a71b72f8a43bcc86 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure comment recognition works in PROGRAMS.  Report from Mark
 # Galassi.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index e1f15832cf646ad48b3a5a172ebbcb2c33dc0bd5..b7a698bd437822114064ef35daeffa22dda6eec3 100755 (executable)
@@ -19,7 +19,7 @@
 # shell, which in turn can't find '#' as a command.
 # Sigh.  Some vendors must be destroyed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 install-data-local:
index 8a0ab4531980533465162d5e1f2faa3cff8bbb90..83413ec0ac3fc53c0d5b3163b335e9eed19b32cc 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure commented variables are output near their comments.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_OUTPUT
index 06478e0fa36ff3e8a6c5209434a783d6b9d440af..fcf5650a242dbe5cf3f3d105e976167641c57c04 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for PR/280.
 # (Automake should complain about trailing backslashes in comments.)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_OUTPUT
index 496dfdd32dbf0a910f5b62812aae175e87432007..0a3a066661048e5a6b9d4dd8500533296637c007 100755 (executable)
@@ -18,7 +18,7 @@
 # Automake 1.6.1 seems to have a problem parsing comments that use
 # '\' to span multiple lines.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_OUTPUT
index 7e45853f56d861393173f28daab35d8e6d37db3f..26520e72332a68d5e0fd6c99bf477677ae323ac2 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure comment for conditional variables are output near the
 # corresponding conditional definitions.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AM_CONDITIONAL([COND], [true])
index b4e871bf42c936e5aedf1a9656de7f99c90b1b68..61f780a3a2fbd63524761b65baf7cbf092ede4f9 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure += does not append to a comment.
 # Report from Stepan Kasal.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AM_CONDITIONAL([COND1], [true])
index 49a9f6f725cd79accc3998057b58687968076b08..1c2551b1c234fb726d181a912ea47a56316eb3b1 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure ##-comments are ignored in variable definitions.
 # Report from Julien Sopena.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 TESTS = \
index dbb3b141281f38b1b2e1e23f23dcb20f6c411431..dad568dcc156ee75751e4cc6de1fe0d76ea7821e 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure Automake ignores in-line comments when using variables,
 # but preserve them in the output.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 1da1cde0201227a6a3023825be4e648f3cda8c77..4e44206ca9123dfd0c92a8f307f2b4c90be16313 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure 'compile' preserves spaces in its arguments.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script compile
 
index 5f38775ef1cffa2259702c71f75f2af850aa1230..8c22ed54b0af65b661927a78d77cf2486ea432c2 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure 'compile' deals correctly with Windows-style paths.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script compile
 
index e8bf8a439fc299a47e3757387984aeab3c0a6ccc..db715b3075214c2c17e20896560205b091f73869 100755 (executable)
@@ -18,7 +18,7 @@
 
 am_create_testdir=empty
 required=xsi-lib-shell
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script compile
 
index e5b5c577c005b6661f7b64a2e2c282e09fdac549..80ce8610c129ff4a0608cfac1f3afbf8be8b1617 100755 (executable)
@@ -18,7 +18,7 @@
 # with respect to absolute paths.
 
 required='cl'
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script compile
 
index 89c5be30fbf3842e7231969a8cc92052196420bb..3661fb187da43271782ba32913fd9a4d59f03f1a 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure the file name translation in the 'compile' script works
 # correctly
 
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script compile
 
index 529f22c7d86372a8de5624819c61da7c19147028..c4fb22d50d6eb9c3d9391a341dadd2f2d37ab1cc 100755 (executable)
@@ -18,7 +18,7 @@
 
 am_create_testdir=empty
 required=xsi-lib-shell
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script compile
 
index 27998dc4f447b854f3180d7f5af357226172b62f..0bef8be70973267b373b7d124241e818adb8e586 100755 (executable)
@@ -18,7 +18,7 @@
 # mixed source objects.
 # (copied from compile_f_c_cxx.sh) Mike Nolta <mrnolta@princeton.edu>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 419d8029237248c6fddfe92e5e22567d705dcf46..7c1a2a21ef750c456cf8ece06063d9c72e59b974 100755 (executable)
@@ -18,7 +18,7 @@
 # mixed source objects.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0b79032bf702cd61d109b0c0124d82caf584ee99..f01c55820786f99e4698193748b9082888f391a2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check basic use of conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TEST], [true])
index 04fb9faa8b4fb6b3511feb4396648f1e61498682..2fd6a66a667a80e93e52352076c8085ec135f155 100755 (executable)
--- a/t/cond.sh
+++ b/t/cond.sh
@@ -16,7 +16,7 @@
 
 # Check basic use of conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TEST], [true])
index a556a99961d1a66bff1eab715023386cb70b680a..89f026308999cad57c6fb30e1e0109a9b81c7eda 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug in conditionals.  From Raja R Harinath.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 95073d10efb983d4b65cd649e17b8cb4e1f2dc6e..c4beffc8a36ce13c386f65014342330f55ca6a22 100755 (executable)
@@ -18,7 +18,7 @@
 # This checks that, if LDADD is set from a conditional variable
 # and an AC_SUBST, the _DEPENDENCIES variable is set correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([CC], [false])
index c23df15cb8481734ea3a5831875cbe5f232bc749..c522932ff7d29a16c0f5f3552fdb797cbc9d2cc5 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug in conditionals.
 # Report from Lars J. Aas.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 345171e22ca2fba3777c6eaa16734642169e1b9c..67aa62501b699b3f8ccd82d586d5f54f4612f137 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug in conditionals.
 # Report from Robert Boehne.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6ce37d74be6a3cb9b0355069ac741726827265e5..e21f72973e0b3e6597ca740db084d2d4dc186a01 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Regression test for conditionally defined overriding of automatic rules.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ded33700d0b1e7e889dd13368fbefa87f8253ae4..8e771e617147981d7b750656865973ae8e8ae670 100755 (executable)
@@ -18,7 +18,7 @@
 # references.
 # Report from Richard Boulton.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND1], [true])
index 837fa0255ed691f3bb90cdf1e5dd32860908e444..6726d2effb3e03ea071790bf627229be0ba91f21 100755 (executable)
@@ -18,7 +18,7 @@
 # according to a conditional.
 # Report from Richard Boulton.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 22bbfcfead89b46b5f42bb58f5738b52e01a07fc..353cad6ec5c201ee411de0d1194cdc127c617037 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for substitution references to conditional variables.
 # Report from Richard Boulton.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND1], [true])
index b0dd05cf8729c45ac75efd7d6eb1487e28cbd22f..6187c4c9b0368189f00a55a058513c948c032dbf 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for substitution references to conditional variables.
 # Report from Richard Boulton.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([CC], [false])
index 403c6098fdac51c2fa9584592674b1440675f797..0a590d51340af3f188a0ea97515fb70a5f71ff1d 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for recursion handling in substitution references to
 # conditional variables.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f5c748c714b0d1f77d20e496af09e489ab77f5b6..8df1232a9ac9ad27bcee29479b58a584e71e4be0 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check for use of = and += in different conditions.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND1], [true])
index 10e1d4d4bc6e05784c40956d2aea7d47983d110a..a28c8472c574512a7f3be1fce397b3717388b691 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for bug when sources listed in conditional.
 # Report from Richard Boulton.  PR/326.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 CC=false; AC_SUBST([CC])
index 522cffa1e67b23b4709795a70fd24b5e5e638541..d7a01eb07312a5a32f2307e1e42b10ac1c03bc00 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that conditional redefinitions of AC_SUBST'ed variables are detected.
 # Report from Patrik Weiskircher.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AM_CONDITIONAL([COND], [true])
index eaaf3d7cf3696a8b1e042e4d5e28d5324ac1e092..3a98a4eb67d8dcf7418e14722adb9052ebb9d8f2 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that conditional redefinitions of AC_SUBST'ed variables are detected.
 # Report from Patrik Weiskircher.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_SUBST([foo], [bar])
index 2119a8a6a13844e41cff509905dc5b0b7749c653..7177faf507d6bb95daddbc6ef10b203ff824b97f 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that conditional primaries can use non-conditional directories.
 # From Pavel Roskin.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'EOF'
 AM_CONDITIONAL([USE_FOO], [true])
index 74cc7cc8574c37e0c5c546e25c26b1d99d2f277a..275b32d9b01a73e40679e81899ae399f5da48816 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that non-conditional primaries can use conditional directories.
 # Reported by Juergen Keil.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'EOF'
 AM_CONDITIONAL([USE_FOO], [true])
index fa4aa94aa3bb7b8a1d862bc177aded09e63e3558..b1a140afd2974249de40d5952a9ddefe55c3bcae 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that non-conditional primaries cannot use directories defined
 # in some conditions (but not others).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'EOF'
 AM_CONDITIONAL([USE_FOO], [true])
index 4df74463a3ed8185be6937f60f5963b758f1849e..a93e6fdacec952f66022fde0b8ef8670114e527b 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that conditional primaries can use directories defined
 # in the same conditions (but not others).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'EOF'
 AM_CONDITIONAL([USE_FOO], [true])
index 4a348d1fd57b0527f8de405b0f979f0008b88a76..d31b9437a6169aa1928e7736922e3101404d928b 100755 (executable)
@@ -17,7 +17,7 @@
 # Test sources listed in conditional.
 # Report from Rob Savoye <rob@cygnus.com>, and Lars J. Aas.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index cf505d92436a1b4a05038374dc2925e99d0d2cde..09ea343d52c53e0c852b065fd7453e5a0e5238d7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # For PR/352: make sure we support bin_PROGRAMS being defined conditionally.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([C1], [test -z "$two"])
index b849a1a9bc657c8dc339ea8454d7e6d75472664c..d66305f71ac05342643ee7ca391987b48c49d53b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we define conditional _DEPENDENCIES correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_SUBST([CC], [false])
index 07b7814c57ba931bd03498bf07edc0ea0575fe8e..842704cd295248ca18c8f2196ae7f128ec6fa1a9 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure the user can override a conditional _DEPENDENCIES.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([C1], [test -z "$two"])
index 53225cbedcebb1ecc6352da1439bea81512106f8..9ea45f116f1f2a8854db89ce4db531b2e19adac2 100755 (executable)
@@ -18,7 +18,7 @@
 # correctly.
 # Report from Ralf Corsepius.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([INC], [test -z "$two"])
index 3d37a2b3240587b84f5c7f7a0196a2a68434fb7a..b4a50bb9067f0ee08ebc4a68cc37d931a248cddf 100755 (executable)
@@ -17,7 +17,7 @@
 # Check for _DEPENDENCIES definition with conditional _LDADD.
 # Report from Elena A. Vengerova.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([TWO], [test -n "$two"])
index ea663ce97a1049328025274b6a461fd8c43b51c6..fc371f5e39eed76f07d11c6ff1ed4ea6048e9ed0 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Roman Fietze.
 
 required='cc lex yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([CASE_A], [test -z "$case_B"])
index 2b8e584ab5b02c8553ebe0c99377ef41f12793d1..a65343fedab8125967d75e37205407dd62a83b01 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check rules output for parser defined conditionally.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([CASE_A], [test -z "$case_B"])
index 31a1f4059fc880d73269f19bf5d6709518d107bf..12a2ac7efc7efcc9d17b7fd792d67d9223ff3605 100755 (executable)
@@ -17,7 +17,7 @@
 # Check conditional local rules.
 # Report from Simon Josefsson.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([CASE_A], [test -n "$case_A"])
index 887aa0381babbc4676329f5efef4dc7fdc02f65e..96aefa9e837d63d86cf40556f927b3a404642905 100755 (executable)
@@ -17,7 +17,7 @@
 # Check conditional variable ordering.
 # Report from Ed Hartnett.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_CONDITIONAL([CASE_A], :)
index 4cbda481a60a3ba65f26d36e06029e3e67cce263..0bea420312a70acf1605ccc03e372d251fb71039 100755 (executable)
@@ -17,7 +17,7 @@
 # Build either as CONFIG_FILE or as PROGRAM.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 72d98c9dd9b3cc71dc48049f099d7d6ec4ca518c..cc580c6752dd95328e849d08221a8b7470fd8c94 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another sources-in-conditional test.  Report from Tim Goodwin.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([CC], [false])
index 8725a0341dd8bd9cf233f8ad64a6b9fd358afd0a..2d7ba0d3c96036dca29963c96802a3005cb45cb7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test AM_COND_IF.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_DEFUN([FOO],
index 9f4cc537646aac0f793e653e99129cbe5ccd608a..3f9c3f443d25d218681b26a3688f3a126b188b15 100755 (executable)
@@ -16,7 +16,7 @@
 
 # AM_COND_IF with an undefined condition should fail.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_COND_IF([BAD_COND], [AC_CONFIG_FILES([file1])])
index d7f885e2b647a83ecd074bfbf194ae943d7154c7..b3d0305cee8ac3605937fc52f0d88c631f95f5fd 100755 (executable)
@@ -18,7 +18,7 @@
 # This shouldn't happen with user input, as _AM_COND_* are not documented,
 # but better to be safe.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([COND], [:])
index a6c75454892af92e6299722476b0a963020c52e5..ff336756de0f3b52b52e78317074c065a9daa29d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Ensure an error with underquoted usage of AM_COND_IF in configure.ac.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([COND1], [:])
index 8d4d7d5985c1733b93f9880e097f7c71148b4e75..b79892bc3104575a922e0cb67a5dba70c58500d1 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that redefinitions of AC_SUBST'ed AM_SUBST_NOTMAKE'd variables
 # are not diagnosed.  See 'cond23.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AM_CONDITIONAL([COND], [true])
index 5e010cf4c4cfe5fed01546f65e68b7cdb1dc088e..0db9d8c7ee040a9b57f92837157175db8205d9bc 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that redefinitions of AC_SUBST'ed AM_SUBST_NOTMAKE'd variables
 # are not diagnosed.  See 'cond24.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_SUBST([foo], [bar])
index 59820c4bb52d0c0bda225d4e0bfba1832201c39f..18d0f9e6e57c75704e85746299bdfd88b6330389 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Ensure the right condition is listed after 'else' and 'endif'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([USE_A], [test x = y])
index fb5c92005db27bbff83a1d88401546eb4ef2edbd..b0f11946b725af232c9c5f1a5cb46a42e4703871 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Yet another sources-in-conditional test.  Report from Tim Goodwin.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 640f49629973aadf5147e000ee5b007b9b026aa3..3754d0882b606b974bf6a3fc1850fc6ceca9ba95 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for an odd conditional bug.  Report from Matt Leach.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AM_CONDITIONAL([FOO], [true])' >> configure.ac
 
index 19cd12e87a4fee59ffc9a20c8abadc97f46cc682..4f90bde8c510079784d7ad53ff3076619049b95a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for an odd conditional bug.  Report from Pavel Roskin.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 compat=yes
index 1eab7075bce9ff236cfe2f40006bbe0fd0e49b9b..f19ede57d3867e1a790bd25b5c0ebff8a8b30da4 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure _PROGRAMS conditionals can be written in a useful
 # way.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 942274882a1aa23e1e06c01f9daf84aef8ade37f..80f13d19446bab9fdb43d3235c5e7161831a8414 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug in conditionals.  From Raja R Harinath.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([WRONG], [test x = y])
index 81fd0157a6f45ca140997593f0f60d41990f4cba..cb88994a83a9c8be67e2c03ac5d5e178a1dc612c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug in conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 dnl Define a macro with the same name as the conditional to exhibit
index 18ebcb343f944a8df8654c7706d8cf0795032073..8cfc94c490508b58566277d374a7a199d739264a 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this in sync with sister test 'condhook2.sh'.
 # Report by Nik A. Melchior (PR/428).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TEST], [false])
index a6ec7fffb9bc94a7e7eb67ff9ac48c70040ff199..e41a24d2ea1c306f2291d1bbb9f42747d9e2fcdd 100755 (executable)
@@ -17,7 +17,7 @@
 # Test install when a conditional install-*-hook is defined.
 # Keep this in sync with sister test 'condhook.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TEST], [true])
index d826f96143a69a85a9c8199f4a1f7c31123dd5a2..d61766d1675b60eb5a6b8c6a584e63ab457be86e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure a conditional include statement is handled properly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TOBE], [false])
index 1763a6d707a0957bbfa810f444938e9f5f1b7a0f..57f92ea02d33260f6b1dc0b1879e5886f55df95c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another test of conditional include statements.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TOBE], [false])
index 3c88226880b3e301827f744b022e6fb7ed6c6a5c..6751386a580ccce0fb5d675625da36dfa547c0ea 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug with conditional library.
 # From Harlan Stenn.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_RANLIB
index ad97abcbf320793ee4d372bdbcc3b1590d4a9511..8f79e0e3763205f6698131240bfc1cec2bd47d8f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure appropriate man install targets generated in all cases.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 man_MANS = foo.1 foo.2
index 094a66cf07d3f4d7e237745493f13ac0c13f5ab2..8f0f65810d55ab486880fe089ef95f90269ce0a9 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure conditionals work with man pages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND], [test x"$FOO" = x"true"])
index 95e60f9eea67ee9c2634b1216816bbb2aaf71c86..c2dccf2078b3570689f536100f9e87da91bfd3c3 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that config* files are properly regenerated.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo "FOO = foo" > Makefile.am
 
index b6f90813861e14e4068883d158800f66977003c1..74562071385b82abe73f40f4425e833ef9a13e4b 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure rebuild rules work even when AC_CONFIG_FILES uses colons.
 # Report from Alexander Turbov.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([bar/Makefile:bar/Makefile.in:Makefile.bot])
index 728d78e3d21af7e93c9ef563bf5cbe989954a5e0..41820aec6e0c0eaf60eb8bc2923c5735ffad697a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure empty calls to AC_CONFIG_FILES or AC_CONFIG_HEADERS are diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We avoid using configure.ac stub initialized by ./defs, since we need
 # to keep track of line numbers (to grep for error messages).
index 3eed30bb4ebe7917b518144b386a6dfd4988e9e9..acdbc1f53e5c7badabc795868f3c8c68c0809b92 100755 (executable)
@@ -19,7 +19,7 @@
 # broken in that case.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 75024f679bd9165ac037198d2f75c80ac5bd2a00..05720346e039ab97cfaaefb1328e67032cf3ed50 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure config headers in subdirectories are cleaned.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([sub/config.h:sub/config.hin])
index 14077577312829e5c5ef3c19dd75de2620a4716d..81e6743a09ad7a0fc5ef650ce1ae153e1f616447 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure config.h works in a subdir.
 # Report from Alexandre Oliva.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([include/config.h])
index 06ae96fbb8a730338428d7b1a56cd67c07265ff1..65c03c54803fade87c4954c8650bcdb0f9dc5a91 100755 (executable)
@@ -22,7 +22,7 @@
 #  Use AM_CONFIG_HEADER(subdir/config.h) to place configuration
 #  header in subdirectory and observe that it is not included.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([include/Makefile])
index 354c88c32a741502b149ac17a76ef4a301879f5b..c6c3e2593c24c5717b289eea7629b8f4ee7a3617 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we do not distribute header sources when they are built.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([FOO], [NameToBeGrepped])
index fa6aab4441f2fb155b13ce2f736cf573554b2ecd..4db74b5c4cf027a0c1ec0dccd9f53250ca86c004 100755 (executable)
@@ -18,7 +18,7 @@
 # idea is that if config.h is in a subdir, and there is no Makefile in
 # that subdir, then we want to build config.h as the top level.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([subdir/config.h])
index dc80ae0745e32f1e2bd33c424d12df6168648057..4d3bbbb5fc3061c2880d03bef5d98b3e13809239 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure several config headers are allowed.
 # See also sister "semantic" test 'confh8.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([config.h two.h])
index 00013d3e0ad94a7d82b34963ad5ff4e185629b24..e2fc36f4328e4d300fec5d7ead9b4194502215ad 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure several config headers are allowed.
 # See also sister "minimalistic" test 'confh7.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([one.h two.h])
index 6ba740e866912e7bf671b6d6ffefa884e5aa05bf..1a1bb94ade0b265372ddcfd3416fce93480c45cf 100755 (executable)
@@ -18,7 +18,7 @@
 # Diagnose if both configure.in and configure.ac are present, prefer
 # configure.ac.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<EOF
 AC_INIT([$me], [1.0])
index 4527a144d41d84144cd34571925e2e3e6787988c..c106d6b0ff8881cc9127ec0432220cffa4d8e0b2 100755 (executable)
@@ -18,7 +18,7 @@
 # If config.h is not used, @CONFIG_INCLUDE_SPEC@ should not appear
 # in Makefile.in.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 8446ac859affdcc65a6139c0075ee251125f1778..7b316a79dce323aaf4eeeb2290c406caf7ef6791 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure links created by AC_CONFIG_LINKS get removed with
 # 'make distclean'
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'SUBDIRS = sdir' > Makefile.am
 : > src
index fa0b0092b752bc1e832ef946860649988bde55a8..66b1a49f396719708bbfa6121825f4b85ed5ceca 100755 (executable)
@@ -17,7 +17,7 @@
 # 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
index a0b8842c8f21051d75b898d2ed8f8a554e70c364..1f844fd7e6799d703c5c0828c9208363e16e0fcc 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that AC_CONFIG_LINKS using a variable source
 # is not broken.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 SUBDIRS = sdir
index 090f809f27c3184673f19f79cd871ae244d386e5..d879fbf2c895ae812c8cc0a533c0ef8df9e5e71b 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure links to _identical files_ created by AC_CONFIG_LINKS get
 # removed with 'make distclean' only if doing a VPATH build.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir nonmk-subdir sdir sdir/mk-subdir
 : > src
index de21d51e15e703a32d670efb9dc9d029af7bf5db..6ab6a2fcb8d503a73ee20ac32536531901b1f813 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure config.h can be in subdir.
 # Also, make sure config.h is properly rebuilt.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([subdir/Makefile])
index 39739d9fefc853b0c821621c72b3e753d7b635e8..28e9e06d7d0f29f11333b12b66063a25f8241850 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure configure_vars stuff works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([QBERT])
index fc78f6e4877f1a3e6361647acaf9fa95423d9706..cada470507e0490990653c2a98c4ea05c150b66a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug reported by Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([OTHER_SCRIPTS])
index 64a829d9c1b0f325b9291a2306020dbd3bba465c..04cb94c95498c41d864a75ad880d69d9a6de6f92 100755 (executable)
--- a/t/copy.sh
+++ b/t/copy.sh
@@ -17,7 +17,7 @@
 # Test to make sure '-c' works.  Report from Andris Pavenis.
 # See also the much more in-depth test 'add-missing'.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We'll have to cater to systems like MSYS/MinGW where there are no
 # true symlinks ('ln -s' behaves like 'cp -p'); see automake bug#10441.
index 9db0d8e81e906123da8c7a07d92e4085fa8a9ad0..213481c45eacbc770302103473251bbf5480c9c8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test cscope functionality.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 18
 
index 631642fb0dee1945009eabcf2ca97c482fb29c58..16419a757385d18b451e701bfdc64fe53fa8977b 100755 (executable)
@@ -17,7 +17,7 @@
 # The 'cscope' target should not fail if there are no sources.
 
 required=
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 30e8c0cc93f60aa04d920c4ce927472d8fd138be..a7468f8808e8d96e3b0bf7b8ba494f93b5a70ff7 100755 (executable)
@@ -19,7 +19,7 @@
 # is empty.
 
 required=cscope
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 77f7c83b6ffbe00f2a21a83cfa2b5b1c6e69905c..6caae27d591b7bb7739ae2b86b7f2527347c358c 100755 (executable)
@@ -18,7 +18,7 @@
 
 required=c++
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([GNU C++ Demo], [1.3], [bug-automake@gnu.org])
index a060fc851533da72d0c9c82b40109f501a990c9b..9289196dc189dc23c75f66e4c72e3c6e5ff96bff 100755 (executable)
@@ -18,7 +18,7 @@
 
 required='libtoolize c++'
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([GNU C++/Libtool Demo], [0.73], [bug-automake@gnu.org])
index fc7fe96bfa1547a7c7bca6066656bd6d3ae35e55..744cde27aefa6651f5f8015704e1b091062e3b80 100755 (executable)
--- a/t/cxx.sh
+++ b/t/cxx.sh
@@ -17,7 +17,7 @@
 # Test that '.c++' extension works.
 # From Ralf Corsepius.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 7ffba4e9d7d1a9e88f652a1ec715d468a9cc9d35..4abcefc0cabd34e58c1e99d23e74f2620d9e0634 100755 (executable)
--- a/t/cxx2.sh
+++ b/t/cxx2.sh
@@ -16,7 +16,7 @@
 
 # Test that Automake suggests using AC_PROG_CXX if C++ sources are used.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >>configure.ac
 
index cd5d392a942fca58cb45a081d187e4e4f8d5639a..dca17c7d9363e6710bb71495a05230fbe429dc93 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure automake sees AC_PROG_CXXCPP.  From Garth Corral.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXXCPP
index b6d0231463eb30e60a1946f7196066e579179648..7c95a4fb5da786b16e8560638d49d70ba00815e4 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure LIBOBJS and C++ sources work right.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index ff271c39c7e898b2c02af288ae3e0688d70715d8..734dc753d9a8f285a32d2a1a2e1f46e082fa38c3 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure C++ linker is used when appropriate.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index b3e5631262c40f6467968e2668367e17e0fe5792..1cdf58b167ffaccf88c9b205345f5c109308978a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure pure C++ sources don't include C-specific code.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 66ef57d45a9cf500eea6f06f0c24fc8212d83e3b..33803b184bc2dbb69aae42dc4474d3c0daa378d9 100755 (executable)
@@ -18,7 +18,7 @@
 # That feature will be removed in the next major Automake release.
 # See automake bug#11034.
 
-. ./defs || exit 1
+. test-init.sh
 
 warn_rx='support for Cygnus.*trees.*removed'
 
index 95b442e9191d942ca8dd27d3867b6ad2c3f17485..716388435c61a8dce10d7236bde8b867fa6fc2fa 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test basic Cygwin32 functionality.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6c9c9e03b10d9e41f0c90155411911a901a99f37..4cf34f3c3ca35305970fc87f068a61adfc462dfc 100755 (executable)
--- a/t/dash.sh
+++ b/t/dash.sh
@@ -17,7 +17,7 @@
 # Test to make sure '-' can be used in path.
 # Report from Matthew D. Langston.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 include Make-lang
index 5a4530c19763e3d01d8779011007b83941d865a2..0f6bd0a7dd4b8ae611262f893bb00d78ac49821b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure aclocal picks up on all macro definitions.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > acinclude.m4 << 'END'
 AC_DEFUN([AM_FUNC_THREE])
index 2c74cc497fffad5079798ab5c07d09bc88baf2d2..cb1cee7db4f3fdb0d06489a96f17145e0d5e6f01 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we don't mistake a macro definition for an invocation.
 # From Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 dnl if buggy this will require getloadavg.c
index 22f7cc5a74e7c8affe039c97e3f6da503521300a..6b873d0910d7895522654d049f985d1fe602819e 100755 (executable)
@@ -18,7 +18,7 @@
 # to an absolute path.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 9fdf179265b55c94e94430f116ba73026fd62ab7..141f56e5401f4d6ed9a349f2bc100cc2bc8336e5 100755 (executable)
@@ -18,7 +18,7 @@
 # (both as TCL variable and as environment variable).
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index c980c853795272584dba339d3207f2e7e8175486..07254ca2b2083df41f52d67c8066604934d7014d 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the files in $(EXTRA_DEJAGNU_SITE_CONFIG) get appended to
 # site.exp in the same order in which they're listed in that variable.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 45d8a225b0e7dd6c24e8ac3f573c3c3db550a16f..8c16c54760410eef60013846de52cfdd98af6b70 100755 (executable)
@@ -18,7 +18,7 @@
 # automake-generated Makefile.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 write_check_for ()
 {
index 42f4d440469f03b79779e6fea0cbac05dab7a10e..207d8a1efc76297307ffaa946a902763f16a6be0 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the user can edit the Makefile-generated site.exp, and
 # have its edits survive to the remaking of that file.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 7583347bdd1f498ec0301d62fc697c679d1c3d1e..0293de57e4208a8f863068098aa36575e407fdc8 100755 (executable)
@@ -17,7 +17,7 @@
 # Superficial test to check that dejagnu tests and automake-style
 # tests can coexist.  See also related deeper test 'check12.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = dejagnu
index 5b75bb698b357164d4904d1fae36fbe8f94cf7a1..78cfb159319ad2e57d09f03487be294a72c75808 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we don't override the user's site.exp rule.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 42345bee0edcd381dab006f748a8902ebea2ff8e..4b258056432a4a61d555815301c5690c512a224c 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the DejaGnu rules work for a simple program and test case.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 cat > hammer << 'END'
 #! /bin/sh
index 655218b1af046e590d159bcd7eb50595b303743f..18119b0d5435ab7f9bc112ea386825db0b7c89c7 100755 (executable)
@@ -24,7 +24,7 @@
 #   previous tools, but at first glance "make check" has passed.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 cat > hammer << 'END'
 #! /bin/sh
index d64a7f2c6ae622d62868b9d6ef9f2e845f9ea507..816a65223f9b41a7b3fae0560345f92f226f62eb 100755 (executable)
@@ -18,7 +18,7 @@
 # the package by default.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 package=$me
 
index 80ff02785061ba5e152dd06cc4ef1632658daee7..71998cc8e801e0c6450b5d4c46bcc60f50b63072 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that "make check" fails, when a DejaGnu test fails.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 cat > faildeja << 'END'
 #! /bin/sh
index d34931b7f93cbe6590e62572d50219c2d5fd1641..17e5a18645e5967940f42dfa0feeef00931df9ac 100755 (executable)
@@ -18,7 +18,7 @@
 # (to detect TCL errors) on a file with TCL errors.
 
 required=runtest
-. ./defs || exit 1
+. test-init.sh
 
 runtest --help | grep '.*--status' \
   || skip_ "dejagnu lacks support for '--status'"
index 9dc015a64d87c84727ff1dad01d458a8a8b71c30..ee17a291199649e63b5c64c69cc6747ba828d5f4 100755 (executable)
@@ -19,7 +19,7 @@
 # erroring out when a still-required file is missing.
 # See also discussion about automake bug#9768.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 296f453cf8ee6a9d7c16241327d74c2b6b997406..841e30e93820686f0c5532f34ee001ecb9f88269 100755 (executable)
@@ -19,7 +19,7 @@
 # erroring out when a still-required file is missing.
 # See also discussion about automake bug#9768.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 m4_include([foobar.m4])
index 897a5a226e6a6b106d598a41cd353a51f26ab3c1..c7fd85ee1f272498f80686de60f3bf1ac555c8a7 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure dependencies work when required macro is part of
 # autoconf.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AM_FOO' >> configure.ac
 echo 'AC_DEFUN([AM_FOO], [AC_REQUIRE([AC_HEADER_STDC])])' > AM_FOO.m4
index dc93a85cb8b4136b626baccb9c4a8a56257148a9..964b720201a2b94e755c0656fda0abc92b8cad00 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure a top-level depcomp file is found when
 # AC_CONFIG_AUX_DIR is not specified.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir lib src
 
index 63c702f57e5995035e3501618021f0f2c644e4eb..33c293dbeabb73c2dd58063375040f093e1d9e71 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure depcomp is installed and found properly
 # when required for multiple directories.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index c29d9cdfdbd8f85ce3606cf6bbbb31d9d0f23116..a00236f88b4a4050257e9569472c0c15976a7cdf 100755 (executable)
@@ -18,7 +18,7 @@
 # From Pavel Roskin.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([subdir/Makefile])
index 4e34777df91befd5344e9b221b108b8d5b381b11..61ffa56922291d5b614412712b690131b91bc80d 100755 (executable)
@@ -20,7 +20,7 @@
 # same thing for libtool objects.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 3e26392ac9128b7683e7a50f67f4e03286bebbe8..a97e2c31af459e2bfc4a6ab6ffeaabb740822af3 100755 (executable)
@@ -20,7 +20,7 @@
 # same thing for non-libtool objects.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 8965cd8cc3341105225b81bdc5745b98d2c53c0d..e6b245982671dd467b96831f4fe63bfd5b9a349a 100755 (executable)
@@ -18,7 +18,7 @@
 # From Eric Magnien.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 rm -f configure.ac
 
index 846a4247f5a2d98a3bf1e4c8c7c523aa3ccad627..9dbbe8244b69b93405d7c33f9e3430fd4491ab29 100755 (executable)
@@ -18,7 +18,7 @@
 # In some cases the auto-dependency can get confused and try
 # to '-include' a directory (if a backslash-newline appears in _SOURCES).
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index 65f83ce05c3e0d438eb9cf37266ba0262e8788be..fddc9688bb3c40ff31a26ffcd586b9e1f02f2e92 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test _DEPENDENCIES variable.  From Lee Iverson.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 3a7174158b5254a8310b754dc0113840fee1d17e..ddd77eb2ed4e2114061e825dcc2c58612b46f48c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that dependencies are included when there are many header files.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index 8b2371ec63b034141e17f7ad92cfac1aca519185..518e00d44a5c89eab383e128c39923deab1634e0 100755 (executable)
@@ -18,7 +18,7 @@
 # quoting in $CONFIG_FILES, done by newer Autoconf.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << END
 AC_PROG_CC
index 0795f93814afa91c338eccc51313d927436eedeb..4878b50abea6691b9ff66c5193e35ed72c552e24 100755 (executable)
@@ -17,7 +17,7 @@
 # Check for _AM_OUTPUT_DEPENDENCY_COMMANDS grouping bug,
 # reported by Markus Duft.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << END
 AC_PROG_CC
index 516b139791f73131c8a937ca6b0a2ee84c68946d..60b3e5a6ff410dcbf4755fd87e509521cd3146c2 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that automake and autoconf complain about an old-style AC_INIT
 # call used with a new-style AM_AUTOMAKE_INIT call.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index f10480b36aeaedd774c5e10321031173be50b81c..6b279845eb01e2c01d51ef09028efa1c6f2f864f 100755 (executable)
@@ -21,7 +21,7 @@
 # It will only work for non-root users.
 required='ro-dir'
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_OUTPUT
index d14f8c8f34b6683fd15562e275babc4ada2ecd9f..7b77a906ba03699fb828a81eff66096be7987712 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Naming a subdirectory 'obj/' is a bad idea.  Automake should say so.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir obj
 
index 3c25fba5d764d27fc4f63083b612126f6abd7b79..d90c1dc46e5ccc8ef5113276b86f49ff75320326 100755 (executable)
@@ -17,7 +17,7 @@
 # Check use of absolute paths in dirlist.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 mkdir acdir-more sub sub/acdir
 echo "$(pwd)/acdir-more" > sub/acdir/dirlist
index 319726c5da69f010e193ab34e5cb09a4f776dbf5..b8288c5c8048d5ac3c7c75eaf5d71a80ad6dc708 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check dirlist support.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<EOF
 AC_INIT([$me], [1.0])
index 26320f60e083e2825c992c526dcfe233845e332e..a678252c12a6451d18253bad77efa2decb7efb6c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check dirlist globbing support.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<EOF
 AC_INIT([$me], [1.0])
index 4ecf2effc97dd9d29a2b819a78af3bf8e9c1e0f8..df11ca3a3811cefa7c1e12191ed6a496dfadcf4e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure LIBOBJS file cannot be mentioned explicitly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_RANLIB
index 4937a14b02460a4af8e5ab3c954c7273da59cfff..334e3bdc555b1ed08cb8884327ad4092341b7f74 100755 (executable)
@@ -19,7 +19,7 @@
 
 am_create_testdir=empty
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 count=0
 ocwd=$(pwd) || fatal_ "cannot get current working directory"
index c11083abccf32d03940002de1b0f16134b027145..cd62ef067aafc6101a97418f987a9a92d548428f 100755 (executable)
@@ -20,7 +20,7 @@
 # Related to automake bug#9651.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 21c100c773dabb678342d60f3883f34fbb483390..776997910c65cfb6d0cffe2d51de79806a04bc45 100755 (executable)
@@ -20,7 +20,7 @@
 # directory was set to '.' by AC_CONFIG_AUX_DIR.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 i=0
 for auxdir in build-aux ''; do
index 893aa554d880df0d0c72bb431d122aac25ede3f9..6f217133f7169a042bc5fefdc23543c30961d9c0 100755 (executable)
@@ -18,7 +18,7 @@
 # archives.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 70
 
index aed10510219aa15a1ff8a81ede9c6aecac1308ae..6c225a9f2e0fdefeac92f676a5bb4b7a04aea7c9 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure included files in parent directory are distributed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 80254c49a407767530be1ff228617a16b38b5b5e..2774fa69a4459b8b1373efedcdcd2bb3d1774310 100755 (executable)
@@ -19,7 +19,7 @@
 # required '.am' file from a distribution tarball.
 # See discussion about automake bug#9768.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 93d11b7de053da7f18fd1252e52dfff86c9c2d30..81fce45be718bcd45eaa7143f9bcacbf6e68888e 100755 (executable)
@@ -20,7 +20,7 @@
 # See discussion about automake bug#9768.
 # See also sister test 'dist-missing-m4.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 m4_include([foobar.m4])
index 4ab1e163275173e399bacb91278f169d5cefc27e..e0ed88614ee7b7b30732d941848773a17ba22763 100755 (executable)
@@ -20,7 +20,7 @@
 # See discussion about automake bug#9768.
 # See also sister test 'dist-missing-included-m4.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 m4_pattern_forbid([^MY_])
index 50085a68fafc8302726dbcc68ca376b9c94178cb..5c4766964b3cf89159067f62b683cf2a4da22a69 100755 (executable)
@@ -19,7 +19,7 @@
 # so that the latter ones fail.
 
 required=bzip2
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 : > Makefile.am
index b7b0e0eccb1aa43a081cf63c542c38dcf5506515..ab000ee17c2b2af90a71ff2202e4f714cb39cf52 100755 (executable)
@@ -20,7 +20,7 @@
 # This test expect the user to be unable to write on files lacking
 # write permissions -- so it won't work if the user is 'root'.
 required='non-root cc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 491cf29399778bafcaf54ceda1a4dfebd68ab69c..edfbc0f078ddb696a284be7ffb30031789b80257 100755 (executable)
@@ -18,7 +18,7 @@
 # The distdir target should take care of not copying it more than one
 # time anyway.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 11c992c14b43ea58271aabb30677555227a6206f..330fde1b470f3dcb2636bd70b27b0c3b71187f88 100755 (executable)
@@ -17,7 +17,7 @@
 # Check support for AM_DISTCHECK_CONFIGURE_FLAGS at "make distcheck"
 # time, and its interactions with DISTCHECK_CONFIGURE_FLAGS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_ARG_ENABLE([success], [], [success=$enableval], [success=no])
index f5bc15d261f57b4df2df750fdf3ed51b17ec62a8..480ad44e3606d8b981cf9ae78445bd382d1b1e28 100755 (executable)
@@ -20,7 +20,7 @@
 # passed down to the configure script of the subpackage.  This is
 # explicitly documented in the manual.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SUBDIRS([subpkg])
index e10b2bafe03411c9550c169122fadda7355a1fbe..42dda300cdb02b72a841d62fd78135c28ec9f28f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check support for DISTCHECK_CONFIGURE_FLAGS at "make distcheck" time.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_ARG_ENABLE([success], [], [success=$enableval], [success=no])
index 81a6646e10fac5ce5f416daf81e47a7e9f04d98f..f55918f6805e4cf38933da3ca98aacaa3d7e60b7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check basic support for distcheck-hook.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index ee177ee8df0e4f5f6acdab8c295c53abfbbfd6fd..6b4d588caf669152f05adeaa77ac4b6250f6bb4c 100755 (executable)
@@ -18,7 +18,7 @@
 # Automake, and that a used-defined 'distcheck-hook' is *not* honored
 # in a subpackage Makefile.am.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SUBDIRS([subpkg])
index 1eef8720d53aa4ba0ce1c2ff3db648692511dc7f..e396e220d77a7649b68679d5737380fd8e66b660 100755 (executable)
@@ -18,7 +18,7 @@
 # missing from the dist tarball (interaction with '--install').
 # See automake bug#9037.
 
-. ./defs || exit 1
+. test-init.sh
 
 cwd=$(pwd) || fatal_ "cannot get current working directory"
 
index 50e1057e2494ee60f265081577d9ff739aa1cd26..81440bd3347cff9aaae79b67c49dbfc0fc64ecad 100755 (executable)
@@ -18,7 +18,7 @@
 # files in a dist tarball (interaction with '--install').
 # See automake bug#9037.
 
-. ./defs || exit 1
+. test-init.sh
 
 cwd=$(pwd) || fatal_ "cannot get current working directory"
 
index e65078f7a0e89879f2b449069c3ba0ad816dbc75..607c573e44432724f48d96e503a1d504fa54a6d5 100755 (executable)
@@ -18,7 +18,7 @@
 # working.  Related to automake bug#9579.
 
 required='makeinfo tex texi2dvi install-info'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index d888a9972187ba45cbb37f14573ec71c4e55aa9c..89a21fee5b0a47e522bee540455142de6c45643e 100755 (executable)
@@ -19,7 +19,7 @@
 # by a process (e.g., that is its "current working directory").
 # See automake bug#10470.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir foo.d
 sh -c "cd foo.d && sleep '4'" &
index ae1da2b923fac94320fc8a25d0bbe5a4b67e3af5..8c6b6da544e5348f8e4fb585ad23292b96aeeaaf 100755 (executable)
@@ -17,7 +17,7 @@
 # Check against automake bug#9579: distcheck does not always detect
 # incomplete uninstall as advertised.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 034dc1e44e36b46a603e150e82b63567f2983e65..4dfd21f9264bd6f92a7d3fcf94eb19f54d37a6e1 100755 (executable)
@@ -21,7 +21,7 @@
 # case too (since it doesn't cost us anything but this test).
 # See automake bug#10878.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 5cdd6f181c45cbb9b5c17fc7f5ea37ff9fe303cd..213ee4e6ceda191b1e31325bd35b8c3535d6c898 100755 (executable)
@@ -18,7 +18,7 @@
 # The example Makefile.am we use is from the FAQ entry 'distcleancheck'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'END'
 AC_PROG_CC
index cb4d9c33d140d2e9f138c50dbfaafc8926fe4cc1..c129dea6695a114964c57a9a82a3bec744b75293 100755 (executable)
@@ -17,7 +17,7 @@
 # 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
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([subdir/Makefile])
index 27b7dc9a310f1e4af9cf34c51536453eac144802..113a251f713d95b080c667da49d41f3f97ed6efc 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Pavel Roskin.  Report of problems with '--no-force' from
 # Scott James Remnant (Debian #206299)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index a2ffe0b0c1da9d089225993e6ddecdd1ce2670f2..35dc73908f57f9792c54af6f8b024159741a6c78 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that non-existing common files are distributed
 # if they are buildable.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 README:
index 691c19721771e13bb0377fc7192bc96c83d0459c..04e9cdc887ec457d65b697027ab142e148ae41be 100755 (executable)
@@ -19,7 +19,7 @@
 # Makefile in that directory.  'distcom5.sh' performs the same
 # test with a Makefile in the directory.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
    AC_CONFIG_FILES([tests/autoconf:tests/wrapper.in],
index 6a2c7366e43f3300c929d545a6885bc2a5fd2a08..29ea76c09a8cb08ece72519e84d167c394e0b15a 100755 (executable)
@@ -19,7 +19,7 @@
 # a Makefile in that directory.  'distcom4.sh' performs the same
 # test without Makefile in the directory.
 
-. ./defs || exit 1
+. test-init.sh
 
 extract_distcommon ()
 {
index 9600746b2c239a83bbc26aca50f6238a0cb0a79b..d4694fbc8e48a3384b1da0c32ac15513ad186e43 100755 (executable)
@@ -21,7 +21,7 @@
 # Also test DISTFILES containing a directory and a file in it,
 # and repeated directories.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 6fefacbeab9bf5261f5222a82f68ffba6df59bf0..68e6f107bb933e992a2514af26014b102b621804 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that 'dist-hook' works.  See automake bug#10878.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 7d05b6eeb0c95c3554da23cd51598a39b4967736..35b8f3f98aaf1c5c41cbb7bacd0c97a2e3a685c6 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that distributed symlinks in the source tree will be expanded
 # as regular files in $(distdir).
 
-. ./defs || exit 1
+. test-init.sh
 
 echo text > file
 
index eccfd9c705c3bc514106502928457478f274ca7a..b549374aab07c896e451ff13f85913df21de946a 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that distributed broken symlinks cause 'make dist' to fail, and
 # to do so with (mostly) meaningful diagnostic.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We need, for our broken symlinks, names that make it hard to get false
 # positives when grepping make output to look for them.
index 19806cef0303acb0a015c7a97526a7789f8e8fb1..0b1b54151bfcac1b9feeeb16e4f7872bb60fdc96 100755 (executable)
@@ -18,7 +18,7 @@
 # From Rainer Orth.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SRCDIR([a.c])
index 3f37eb5ab9c329ff375f44a4ee1c89563e29502b..ff2d05ea5cd1fa06aa08845db4626fc18f7e1320 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Simple checks on the 'AM_WITH_DMALLOC' macro.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_HEADERS([config.h])
index f099f0224360be5afca6aad68b3899daf91a6116..ddf37d09057eea2909b7cc7bef29b89539ad5f28 100755 (executable)
@@ -22,7 +22,7 @@
 # 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>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 $(FOO:=x): bar
index 8c9ea4d35f2549957ef950bfcc677957b9196f93..eb51431bc1f26a00696fe2a7a0ba5bd3fee8f18b 100755 (executable)
@@ -20,7 +20,7 @@
 # If you cause some parts of this test to fail, chances are that you've
 # improved the Automake parser ;-)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<END
 .PHONY: test
index e62f42b32ce75be8bd3054955d4e09ca5d1cd7c0..642c07fe0c871621d09015bc535d630aa27a482a 100755 (executable)
@@ -21,7 +21,7 @@
 # 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
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index adaf178ec483444177845dcab8762f4ea561acd3..43fc043fc39c382ed6a09515fe6c99c5466de235 100755 (executable)
@@ -22,7 +22,7 @@
 # containing a '$' on the left hand side of an assignment are not
 # portable in practice, even though POSIX allows them.  :-/
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am <<'EOF'
 x = 1
index 1703ceb352b962c62ec3263e807892a0339edd93..7269ffdb3a28d3661183395cb47335ef3ab71a48 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that -Wportability turns on portability-recursive,
 # likewise for -Wno-...
 
-. ./defs || exit 1
+. test-init.sh
 
 #
 # First, try a setup where we have a 'portability-recursive' warning,
index 6e1b96feea3130f7e071ec34dd4ceeda4c3ae887..403e863449f6ef9317e5fc9cdabd5271649aaa49 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure listing a program twice is ok.
 # Report from Manu Rouat.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index 82d341cf1d58933054ac55f8d410932079aba17d..12419b9f6585956f2501265967bd01d8fba3473e 100755 (executable)
--- a/t/dup2.sh
+++ b/t/dup2.sh
@@ -16,7 +16,7 @@
 
 # Make sure aclocal only warns about definitions overridden by acinclude.m4.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_FUNC_STRTOD
index 4bf82f6dc5d922df1e2167f085d2d09ff7d1f407..072a40b46b73eef97ab18f8c7335d6be3bbfdaf0 100755 (executable)
--- a/t/else.sh
+++ b/t/else.sh
@@ -16,7 +16,7 @@
 
 # Test to make sure line numbers are correct in some error reports.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AM_CONDITIONAL(FOO, true)' >> configure.ac
 
index a8e1b1678b36490bd7c096b2211744a09ab3720a..dd285f00065f74f40a88775e69b997f3f99f82e7 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug where if the list of installables is empty, invalid sh
 # code is generated.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >>configure.ac
 echo 'data_DATA =' >Makefile.am
index 3e5b3f400a818c4386e6528b26bf299e793f1eb5..5f09e6f91275d0c30fc6822ce46cb32530f3ae13 100755 (executable)
@@ -17,7 +17,7 @@
 # A test for missing _SOURCES variable.  Also test to make sure empty
 # _SOURCES suppresses assumption about default name.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 5
 
index 0c249e459517d0c34fd8d43f0524ea0a7bcd96c3..7ebe0568516f958852032cd4a70a3cee23429685 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check to make sure new extended directory mechanism works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 htmldir = $(prefix)/html
index cf17f58ec7b799a89ba274182b547e3813e52d83..ac427dab666be00375a8c1257bec7080658108be 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure undefined directories are invalid.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 quuz_DATA = zot.html
index 6d602cbb94c813729ae1b2d0cf64282d060c572c..e4ed0950c9f68c22ab1946fba7d139786c9a269e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure pkgdatadir can be overridden via AC_SUBST.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_SUBST([pkgdatadir], ["FOO"])
index 1eb42564c1d4e0a1fecdadf647e700e5dede6022..f0850c6ee909d5523ec86df496e59ef510958746 100755 (executable)
@@ -22,7 +22,7 @@
 # aren't left around.  Report from Jim Meyering.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 956acff2e27278b3c0d9af26166a7ddc26459118..606d81a154e1cfbedfe0908a4943e4a9152b3b40 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure no-exeext option works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index e12462a7f61b535ca4ff12938992b26c09d4f861..6d999043bda78ef4fa2b6dd87e549459a8d1def4 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we can override a program rule.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6d8bc88ead6c8d8d65bd528bc780c150a704bc50..bd455e092fa9bde5418a5251cbb54e6e42aae2ab 100755 (executable)
@@ -18,7 +18,7 @@
 # programs, but not to @substitutions@.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND], [test -n "$cond"])
index 4a308cfd17cd9b7ec7a2277c18d5c1b06fff7c84..4494dae265d117bb78e8e5093c7c882de30f37ac 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure EXTRA_..._SOURCES actually works.
 # Bug report from Henrik Frystyk Nielsen.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index a69fe8b4a5d1b2d57737210fd613f459610fa663..3e10491e3070d9dd6a59d3cad7f1fe1b239d963c 100755 (executable)
--- a/t/ext.sh
+++ b/t/ext.sh
@@ -16,7 +16,7 @@
 
 # Test to make sure extensions are set correctly for various languages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_F77
index 7b97c85428e2b5e653b957051efb7ac8ec12af0e..79114d652fd099d76122f3a3cfdb908b9d114740 100755 (executable)
--- a/t/ext2.sh
+++ b/t/ext2.sh
@@ -18,7 +18,7 @@
 # Using different extensions for the same language should not
 # output the build rules several times.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CXX
index c32a3e3d39dd3703f46d1ddd4b378f9e703934b9..812d3206b65af78d195613b7e515ae884f37c3d3 100755 (executable)
--- a/t/ext3.sh
+++ b/t/ext3.sh
@@ -20,7 +20,7 @@
 # In both cases, we don't try to create a rule; but we shouldn't
 # fail either, because magic might be happening behind our back.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 END
index fffd6d3d6cff1c31efa25675d97606f2dfcc8434..0303ba3db70763de873331993f230186514438ee 100755 (executable)
@@ -20,7 +20,7 @@
 #   2. '-Wno-portability' must imply '-Wno-extra-portability'.
 #   3. '-Wall' must imply '-Wextra-portability'.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
index e87dde0fb573022ed4339d56cb4ffb52a48d8b73..a82fa47ce4324e3cd06256509c7a79807df5a555 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that extra-portability warnings are not enabled by --gnits,
 # --gnu and --foreign.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want complete control over automake options.
 AUTOMAKE=$am_original_AUTOMAKE
index 2412b4f7b2dfd792137136b0e9cc167788e8d847..4f84422a94103b5b15e22483ffe03b6a3388649d 100755 (executable)
@@ -17,7 +17,7 @@
 # Check interactions between the 'portability-recursive' and
 # 'extra-portability' warning categories.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
index 189fac4a16414c38390fc65856f583700a803f63..2975d7dbdc1fd5b249d631a96d0b559d1b2c4d4e 100755 (executable)
@@ -18,7 +18,7 @@
 # This check has been introduced in commit 'Release-1-9-254-g9d0eaef'
 # into the former test 'subst2.test'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([Makefile2 Makefile3])
index 09937061dc4e62c3e7bbb989817886462ceb575b..2442faf5bdfecfa252cba15fe8e209a25a98faa3 100755 (executable)
@@ -19,7 +19,7 @@
 # targets should always be generated.  However, they should not be
 # built by default.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index db34e111726ad6f0e05fd24de2b5861f56845223..bd49d3c5850317c45bc51b97c22849e4b05d080f 100755 (executable)
@@ -20,7 +20,7 @@
 # with the involvement of the $(wildcard) GNU make builtin.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index f5319c61b18e16e7cc32f94e06219bba17e98e2a..6d42d8df260a36f31036e2c873bd83ff010eb930 100755 (executable)
@@ -18,7 +18,7 @@
 # Suggested by observations from Braden McDaniel.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index a2a797b0d3e19a91bd90240dbbcb368ca631abf9..0dc817c6224a5ce196e680c4a7704f473dc6a9af 100755 (executable)
@@ -19,7 +19,7 @@
 # Suggested by observations from Braden McDaniel.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index e5576a53ef8979c0ec3d1c368f7fb4d1ca9df640..e3eb5a28908087ebca867a70ded720e03811675e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check to make sure EXTRA_foo_SOURCES not defined unnecessarily.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 02ac789f7800cea85f5f69f26244bd2c6be6c2f7..1dd94b52b29e86f4dcea00f43731534a766402a4 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check to make sure EXTRA_DATA not required.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AC_SUBST(CODICIL)' >> configure.ac
 
index 286540aa7009ae48ed83d55002703e58ee4281f3..248a25b83d3031a05d0d7a69d7f11292430ed889 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check to make sure EXTRA_DATA can be specified.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AC_SUBST(CODICIL)' >> configure.ac
 
index abe8e13c86eca7fa6ace6de8135739c5246af248..51bbb50026d991e3fa7d537ce6439ddf69e78592 100755 (executable)
@@ -17,7 +17,7 @@
 # Check to make sure EXTRA_DIST can contain a directory from $buildir.
 # From Dean Povey.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index b5308afd2edb10ab249dca61e55854e3c931cb80..e3f0a3df22d83e0c5c1c3b8603ecafbb32238080 100755 (executable)
@@ -17,7 +17,7 @@
 # Check to make sure EXTRA_DIST can contain a directory or
 # a subdirectory, in $(builddir) or $(srcdir).
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index b75a0a77521e7f41cf8f7888b2d9353a3b8794d6..1cd5f6f59c37c3ec4ece9f92f275f3a218a2ebd3 100755 (executable)
@@ -19,7 +19,7 @@
 # $(srcdir)/X and ./X, with the files from the later overriding the
 # files from the former.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 0a4f818c5ce8e4dee5fe54fe90d4be63e1d1a0f3..38234a93dab4b01507e679bad94a0ecc87fd220f 100755 (executable)
@@ -18,7 +18,7 @@
 # and that referring to the same program with inconsistent addition
 # of $(EXEEXT) works, too.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index c0bb0f3361b71e6c83a96f63d44c873e324ea4a9..96c3122b61e7a16dd7849733e056df106e15b000 100755 (executable)
@@ -18,7 +18,7 @@
 # are missing; but only if the former is not AC_SUBSTed itself
 # (lib_LIBRARIES is in the same boat here).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index 75daf2eb402cd26df5152492e6d399a1d50e953c..18879f3d193112f0cd907c27c18c1f91b4c2a828 100755 (executable)
@@ -17,7 +17,7 @@
 # Test EXTRA_*_DEPENDENCIES.  See extradep2 for libtool variant.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index eecf74fc2f2204c48ee4410f6ae46a2c4049f7e3..72217e72e9256efaac71cdf8bc2fe5088231a896 100755 (executable)
@@ -17,7 +17,7 @@
 # Test EXTRA_*_DEPENDENCIES, libtool version; see 'extradep.sh'.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 3d23628e3d3d5ee20b96b0e0d6e6ddeaa6a7d23c..7f938afbbf7392bbb652048ead00983e4e63b48e 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure programs with only Fortran 90 source are handled properly.
 # (copied from 'fonly.sh') Mike Nolta <mrnolta@princeton.edu>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_FC
index 91b3341763a79f0d311a99ef200d248b51428e83..383c5c7abb73f1564a6ea254a8a35594f190c376 100755 (executable)
@@ -18,7 +18,7 @@
 # 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
index d51849f392d1706a96f53ef197311b1c17ac3fa8..10b8e8e90719d129c42998079f3e9a384336e836 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure 'AC_F77_LIBRARY_LDFLAGS' works properly.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_F77
index f1351bba414ab354941f464bddf31da63f254453..80f9b0581a2dad2e7bc78257f850dc67d0148310 100755 (executable)
--- a/t/fn99.sh
+++ b/t/fn99.sh
@@ -16,7 +16,7 @@
 
 # Check the filename-length-max=99 option.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index eb289b48bc99b7f9e1dc0f08ca31be172eeb5615..0e73263b41ec2daf9b36b753b381b55690668e9b 100755 (executable)
@@ -17,7 +17,7 @@
 # PR 507: Check the filename-length-max=99 option
 # in conjunction with AC_CONFIG_SUBDIRS.
 
-. ./defs || exit 1
+. test-init.sh
 
 # The name is so that 99 is exactly hit (including final \0).
 subdirname='cnfsubdir'
index f0b2518bea0d272d1f722fcf3f9ce21d73938d53..9f7abdd3bf54f373e651b39a7f6927ef19ecef8e 100755 (executable)
--- a/t/fnoc.sh
+++ b/t/fnoc.sh
@@ -18,7 +18,7 @@
 # C-specific code.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_F77
index 98541872d1ed44393c5d2516970cf9058d6465a4..796a09386b3b7eca2ea3a1810de6b21bd30a1cf2 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure programs with only Fortran 77 source are handled properly.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_F77
index 74da2d7f0f6968f0ee8b579c026d24a2d28a3999..4e006843fb4108d4ecf5d3033747501eba0fc333 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure that 'automake --force-missing' works.
 
-. ./defs || exit 1
+. test-init.sh
 
 rm -f install-sh
 
index 8c6369aeb91258d61af5f8022d81cd086ade26b2..17aa06d385ce7f23e791199aade2b08a2f3674cf 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that 'automake --force-missing' works, even with
 # symlinked files.
 
-. ./defs || exit 1
+. test-init.sh
 
 rm -f install-sh
 
index d118e9fad78fa27e89c1540be6b368d578de6bfb..10753e68d5a4813be46d3092168aa286b974ccdc 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that Automake suggests using AC_PROG_F77/FC if Fortran sources
 # are used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am <<END
 bin_PROGRAMS = hello
index fbe05b761870d6eb177e9836b714d9ad5476fc2a..b6c2ead60bb9aa8133e73309e97a21501ad48383 100755 (executable)
@@ -19,7 +19,7 @@
 
 # Cf. 'fort1.sh' and 'link_f90_only.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index ee8377306e2bdd163a4dbedc4a12fcfd7f9e03b9..7f792561c7aee7c52fdf01cc29fb5edda797d48b 100755 (executable)
@@ -19,7 +19,7 @@
 # For now, require the GNU compilers (to avoid some Libtool/Autoconf
 # issues).
 required='g77 gfortran'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index c5be2ab4ff3f05f231bdce0cdf4b19b764d77d80..3e65a14487001e1fd2843d64241b33f3c71735e7 100755 (executable)
@@ -19,7 +19,7 @@
 # For now, require the GNU compilers (to avoid some Libtool/Autoconf
 # issues).
 required='libtoolize g77 gfortran'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 8eff4e9c1e1a52c16d284aae7d4e2bddd2bc6c9c..99ebb039e3ed16bdd9fd4cc6a5f64e596049cc11 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure dependency tracking doesn't interfere with Fortran.
 # For PR 75.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SRCDIR([foo.f])
index d069ec7617695138840432b5f5dc6c7f0585c13a..f0a3897501e6e0308054dab3d53fdb4942dfd018 100755 (executable)
--- a/t/gcj.sh
+++ b/t/gcj.sh
@@ -16,7 +16,7 @@
 
 # Test of compiled java.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 _AM_DEPENDENCIES([GCJ])
index 8da82a1998a217b29205d414cacf3bcc392905b6..3aab7a378cb0b8aa2a75f5c751da9dff55d631b2 100755 (executable)
--- a/t/gcj2.sh
+++ b/t/gcj2.sh
@@ -16,7 +16,7 @@
 
 # Make sure '..' invalid in subdir .o's.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 _AM_DEPENDENCIES(GCJ)
index c4b45740cbef56653e314f047e5596addc5c9188..96d0d14ecc52836e58b0be5f4d81fb00e9b722ab 100755 (executable)
--- a/t/gcj3.sh
+++ b/t/gcj3.sh
@@ -16,7 +16,7 @@
 
 # Make sure dependency tracking works for java.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 _AM_DEPENDENCIES([GCJ])
index 299e1c1e46c18e28af05660ef3782d36e13d19a8..680e59bec5f7f03ed849efde86ee747eb738ac0b 100755 (executable)
--- a/t/gcj4.sh
+++ b/t/gcj4.sh
@@ -17,7 +17,7 @@
 # Make sure dependency tracking works for Java.
 
 required=gcj
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_GCJ
index 4df1059867547fd672f1b3e4c71a406f2ff1542a..9409ee8cc173c4c34fb3605a718fce24ae546012 100755 (executable)
--- a/t/gcj5.sh
+++ b/t/gcj5.sh
@@ -16,7 +16,7 @@
 
 # Make sure Automake suggests AM_PROG_GCJ when GCJ is needed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 _AM_DEPENDENCIES(GCJ)
index 60023c2c9fb2eab08cd48fc2f89851b80b05c22a..fc9fbe68447f50fca941b2dfbf3d1e1c9a250f0d 100755 (executable)
--- a/t/gcj6.sh
+++ b/t/gcj6.sh
@@ -17,7 +17,7 @@
 # AM_PROG_GCJ should cause OBJEXT and EXEEXT to be set.
 
 required='gcj'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_GCJ
index 60f62cdfff78872006ba798fd59515e8e21b5e04..f8026658cf2b0d24289c5bdb7573f4f075205bef 100755 (executable)
@@ -20,7 +20,7 @@
 # we won't have to ask him for more information to start analyzing the
 # failure (that had happened too many times in the past!).
 
-. ./defs || exit 1
+. test-init.sh
 
 st=0
 if test -d "$am_top_srcdir"/.git; then
index f6424ae6ff25f8450d7bbf67d63224b9f12b1aac..1c774e7237d14995396ce62ef1a9432d761705d5 100755 (executable)
@@ -18,7 +18,7 @@
 # to the test cases requiring them.
 # See also automake bug#9807.
 
-. ./defs || exit 1
+. test-init.sh
 
 extract_program_version ()
 {
index a1925f17bdae301ea7ab8759a6999e1a3aa24209..7cf62efaba6db9b9b0c63886f0dadc2a0e04a79b 100755 (executable)
@@ -17,7 +17,7 @@
 # Check gettext support.
 
 required='gettext'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AM_GNU_GETTEXT
index f3d91b04f7b8ec8305a470e90ccc8b1419a0962e..39e33bfa3fd71e1eeb3e98150590550a4f616cac 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/338, reported by Charles Wilson.
 
 required='gettext'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AM_GNU_GETTEXT([external])
index bfeb92218770e5e1e20c4c4a6381afee40587b05..fe2fcdc6097caa41467f822fa8ab992e8643bd6e 100755 (executable)
@@ -17,7 +17,7 @@
 # Check gettext 'AM_GNU_GETTEXT_INTL_SUBDIR' support.
 
 required='gettext'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AM_GNU_GETTEXT([external])
index f3de3b674e2dc747637d3f55ce8407e936b2342b..db067b885eef23dc3855d1ae6cd3ce65f8497caa 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to ensure --gnits version checking is correct.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [3.5.3.2])
index 337c0ae5ed2dd3e49564eaf1da2edb672dc7f6a8..61243f374314643948d8d49c86db9e17fdb84d3c 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to ensure std-options checking is correct.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0b67253ef7b0dc0dbcbccf8831aec7ac861f1731..0fe94d517cabb71e9c8bbe4d7a69977f9737de3b 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that AM_INSTALLCHECK_STD_OPTIONS_EXEMPT works.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ed660a2ff7f8d34ce23de5d4edbc3ade7ba643c6..a1447554bf5899068c1f2930757f6b41ee50a254 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Braden McDaniel.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/GNUmakefile])
index 1e468a09f071d2da07bc0768c54d7ae4725094f1..4a1c03b9682049bf1bd0eec5c3e72f149200c580 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that Automake warns about user variables being overridden.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We need (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE -Werror"
index 0cdc710095e7209aa1cde274e1f0e01c07a57548..5667e279b0c2b09df72b1135aa876f85fb30b0a1 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check diagnostics about no-installman being disallowed in 'gnu'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([gnuwarn2], [1.0])
index 92279d7040dc2475a992355c775df115467c81e3..338007497c7fa000bbfefc061978e82390d05345 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure header vars defined only once when including.
 # Report from Marcus G. Daniels.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index 60d8ed1e543e3eb8ec9465739ecb9245b4256d99..a4550f99bf836bfd22988eb4837ff84601bc583a 100755 (executable)
@@ -23,7 +23,7 @@
 #  in the HEADERS variable for *all* generated Makefile.ins in the
 #  project.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([MY_HEADERS])
index 9a27d0b0a1045742963abb4f294c31fe90a3ca2b..12e89bb9bf5cf4944fd694c6cec87a946ce585bb 100755 (executable)
@@ -18,7 +18,7 @@
 # the configure help screen.
 # Keep this in sync with sister test 'help-depend2.sh'
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 5cf1273e29e6aba233254090f791979872215729..838e961a0960d37189a83a516f04eb273a045dbc 100755 (executable)
@@ -18,7 +18,7 @@
 # dependency tracking, it adds proper text to the configure help screen.
 # Keep this in sync with sister test 'help-depend.sh'
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 7d2f10cdce908798836b64c34e89944a2919d139..30f360209bae193565837057595f417079cc8b0b 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that our macro 'AM_WITH_DMALLOC' adds proper text to
 # the configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 0ae47dd7926bac67e7bfe45a9a3b01de820c3ed7..3398c2114b137da55abf2c3075e893af1b9e58ef 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that our grand macro 'AM_INIT_AUTOMAKE' add proper text
 # to the configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 2dd9df36b7ea9126fb65dee5d6242d0c1163f63b..23ad0bdde83d4df74d3e8343040bfee8bdb5af17 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that our macro 'AM_PATH_LISPDIR' adds proper text to
 # the configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index dcbcfe8987f1b4bb0a8042c308c1e1d501ad2ff0..1c3e5a988be8c02df5bcda22d4b829d3cfb56cd2 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that macro 'AM_PATH_PYTHON' adds proper text to the
 # configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 601666c76dd02b26fe05a499c18f9fbca0faf33b..76cae9b1fbc96a45101364973648535769742961 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure configure options relative to automake silent rules are
 # added to the configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 $ACLOCAL
index 822eadf8cbfbf81d9cbc864dd5fa76f8ec9485bf..6ccd96211514ffc0c670db0014c928f0414a6561 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that our macro 'AM_PROG_UPC' adds proper text to
 # the configure help screen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 2c8175c46ce726416800931773916eab98f04628..961fcea9b532cd60112e3ae8080526af6a38cf15 100755 (executable)
--- a/t/help.sh
+++ b/t/help.sh
@@ -17,7 +17,7 @@
 # Make sure --help and --version work, even when no configure.ac nor
 # configure.in is in the current directory.
 
-. ./defs || exit 1
+. test-init.sh
 
 # Ensure we run in an empty directory.
 mkdir emptydir
index fad2b29fdd3c5600541a95f1f7753b28ec61613a..e4a8dffc48063c3474da0f0a38e8dbfeda3a7fe5 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure --help and --version work, even when the current directory
 # contains a broken configure.ac and a broken acinclude.m4.
-. ./defs || exit 1
+. test-init.sh
 
 # Ensure we run in a new, clean directory.
 mkdir cleandir
index 368c45640ede615c9b4d8c1f776aedada7e700a5..14d5f8ecc6bc09a3242ff8b78d72d9a21c409411 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure --help and --version takes precedence over other options.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We must have full control over the content of the current directory.
 mkdir cleandir
index 775a3abbee355729e513c9e5d2615434cf454259..98c8f9a4cb5d5a9cba9df0a49ca092dd1e132afc 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the first among --help and --version to be specified on
 # the command line takes precedence over the following one.
 
-. ./defs || exit 1
+. test-init.sh
 
 # Ensure we run in an empty directory.
 mkdir emptydir
index fae069f5e60e6496271da70945aa96d2cbd24c16..f794f5c209d3c8881f5bb7f32769437767015777 100755 (executable)
--- a/t/hfs.sh
+++ b/t/hfs.sh
@@ -20,7 +20,7 @@
 # Darwin).
 # Report from Peter O'Gorman.
 
-. ./defs || exit 1
+. test-init.sh
 echo AC_OUTPUT >>configure.ac
 
 : >CHANGELOG
index 86d6032a72176988c1f4f504cb4af162a4b8f302..1d53facbcbc697fdbea0034dcc37560684653808 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure implicit .o's are listed as appropriate.  Report
 # from Henrik Frystyk Nielsen.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 94cdd649a6cc6a1c0cefe8a2280a7a87ece32edf..0d047bdb74283a7d362a082d7d2b20ac19baf596 100755 (executable)
--- a/t/init.sh
+++ b/t/init.sh
@@ -17,7 +17,7 @@
 # Make sure we give a sensible error message when AC_INIT and
 # AM_INIT_AUTOMAKE are both given less than two arguments.
 
-. ./defs || exit 1
+. test-init.sh
 
 for ac_init_args in '' '([x])'; do
   for am_init_args in '' '([1.10])'; do
index fa2a065731ff319854da165143ad6edcb35270aa..94af06fae5466de4c3cfb8cac84b7cd205e5215f 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we give a sensible error message when AM_INIT_AUTOMAKE
 # contains junk.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<END
 AC_INIT([init2], [1.0])
index 38bb46a9ac8b3a269b6a7ae223460ba293bbdc6f..a378a2687d2a10ddcb26b5cb6c40db5fd413167f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug where install-sh not included in distribution.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index abf16e34375c8a7a1d76a84170c769f559a83b26..c348b5e873f1794b4860be6cdd8a954d2dcc99cf 100755 (executable)
@@ -22,7 +22,7 @@
 # FIXME: and could be merged with 'txinfo27.sh'.
 
 required=makeinfo
-. ./defs || exit 1
+. test-init.sh
 
 cwd=$(pwd) || fatal_ "cannot get current working directory"
 
index 96d1c56aa182011703b0a4d270147f9cbc582cbe..3aae3c02c107dce93ff138ee24cf5978070f1437 100755 (executable)
@@ -18,7 +18,7 @@
 # From Pavel Roskin.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 1cef2c152ca143507cf2511ee66bba8d06559c43..2978f5c79fabca655d1e224fb6f72dca33b7d85c 100755 (executable)
@@ -22,7 +22,7 @@
 # installdirs is missing this.  Ideally this would be an automatic
 # feature of any exported target.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index b6fad9deb68092f51dc6cbfc3fe6cdf5f55b8a28..afee3cbeb2dd1a19ff3bff9b2e2ecd0f75967ee8 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to see if defining INSTALL_DATA causes problems.  From EGCS
 # list.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_SUBST([INSTALL_DATA])
index 54d26a9fc70be4fd7c91ebaefb80e1d28b028e60..5379e8235b76833c984367e74e2ab12a6cb4dd56 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that installing under $exec_prefix is handled by install-exec.
 # Testing with headers for instance.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am << 'EOF'
 # User directories.
index d0be1a3b1f4c0f3e22e5ff32ee32a90527ba6fa6..f6462150cf706c21a30e38d8ade292b2a4176808 100755 (executable)
@@ -17,7 +17,7 @@
 # Check against automake bug#10997: directories holding only
 # conditionally-installed files should not be created unconditionally.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([ENABLE_FOO], [false])
index 559a7fe857380b8da222be9349baa14850d3325d..a5fff9b1181dc74ac369487a641559b83c3ff561 100755 (executable)
@@ -21,7 +21,7 @@
 # FIXME: So this test is still xfailing.
 # See sister test 'instdir-cond.sh' for the succeeding part.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([ENABLE_FOO], [false])
index f31cdb78cdb39208e0e68d11924b6dc6f6d88643..7d7bf3da6c1e95799be1eb02cbf794ea3f0211e0 100755 (executable)
@@ -17,7 +17,7 @@
 # If $(javadir) is the empty string, then nothing should be installed there.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index 59bf8b0e48a8965c288af9ca06858865677c9d65..d37083da47245f5c87be802c87ca8bd43325a055 100755 (executable)
@@ -17,7 +17,7 @@
 # If $(lispdir) is the empty string, then nothing should be installed there.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_PATH_LISPDIR
index c6578e24c4b935f0efa0d6be6e98c71843930e94..2c6deb7bc12591669e98a84b26d3ba10d7fe0e5e 100755 (executable)
@@ -19,7 +19,7 @@
 # This test exercises the libtool code paths.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index bef179d533c31b2acd54939aefe8d470dc7cb04a..0881fb8e2f8daca6eadd53f54e455e44723e1d11 100755 (executable)
@@ -17,7 +17,7 @@
 # An empty "foo_PRIMARY" declaration should *not* cause "make install"
 # to create directory $(foodir).  See automake bug#10997 and bug#11030.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_SUBST([CC], [whatever])
index ed0acc1305efdc3c3b32bdaa780acf9c4486efa1..e59431c2cf628a27956d8db9a3ec4a5238cd368a 100755 (executable)
@@ -19,7 +19,7 @@
 # This test exercises the prog and libs code paths.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index d57fb4b35550bedc9a5547e75347234260aaa061..1a20bea282579baaab73a8b934ab90a6e6aa20a5 100755 (executable)
@@ -17,7 +17,7 @@
 # If $(pythondir) is the empty string, then nothing should be installed there.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_PATH_PYTHON
index 33bf6361eb5f907242422f743b31ee569c42a09e..d8c575cb35d1881137407926b9b08c42eb9510b8 100755 (executable)
@@ -18,7 +18,7 @@
 # Likewise for the other install-* targets used for texinfo files.
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 dvips --help \
   || skip_ "dvips is missing"
index 6c489fba539c7ee208a64d620623aa9c980c840a..ef45105f22793a07b9b94fa37e48dd48f03e7306 100755 (executable)
@@ -18,7 +18,7 @@
 # This test only ensures this if $(foo_PRIMARY) is also empty, see
 # 'instdir2.sh' and siblings 'instdir-*.sh' for nonempty contents.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_SUBST([foodir], ['${datadir}'/foo])
index 638e25a2b31d9211fe5d3afbc68587f2d0fb7e9e..e777bf65c94e39652b5945f7748311b8a216110d 100755 (executable)
@@ -18,7 +18,7 @@
 # This test ensures this also if $(foo_PRIMARY) is nonempty, see
 # 'instdir.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_SUBST([foodir], ['${datadir}'/foo])
index f394d84a8f828adb83a09740ba98f395d9097de6..dc41c57bff9e3a5cc0bac1b97b2b999aaab5aa86 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for this bug: when a Makefile.am builds nothing, no
 # install-exec target is generated.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index fea2f5b3482f4e2867f0a45abbfbec999286c4b2..59fb1ebe7d5c86f8d9932cf449a133b24ed162e7 100755 (executable)
@@ -20,7 +20,7 @@
 # This test has a few sister tests, for java, info, libtool.
 
 required='makeinfo'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AC_OUTPUT
index 7211efa6e2e42ce100a245a9af9910aead65f5fb..ab4c2b42019c36b4e633a285bf8311ec1bc84265 100755 (executable)
@@ -20,7 +20,7 @@
 # This is the java sister test of 'instfail.sh'.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index 042f07782453a6736d6a407f8cfbfc4dfd883413..d5613b1a9968b3ba3095b92530042be6b12201f6 100755 (executable)
@@ -20,7 +20,7 @@
 # This is the libtool sister test of 'instfail.sh'.
 
 required='cc libtool libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AM_PROG_AR
index 123e08286dffd97aebf2244fdaec3e55dd1e30f1..98b7a7ae7a57714e8648da73f68f79f8dcbc8994 100755 (executable)
@@ -20,7 +20,7 @@
 # This test has a few sister tests, for java, info, libtool.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AC_PROG_CC
index 1b296129f838cc95870ad9ccde3f75b6ef253350..db243df7b4ffcb894b7daa572cc2bd2f7ec19152 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure the install-exec-hook example we give in the manual works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_PROG_LN_S
index 612f9a88aa5bfc0a345ac114aee1e1f231283dd8..06166841fc43e7a2e89ae7b45077b38679478b15 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure the MKDIR_P invocation is correct in install-man
 # target.  Bug reported by Gordon Irlam <gordoni@cygnus.com>.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 30baf91efb50c3b0d397e2c77dc97341d15a1d02..b124f36241077f8e99e1e81cdee3249673c37654 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure mkinstalldirs invocation correct in install-man
 # target.  Bug reported by Gordon Irlam <gordoni@cygnus.com>.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 man8_MANS = frob.8
index 4fd703b5e85faeda875f0a4b36dcaf11d2a23d4a..1a581bebbb1167641da98597eb096a4e92285e58 100755 (executable)
@@ -18,7 +18,7 @@
 
 # This is the mans sister test of 'instmany.sh', see there for details.
 
-. ./defs || exit 1
+. test-init.sh
 
 # In order to have a useful test on modern systems (which have a high
 # limit, if any), use a fake install program that errors out for more
index 9cc659ad548d93c1e340df85b2f07fe42671aa57..b7a614c21d5323a60056e06e34905a5afb131269 100755 (executable)
@@ -19,7 +19,7 @@
 # This is the python sister test of 'instmany.sh', see there for details.
 
 required='python'
-. ./defs || exit 1
+. test-init.sh
 
 limit=2500
 subdir=long_subdir_name_with_many_characters
index 369e23a9eca1074a485dd6f4d70bf6b471bcb61e..64005179c7db5fce85a4f1abbfaa3583be0b5e94 100755 (executable)
@@ -26,7 +26,7 @@
 # For texinfos, we expand names using $(srcdir) in the first place.
 # Let's hope nobody uses many texinfos.
 
-. ./defs || exit 1
+. test-init.sh
 
 # In order to have a useful test on modern systems (which have a high
 # limit, if any), use a fake install program that errors out for more
index e7924b2f99755754169d928110ac2597035dfdd7..4a452ba05211832efe7804c344105468a7a5abf3 100755 (executable)
@@ -18,7 +18,7 @@
 # automake: Makefile.am: required file "../../install-sh" not found; installing
 # This also makes sure that install-sh is created in the correct directory.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 rm -f install-sh
index 9e6182c80931433bd608fd7bafd61d1391e7f6a1..506eee9f3f4dba28e76e3e7e3a953f30cfa25b17 100755 (executable)
@@ -17,7 +17,7 @@
 # Various install-sh checks.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script install-sh
 
index f8238933a17bb8fc350a2bd93983ccea653aa1fe..23334bb624fe836b446512df8ad0e5dfb810edf4 100755 (executable)
@@ -18,7 +18,7 @@
 
 am_create_testdir=empty
 required=non-root
-. ./defs || exit 1
+. test-init.sh
 
 # Solaris /usr/ucb/touch does not accept -t.
 touch -t $old_timestamp foo \
index 2a0fb10091b3f03f5247ddcfcc52ff8d64a95792..aace95c660643d68e36ac5503c3f779aa2b4c370 100755 (executable)
@@ -19,7 +19,7 @@
 # Original report from James Amundson about file names with spaces.
 # Other characters added by Paul Eggert.
 
-. ./defs || exit 99
+. test-init.sh
 
 # Usage: is_in_list ITEM [LIST...]
 is_in_list ()
index 766e8785c52980817b889071bcf31b325d59c0ab..18d06c182f9a9709d5ea8955b9e803e0d17a3e3d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure variable interpolation works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 5da8a61267ee5fce0afbb750e9321b8293dabe54..32a357d8cda4c20c9820e5409387c517ab775814 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure variable interpolation doesn't break other
 # features.  Report from Joel N. Weber, II.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c9ae66c10dca657c183233b637787dbb26ed6844..d4b4f0e80472922f749a54e640db7fca839c0fbd 100755 (executable)
@@ -19,7 +19,7 @@
 # See automake bug#8234.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 5457f193287d3304eab3d3a98bc0e2bca3ace3ff..a6b465f50271a66300a397743c9af2b7f23537c3 100755 (executable)
@@ -17,7 +17,7 @@
 # Test cleaning of Java class files and timestamps.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 4f78ea8832c542877d3db82e24a19af91e20273a..89749e5f9f08de8ec71982859fbeb83e9f07a16d 100755 (executable)
@@ -17,7 +17,7 @@
 # Test on compilation and installation of Java class files.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_OUTPUT
index 7d228bb1f8ed8ea9035a60ce3a3f88d4774230fc..c4725b0d8969d5f1cc8fc6e1bfe9ea0d90c236d9 100755 (executable)
@@ -25,7 +25,7 @@
 
 required='java javac'
 am_serial_tests=yes
-. ./defs || exit 1
+. test-init.sh
 
 echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.ac
 
index 9c0958cdd1709e5d04e5e3c91bc92f316ec6ee83..2d993459619aa9992648dca93640eccc55beec4e 100755 (executable)
@@ -25,7 +25,7 @@
 # forcing the use of the older 'serial-tests' driver.
 
 required='java javac'
-. ./defs || exit 1
+. test-init.sh
 
 echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.ac
 
index c54da0ba38c440c694012f12241a6dc5aca08cb1..a6102408a22dd05a7e3a91c8896a1d71178f8213 100755 (executable)
@@ -18,7 +18,7 @@
 # compilation time.  See automake bug#9306.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_SRCDIR([org/gnu/bug/Library.java])
index 7b3a7598a62e148852c4382248ea759318c8f36c..4ab8de03c17f865c2128e22654710c1358651f73 100755 (executable)
@@ -20,7 +20,7 @@
 # conditionals).
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND], [test x"$cond" = x"yes"])
index 25e851194e3db22ef5cce0ec01581df96ce9f58c..65ffd68dbf32bd69a8166acb5b7e11f9d625152e 100755 (executable)
@@ -19,7 +19,7 @@
 # modifiers.  Also check that '.java' files are not distributed by
 # default.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index b5ad9fc98d97631a849c3f94aeed32a76d6da041..ec7467ed7fed0c11c38c77156d69402c545ca67b 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that some Java-related variables and rules are not repeatedly
 # defined.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 javadir = $(datadir)/java
index a643b3d9858c9d98a6f9082a275488676c9c68d7..b49210b7334e6d4231f469ac8c149ffe98d7e4c0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test support of 'nobase_' with the 'JAVA' primary.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index 8bb3832a92cf075a5d2dce023c1f18e07343afa7..558a8aa16c4a890cf32e0c0463d492681b82665b 100755 (executable)
@@ -18,7 +18,7 @@
 # be installed.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 5b5f2966efdb5bc347245f12312413f18dddf84f..3b15c5822b1b7993782990ba283ad15d91802faa 100755 (executable)
@@ -17,7 +17,7 @@
 # Test rebuild rules for Java class files.
 
 required='javac'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 532cb1ff79025eb167b5797674cf13e1722161d7..b0d51ba808816adff7d1a567dac967a63119363f 100755 (executable)
@@ -17,7 +17,7 @@
 # Test definition of automake-generated private Makefile variable
 # '$(am__java_sources)'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index a1284068fe5c4836ab875fa3f88a09712e4306f1..175b9c67c9660573eaa836014ff5dfee205101fa 100755 (executable)
@@ -17,7 +17,7 @@
 # Check uninstallation of Java class files.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 0103eeae4dd1b9572769eb2a9ebe5e35920ea27a..b1cf51dad6660856b730d779564e887171755929 100755 (executable)
--- a/t/java.sh
+++ b/t/java.sh
@@ -17,7 +17,7 @@
 # Minimal test of Java functionality.
 
 required=javac
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_OUTPUT
index 286fdd6b6a5c08618b2c27d116e7bff294ad8c6f..c9064aca51f2390c7c38b6023074d261ac609989 100755 (executable)
@@ -18,7 +18,7 @@
 # no classes to compile.
 # Report from Braden McDaniel.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL(WITH_JDK, false)
index eab72038588399cd973a662f67e0eafae55ad7c4..f7fdf65d18b088a272fd0e7807ae52c986076051 100755 (executable)
@@ -18,7 +18,7 @@
 # *.java files when there are none.
 # Report from Johannes Nicolai (PR/441).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([WHO_CARES], [false])
index fb0872e8ed189f94230d097477d02099a1772aba..e0764bddc0d65ea94b287646f61308875f0dd3c0 100755 (executable)
@@ -20,7 +20,7 @@
 # the *.class files).
 # See automake bug#8461.
 
-. ./defs || exit 1
+. test-init.sh
 
 $ACLOCAL
 
index 17f0dad9fa2f882ce1f6f3f72bb98ca23e446830..e3aad99faa46eef8eeedf1556d4493f36b449f92 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check support for $(JAVACFLAGS) and $(AM_JAVACFLAGS).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > fake-javac <<'END'
 #!/bin/sh
index a5c4a62f07d43136c2338e7f207cd2d9ba8d6887..6d039c2c4612a1c712e3b84e301c32313fa7f10f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure JAVA variable can be defined by AC_SUBST.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([JAVA])
index b6929b85433c51b27d939e1935b2043b6fb5a890..e0e8acaf2119c3bcf7b15c8587ee2e493b245708 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure redefining JAVAC with AC_SUBST works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([JAVAC])
index 948745949e7a39d0a1fe67f88e2957a20f9933ca..9fbaf2c494772f6eba1e7b2101d24f82f31ab35e 100755 (executable)
@@ -17,7 +17,7 @@
 # Check to make sure incorrect LDADD usage is diagnosed.
 
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7eb9be311e042871e49eabf55a3ac2ffaf2c3f3a..d25231d84a8219f6cab51cee7c8dedd2a52234e9 100755 (executable)
@@ -18,7 +18,7 @@
 # PR 77.
 
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 38a129c5aecde7f4a7928706e1e7ffc6a6a41394..52becb7175a4f4666d0db14a996d7fb2199e0ffd 100755 (executable)
@@ -20,7 +20,7 @@
 # See also sister test 'lex-clean.sh'.
 
 required='c++ lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 3bc52d3aa8ad639dae828afce6ac3c07a70a4120..7fb7a2ef4bf3482a887c2561198b4548140a6d91 100755 (executable)
@@ -20,7 +20,7 @@
 # See also sister test 'lex-clean-cxx.sh'.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 15557a875198913287d2d5cbbe3b922e8caedde6..0e72281e7c23ba198f58b27d807558f7072942c0 100755 (executable)
@@ -18,7 +18,7 @@
 # Test synthesized from PR automake/6.
 
 required='c++ lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index e7c9538858aa52bfbe46f04a11e31d4472d48082..7828088fd751074924e76bf627fe02b48b785db9 100755 (executable)
@@ -18,7 +18,7 @@
 # in obvious ways.  See PR automake/6, and related semantic tests
 # 'lex-depend.sh' and 'lex-depend-cxx.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7280b84db1a954e33d8e0ca08b0ee50f5317ffaa..081f1bafb64d1062e39430e986aa665c13cb18a1 100755 (executable)
@@ -18,7 +18,7 @@
 # Test suggested by PR automake/6.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f8d7333e64e77f91acab6f488abc65fc73c4ea48..d50a1ef20b1221c71ca198519f3663eb5056be8e 100755 (executable)
@@ -18,7 +18,7 @@
 # bugs #8844 and #9933).
 
 required='cc flex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9a64266c91599046ce19eddd50b14f5434541521..5a2e3c384e1e8dac149ce9a1d854c48405c47181 100755 (executable)
@@ -18,7 +18,7 @@
 # library, if that's available.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 11767d890bae0fc98059e63f1f6a502ce01f5ad6..e0b05f5c206e01be265171c40d149a2e4cfedef8 100755 (executable)
@@ -19,7 +19,7 @@
 # See also test 'lex-lib-external.sh'.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9bd597ae4826b7cfe7bae614fc36aac582ea519c..f07b1bcf9623b87b51c96049a0ce5cdbe1077669 100755 (executable)
@@ -18,7 +18,7 @@
 # LIBOBJ machinery.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 11f40b8e8701bda44257275a17b8da9054102ec8..4a51c1edb7842e37c971d834005f7a7e0eaf8079 100755 (executable)
@@ -20,7 +20,7 @@
 # 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])
index 0bbb6cbe4a2239a50b4bef4e3990d60609b781f2..e318c3ee2682673aefb67301c23ae0fb9c7d1f7b 100755 (executable)
@@ -21,7 +21,7 @@
 # for yacc-generated .c and .h files.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c4c49649869eb08572c299c516641b9f7948ca69..fed6cb06b1fc18765854fea0d95f4b12d843d695 100755 (executable)
@@ -17,7 +17,7 @@
 # Check Lex support with flex using the '%noyywrap' option.
 
 required='cc flex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 8172ec7f128d1497f105989d4db9cb58b2897463..f6b15ab2c3ef2acd18a999abf2f3652f23313750 100755 (executable)
@@ -21,7 +21,7 @@
 # for yacc-generated .c and .h files.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AM_MAINTAINER_MODE
index 0c021a26a47689ef5d1bf98b7a52fdb2e6bd0c3e..2d6405160009272454b5a770a781492302092691 100755 (executable)
@@ -18,7 +18,7 @@
 # are used, even when dependency tracking is disabled.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<\END
 AC_PROG_CC
index 34a14934bc40cdb1d6b92941c142e9b4779683ff..754031d7fbc92a9d8dafefc690446a3c2d0b6641 100755 (executable)
--- a/t/lex.sh
+++ b/t/lex.sh
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index bfdde02ae7f17c48b4fefacd8104e7a034f4bb33..c959db73ab27f49988c16f80029c8cf4590830ab 100755 (executable)
--- a/t/lex2.sh
+++ b/t/lex2.sh
@@ -16,7 +16,7 @@
 
 # Make sure that Automake suggest using AM_PROG_LEX when a lexer is used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index b008880f930c44feb9eb0e56792ca355e0ac3e85..633d55a4f7dba075ed7f69a244ace212c5d15331 100755 (executable)
--- a/t/lex3.sh
+++ b/t/lex3.sh
@@ -19,7 +19,7 @@
 # From Matthew D. Langston.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index cce028a79b8bae9bd1647761086acb6cb7a88210..d8ccc7a75f1df5a3d13916540cfd76b5d47511e0 100755 (executable)
--- a/t/lex5.sh
+++ b/t/lex5.sh
@@ -17,7 +17,7 @@
 # Test for subdir lexers.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index d46c82d34e46558d32fa1727755ebffb83e42318..90f2dc07ffe5fa3e5deef6d94bda43cdf39ce2b3 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure Lex + C++ is supported.
 # Please keep this is sync with sister test 'yaccpp.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 569048ebe92a12fe04a1f58cb233e941f2c0d6f5..04098bb53f7e55fad7269897ce0eb260bbf7b1aa 100755 (executable)
@@ -23,7 +23,7 @@
 # Please keep this in sync with sister test 'yaccvapth.sh'.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 cat > lexoutroot.in << 'END'
 LEX_OUTPUT_ROOT='@LEX_OUTPUT_ROOT@'
index 933f89698c22382e9460700c2607a58e2543c465..b2775218121bca5f7be3cfdf4dc693d5446e9c0a 100755 (executable)
@@ -20,7 +20,7 @@
 # and yflags2.sh.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >fake-lex <<'END'
 #!/bin/sh
index f657da5509ab894a1ca10bbe904b886e167b7638..5e5e8bf5ebd48a919802c2b211df5a094ca77afd 100755 (executable)
@@ -19,7 +19,7 @@
 # Please keep this in sync with the sister tests lflags.sh, yflags.sh
 # and yflags2.sh.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >fake-lex <<'END'
 #!/bin/sh
index e4255e0c5731b4a1128a9540e2f1b22ea770047e..14c6739718985e168ffc679977e3a159e99dc6b2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # PROGRAMS and LIBRARIES can be installed in (pkg)libexecdir.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 libexec_PROGRAMS = foo
index c730c522ab161eaf58d4772a5e443354ffe49fc0..c9e16da2b510d7e983bd4fb5e30bca564b8a9e03 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure AC_LIBSOURCE and AC_LIBSOURCES work.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.proto
 cat >> configure.proto << 'END'
index 1c0736bb272136de363e3fe98504704b2d85370b..d8e8d586c9a9b0d4c2ef4448603e4e2c1536d9ed 100755 (executable)
@@ -18,7 +18,7 @@
 # it's in BUILT_SOURCES.  Reported by Erez Zadok.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6c917e29e3013d84720d0b077d4cae18722b1ee9..910dd790fdae6bb19770c55e56b8705dd72cb817 100755 (executable)
@@ -17,7 +17,7 @@
 # Test if a file can be mentioned in LIBOBJS and explicitly.
 # (See libobj13.sh for the LTLIBRARIES check.)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 3a9ee713ab98f3a1d75df819ee70d157e8a03845..f872ec7e71aea99a75908d936393843e25b99a24 100755 (executable)
@@ -18,7 +18,7 @@
 # (Like libobj12.sh, but for Libtool libraries.)
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 266aaadb9ab7e5226a9e2c365cb67f4fc75a7398..17ba986d00e63b7373aadbeeddd69105d4e24582 100755 (executable)
@@ -19,7 +19,7 @@
 # that uses it.
 # Report from Bill Davidson.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_PROG_CC
index c7c30e8e7390d031f6399b41791cbd2308046134..b60154dfa1b0005dbf80d030c3d4ddc8d6432093 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Nonexistent sources for AC_LIBOBJ should cause an Automake failure.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 71ace126f4c9ebe8262ef0038bfc1d1a541e2ada..004c539143b76a678d1b5803f3f9ff8b8e4c6201 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Nonexistent source for AC_LIBSOURCE should cause Automake to fail.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ccaa6bd2605ad3b4fe3b1513eed3804d4a3cbe68..6db5f435c17f3dc2b2ce44862528e86a1302029f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Nonexistent sources for AC_LIBSOURCES should cause Automake to fail.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9bf602a6132cff8677feffeba913ca656019cd25..f2b32ac229ecb55afae61895188fb7bc5073d5c7 100755 (executable)
@@ -18,7 +18,7 @@
 # Please keep this in sync with sister test 'libobj16b.sh'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.proto
 cat >> configure.proto << 'END'
index 600572523fc5cd827f1f0250b3af331b0afbf354..abc6a66c69a2b41629a26f840f53a4b1ba51e6b4 100755 (executable)
@@ -18,7 +18,7 @@
 # Please keep this in sync with sister test 'libobj16a.sh'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.proto
 cat >> configure.proto << 'END'
index e4277f91a29016d83475853cd880813cc61972b1..bc743b22ca9e11b191e8e0f6037f5f15824eb740 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure AC_LIBOBJ accept non-literal arguments.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 77d7d54baea48aa48e710d3265d4b24bc585c3bb..209cab15503dc7e830f0399e12181a70a5bd635a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure AC_LIBSOURCE and AC_LIBSOURCES use arguments literally.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index cae9e8125011963b20ac7cc061b0403ea85cbe78..7a4c89569010508a644d7521a74d3081491d8629 100755 (executable)
@@ -17,7 +17,7 @@
 # Test support for AC_CONFIG_LIBOBJ_DIR.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_LIBOBJ_DIR([libobj-dir])
index 778dbd3dddf99557a4c067d42c5991f8defb0055..cce06273880aa38a1fc1096f4ff2db611146893b 100755 (executable)
@@ -18,7 +18,7 @@
 # Bug from Josh MacDonald.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([subdir/Makefile])
index 52c41ecf9068c2f04dbb77ff659739104b1c8782..3f67144dd063175706f1c0eace78ebec4b1c32b1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test error reporting for AC_CONFIG_LIBOBJ_DIR.
 # See also sister tests 'libobj20b.sh' and 'libobj20c.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_LIBOBJ_DIR([libobj-dir])
index d9ba8dad1f6a631d44414e73e8dfb3ebdf94f938..b42b8c90126fc88700c4829efca02473bc252eba 100755 (executable)
@@ -17,7 +17,7 @@
 # Test error reporting for AC_CONFIG_LIBOBJ_DIR.
 # See also sister tests 'libobj20a.sh' and 'libobj20c.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_LIBOBJ_DIR([libobj-dir])
index fe6ae6392d5fa63f5703b0bbaba02542c558ead8..295eeacd0c8b6e06f5f2cc1cf81b726db29e28ac 100755 (executable)
@@ -17,7 +17,7 @@
 # Test error reporting for AC_CONFIG_LIBOBJ_DIR.
 # See also sister tests 'libobj20a.sh' and 'libobj20b.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_LIBOBJ_DIR([libobj-dir])
index 1c78cbabe90c299772cdbbfdbb672005fbfdc9e0..c42359102bb18ad2643ae935f9455adbf88b66a1 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we complain if @LIBOBJS@ is used without being set in
 # configure.ac.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_RANLIB
index c7a199eb5f6940c8f6b06afc2e964e52e7e734f5..f2ab0cf6e4943093ab4a34f467d4ecc4ae11f47e 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure LIBOBJS error only occurs if LIBOBJS seen.  Report
 # from Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = foo
index d8b7e2d1de47833b1caaa72d8efa14970acdf1fd..7d1d51018a17ee0a24736723e0da5925b2128484 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure AC_REPLACE_FUNCS works across lines.  Report from
 # Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = joe
index 1630bee6f2bb44c838d9b2b5d35caa440f4a5738..1fa6d2047fbdd0b6da5aa2e8a32fc6406ee30f5d 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for multiple replacement functions.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index e95fecb90363773cc0885b0b0769e1d8b82df271..8675f28e1d343a09e5fd97a095986fa9088ff7ac 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for _DEPENDENCIES with libraries.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_RANLIB
index 98c880bdd2502a5d11acda7752be1839c3951c61..0de45af250cff51ab53d7081fc246489230fd035 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure Automake suggest using AC_PROG_RANLIB when *_LIBRARIES is used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 308e74836042251c1452a039e1dc4584f13dc599..642c3c925a64b1fcd804c1b7f59b76f30f5f85d8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure Automake simplify conditions in diagnostics.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CC
index c84ddb8a6cdf33bd4b9aca62b5b9fa1c0d252711..968bcb91811160e7ea7c942d22edba2d2b79502b 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Guillermo Ontañón.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR
index 1f91f19eff0394f74e1985d5892692e87d22f0db..5ebcf4252f7a40c11c7da6faf3429357f058dab2 100755 (executable)
@@ -18,7 +18,7 @@
 # Report by Charles Wilson.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_LIBTOOL
index 17fea06560af796d3301dd386edbb6a540e1772d..c50777b7cb4de4095a36b19d0edbf2ed4093ffa0 100755 (executable)
@@ -18,7 +18,7 @@
 # to the test cases requiring them.
 # See also automake bug#9807.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo "# Automatically generated by $me." > get.sh
 echo : >> get.sh
index dd918a14d5481ff8e0908b9e2aacf8f5403b220e..d1f11625998fd98b02d3894c672ff13aba910caa 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Kevin Dalley.
 
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_LIBTOOL_DLOPEN
index d9db4aad1e2af5654c8c790e2c151b0c9f9e44f3..df25abb5bb5ad2a1362b950a4a1aebdb808b016c 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Eric Magnien.
 
 required=libtoolize
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index fdbd86d4238028b6fb1174a19c5255e099f0188d..b86c84fdd613bc701c12d7889153265f22a3bbbb 100755 (executable)
@@ -18,7 +18,7 @@
 # Also make sure we do not bloat the Makefile with unneeded rules.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index e8704b79a1cb575380b83d18d939bcabea205359..84fa95d9a4f220255f095b273bdf6b72946032b2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure Automake suggests AC_PROG_LIBTOOL when *_LTLIBRARIES is used.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 760509808bfe94bba1b99f96fd648024054c6396..9f7e995c552085c3b64f232932fa10e108a3c581 100755 (executable)
@@ -19,7 +19,7 @@
 # Report from Harlan Stenn.
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([COND1], [true])
index 19f30e79f97d45a52dfbb64f6058599eda58634f..34c8dc88e0f13ac46a96d5de8aecf0034cac7440 100755 (executable)
@@ -18,7 +18,7 @@
 # in different directories.  PR/285.
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([COND1], [true])
index 59e9e25042b9a3f709ae7fc7c26fcca88182fc9b..f810b6902dd77c3a6e6f25e6e03e653b9d967c01 100755 (executable)
@@ -18,7 +18,7 @@
 # Also check basic support for AM_LIBTOOLFLAGS/LIBTOOLFLAGS
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 8cfb8e351389ed0ce6514a815853b1b99c27f55d..edf432d9f06a235232d9a866b64fdc5eec5b88ab 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure Automake diagnoses conflicting installations.
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([COND1], [true])
index 1bb85ccb2b243362820d34600f0197262a3db05a..4304467e95af8a43d905393165d27e0bf2d0e9d9 100755 (executable)
@@ -20,7 +20,7 @@
 # xxx_LDFLAGS.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index cad43074cd1832d06746c82cad0bb3fe476265d3..bda8b86b11b1400c73206a8ebdbf3e44fc42ab8b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure COPYING is not overwritten, even with -a -f.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >>configure.ac
 
index 736e96fa0b09c60966e77b4be101010ecd1e9b88..ed1fd3c72fb56dc1e66dfd02d9b4da673b5f6055 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that installing 'COPYING' outputs a warning.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = gnu
index 27dcb2455b58e7e3a87ea4bb9aa21506d93da11a..14710e8757303a509f2110099ce5157bd008783e 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure the C++ linker is used when appropriate.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index a5ac4b1019f4cd56e1173539ea799b350508e4b3..6913d47e9e2fab3dcc4f182e18b2b5844dc4853a 100755 (executable)
@@ -21,7 +21,7 @@
 # See automake bug#11089.
 
 required='cc c++'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9ad431951115e0d71f2b876c29dfd85cc0f14999..e9011e17d89207a82f1abad499aacf38f53f179e 100755 (executable)
@@ -18,7 +18,7 @@
 # *_SOURCES
 # Richard Boulton <richard@tartarus.org>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f9c7c18cf16886c6e773f7946726caf3a4069e39..90348d7f9f2763111231f6bdf5896968e7b2de3d 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure the Fortran 90 linker is used when appropriate.
 # (copied from 'link_f_only.sh') Mike Nolta <mrnolta@princeton.edu>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_FC
index 5d27025082629d8c671573148635820b32311b40..a17690201f7622625116ce0a96dd0cca013c62b4 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure the Fortran 77 linker is used when appropriate.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_F77
index f334ad83fd7351576b5ca28056efc3bec1776375..76b9053a67aefcb36b3e9e9dcd50f341835606e0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure the Fortran 77 linker is used when appropriate.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 03b71f5e2e856e6f1cbcfcba232fce40794334d7..059f1556d39b93e2d3bd6c6ae99b071604bde419 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure the C++ linker is used when appropriate.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 29893d89906b72beb1549c06f65dea190f00758b..723cddc9716504934882c746a3b6e55117814b56 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure the C++ linker is used when appropriate.
 # Matthew D. Langston <langston@SLAC.Stanford.EDU>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 1bf1085dcae6ddf68d10e47dd6d5bed5c20c624d..682225f2965edd4ec4a978dbec7c205e6f36f2f0 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure _LINK variables are detected and used as documented.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 1d7d8f3c748e4581f5f840924b5ae304c2d9e8a9..4c52f2e30b68f2b8a679908c918ca6b088608bd2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Elisp byte-compilation honours AM_ELCFLAFS and ELCFLAGS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 lisp_LISP = foo.el
index e0f21ce98c100712ce5f0914c4ff39e3f0bab352..43e2d09962ed3a90cc95c7de46476b25e6cc73b7 100755 (executable)
@@ -18,7 +18,7 @@
 # required by other files.  Related to automake bug#11806.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PATH_LISPDIR
index c372ea5dbc2db2088ff9d3aee5d58cce37fee847..edcf9bae06f6dc406ce20fc2f91e5c373e38a897 100755 (executable)
@@ -18,7 +18,7 @@
 # See automake bug#11806.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PATH_LISPDIR
index 20073ecdbfedc4851b82b1941574aff970aa6e39..9688eec9fbdae6f011f453dd8b7faee216a916b6 100755 (executable)
@@ -20,7 +20,7 @@
 # judicious use of $(AM_ELCFLAGS).
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PATH_LISPDIR
index 5c67c534fe9207f84791ce54ca639eb2e35e8605..9836400daee7726873cf2bd64808440202f85c9c 100755 (executable)
@@ -17,7 +17,7 @@
 # Emacs lisp files in subdirectories.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PATH_LISPDIR
index d7517adb1a41748e5f0cd6c6ffefa8c5da911a15..0ea3e9fa25553bcbb99285e5333d1fd11023abbb 100755 (executable)
@@ -17,7 +17,7 @@
 # Compiling elisp files in different subdirectories.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PATH_LISPDIR
index 4f0791124b38ccf204a365a8241c6dc6af77bef3..dfd68008f83062c18b2a31a84aa2638739c3f4eb 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that Automake suggest using AM_PATH_LISPDIR to define lispdir.
 
-. ./defs || exit 1
+. test-init.sh
 
 
 : TRY 1 -- We lack both EMACS and lispdir.
index a75215112a571c774b43706787dc06baef355116..7717c1c254d60be601bad2fd55f664404f9a11a3 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that compiling interdependent elisp files works.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 lisp_LISP = am-one.el am-two.el am-three.el
index 41dc87379dedc442a6ac9a3bba00866dd3737da2..1b2809ca90d5dca8ade9ae5bd683d6841cb916f1 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Simon Josefsson.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 lisp_LISP = am-one.el am-two.el am-three.el
index 28d7a62848f478c406248855c50feef829223233..de9c1181ef6150bc1666695a170603917571535c 100755 (executable)
@@ -18,7 +18,7 @@
 # non-bytecompiled *.el files.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 lisp_DATA = am-one.el am-two.el am-three.el
index c84917ca7441408bd9b13186c41990ddc2e106a1..ae81a1cab3e4da1f55ad1788740641e2f1ef7afe 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for conditional _LISP.
 
 required=emacs
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 dist_lisp_LISP = am-one.el
index 7efa27fad118c384362077b2936f6c3dff8bb39a..4c4676ea90aaddbd6289694bc73c6e735d1c1022 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that lisp_LISP also works when emacs is not installed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 dist_lisp_LISP = am-one.el am-two.el am-three.el
index 7464c6891556b1ed4e27a4b0dd4dbc8b3fc4ac88..7348e4147a72d15746b4bb1b19bd9f85993ea2d5 100755 (executable)
@@ -17,7 +17,7 @@
 # Check the recover rule of lisp_LISP with parallel make.
 
 required='GNUmake emacs'
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 dist_lisp_LISP = am-one.el am-two.el am-three.el
index 765942d96042389a184921f6d68551440e03abf3..f57e6dce3fb947e59dbdda8d38b752ab20e33ccd 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that 'make -n' works with the lisp_LISP recover rule.
 
 required='emacs non-root'
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 dist_lisp_LISP = am-one.el am-two.el am-three.el
index 8bd6b79054d58578ec553077245b2a53079ef128..2aa4d063460c9e67c86158245da13457d5e5922c 100755 (executable)
@@ -18,7 +18,7 @@
 # From Adam J. Richter.
 
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([LTLIBOBJS])
index dab1e330f3a21dd082bd70f26590223389005247..0ff7090bb13ec5fa20c4a9ee653c145c0fc3f4c6 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for locations in error messages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND1], [true])
index 1174a143717f3396a56be75be68b4749271de2d5..1fcc54e1b88e409d52a7262f06707a91bb77aab8 100755 (executable)
@@ -17,7 +17,7 @@
 # Long lines should be wrapped.
 # Report from Albert Chin.
 
-. ./defs || exit 1
+. test-init.sh
 
 n=1 files= match=
 while test $n -le 100
index d0240fdc6d0dd5c799a61854e1975eef81d8ce92..b262f45fe22646ad90afaae8c806ef56de74efc4 100755 (executable)
@@ -17,7 +17,7 @@
 # Long lines of += 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;
index ae5415cdf618e1eb00b96b87312d652eb58d6482..02e8bad18f39db598f257085be9a87e7d37cc270 100755 (executable)
@@ -18,7 +18,7 @@
 # This combines two examples from the manual.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([WANT_LIBFOO], [true])
index 49b14d8e922392e1bf194932066653eef2906619..a16a7cfe7c8bf2d675942ac10b913352a5c64114 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug in conditionals.
 
 required='cc native libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index cf06271d9ad52554b3fccc32d20cd997d5864c82..580ee6d533c41aa94f71561e28bb10e8aaa87fc9 100755 (executable)
@@ -18,7 +18,7 @@
 # This example is taken from the manual.
 
 required='cc native libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index a13ae0352ffd470881128b28280f1ff3c4506ccc..950bc429ec4df99af69d63488f7fd12f35945a16 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure libtool library dependencies are correct.
 # Report from Lars J. Aas.
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR
index 69e8d55e7aca224617ded41cb3d7955c34f71191..a98cffa586c97c6d28ff1dd256ca63630425876e 100755 (executable)
@@ -19,7 +19,7 @@
 # present since libtool 1.9b, circa 2004).
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index f12da7760a4d96d72f181782bdc15a611a1774c4..e476c987c9ea66159417f85ea257775164ab8f4d 100755 (executable)
@@ -18,7 +18,7 @@
 
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index ed0d2ed3c41e3756836560bba6f4d2cf16dd05be..1e8ea24d9d68ebbf630dba7aa2816e1396c791f4 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure LTLIBOBJS alone works ok.
 # Report from Vadim Zeitlin.
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([LTLIBOBJS])
index 7c848144cefd9a3915b63c8a7f66ab3dca67f743..acce8bbd6393386793707f21c40158b3d4007983 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure a sensible default source for libraries is used.
 
 required='cc libtool'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c8f60edec785f2616a554a3e05bf1a462cd7e04c..32d08161d6ec2f68e70213b7e975f7ecffe45cb5 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for correct installation order of nobase libtool libraries.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index da38c3173fa49681a6b29e6eb86714089b568da8..46015ed4f2f1f2d4a452766be1898de1c6fb3fdb 100755 (executable)
--- a/t/lzma.sh
+++ b/t/lzma.sh
@@ -16,7 +16,7 @@
 
 # Check support for no-dist-gzip with lzma.
 
-. ./defs || exit 1
+. test-init.sh
 
 errmsg='support for lzma.*removed'
 
index 3da20eee0b66db3e08adcabcf0867f0b9c47c063..c845617f72548e1e412ef08dbd0f15e31c8c1394 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to see if 'm4_sinclude' and 'm4_include' works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 sinclude([doesntexist.m4])
index b5c6ffe49abecb8c0b43e0c04aeee578b3acaf9a..0732fab179068eedeafeff1ca8b566fa22486b28 100755 (executable)
@@ -18,7 +18,7 @@
 # This test is for VPATH builds; see sister test 'maintclean.sh'
 # for in-tree builds.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([bar sub/Makefile])
index 757cf859e16dc15af456f51e29bf13fc0612f4c5..b7fd1b288c520839f1584fdc83b735eb1bd63218 100755 (executable)
@@ -18,7 +18,7 @@
 # This test is for in-tree builds; see sister test 'maintclean-vpath.sh'
 # for VPATH builds.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([bar sub/Makefile])
index ebdf4d72418fc678f23571c83a04011679fedfa7..058438db88ac978b55fc3b88f858e1d5bafb87c0 100755 (executable)
@@ -19,7 +19,7 @@
 # related to the enabling/disabling of maintainer mode are correct (see
 # automake bug#9890).
 
-. ./defs || exit 1
+. test-init.sh
 
 set_maintmode ()
 {
index 1fd255d1135d305add631eb0b39b142b05976d54..adf2f044103deaeed761f1ac44f4284be54c7a1f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that $(am__make_dryrun) works as expected.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 14
 
index fad2242b84fbe2c6645fe201bd07eafa18d3f38e..1cb814921e2f6f60c0f99be9b4b226b494b9a420 100755 (executable)
--- a/t/make.sh
+++ b/t/make.sh
@@ -18,7 +18,7 @@
 # From Ralf Corsepius.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_MAKE_INCLUDE
index 192e56baea85945108062696b85f449436b3b8e8..b4c5bd79ebe76ccf4f66de02a9c6ff51e541c502 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we don't emit a rule with empty target if list of
 # automatically-computed dependencies for Makefile.in is empty.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index b339bd73c7820cf67ce430fc208b8aec009083f1..e8d1ea57a015d268219a4d01cb1d9020b68e0ac5 100755 (executable)
@@ -22,7 +22,7 @@
 # via autom4te.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<END
 m4_include([version.m4])
index c7d809e89651d54ff316b9b058747f018b5c8b33..20ebb57ec39078f8452f819ef3b68ac511645b98 100755 (executable)
@@ -18,7 +18,7 @@
 # without -B, it may reuse the same shell for separate commands in a
 # rule, which can lead to interesting results.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index ec72008958a9cfef5eefc3d2f7992446b301ace0..5087b9259a30c5b082d2e192f0b77bf0f55c0675 100755 (executable)
@@ -19,7 +19,7 @@
 # Also, ensure that 'make -n dist' and 'make -n distcheck' show what
 # would happen, at least when using GNU make.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 5f5d87a1bdbb15ca533b6ec4ef41a9c1ebecb49e..dbbdb4afa1d971d9ad2a2bd6f8b22fe518d95d37 100755 (executable)
@@ -25,7 +25,7 @@
 # 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
index 3654196b2cc76e4eb32c5dad96b996ead9527a1c..4614cd7c518e5c4ce5dc0b676e2f259b545d6aa1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that automake includes the needed variables,
 # but not too many.
 
-. ./defs || exit 1
+. test-init.sh
 
 # Find the macros wanted by Automake.
 $ACLOCAL
index 3feb3fa05d7bf4df47c1686c1eb54ad43cdc7a1d..d5c9ece6bd67f8f355a9b17419b7a24f49e3de78 100755 (executable)
--- a/t/man.sh
+++ b/t/man.sh
@@ -16,7 +16,7 @@
 
 # Test to make sure 'dist' prefix works with man pages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 dist_man_MANS = foo.1
index a7b7646591f959449bf9e4d6e8f19f5ff0c572b1..31c4af5e23821d83f8664a6a913758da8a9fa5c3 100755 (executable)
--- a/t/man2.sh
+++ b/t/man2.sh
@@ -17,7 +17,7 @@
 # Make sure that man pages listed in man_MANS are installed and
 # renamed as documented.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 2604c014cd0a9676b0ccb68595a09540e9aaede8..8904e549b977dee0b3555c98e4d9292f1c4748b3 100755 (executable)
--- a/t/man3.sh
+++ b/t/man3.sh
@@ -16,7 +16,7 @@
 
 # PR 516: Prefer generated manpages to distributed ones.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 dist_man_MANS = foo.1
index d3c227007636b8507e2f5166b8ad4934d8279f44..a04ccfe06ad7ff2a71564a12e69cb38918dcf08f 100755 (executable)
--- a/t/man5.sh
+++ b/t/man5.sh
@@ -16,7 +16,7 @@
 
 # Make sure to extract the correct mansection from files in man_MANS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index dc90321ffdcd8f1ddd53eb390482176d91f9175c..d854732b2c3d69bcc0cc437939e0ab83f855a3ce 100755 (executable)
--- a/t/man6.sh
+++ b/t/man6.sh
@@ -18,7 +18,7 @@
 # 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 \
index 5791b7218f7fdd9159f2293a7596f566819d311a..3ce410e1430df6bc9a35c275ee8e5dc83fd403c7 100755 (executable)
--- a/t/man7.sh
+++ b/t/man7.sh
@@ -16,7 +16,7 @@
 
 # Check for a bug in maintainer-clean w.r.t. generated manpages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 dist_man_MANS = $(srcdir)/foo.1 bar.1
index a7116ae7e2d03f66949d80e9127197711262cbdf..7396006ecb479939d562ecfffc85678153c09bbd 100755 (executable)
--- a/t/man8.sh
+++ b/t/man8.sh
@@ -16,7 +16,7 @@
 
 # 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 \
index e44144a8f7f80f2c0136ec7bcdd5cc2e45fb75a8..009c753c921c7bf6cbe28c70752cb520dc85ee8f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test that mdate-sh is required when Texinfo used and version.texi needed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
index 6ba57278bed4d56ab2fc586cb5c19706d3654cd5..ea005fe5e31f21ee975e8c5a743179d1e59596f6 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure mdate-sh is included in distribution.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
index aa2755ee0b695537ea6dc1515b4d1103f699749e..409abb78f893fdcf6e8d896a98593a923784334f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure mdate-sh run correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 70809a6a6b1dd3c38c5f49492f79384c633810e2..912ef418d67c23180bdcdee6c035f5ad4630995a 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that mdate-sh is added to the right directory.
 # Report from Kevin Dalley.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 0cbc1985670875eeb2d87a688a0576b264d58228..660366726ab4a89f0512a49613f1fdf06ddf83b2 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure mdate-sh works correctly.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script mdate-sh
 
index 110bb2d57eaad410413475cdfba6ffd35df6c1c1..fbb85571f1fb932637c46a378bd3d60acaf8ecfa 100755 (executable)
@@ -17,7 +17,7 @@
 # mdate-sh can work with weird file names, doesn't eval too much.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 a=
 file='file  name $a'
index d1c0cd41fa677482c0029a02e184aa8e8d51a57a..f8e91f9a442d5d7fb09272335a9d69a6f914b239 100755 (executable)
@@ -17,7 +17,7 @@
 # Automake should stop the creation of Makefile.in files at the first
 # encountered error due to a required auxiliary file not found.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AM_PATH_PYTHON
index e4a1033f3d71fef636b18dd54ff9abdb906c7796..43ebf200205816cd4877e06ff3cb1ae2ee23e56c 100755 (executable)
@@ -17,7 +17,7 @@
 # Test missing with version mismatches.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script missing
 
index b2cacf9793938560f9758ff8a112ce77e39e7edf..3cd6333a094c5b092a98f427cffd92d7c20b4ab0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test missing when running a tool's --version.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 get_shell_script missing
 
index 2cc68a3d5ac8fbdc568cea2e59edcefa0d2595e8..bbd8c9358cc1eb9c9e33dfe70ac7f8c082bea727 100755 (executable)
@@ -17,7 +17,7 @@
 # AM_INIT_AUTOMAKE should still define $(mkdir_p), for backward
 # compatibility.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 8482dea3699cfd537462c5cf39443b8393b0abb2..6f3b1ee00e28f2eccca0189ee662795050afd7e6 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the AM_PROG_MKDIR_P macro is deprecated.  It will be
 # be removed in the next major Automake release.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AM_PROG_MKDIR_P >> configure.ac
 : > Makefile.am
index daf8760ae9671aa1c2961647bdf42a29e2004a1c..5ac297a22f459aaf635f8ce99dc6f86b3845f1e3 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure no-installman suppresses man dir creation.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 258275821b069ff40b9919cc3ab7262579881f4b..02dca5e74b14b0111d79791e3c96c7b4738cf2a8 100755 (executable)
@@ -17,7 +17,7 @@
 # Test mkinstalldirs with spaces in directory names.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cwd=$(pwd) || fatal_ "getting current working directory"
 
index 51c1fe94938e6d11c7754f52565f6e10060023f5..3fbb9a53e746ca0aa10cb168e773872e37427ac5 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug where mkinstalldirs variable can be set incorrectly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 pkgdata_DATA =
index 23cb646a5a2ba414741013b942c7f320ff34737d..ea26c0202ec8c112a8fd8eee2bf66136e47815e4 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check for AM_MAINTAINER_MODE defaults.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_MAINTAINER_MODE
index 9147da1f2bf5fafaef88992f434246dd3a58f7be..e1b2807bd6b0534bad79ea3803f15476a301129e 100755 (executable)
@@ -19,7 +19,7 @@
 # From Derek R. Price.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_MAINTAINER_MODE
index ab0e33d3af597a16c26768c8ddb0eb677475dd95..3673d45ddc6d68802de52817d5cb59266213f847 100755 (executable)
@@ -19,7 +19,7 @@
 # by a regression caused by removal of automatic de-ANSI-fication support:
 # <http://lists.gnu.org/archive/html/automake-patches/2011-08/msg00200.html>
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index d16b58060cc7eb598aa90a50cb315bd40305986a..583686fbbaff478c88d7e70327d84ac8d1c66d79 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for install-recursive appearing in a non recursive Makefile.
 # Report from Bruno Haible.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 noinst_SCRIPTS = hostname
index 4a6660176c5ca6c04b45357dc7126c232374b26a..af47c01284166cedbc9c31c6edb89cb98a39c483 100755 (executable)
@@ -19,7 +19,7 @@
 # greater exposure of that test.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_PROG_CC
index 1ec466f1e54533d3fc40d4e9b76d4317c408a0d6..ef5dfcedf9228b66daae0be564ba476ce91ecf40 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Interaction of 'nobase_' and 'nodist_' prefixes.
 
-. ./defs || exit 1
+. test-init.sh
 
 # Simulate no emacs and no python (it shouldn't be needed in this test).
 EMACS="no" PYTHON=":"; export EMCAS PYTHON
index dba17f7153b4bee8b2e2eb3bab49bd18c881191f..fe72ad47c229e1d64df61bfdb516a5bcb71fcee3 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure nobase_* works for python files.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AM_PATH_PYTHON
index 1432d8dbeb08c38a885bc8fd3093dbe5f493b4f3..249eb29b9e6294e511fe68ee6acba86d647d3c33 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure nobase_* works.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_PROG_CC
index 979b906d6436f6cf512118951c6f552d5763354e..8197f4403884353c62ab5f42e12a2a9f00b8036a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
 
-. ./defs || exit 1
+. test-init.sh
 
 # -------------------------------------------------------------------
 # Do not upgrade this file to use the modern AC_INIT/AM_INIT_AUTOMAKE
index 2f7bb77cad3222cbf808315784a9a445f5b4937f..0a6a5ce2e7d2d125fbad1343ae75f0ad118124fb 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
 
-. ./defs || exit 1
+. test-init.sh
 
 # First, check that PACKAGE and VERSION are output by default.
 
index 8a4ce8e9f44fecafe9ac8fa5afc05b9ccf7447a4..fba3e5f2b320763ec5868f8b232983bcf2a11a8a 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure no-dependencies option does the right thing.
 # Bug report from Greg A. Woods.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = no-dependencies
index 13d1174651211af1de10f6ef07e93834ebbee18d..5ad04a0574eed8c453528aef550013bb31fb8c79 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another test to make sure no-dependencies option does the right thing.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = foo
index 25c66b5967fd5a7a3a9e406b193cd8b169915cc5..9e96dc152ac1e5fbc93cc209e3f27e6a67023bd6 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure depcomp isn't always required.
 
-. ./defs || exit 1
+. test-init.sh
 
 rm -f depcomp
 
index f63ea976aa747c7dd2c15c51d71d14b1a961c0e8..b7f491c684215b1e45246f30ecd98b43620b7841 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure dist_*_SOURCES and nodist_*_SOURCES work.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9db9dcee3696c48fa1c2d3f632d7d0236f045fbb..36b66917ef098a78a5395ed08c9836579da28831 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure nodist_noinst_HEADERS work.
 # For PR 249.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_OUTPUT
index f45f66f9e180b4d2cbb28303503d34c11c7c4f2d..cb302d25e76f4376d61449d159badb886a29ca9d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure no-dist option works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ca4440fde0fd96edd756cb420f609ec0edc14480..39fd72cf2d4dea6dc7b366a821a72c06ea68b47f 100755 (executable)
@@ -17,7 +17,7 @@
 # Check to make sure "make install" will build all in directory with
 # nothing to install.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 all-local:
index 24854cf6459fd473436f1aedbc28201befc0dc77..e2a7a844c59377089b97ccdeeb6375bc2a32dc9b 100755 (executable)
@@ -18,7 +18,7 @@
 # From Pavel Roskin.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 noinst_SCRIPTS = foo.sh
index 34219b2015c4abed0cc32f2532f2a1eaf6d7b9ba..cd0495cf2fcfcbf9b49eb161010d37f98c8898b7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure Automake does not emit a link rule for unknown languages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = no-exeext
index 812c6be221d422f84ec62dbf9aaed9f9c27f0a05..93761d55ae60b947b3c43280078fff5df951f16b 100755 (executable)
@@ -21,7 +21,7 @@
 # just skip the rest of the test if configure fails to find a working C
 # compiler.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index d997e97a11b9b8c4383e6f2d21b9db306ab7b2da..4b2c8039a217c6a955adc31f0b699f8b1557c867 100755 (executable)
@@ -17,7 +17,7 @@
 # Check all notrans_, dist_, nodist_ prefix combinations for MANS
 # primary and install-man dependencies.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index e0ccd240ebe1f3f0056200e25b0d24a99a1de3eb..673805e502157c0c2e1523574eb1e55e6d29fa55 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure _OBJECTS is only generated once.  Bug reported by
 # Joerg-Martin Schwarz.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 919bb10d54263542ff92c770a6bbe68310fd5a98..028cbc24539b1958b59a6970ad8b86bd436fc45a 100755 (executable)
@@ -15,7 +15,7 @@
 # require an Objective-C compiler.
 # See also sister test 'objcxx-basic.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = hello
index 31bc30dcc1a2ffdde0ff804083a665fcdb04bfff..2ac4ad0d75e01df5f5b315a23b213b94172d818d 100755 (executable)
@@ -17,7 +17,7 @@
 # Automatic dependency tracking for Objective C.
 # See also sister test 'objcxx-deps.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJC
index 2f65d467c73505f4b667d86f91bd560fdf4666de..91b00437e852c491add1ed49819ac42eafa6aab8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test Objective C compilation flags.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJC
index 432902971626831dc188884f61d3aa6dbc2221b9..a94f5f70e752a936f975b46881904c6d167e8a5a 100755 (executable)
@@ -18,7 +18,7 @@
 
 required=libtoolize
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 ## Autotools Input Files.
 
index e20a0369e9d1a3b273663a7ac3c247c15816cfa1..8b8d6e71eecd35d825aa31e545e105a8ceb2f983 100755 (executable)
@@ -18,7 +18,7 @@
 # See also sister test 'objcxx-minidemo.sh'.
 
 required=native
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJC
index de94a48b6ba041971c70b9d24c6a6c26d1e8c088..e176660c997563d117a159fd5b863cc31ed3facd 100755 (executable)
@@ -15,7 +15,7 @@
 # require an Objective-C++ compiler.
 # See also sister test 'objc-basic.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = hello
index 950663bfe9ea4e4ef65e0d3630f2f257345ace2d..5f35080646bc8ae2b7b232f430011b5e04b7eb60 100755 (executable)
@@ -17,7 +17,7 @@
 # Automatic dependency tracking for Objective C++.
 # See also sister test 'objc-deps.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJCXX
index 6e79fc59b6f01d82d8de552097245caa523ac1da..2dde42b9cdca5485f7b8c54ff7e3a74ee931be66 100755 (executable)
@@ -17,7 +17,7 @@
 # Test Objective C++ compilation flags.
 # See also sister test 'objc-flags.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJCXX
index cf62e31f6c571fbd2aeb4b8cc0a1520a1e085a49..52d692d941a81d9052dcb6856b637eaf6b0a4762 100755 (executable)
@@ -18,7 +18,7 @@
 # See also sister test 'objc-minidemo.sh'.
 
 required=native
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJCXX
index e773b72b3afb04f84dfc235dc2d8089df180d5db..da77c418c1e79d4e9012a392774c47c6dd67df58 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for automake bug#10128: $(OBJEXT) redefinition causes
 # $(foo_OBJECTS) to be defined as empty.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 26f6001b20296a0b4b4d9eac7d13978d0cfe75f7..5f422297cf80b065f1dfb45ef6b7f9d5a4b93779 100755 (executable)
@@ -17,7 +17,7 @@
 # Use of these variables is deprecated:
 # LISP, HEADERS, DATA, SCRIPTS, LTLIBRARIES, LIBRARIES, PROGRAMS, MANS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am <<\EOF
 DATA =
index cd0beac9d2739db610ec40c1a5e32c98deb5b1dd..6f5dd1760b2d4d753ac27d345524a78af56d9486 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure AC_DEFUN is handled correctly.  This test isn't named very
 # well.  Report from Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 jm_TEST
index 02b26df29b1321e4b2d9a99085881b0410748e8a..569be906bfa486aea3d04358be537de626f8e949 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that 'automake -a' output order is stable.
 # From report by Bruno Haible.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index a21fe8920d1551466a5a6490230f0428e6765ef4..1a7cd1fe6fe021d4ea6f34617d2d7a49617ab91d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure files listed in AC_OUTPUT are found.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index c6130f9100a148d4e7bfca8f50de94a6f07ebce0..1702872801034809117c70f2df057a0d30d86685 100755 (executable)
@@ -18,7 +18,7 @@
 # This is comparable to 'output9.sh', but testing Makefile rules.
 # PR/411
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << END
 AC_SUBST([FOO], [top])
index 7dbd835a977eda50598711605ee265cc705b8984..5b66a433c2f0b4194bb73edabb724fb18f15647d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure an AC_CONFIG_FILES ignore filenames with shell variables.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << \END
 AC_SUBST([FOO], [foo])
index 80e0f208443c4c51807c24e2b89432788859d5e7..8462b48b81dd4bbed220ded00203d4fe40b6797d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure an AC_CONFIG_FILES process filenames with AC_SUBST variables.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << \END
 AC_SUBST([FOO], [foo])
index 16bc0f9e45049b16c1d32eb5d9b5f5f676b02ce2..e96552ad3824cd8f5b9170bce0b9c04b3edec4a9 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure an AC_CONFIG_FILES, AC_CONFIG_LINKS, and AC_CONFIG_COMMANDS
 # are not prerequisites of 'all'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << \END
 AC_SUBST([FOO], [foo])
index 615f6cf5e74d17cfe8ac7822b4da5db69d30a0f7..a69b979240e94ab7192b737fb13bc7ad155f2c1c 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another AC_OUTPUT test.  From report by Ulrich Drepper.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 2e4f38a54e21ccf284980ff7689ec51663c812f3..171c9fb160405799c95e9d8f1fb20c26e3248bf1 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Yet another AC_OUTPUT test.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 54d49e2974e9221e61b255a7f8d24ad61a4a4d10..f5d35358b559553676dec8b58d2b69b672b37094 100755 (executable)
@@ -16,7 +16,7 @@
 
 # It's hard to believe there are so many AC_OUTPUT-related bugs.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 8222ea700c90096021d3dba4d257fd28625e419b..f1453c65ee2e80c1f30eb8b1fba2993773e7c871 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure Automake complains when there is no Makefile specified.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([foo], [bar], [baz])
index 418e1a5afe8836fb44a86e7fb0f2f1bfff83349d..2d4f3d47ab03da04acac100b57857d642c006c0a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check for support for colon-separated input files in AC_CONFIG_FILES.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index d5aca2995e96ca6e3dc4e2e18a2f5e7cb00fe08b..22d41f9903d64fdd1e42bf51b0fdb0fe69200930 100755 (executable)
@@ -17,7 +17,7 @@
 # Check for support for colon separated input files in AC_CONFIG_FILES,
 # with sources in sub directories.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 62cade51c0e1039094b3383f87228c8d35824be3..d9f834497a1ffdee6a27f22f2e475d1da7904abe 100755 (executable)
@@ -17,7 +17,7 @@
 # Check AC_CONFIG_FILES support for files starting with '../'.
 # Report from Bruno Haible.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir testdir
 cd testdir
index 54dc8c12ff2992a8a5641d627f73c2cc9d2fba71..e5b55fe65602fdaa29ff876d23b9d4c1f0b16c29 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure an AC_CONFIG_FILES can have an AC_CONFIG_FILES output as input.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << END
 AC_CONFIG_FILES([a/mid.in:a/input.in.in])
index 42e03505c03c9571aa70cf1b44b65859ab7a5a79..8ccae76c316a34e4162eb67488074b57a00d5d1d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for conditionally-defined overrides.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND], [test x"$cond" = x"yes"])
index 58ab1fda32487bf946250eea921a2b2551d61c0c..00fa63d3f62aab8dcd7dbc15a61bfbed62fc8f83 100755 (executable)
@@ -18,7 +18,7 @@
 # This test is still xfailing; see the FIXME in Automake::Rule::define.
 # Once that is fixed, the test should succeed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND], [:])
index 777d946e2ba4127d5f0c650fdde6eba9dcb6e92e..c5fbebb7ec9c7ca4daee0a45bd64d790bf7cec27 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that overriding 'html' target causes only one "html:" rule to
 # be output.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 html:
index 11b7fb96bc2847199565044401144a8c5d857ac0..671683f02bcfc1998e0bb51fc109ee50832576b1 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure automake -Woverride suggests using TARGET-local instead
 # of TARGET when possible.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 install:
index bd50af9e6b53b399d1786bca8b1ae19d1852d7b5..4b6ea5f308f54bcf11fef9f2d6db61d4ecf65180 100755 (executable)
@@ -36,7 +36,7 @@
 # This test checks (0), (1), and (2).  See sister tests for further coverage.
 
 required=perl-threads
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([parallel-am], [1.0])
index 0cca565d723e2a5765bc3bb659080e8eac3927df..cb9853b6554490af07288c335e01f592be381f01 100755 (executable)
@@ -21,7 +21,7 @@
 #    warnings should be omitted in the same way as without threads.
 
 required=perl-threads
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 1bc12bbbc6eccdb580af80fac0b20da0b9e243ef..9951aa5465e64533bd0197fb6d05edde151e98ad 100755 (executable)
@@ -22,7 +22,7 @@
 #    installation of aux files should be race-free.
 
 required=perl-threads
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([parallel-am], [1.0])
index a1062d3fc4f197d6f023e6ac8ab9c3a2ccbdb97f..3022e22827b8efc7a67d868c25053e7f385cf8a3 100755 (executable)
@@ -23,7 +23,7 @@
 #  - TEST_LOGS redefinition at runtime
 #  - RECHECK_LOGS redefinition at runtime
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 4e8780f0580b07d8833c172eeac86128050c8905..37215a66f7eecae5842ed80445e03eb3ae7cabd7 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that we can use indirections when overriding TESTS and
 # TEST_LOGS from the command line.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 1a88ddfcdaf27fa0e81d0770fda34084eba1a5ed..bb38d509cbd6b7b76658fd8ef1c793bb59a70977 100755 (executable)
@@ -21,7 +21,7 @@
 # It merely serves as demonstration.  :-)
 
 required='cc native GNUmake'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index b606276fa90ced610a4a75e50bf7ea010c80a3a6..702572d9d1a864a66ef42497c223a436213fe0c2 100755 (executable)
@@ -17,7 +17,7 @@
 # Check parallel-tests features:
 # - concurrent parallel execution
 
-. ./defs || exit 1
+. test-init.sh
 
 case $MAKE in
   *\ -j*) skip_ "\$MAKE contains '-j'";;
index 22650082aa510d1ea68113f97dc5e4815c459314..409047e99bc9a56617e8e7a604499e684a312c55 100755 (executable)
@@ -17,7 +17,7 @@
 # parallel-tests: some checks on console output about testsuite
 # progress.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index e1a2248b089be1e87c9be75e7743bf4ba2f95989..803762bdae3711f9179e09c61a89a026a7845593 100755 (executable)
@@ -18,7 +18,7 @@
 # in the correct directory.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 96764c31e42ba256a51c4dd84a325f908388cbe1..5809dbacc3c057502f080242e3786baf07102662 100755 (executable)
@@ -17,7 +17,7 @@
 # Check interactions between the parallel test harness and "make -n".
 # See also sister test 'parallel-tests-dry-run-2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 0d324d8ed6c689c0ce9a1f0ac7bc1112a07ed858..d47a76a8c27fd6f3ee8a1da73a06cfa199410f05 100755 (executable)
@@ -17,7 +17,7 @@
 # Check interactions between the parallel test harness and "make -n".
 # See also sister test 'parallel-tests-dry-run-1.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 0ed2ff255646bf6bec36eafec6d17fabea66df23..37ed83d40e6d001c9d70aed75ee782fc09323397 100755 (executable)
@@ -18,7 +18,7 @@
 # - empty TESTS
 # - empty TEST_LOGS
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])
index 146f1fc3028704c467a072116f739c2362409287..a367038caaecf2719c729421ee523ecb40c48bd4 100755 (executable)
@@ -19,7 +19,7 @@
 # BSD make will expand '$(TESTS:=.log)' to '.log' unless overridden.
 # See 'parallel-tests-trailing-whitespace.sh' for a similar issue.
 
-. ./defs || exit 1
+. test-init.sh
 cat >> configure.ac << 'END'
 AC_OUTPUT
 END
index 22a5aadb1ed858cfaf0b9282dcc4e28cade270f2..bb96635a5841e6a1bc946e1b9d502ce4f17cacb6 100755 (executable)
@@ -17,7 +17,7 @@
 # parallel-tests:
 #   - check2.am and interaction with $(EXEEXT)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 dnl We need to fool the init.m4 internals a little.
index bd5bb7685bf96bc264a2aa6ef189dbd261f82e23..a7d62300fcea0f6fee81f4e773d18666a2f520b8 100755 (executable)
@@ -17,7 +17,7 @@
 # Check parallel-tests features: normal and special exit statuses
 # in the test scripts.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 0a7f97c30c2657e63c92bbddb911bef3a9030515..75a34b7a23a5b271faf5699e3cde41e6cad0f9bd 100755 (executable)
@@ -18,7 +18,7 @@
 # (or even be) $(EXTRA_PROGRAMS).
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 357576524b714cf1d14a766d226bdd99da6c5924..80b6b2885bdb08653ed7104edc788eb422ba3d9d 100755 (executable)
@@ -22,7 +22,7 @@
 # sister test 'parallel-tests-fd-redirect.sh'.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7cb59c35026c2cdbcb6ebc514ed6f3d134178908..ec48e4edf1cf8904ff7a1da1cc1a7d534a2c5bbe 100755 (executable)
@@ -20,7 +20,7 @@
 # check for tests that are binary executables.
 # See also the more generic test 'check-fd-redirect.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 493e6713cc36eedc788faaeb57e5a1d89c3fd969..0698742c84141cc4a2beda81c36d65551e27033b 100755 (executable)
@@ -18,7 +18,7 @@
 #  - If $(TEST_SUITE_LOG) is in $(TEST_LOGS), we get a diagnosed
 #    error, not a make hang or a system freeze.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We don't want localized error messages from make, since we'll have
 # to grep them.  See automake bug#11452.
index eb48f9382b0de2076f0b13b7935ae86b079a2799..ff6c2f50b7f36ff01b31bce0390631eccf84e888 100755 (executable)
@@ -24,7 +24,7 @@
 #       manual for the ugliness in this area, when VPATH comes into
 #       play.  :-/
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 8e1e014d721914a27ba4ce4658612356248235c8..88c5f595ea582ca3b347dd01010c38166e53f232 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check parallel-tests features: DISABLE_HARD_ERRORS
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 76e89f26f047bb04b01e556ac093d098f0e9a8bc..406bd7ac52d9bb7f1a3564a4e8c428dd0d068c53 100755 (executable)
@@ -19,7 +19,7 @@
 # but we couldn't find a better way to deal with inter-processes
 # signals and the whole process-synchronization mess.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 16
 
index 0e8c9d8921b54d607045ca018ac5d2695700df0a..9214a071e26e1a698deb36919ea5a6129cdf17cd 100755 (executable)
@@ -19,7 +19,7 @@
 #   and xxx_LOG_FLAGS), also with AC_SUBST'd stuff.
 # See also related test 'parallel-tests-log-compiler-2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([acsubst_compiler], [t-compiler])
index 775a4d1bdd590e819e846bd28549a0d0583d03ad..2790dcb9ee960c48170105eb12b54a9555e04b7a 100755 (executable)
@@ -20,7 +20,7 @@
 # See also related test 'parallel-tests-log-compiler-1.sh'.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0d66b646c73ebb8140dd4ad997cef19c831e219f..1c0d44d863cc899db361c9304b347d8657f4af8b 100755 (executable)
@@ -18,7 +18,7 @@
 # LOG_COMPILER and LOG_FLAGS given in the manual.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_SUBST([PERL], ['$PERL'])
index e4af517def8ffc401f91f36a1d02155f48cc12c6..cf77e82d9fdca9abf872a766d32c707db4f46a20 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check parallel-tests features: runtime redefinition of $(TEST_SUITE_LOG).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index a747b00eecc3fa0f764f3d9a4c4e5bdbea96162d..0cbf73052f0349c96c33cc9bf8f83d8c0d17a32e 100755 (executable)
@@ -18,7 +18,7 @@
 #  - $(TEST_SUITE_LOG) and $(TESTS)
 #  - $(TEST_SUITE_LOG) and $(TEST_LOGS)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index a6ab21694124af4fe1e19ac8e4e8bc3e7d4ae9d8..df08bd3bc9643d684660400b806feb7156b6ee76 100755 (executable)
@@ -17,7 +17,7 @@
 # Check parallel-tests features: runtime redefinition of $(TEST_SUITE_LOG)
 # for the recheck target.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index c46993fef787054c784226e2328fce901632d95a..fb6fc1375b16411dd16d1f7e6edeec8ac6b64814 100755 (executable)
@@ -17,7 +17,7 @@
 # Colorized output from the testsuite report shouldn't end up in log files.
 
 required='grep-nonprint'
-. ./defs || exit 1
+. test-init.sh
 
 TERM=ansi; export TERM
 
index 0088529241af28cee3ffe518fcdc7ce79df64e33..751ddb02090d70a111493bb602a4f86b82d78365 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that ':test-results:' directives in test scripts' output doesn't
 # originate spurious results in the testsuite summary.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 67fcbab10952086787251b1ea4ddf4a27f8a4883..d27224a3187cc1450673cc4d4f9e557de9ffed4e 100755 (executable)
@@ -18,7 +18,7 @@
 # clean directory.  An early implementation of the '.trs' intermediate
 # files incurred a similar problem.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index af53061a642a24b5355544debbf824630afccff5..14783fd7283ff35644ab21823ec258ae51af7b57 100755 (executable)
@@ -18,7 +18,7 @@
 # See automake bug#11252.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2d2fc5a715f1591a59c66031dd66dc77d6ece388..22203c92a2d30a67f1d9feff46d39eb40e1c01a2 100755 (executable)
@@ -18,7 +18,7 @@
 # failures for the test cases.  See automake bug#11791.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ea9dba665dd68cf74d9e766e925280ece986baf8..85adf6995dfbf179acfe48dc15d64bd305951d9e 100755 (executable)
@@ -17,7 +17,7 @@
 # Check parallel-tests features:
 # - recheck
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 61cbad50b732adb1bd0867582fa3ad74fc847a60..3555fcbb57f8ef895bb447e34068ebbe57c56c50 100755 (executable)
@@ -18,7 +18,7 @@
 # TERM variable by either TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT.
 
 required='grep-nonprint'
-. ./defs || exit 1
+. test-init.sh
 
 TERM=ansi; export TERM
 
index b7bb481d16bf86353543740d67b1398b4e10e8c4..de62f7f077a58128341223d22940fa75b790e771 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the parallel test harness creates parent directories for
 # the log files when needed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index a0287da34d9325ce8f9e5c86df303ab42a41ddca..f2ed390578fb7ecdba510e1ce8e4b3168224245b 100755 (executable)
@@ -19,7 +19,7 @@
 # See also sister test 'parallel-tests-suffix.sh'.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 93c7ea011ac4f80a25eb42fc937f66d2c66ca7a1..d0d1733db67be7cf031a9834453c4bb38cdf2804 100755 (executable)
@@ -18,7 +18,7 @@
 # - suffix rules
 # See also sister test 'parallel-tests-suffix-prog.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index dadc874714ab506d8a00a1b68ea45b780385f7a0..6770b27212fe0c474465d19966ded9716a6564d8 100755 (executable)
@@ -19,7 +19,7 @@
 # older bash versions (e.g., bash 2.05b).
 # See automake bug#10436.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index e8e4203cacc44f506c6e81061b25966191c4ece7..3d729c8ec32f949547c39bba8ce5beb23932de82 100755 (executable)
@@ -18,7 +18,7 @@
 # - trailing whitespace in TESTS
 # GNU make 3.80 may expand trailing white space to '.log'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 895d4769e7d12b28e442c2a79ca3dedf915f545c..ff362942a765db8b94b78ae5f89a55b3287fa1d8 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the testsuite driver copes well with unreadable '.log'
 # and '.trs' files.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > t
 chmod a-r t && test ! -r t || skip_ "you can still read unreadable files"
index ec5bcbb9ab439f2dab9a2055c5311aed0c0a343b..44a697bba438ca02518663615fe0e2243a223321 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure backslash-newline is treated as whitespace.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index e5278fb276b9703cdca4630d0bdbeb703ed0f57e..437d0b2f39970d88643072f4fdef17a6a5a6d468 100755 (executable)
@@ -17,7 +17,7 @@
 # Test executable-specific and library-specific flags, both with
 # and without dependency tracking.
 
-. ./defs || Exit 1
+. test-init.sh|| Exit 1
 
 makefiles='Makefile libMakefile Makefile2 libMakefile2'
 
index a4bad35403272b7a8949e6befd782df99ba5e9ba..82040ae63922e5b896cd041999164fa320d4e256 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that -Wportability understands %-style pattern
 # rules.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CC
index 4ed52c1d81c1ddec0d5c06a42a77516ebf149d2d..4313b246238c23091fef295a3baa57edaae6cdb9 100755 (executable)
@@ -19,7 +19,7 @@
 # '${ARCH}/%.$(OBJEXT):'.
 # Report from Ralf Corsepius.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>Makefile.am << 'EOF'
 ${ARCH}/%.$(OBJEXT): %.S
index cf9c76081bff4619f699825891eaef85a2179f36..cce29066c62065ff355dfdd5f22cd4670aa585f7 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that many conditions do not lead to combinatorial explosion.
 # (This is related to PR/352.)
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >>configure.ac
 
index e3383beda97e1b986be086d2639ee35503b9b030..5400dc43f4d395cee1dc9559280f89fa568dd2ad 100755 (executable)
@@ -19,7 +19,7 @@
 # FIXME: performance is too low, and FAIL accordingly; it just offers an
 # FIXME: easy way to verify how effective a performance optimization is.
 
-. ./defs || exit 1
+. test-init.sh
 
 count=5000
 
index 296a6210281acf8ab366fbd0a75cc2d135f8c484..3c02481a8de3536d12fe4e90c7f182dd8d2336f2 100755 (executable)
@@ -20,7 +20,7 @@
 # FIXME: performance is too low, and FAIL accordingly; it just offers
 # FIXME: an easy way verify how effective a performance optimization is.
 
-. ./defs || exit 1
+. test-init.sh
 
 count=10000
 
index fce2a6be0fe1d80a91e572a2eeaa7588597c34b2..6f90b0eafd63cb3ec26731d1327f3b1f68f6ea09 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure .PHONY can be given dependencies several times.
 # From Ralf Corsepius.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am << 'EOF'
 .PHONY: foo
index 74dea56a1abe52f333478c116a807061deaa47f5..a6dfb9239d9409610d152334f3bdef2a0333098d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test '+=' functionality.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 data_DATA = zar
index 20516c3e779235119263382f6eaaa8e814c7cca5..f0be6cffa3bc784a8c5805b77b167b8636d192c8 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for += and backslashes.
 # Reported by Ralf Corsepius.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'END'
 AM_CONDITIONAL([A], [true])
index 67dfd338687a6c1eb018ba779e2a825b2d00cf81..f00e74318e4ce54a645713628e612d5079cf6c11 100755 (executable)
@@ -18,7 +18,7 @@
 # is erroneously retained in the final value.
 # See also sister test 'pluseq11b.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_OUTPUT
index 2069444888ca81caf90de622e0833d147d6eb88c..d2f7ee79ad0c76e2eb06b584068d210e1b004b50 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test '+=' with conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([CHECK], [true])
index 52e82c51b4f46f96e94e0f161161d8b516606ab4..b284847a15fb3feb6aefea78b70e06a469858ac1 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another '+=' test with conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([CHECK], [true])
index 32c64ea91c235545e403fcc53f884cc52a8228df..3292dc5609d51b0b88b1dd5e331c972938a18178 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Yet another '+=' test.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 914e3b7892ac581e9d32f0167576fabbc4410600..facab4e1dfe19639844db911991ffa1b93883086 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for another '+=' problem.  Report from Brian Jones.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([CHECK], [true])
index 2db9c6f104956af1668907a2f5d1e760cb370561..0d4fcbe85a5245b9fb84fa356c1fab004d0cf167 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test that '+=' works with standard header-vars.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([ZZZ])
index c7ea2ad4e0abe370fdd75f15766dda756d775a89..f9a667fc100cadd2ef0cc05fd9f64c5aaf6d4811 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test that '+=' fails when required.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index da0ad89627b1b6c964bb51fded7a4f6a015b35d5..83fa50a2354b50fd43f2c937074bc38fb483c2f3 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another '+=' test.  From Paul Berrevoets.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 VAR = \
index 4bbb78a8542e7036aae965d756ec6f81722fa62e..ab97c081ceb45f0d51c9dd126cdd657143b3a524 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test the += diagnostics.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'END'
 AM_CONDITIONAL([COND1], [true])
index 51b791e17e85cfc56beee90c547e9348256b8bfc..9fd534039cc4071db6ece4e6046beaa232c70350 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that POSIX variable expansion '$(var:str=rpl)' works
 # in when used with the DATA primary.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index b8e69d7494e8f70884961077eb9a79d1707ac2a1..d8ba0d9fb5936fbcd81f07dbd602d42d99b6d71f 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that POSIX variable expansion '$(var:str=rpl)' works when used
 # in EXTRA_DIST.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index c9acd411f873a91fa215aeaa338e6d0c29ea6d06..579bc233bbf757db6b09e9d2fa8fc86c7e4ef752 100755 (executable)
@@ -18,7 +18,7 @@
 # when used in LDADD.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 884e8aa732c420b76b457c2681435463ee0424a7..69ea925ec0acb18460f9d48e976901f12ab958ac 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep this in sync with sister test 'posixsubst-ltlibraries.sh'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 3111954d6fbad819519ee46f03d1f4d235f98553..4a7d86728ed3411e7ce8f13072cd3337586ae820 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep this in sync with sister test 'posixsubst-libraries.sh'.
 
 required='cc libtool libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6e8e56b06b385de12c0704a2b6982698a5406dba..edcd4ddfcee9ca77c948a04c214e5344faae65db 100755 (executable)
@@ -18,7 +18,7 @@
 # with the PROGRAMS primary.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c9083cbd3993521716cb09d549d6d9ae3305c83d..7b758f393f65816cd5b66372bb95f20882e41075 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that POSIX variable expansion '$(var:str=rpl)' works when used
 # with the SCRIPTS primary.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index d3abfa18ba6798c755d7c342c8a9851379ed82a2..b69bc544edfd216510cd4ffed4af94ff3756d7c0 100755 (executable)
@@ -18,7 +18,7 @@
 # with the SOURCES primary.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c6318637c67d424f98c3fea0be6e88555b538a8a..470527c01891a0118a992ce3dbe5698fe95c7122 100755 (executable)
@@ -18,7 +18,7 @@
 # with the TESTS special variable.
 
 # For gen-testsuite-part: ==> try-with-serial-tests <==
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 2b60d885d0eb93bdc9641f87150e6e61c9a987e1..d73eaec5f37b9604a17d1ad81eab150ee8be04e9 100755 (executable)
@@ -18,7 +18,7 @@
 # and renamed.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<END
 AC_INIT([$me], [1.0])
index 73a32cb61f0c9f50be30552f610cf65166cfe1d9..f1c67e44e8646743c201f549b677ad1b3d95c0f1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure preprocessed F77 works.
 # Report from Jochen Kuepper.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_F77
index bafff250b97f0e4cbdcb2fd0a886afe1d3f1f1c2..e5124d6f04dfe9aec53f8e382b6def7d74c06b42 100755 (executable)
--- a/t/pr2.sh
+++ b/t/pr2.sh
@@ -27,7 +27,7 @@
 # to the distribution directory before it creates a templ
 # subdirectory in the distribution directory.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT([README.foo:templ/README.foo.in])
index a7dcee8db6e74a566d2182f92a9d9210618b422d..3d19a06a76f8c48d97d1320b9430e90dad089d2e 100755 (executable)
@@ -28,7 +28,7 @@
 # rename one of the 'foo.o' files.
 
 required=libtoolize
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2054fb31e75582c9557be58dedfeee89f12c5fd6..fc67cf83ae7cac1cdf5e404699b45641c44777ef 100755 (executable)
@@ -22,7 +22,7 @@
 # to debug the problem.
 # Note that this should be also in the documentation.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 if NEVER_TRUE
index c4fb9c103930bb434e00b7aef811e921252ca1ab..640640f111c5e439eb3bac2cac32b978b744ed4e 100755 (executable)
@@ -24,7 +24,7 @@
 # should be '$(top_builddir)/bar/.deps'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir foo
 
index cb3b2230f350ea6030ca9ea0410d3b99b8779b23..b0ed4c4dd7ac41069d2c1d661d64e3d7358908ee 100755 (executable)
@@ -18,7 +18,7 @@
 # Make sure AC_CYGWIN requires config.{sub,guess}.
 # Reported by James Youngman.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<EOF
 AC_CYGWIN
index ee593f576e40ebf46826ed70a18877be24dad6aa..5ac32761e9e7eb642cc8cea63059edbe71a3c5f0 100755 (executable)
@@ -27,7 +27,7 @@
 # the colon in the CONFIG_FILES variable.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 5d8efada48a75070ae698938afd871c113088164..c358227be9d6c9949fb349ec1219051250b4b01f 100755 (executable)
@@ -18,7 +18,7 @@
 # Dependency tracking -vs- nonstandard Makefile names
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index fbd06ac9c62fa94cdea0ae1187d6cfe017fec2f6..7f292517e06f312ee5b7bc43b06addce6bb50198 100755 (executable)
@@ -24,7 +24,7 @@
 # fail with messages like:
 #       foo_DEPENDENCIES was already defined in condition TRUE, ...
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7f5f7b5b28792ad6683f5e7a65e1e8fae803d080..24b7fb7b4e77145b18a9ac6ad283533d39b5f90e 100755 (executable)
@@ -24,7 +24,7 @@
 # fail with messages like:
 #       foo_DEPENDENCIES was already defined in condition TRUE, ...
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 62eb739be5dbcfc94fdff3601dd91fa715986635..bbbfe48c7690d4f57f82c718e2a83369474843ec 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for PR 287: empty SUBDIRS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index d9a5dd1f34e5734501576cf094bf87aabcda2037..ca73523837a80d5b9184e9ef316626eef086f5ab 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/300
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_RANLIB
index 4926834522fb77d99ec679dd4175a410de1f1496..62c5b556036207028ad53d7339ec0e95abd4da0d 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/300
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index b9aa97df4ddc3d1a77ebc42daadae7caee8547c9..d7ada2df8234e8d3ef56c1ceccd719ce546afed3 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/300
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 04b4ee9346d63b03f545c6911e1e70f4b57af65f..1204c774a42c146aeed31597185de92520587387 100755 (executable)
@@ -33,7 +33,7 @@
 #  compilation.
 
 required='libtoolize gcc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 73a7e2560c64c1060603e1cb84119abe5c224f33..3e73b0d4e1c72e6c062242c93e37e549da3be79a 100755 (executable)
@@ -18,7 +18,7 @@
 # (pr401b.sh and pr401c.sh do the same for LTLIBOBJS and ALLOCA)
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir lib src
 
index e5914731d1023ae1aa590c7990a97583701a9358..61935879a7b0d0981240ff30beac6a3f1b54c040 100755 (executable)
@@ -18,7 +18,7 @@
 # (pr401.sh and pr401c.sh do the same for LIBOBJS and ALLOCA)
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir lib src
 
index e452ab6f9edff9b173ada709fa2d5d9ca4dca1f7..96561c5e22877f7a9d899cedb593e45853520985 100755 (executable)
@@ -18,7 +18,7 @@
 # (pr401.sh and pr401b.sh do the same for LIBOBJS and LTLIBOBJS)
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir lib src
 
index 3c2c9148492d3b0de3a8b8c40eba40ec40d7c104..9eb55b7a0a607e84dcfb7dd68e09fbc7fbe56664 100755 (executable)
--- a/t/pr72.sh
+++ b/t/pr72.sh
@@ -18,7 +18,7 @@
 # Empty _SOURCES results in $(LINK) undefined.
 
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 872dfa9549ac34c9b77201f9b7f3c29ce27e018f..4027b5cb20090908eb8ced79a4659e8efaa154ea 100755 (executable)
--- a/t/pr87.sh
+++ b/t/pr87.sh
@@ -18,7 +18,7 @@
 # "make distcheck" fails when two source dirs exist.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 subdirs="foo bar"
 
index ccb0b93cc4feede26063c2b7814245e702fbc4d5..7d75cc4bc2e23beb9042b055fae1b86acc35950f 100755 (executable)
--- a/t/pr9.sh
+++ b/t/pr9.sh
@@ -23,7 +23,7 @@
 # ltconfig, ltmain.sh, mdate-sh, missing, and mkinstalldirs.  In fact,
 # the entire 'support/' directory is omitted.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 907cd788f731f00015c5dcdad3a7a51c34aec5a1..bc10771b4589e2430e3bd28432580d0fa956db9a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure range of prefixes can be extended
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 5b43157f8c351fd66331e2bbc7665fe47c559add..89e7880fda739cfc9c00a08939ea0031d0b2c920 100755 (executable)
@@ -18,7 +18,7 @@
 # examples in the Automake manual do not cause obvious errors.
 # Please keep this test in sync with the automake manual.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index a6d7ace476a7bab644d882ec45bfb45082aa0aa3..5cf02d84bbf8944c3a4003f1f2cb7dbcd4e4a722 100755 (executable)
@@ -24,7 +24,7 @@
 # should work.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 86d766505e09858ef175b30f8d111d04026f9f1b..2152d186e2aeab370f4dc92b32a59b2ddd245d84 100755 (executable)
@@ -20,7 +20,7 @@
 # cover more cases.
 # See also test 'primary-prefix-valid-couples.test'.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ "later"
 
index d8cbc30a2599b674af6da787339c2d71a508609c..91d1b880eecacb7eb07adea1f945d18198223de7 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for valid prefix/primary combinations.
 # See also test 'primary-prefix-invalid-couples.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index b107f4dd303878129a67f143de115f5a295bca05..e11eb0e4aee28d997e0acd36b1fc05eb7f7d8896 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure errors in am_install_var work.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = @programs@
index f355da05d17bc050c62e77af4c957566c89c864b..c7437fee9a9abb6eb2faf70fb0794a9e5ef49973 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure errors in am_install_var work.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index 9905a8cc38b7c28c3115b238e6dbad3a016b7083..0a80a54162c04d87bf2d1c9517dfc538d5d1981c 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we can build programs ending in '.la'
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CC
index 9a33ac71550ab57432b5af90b5f34e96df932dbb..f9d596a0d4186c616b6a2ab75401ec1cdbe4c6d1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test on automake options '--print-data-dir' and '--print-script-dir'.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 libdir=$($AUTOMAKE --print-libdir) || exit 1
 case $libdir in /*);; *) exit 1;; esac
index afb730049fbf9d5ede0b249b543470552564e8a6..c0f13a607c8385d46da9b16af9950d40d20f7b25 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug where when multiple scripts are installed,
 # the check for AC_PROG_INSTALL fails.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_SCRIPTS = zardoz qbert brownie
index 89b80250c580baeb6c5e574fd47a19a1b95b27f8..40caf20032983dc0cb03f9dbc4aabc5f651d515d 100755 (executable)
@@ -18,7 +18,7 @@
 # checks have been introduced in commit 'Release-1-9-254-g9d0eaef' into
 # the former test 'subst2.test'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([FOO], [c])
index f2cef307ac64801c46749bec02b7cfe93d8f9410..8abad87e79cf041ecc9c250b0527922663580b2c 100755 (executable)
@@ -17,7 +17,7 @@
 # Test the '--basedir' option of the 'py-compile' script,
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 # We'll need to create files in '..', so we need one more subdirectory
 # level in order not to clutter up the top-level tests directory.
index 73597c35c1429c76b438506ab3bd70c5a8e130df..d80ef8988a68cfdf644bed797ba0f5888b61f3b7 100755 (executable)
@@ -19,7 +19,7 @@
 # 'py-compile-basic2.sh'.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_scriptdir/py-compile" . \
   || fatal_ "failed to fetch auxiliary script py-compile"
index 19fdf7257722ccb5c9be78d6045fbb25d44f8c62..8100e9867738c2566757d70eb894b46e4a2051d3 100755 (executable)
@@ -19,7 +19,7 @@
 # related test 'py-compile-basic.sh'.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 ocwd=$(pwd) || fatal_ "getting current working directory"
 
index 4d303d532bdf96f74254149cf5a96cea99ea12b0..71f3f7a8a970a9e661c2e5936691a8567d204952 100755 (executable)
@@ -17,7 +17,7 @@
 # Test the '--destdir' option of the 'py-compile' script,
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_scriptdir/py-compile" . \
   || fatal_ "failed to fetch auxiliary script py-compile"
index 89d4ffc69263366be24951c9d51f306149abb8c0..a0d055db16e4895a211632a617b84468c9ddc5dd 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure 'py-compile' honours the PYTHON environment variable.
 
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_scriptdir/py-compile" . \
   || fatal_ "failed to fetch auxiliary script py-compile"
index 5c2b56f83f46477affd2ee942cd8b76e219ecb52..9af5e1386e4b8d5e9bcdfed19df77eff0f4affcb 100755 (executable)
@@ -18,7 +18,7 @@
 # explicitly terminate the option list for 'py-compile'.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_scriptdir/py-compile" . \
   || fatal_ "failed to fetch auxiliary script py-compile"
index 13ddc8e80f10e836feb63d78b8c9d4e5e8bf0116..ee5177d3f7a5ad4a0c89025689856bb8f6f1417c 100755 (executable)
@@ -17,7 +17,7 @@
 # Test 'py-compile --help', 'py-compile --version', and that 'py-compile'
 # correctly complains on wrong usage.
 
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_scriptdir/py-compile" . \
   || fatal_ "failed to fetch auxiliary script py-compile"
index d7ba4368941e756dcd4d6fe910f4961f5bc6ca0a..9c2335a7524ccf463e47e4b3106a4facfde8fd6f 100755 (executable)
@@ -18,7 +18,7 @@
 
 am_create_testdir=empty
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 0b6a4b044d42a7cbceba38e67ca2c2537809eb0e..070950cfb80c77102805227cea9adc8978aee03e 100755 (executable)
@@ -17,7 +17,7 @@
 # Test distribution of *_PYTHON files.
 
 # This test does not require python.
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PATH_PYTHON([], [:], [:])
index b0912d34b67cb08e4a3b566150d3c070887318e7..9a3ccfbf382d196ae3178ffbbb27740df354c215 100755 (executable)
@@ -20,7 +20,7 @@
 
 am_create_testdir=empty
 # An actual python is *not* required in this test.
-. ./defs || exit 1
+. test-init.sh
 
 PYTHON=; unset PYTHON
 
index c530a13d926102b345c08a75576c66599b0feb77..4075a37e21a46742fb4cdab00516795e894ee23d 100755 (executable)
@@ -19,7 +19,7 @@
 # declaration.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AM_PATH_PYTHON
index e4185fcd27716fb762e69c488b6422b7b369666c..24ee5842f743556487737a37e77802c25541addd 100755 (executable)
@@ -19,7 +19,7 @@
 
 am_create_testdir=empty
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 py_too_old ()
 {
index 5bac2803b79c85d911b4527507a76c57e7db4baa..eec07ae01b518ba180156961f5c3e5753aa90d0a 100755 (executable)
@@ -18,7 +18,7 @@
 # advertised in the manual.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 # In case the user's config.site defines pythondir or pyexecdir.
 CONFIG_SITE=/dev/null; export CONFIG_SITE
index 51ae78e2851ddb709d54c210130e4a2cc4e04288..cf3ae378dad4e7bc5d304bb0f8abdc8c85ed0a7b 100755 (executable)
@@ -18,7 +18,7 @@
 # This test also works as a mild stress-test on the python support.
 
 required='cc python virtualenv'
-. ./defs || exit 1
+. test-init.sh
 
 # In case the user's config.site defines pythondir or pyexecdir.
 CONFIG_SITE=/dev/null; export CONFIG_SITE
index a3add40f96a566bdd297e3dbfbce67e5f5304f48..3f79ca36b8ff5e81eeb4964aa530c6478c5e83d2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure py_compile and am__py_compile are correctly defined.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AM_PATH_PYTHON' >> configure.ac
 
index 5465810723591cbc8fad37f0789260cc9f10d267..c4a0ab4603900b4622107d46c78841f7d34a2921 100755 (executable)
@@ -17,7 +17,7 @@
 # Test _PYTHON with conditionals.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_PATH_PYTHON
index e86d30e7f42e8b22ce243be6bb91500428e3342b..e3e29e5f7e0b4a7a8db150ca984c3db76e26d8dd 100755 (executable)
@@ -17,7 +17,7 @@
 # Test missing python.
 
 # Python is not required for this test.
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 m4_define([_AM_PYTHON_INTERPRETER_LIST], [IShouldNotExist1 IShouldNotExist2])
index 898c673dcb75ca29a4127836a80309907c77e565..3fd40308aa0819f31efcd64706070e2e6755866e 100755 (executable)
@@ -17,7 +17,7 @@
 # Ensure DESTDIR is not included in byte-compiled files.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_PATH_PYTHON
index 71ba25fd2334d30e83a55429c798b63aea3455b4..0ecf79d4ee0e4bf0437cd96a5887995b072bac71 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that Automake suggests using AM_PATH_PYTHON.
 
-. ./defs || exit 1
+. test-init.sh
 
 $ACLOCAL
 
index 8667cf909cce5121e7e6a1a7eb1d43e41dd72a41..f749f9f1dfd382ae71b21d5a9ad2fe7303185182 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we install built python files.
 
 required=python
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AM_PATH_PYTHON
index c9e5c1f5c8d1cc0e5b5d4441a96e85ddd6a835d0..27a51adbdebfb0345868047d11cc9fb1cf63986f 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that recursion on user-defined targets can be made to work
 # with "deeply" nested uses of $(SUBDIRS).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([
index 01d98a72262bf5283b0b2fb6e89676dda5ac0935..5e85d3470ee8f7302851eb81685dcf00511d8eb0 100755 (executable)
@@ -19,7 +19,7 @@
 # AC_SUBST'd strings, automake-time file inclusions, automake
 # conditionals...
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([
index 6c2d4328e7e5610935dffa620a8ca36954d72bf3..041e3047710d5e9e5036eedf18891b9e4f635f83 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that user recursion works with "make -k".
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AM_EXTRA_RECURSIVE_TARGETS([foo])
index c1e475722819d98933b5c851497850804d14e437..b40dd79ad16bc20a4f9901fc66d8099ae3c9e829 100755 (executable)
@@ -18,7 +18,7 @@
 # at once, and that calls to 'AM_EXTRA_RECURSIVE_TARGETS' are
 # cumulative.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub/Makefile])
index ed56d07f756a09e64fdd2610d7041b636adf4dc6..76da433741135eeae45047e823197537fda8ef08 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that user recursion can be made to work even when $(SUBDIRS)
 # is empty or undefined.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AM_EXTRA_RECURSIVE_TARGETS([foo])
index f80010aa10ea87719eca7b2657c8c1463f33d5dd..1546f1c6fbaf12d9387a7a57a15513446cccae8f 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that user recursion works even for targets that don't exist
 # in the top-level Makefile.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub/Makefile])
index 64ef2eec25e5d55df69e158018af94e5cbcf138e..02dd33350f4fc16bbbf69597e97809ace040edba 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that override of user-defined recursive targets work as
 # expected.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub/Makefile])
index 29e50a89bf0aff215bee4d96b8dd7d2e239cc2c7..274f441c0de123cf9a63dfa843f1febf02590f7c 100755 (executable)
@@ -20,7 +20,7 @@
 # Require GNU make, because some vendo makes (e.g., Solaris) doesn't
 # truly respect .PHONY.
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub/Makefile])
index 9c4e3758e106008544fe5dba7fbce6efe11ccaef..15a210cb234d86d09e1822f50793748083d98949 100755 (executable)
@@ -18,7 +18,7 @@
 # by other makefiles.
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_EXTRA_RECURSIVE_TARGETS([extra])
index 34a3fd25ecad2cabee060fe54783c7922ff89cec..198483fb983c8c6783ceb51b63064ec531902edf 100755 (executable)
@@ -18,7 +18,7 @@
 # Check that user recursion respect $(SUBDIRS) order,
 # and proceeds in a depth-first fashion.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AM_EXTRA_RECURSIVE_TARGETS([foo])
index 0e4cba5aba320e8498109060b2a906b58533e984..4664efddf4a1bb359bc4bdde8c89092679e3c17b 100755 (executable)
@@ -19,7 +19,7 @@
 #    SUBDIRS = src external/lib external/tests
 # with no Makefile in 'external'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES(
index d940ddf2b722e58dc1e326bbd216b937e3e10c02..6d469344174c8ff64818f38ecead4b2c68e16fd0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test Automake-provided internal make macro $(am__relativize).
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 plan_ later
 
index 22d31d0b27252d0cc3f8782b6f9b8be9c27ea9c1..b844fc1db13a678379647be5f699e0de9f291767 100755 (executable)
@@ -17,7 +17,7 @@
 # See how well the rebuild rule handles an aclocal.m4 that was
 # generated for another version of autoconf.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >>configure.ac
 
index 7c899dc2a91699e69c02bbba96b4bccec639e96f..39596f6a7311702fc96495cbe4dd1aef407deb30 100755 (executable)
@@ -17,7 +17,7 @@
 # Test remake rules when acinclude.m4 or its prerequisites change.
 # Keep in sync with the other sister tests 'remake-after-*.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index 45d7a6a94a57f4720d848334ad94eb13061e9469..f7ba219b918f9204d22094c34922176e0fb5ba70 100755 (executable)
@@ -17,7 +17,7 @@
 # Test remake rules when aclocal.m4 or its prerequisites change.
 # Keep in sync with the other sister tests 'remake-after-*.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index ee178b1c7184e0468664afef35e7f69499511edf..0ff74540f6fd16bf24e83d25bbc4213fdb17210b 100755 (executable)
@@ -17,7 +17,7 @@
 # Test remake rules when configure.ac or its prerequisites change.
 # Keep in sync with the other sister tests 'remake-after-*.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index fca90b637090f57a8fd33dca967ca9bcff39d09e..2161790cf21c3135f1e2801d11eaa1e350f602a9 100755 (executable)
@@ -17,7 +17,7 @@
 # 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; }
index 93a870eb792cb4348f89511f411b977701746edf..29cefd4769bfb7018ba0a7e4182473904a0bf7a1 100755 (executable)
@@ -17,7 +17,7 @@
 # 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
 
index 0f7d9849abca117eef3cee044bb6fd299e179c5a..debdbb488f6297a7d7b3560ce04ae839ced9bb49 100755 (executable)
@@ -18,7 +18,7 @@
 # This handle the case in which the makefiles are not called 'Makefile'.
 # See also sister test 'remake-all-1.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkfile=foobar
 
index b3b7c6c745d610ddc1e3be62b3c38f5a0e693a72..787e71b07086fe72c386057a14add58bc8bf4600 100755 (executable)
@@ -22,7 +22,7 @@
 # big deal in practice (in fact, this test *currently fails*).  Still,
 # keeping the limitation exposed is a good idea anyway.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 8f29499c8413e10e95139d799dab4fdef2673988..4949b52b2446f1d636719136e6652b924e1e724b 100755 (executable)
@@ -19,7 +19,7 @@
 # rules don't break in obvious ways in a slightly "heavier than usual"
 # setup.
 
-. ./defs || exit 1
+. test-init.sh
 
 ocwd=$(pwd) || fatal_ "getting current working directory"
 
index 0b5506270bb86c163b673e5661e1eb702abaa311..dde1615fb8b73e91268087ed53e223f086bd7bfc 100755 (executable)
@@ -18,7 +18,7 @@
 # of the "deleted header problem".  This test checks deeper inclusion
 # stacks, and use VPATH builds.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 868d36e505c26784ad81c7fbdfa2a82203fe4c0a..f784593fd822f19758e25d9ce56b50dc9c57012e 100755 (executable)
@@ -18,7 +18,7 @@
 # of the "deleted header problem".  This test does the check when the
 # SUBDIRS variable is involved.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])
index f754a3794ac6af57ed4c33e84fa6abb97e0bcd4f..485f37f74ff1450053168a2c3d11bca5b570fa78 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that inclusion of '.am' fragments by automake does not suffer
 # of the "deleted header problem".  Basic checks are done here.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 0bb7cae6fc0d39cc58189a18944870c86912bfd3..2499d82cdba14fc8aaab8560c4b34c4a00e5e962 100755 (executable)
@@ -20,7 +20,7 @@
 # header file" issue w.r.t. aclocal.m4 dependencies.  See also related
 # test 'acloca22.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 FOO_MACRO
index 9ccf5d1c48adf21a707d108e0275d3816b13de5c..99a5b00d0d10a4b77255d46ac0734f221b281a98 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure remaking rules fail when they should.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 2fdab58d3787106ba95648d6fb614924fcdaacea..3aea5b9985af025960629d41d308cdf6e1c02f50 100755 (executable)
@@ -22,7 +22,7 @@
 # for more info).
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 127fa1fd5fadae91bcb52e7fe3aedf860940b27d..c70b3c672548414906864279034664884a4963f6 100755 (executable)
@@ -22,7 +22,7 @@
 # for more info).
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_HEADERS([config.h])
index 9044a04abe29a7d81253880c488d1cce03f725d3..23fbfc81bfe4d91642eeb2c5459ccdbcab2d4e37 100755 (executable)
@@ -23,7 +23,7 @@
 # for more info).
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_HEADERS([config.h])
index da0a0703d74ecedfe0a5ae98bb58c692eaf695f7..7567dfb07d1ef35ae6794f9c85a75e3f91afbcb0 100755 (executable)
@@ -19,7 +19,7 @@
 #   - remake-include-configure.sh
 #   - remake-include-makefile.sh
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index f7f8c0450d599ab8f8caa0ca6035f1060c7c3d11..5e0a4266a88f51dddb3b5d942eafd01d1857dc78 100755 (executable)
@@ -19,7 +19,7 @@
 #   - remake-include-aclocal.sh
 #   - remake-include-makefile.sh
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index ed749cceea0d16f7d4f15d2fcf1e6ef7a263520c..0dcee5833f16cfd7f1ea7df031646010f3de5839 100755 (executable)
@@ -20,7 +20,7 @@
 #   - remake-include-configure.sh
 
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index 8a28925b6d4cd0ecd42b5f6741e40002d50c8dac..9df34b603d0dea7c056c6778723ae45c20e1da26 100755 (executable)
@@ -22,7 +22,7 @@
 # big deal in practice (in fact, this test *currently fails*).  Still,
 # keeping the limitation exposed is a good idea anyway.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 m4_include([foobar.m4])
index 61ac1979c9dc47377da874b1476247e4ce06be9a..bdd3f02d2875454d923535dc47b8c7ea053f4cc9 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the aclocal honouring of AC_CONFIG_MACRO_DIR interacts
 # nicely with automatic rebuild rules.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_MACRO_DIR([macro-dir])
index b1e8dd8dbf865e5e318cb958b4ecc3c6133ae0a1..326a3c919d0201acce58cfbe568f3b7d3e517528 100755 (executable)
@@ -18,7 +18,7 @@
 # but not all.
 # Report from Ralf Corsepius.
 
-. ./defs || exit 1
+. test-init.sh
 
 if using_gmake; then
   remake="$MAKE"
index 3c4d45a9faeb61d825c20d66700584436c7a80ca..b9e33c379e5abf420cd47e9e9adc7e798cd130ab 100755 (executable)
@@ -21,7 +21,7 @@
 # Keep this in sync with sister test 'remake-makefile-vpath.sh', which
 # performs the same checks for a VPATH build.
 
-. ./defs || exit 1
+. test-init.sh
 
 mv -f configure.ac configure.stub
 
index 737b046391c2b7552facd79c47603a9df75011e2..54c6af9c190d7637766d0358f0cf01e0c21302d3 100755 (executable)
@@ -21,7 +21,7 @@
 # Keep this in sync with sister test 'remake-makefile-instree.sh', which
 # performs the same checks for a in-tree build.
 
-. ./defs || exit 1
+. test-init.sh
 
 mv -f configure.ac configure.stub
 
index 02cef718e73a59add6c200d50db84aabd190adb3..54f7cdf4f1704a64dd58738f7978259b3178f363 100755 (executable)
@@ -17,7 +17,7 @@
 # Test basic remake rules for Makefiles with non-default names
 # and/or with multiple sources.
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1=::MagicStringOne::
 magic2=__MagicStringTwo__
index 68ea5a8318d7e54ae05111384c55cb093acdff56..3ca16801fe9968c0ff83bb3f4ddcd86f97e3a806 100755 (executable)
@@ -17,7 +17,7 @@
 # Test remake rules when m4 files get moved among different "include
 # dirs" (i.e. those passed to aclocal with '-I' option).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 MY_MACRO
index 10fdf11c798574f3391e8f6566f2faf3a810e4b1..f06ede63b18de23a54fbb1b02c20d7388e04b005 100755 (executable)
@@ -25,7 +25,7 @@
 #
 # Report from Akim Demaille.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 # Rebuild rule are ok until make dist, but not afterwards.
index 27e8bad64f9429de91ce58f1d031d61df35cc6bf..34f86513bbc61dc57df1f0752a7f4b039fbb2482 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Remake rules and user-defined recursive rules.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 m4_include([extra-targets.m4])
index 378aa2660f809be164e142c351ef3c800acfc56e..200bef118214fc0c4aeb658b86970809aedc2159 100755 (executable)
@@ -18,7 +18,7 @@
 # of the "deleted header problem".  This test checks that we can rename
 # an included .am file without confusing the remake rules.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index ee25c5894283a54cab62c9fba9310c212e69b589..ff99f1d54a4b2ed44ca1d9573db3ee81d1c598e1 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test remake rules when m4 files get renamed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 MY_MACRO
index f440a45e4be2362efeb3385b93cf061a12152992..9658737096ab08bd88e11f387dfe9853ebf772ef 100755 (executable)
@@ -18,7 +18,7 @@
 # an m4 macro in it gets renamed.  Kudos to Bruno Haible for thinking
 # about this situation.  See also related test 'acloca22.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 MY_MACRO
index 281dde257537b0a0ad9a401e3bcba8b29b4aa683..99ab1db90c6fbce9e2b6d798772349e3ad60d9dc 100755 (executable)
@@ -17,7 +17,7 @@
 # Test remake rules when the name of an m4 macro change.  Try both with
 # and without indirection.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 MY_MACRO
index b6c0c61b85a23788926961a59d89bea6a43074b2..0a2c5fa1f1336252b3bfad7afc34dbdb569f48c9 100755 (executable)
@@ -19,7 +19,7 @@
 # See also the other similar tests 'remake-subdir*.sh', and the
 # related test 'aclocal5.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 m4_include([subdirs.m4])
index 9b2672bec5ce25a89a509d934cee7d5599232751..a00ae57583a777340005fcfe0851dbd6f1e83c2a 100755 (executable)
@@ -21,7 +21,7 @@
 # related test 'aclocal5.sh'
 
 required=GNUmake
-. ./defs || exit 1
+. test-init.sh
 
 magic1='::MagicString::One::'
 magic2='__MagicString__Two__'
index 0cce72e052056a1137a8ec0cc487fcfc951ef56d..6700472e6a67168efbcdbd7aee976908bfada5fd 100755 (executable)
@@ -18,7 +18,7 @@
 # are correctly generated.
 # See also sister functional test 'remake-subdir-only.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 41cc40a6d18ab06a61e32724bc3a66bc0398b964..e9a6f570996bd7650213d9c2a7b40dc1f365b237 100755 (executable)
@@ -21,7 +21,7 @@
 # an explicit delay in the build process.
 # Suggestion by Ralf Wildenhues.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<END
 AC_INIT([$me], [1.0])
index 5291ddda677117eac6c05854722c6104fb277866..56a131736c60b0e2b220ef143a0184a1109c2e52 100755 (executable)
@@ -17,7 +17,7 @@
 # Ensure that remake rules work for files in a subdirectory even when
 # there is no Makefile for that subdirectory.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/foo])
index 12d1ca5444a9089f7799c6980cca44697255c1bc..b1023ddcb0de65d85d18032cd1b37033db407bbb 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure remaking rules in subdir are correctly generated.
 # See also sister "grepping" test 'remake-subdir-grepping.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 fingerprint='=/FiNgErPrInT/='
 
index 1e4716d8f440a4f0a6bc030a42ba827e945135b3..a8014cf8f337ef13530a23a6e6dc51b9acebacf2 100755 (executable)
@@ -19,7 +19,7 @@
 # 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
index 42f0ba14d4b0b8f4cfe904143a8a15c48d382608..a8755446734bbb1e294a2c7253455cd6b161e892 100755 (executable)
@@ -19,7 +19,7 @@
 # See also the other similar tests 'remake-subdir*.sh', and the
 # related test 'aclocal5.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 magic1='::MagicString::One::'
 magic2='__MagicString__Two__'
index 2146b381a254e4312d76a09156df8a4e2bf37390..9362a69ea5cc3ededc79d4969bf4016bfd755359 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure remaking rules work when subdir Makefile.in has been removed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 3e7f1e6e412dc47ada755fb6fe55fd2f22c9e001..db1c46c838f5ab465393698c6ddbe18e5b1fda71 100755 (executable)
@@ -22,7 +22,7 @@
 # make by hand.  Thus, fixing it would not be worth the hassle, but
 # we prefer to keep it exposed anyway.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We'll use calls to stat to get debugging information.
 if stat /dev/null; then stat=stat; else stat=:; fi
index c300996f89e80ce1d8e05cba40feec4905ad5e4e..83253d3cc13c08f721c4410b332dd1328d7b47fc 100755 (executable)
@@ -18,7 +18,7 @@
 # generate broken or incorrect makefiles.
 
 required='cc bzip2'
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<END
 AC_INIT([$me], [1.0])
index 27b0ab1afb0a9fa9fef6629b97be0533855e0e93..e68db0c5f8504581fabaa0d2adae4343a72a9529 100755 (executable)
--- a/t/req.sh
+++ b/t/req.sh
@@ -16,7 +16,7 @@
 
 # Test to make sure macro used in m4 file is included.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<EOF
 AC_INIT([$me], [1.0])
index 6006a9cd98b7ecd22b16272223eaf2d389344394..f3497983162019438e5a19d26d0f7cbd3878c182 100755 (executable)
--- a/t/reqd.sh
+++ b/t/reqd.sh
@@ -17,7 +17,7 @@
 # Make sure Automake will install several copies of required files if needed.
 # Reported by Marius Vollmer.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<EOF
 AC_CONFIG_FILES([one/Makefile two/Makefile])
index 5734fd1996bbc487ce3711dd5bb349d3caa62e9f..c6a3256462e30650ecaae7a37b821d0ff2f73064 100755 (executable)
@@ -19,7 +19,7 @@
 # to fix the Makefiles.)
 
 required='libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([req2], [1.0])
index a7cbb97e0b1d0fc997b09f200094c76b415ef476..2d0e5378c8e8e1a93ca98c7c4ff67f1d49bdf68e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure RULE_PATTERN catches strange targets.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 $(srcdir)/Makefile.am:
index 09b127261e6ad287efa594541b2dda9f021734b0..1f20b118f5ea5f8063f6888d1cf9ada50b9035e0 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Unsafe absolute directory names should be diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir 'unsafe$'
 cd 'unsafe$'
index 9f0ae11919decff307a3cbea0c6ccf56fea5dc2b..9a1ae2b098dc96a5312a4448b72c90943d90535f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure C-but-not-CC error works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 dnl AC_PROG_CC and AC_PROG_CXX missing on purpose
index cbe0aa58a436c7fe31a57c97bc8acd6a97ee39cd..24600251c4c5076bbafdc6959f2785775fb1db1e 100755 (executable)
@@ -17,7 +17,7 @@
 # Sanity check on the function used by the automake testsuite to
 # analyze output of "configure --help".
 
-. ./defs || exit 1
+. test-init.sh
 
 # FIXME: this test is a good candidate for a conversion to TAP.
 
index 2bc2ce0c600da3cfa988d5c64972219331a56a76..9ad40100cdc24abde78bb4d8769094d21ffe9af1 100755 (executable)
@@ -20,7 +20,7 @@
 # and the creation of such directory if we want.
 
 am_create_testdir=no
-. ./defs || exit 99
+. test-init.sh
 
 plan_ 5
 
@@ -37,7 +37,7 @@ do_check ()
   rm -rf _self.dir || framework_failure_ "cleaning up _self.dir"
   command_ok_ "$1 [$2]" $AM_TEST_RUNNER_SHELL -c "
     $2
-    . ./defs || exit 99
+   . test-init.sh
     # Don't fail if 'ls -l' fails; avoids possible racy spurious failures.
     pwd; ls -l || : # For debugging.
     $3
index 19cf27a87e728b8c30eab1f472865f1444909769..556badc891322fe958c73060d8391d49fc9f669f 100755 (executable)
@@ -20,7 +20,7 @@
 # Also check that the 'errexit' shell flag is active.
 
 am_create_testdir=no
-. ./defs || exit 99
+. test-init.sh
 
 plan_ 32
 
@@ -35,7 +35,7 @@ set +e
 # when unsetting an already-unset variable.
 # Add an extra newline at the end so that the aliases defined by 'defs'
 # can take effect.  Yes, this is truly required.
-init="stderr_fileno_=2; unset am_explicit_skips; . ./defs${nl}"
+init="stderr_fileno_=2; unset am_explicit_skips;. test-init.sh${nl}"
 
 # Required so that the code in defs doesn't go crazy trying to creating a
 # temporary directory in the absolute dir of $AM_TEST_RUNNER_SHELL.
index 97f5288fdc725377c70700d74761ff24641331b6..aa92504630a7796f43dacc0c396c505296d9c1e6 100755 (executable)
@@ -19,7 +19,7 @@
 # an early exit due to some command exiting unexpectedly with status 77.
 
 am_create_testdir=no
-. ./defs || exit 1
+. test-init.sh
 
 set +e
 
@@ -31,7 +31,7 @@ run_dummy_test ()
 {
   env $2 $AM_TEST_RUNNER_SHELL -c "
     am_create_testdir=no
-    . ./defs
+   . test-init.sh
     $1
   " dummy.sh
 }
index 9077ca8465ecdc4403e6ab61d0c3373c44f1ade4..cd23b29dcb474f6663356dd06681b8f80120ddc1 100755 (executable)
@@ -18,7 +18,7 @@
 # shell function.
 
 am_create_testdir=no
-. ./defs || exit 99
+. test-init.sh
 
 plan_ 2
 
index a5f84b31120a1764bc2e416a4ca77b46e5f6c09c..a236798db385eaa92b400c172c4d60cbb5690863 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Sanity check for the automake testsuite: the 'is_newest' subroutine.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 21
 
index 9c3125ee7c39c0f54d87f6f86c12a3098ca4ffd4..c76a0e11bc301be494a84497e195d55814e05a21 100755 (executable)
@@ -18,7 +18,7 @@
 # Make sure that $me gets automatically defined by './defs'.
 
 am_create_testdir=no
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 12
 
@@ -31,7 +31,7 @@ do_check ()
 {
   $AM_TEST_RUNNER_SHELL -c '
     am_create_testdir=no # Do not pollute the top-level directory.
-    . ./defs
+   . test-init.sh
     echo me=$me
   ' "$1" | grep "^me=$2$"
   command_ok_ "me=$1" test $? -eq 0
@@ -52,7 +52,7 @@ do_check abc. 'abc\.'
 s=$(me=bad $AM_TEST_RUNNER_SHELL -c '
   # Do not pollute the top-level directory.
   am_create_testdir=no
-  . ./defs
+ . test-init.sh
   echo me=$me
 ' foo.sh)
 command_ok_ "override of \$me before ./defs causes no error" \
index 11211ec4ba335f7987f27eaa5f50c3dfdf35cfd1..74ec75c991998c0e7d4fb4e1a1adf8b9322ca637 100755 (executable)
@@ -21,7 +21,7 @@
 unset stderr_fileno_ || :
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 set +e
 
index ead4eed70053ceff03ad682e66807be3b9afb386..4db005040dde7d851729bda9eaee95e2cdfc2ba2 100755 (executable)
@@ -17,7 +17,7 @@
 # Sanity check for the automake testsuite.
 # Check the 'seq_' subroutine.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 14
 
index 2bd3bc2c5e5d6236bce211039808386166f49b1f..c8dc5a84f8a76bf67ca9b4e19146083cb7f209f9 100755 (executable)
@@ -17,7 +17,7 @@
 # Sanity check for the automake testsuite.
 # Check the 'unindent' subroutine.
 
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 22
 
index 26ce68faadcf9d3aa90dc5fe54a742001861e779..52178c58f7097d0b0207b5c82ecdd4107912e3f6 100755 (executable)
@@ -17,7 +17,7 @@
 # Option 'serial-tests'.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 hasnt_parallel_tests ()
 {
index c70d8c8603628d725cd92e50cfb804d3483ff953..8bca33ff5f5420a80fe72c1f61927124d7a8a281 100755 (executable)
@@ -18,7 +18,7 @@
 # from config.site, and that this default can be overridden from
 # either the ./configure or make command line.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 # This line will be edited later to force silent-rules default.
index e9c6b555645bf768b02bc44d6f432455976159bd..6cc04308eb21a47eb7230ec2d76ef62bbd2fa91a 100755 (executable)
@@ -17,7 +17,7 @@
 # Check silent-rules mode for Lex.
 
 required='cc lex'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 2e5d203d74ea8c213ae0d8e2c6264918bfe3cf87..e810e27c7fc433271898d69da3295d83428aeac5 100755 (executable)
@@ -22,7 +22,7 @@
 # 'silent-many-generic.sh', which should work with generic compilers.
 
 required='gcc g++ gfortran lex yacc'
-. ./defs || exit 1
+. test-init.sh
 
 # Avoids too much code duplication.
 do_and_check_silent_build ()
index 7d18c5778c070567e169c83a8217ad22c7b357e9..6e8c33b5f86c8db0657a05e3643c52b3802b6ea6 100755 (executable)
@@ -23,7 +23,7 @@
 # and forces the use of gcc depmode.
 
 required='cc c++ fortran fortran77 lex yacc'
-. ./defs || exit 1
+. test-init.sh
 
 # Avoids too much code duplication.
 do_and_check_silent_build ()
index 08ba070ae5eabdb99f35fbdec447ab6a665f2b84..3969ada57805cc5ba16f9d02ec220d9a2e802b36 100755 (executable)
@@ -17,7 +17,7 @@
 # Check silent-rules mode, on 'make' implementations that do not
 # support nested variables (Bug#9928, Bug#10237).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AM_SILENT_RULES
index 632404735091128c78570f76e2adb721858f8078..e9ef9a0967f856d95ff258b2e1161e00dcfe6227 100755 (executable)
@@ -18,7 +18,7 @@
 # involved (i.e., the '-d' option is in *YFLAGS).
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 9283b325a4bf4e171f92dc5a5ed82c01718035ca..b54bfe2d7671190503e663d281594bd53d11afd2 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this in sync with sister test 'silent-yacc-gcc.sh'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 410e51c8089021e4ae170047849710c6057cdcb3..32713d5e3aef501f6a11d4f51803fdff9a2c2ade 100755 (executable)
@@ -19,7 +19,7 @@
 # Please keep this file in sync with 'silent2.sh'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 25cf8b140ffef374eac816b25c9de5f3c57967b0..5dcaa26e83f59aa495010b055ee5e6d84a297351 100755 (executable)
@@ -20,7 +20,7 @@
 # Please keep this file in sync with 'silent.sh'.
 
 required=gcc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index f5dd834108b7d8850045ec64341c79e80c2cb5de..9c3ed5d7939ee5b496963af4a8fc0fd5c0e744c9 100755 (executable)
@@ -19,7 +19,7 @@
 # Please keep this file in sync with 'silent4.sh' and 'silent9.sh'.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 8dcad3dfe93f393ccf140f3fc1f0dce3418306a2..28de9e0f904a1c4c763673feaca2be0198b502f9 100755 (executable)
@@ -20,7 +20,7 @@
 # Please keep this file in sync with 'silent3.sh' and 'silent9.sh'.
 
 required="libtoolize gcc"
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index a4b0f69f0ffc8cffe242b80deb36ee9927c7f01b..73fc4d060afd2ffdcfc9d83f94e74074ee19ccfc 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check user extensibility of silent-rules mode.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'EOF'
 AC_CONFIG_FILES([sub/Makefile])
index 5e5472e12b40127956e8f4429a8c83affdaa44a2..42e5a83e540e224ed4ddbdf90c77b4d0205d8d8b 100755 (executable)
@@ -17,7 +17,7 @@
 # Check user extensibility of silent-rules mode.
 # Aslo check that silent rules are disabled by default.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 5d7b135d64528926c7c1ef68f10c36f80cd05c57..2c99560c97fc31e6f266950d1416224af9891020 100755 (executable)
@@ -17,7 +17,7 @@
 # Check texinfo rules in silent-rules mode.
 
 required='makeinfo tex texi2dvi dvips'
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 8d0f6ea8716da1163f575ef88a434181e49e356b..4ffb4b69076207197813b744b720232955084f1b 100755 (executable)
@@ -19,7 +19,7 @@
 # Please keep this file in sync with 'silent3.sh' and 'silent4.sh'.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index bafad6dcf335b2963d5b1836054974d0309f97b7..f75100ad039256b3602943480ee1520bbeea7c98 100755 (executable)
@@ -19,7 +19,7 @@
 # test 'silentcxx.sh', which should work with generic compilers.
 
 required=g++
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index fe4c9d4a92f43887b84cf0e7ffbb01bf6b8544c4..0bc4c351900ec71daa5dbc2b17f60f33b9aca60b 100755 (executable)
@@ -20,7 +20,7 @@
 # and forces the use of gcc depmode.
 
 required=c++
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index e104a69d708f962a39f09440aa46eafa45be3d7f..f1a423b64f92a66da525a244fb26dc8e0ac68286 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this ins sync with the sister test 'silentf90.sh'.
 
 required=fortran77
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index f0c470dbaa0828e5a71d117dac92bcec6e7c2201..650d0b6f34789e3ce795f2702cca4d7b08ffded4 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep this ins sync with the sister test 'silentf77.sh'.
 
 required=fortran
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 831300e90a2610e44225969bc9213140ce7b866e..66fe9b7982a87e811137c4766e54542477856311 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure subdir source file generates explicit dependency.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = zardoz widdershins
index 96bf9ba91a12115b539f1bd2c56996bd56801982..21cffd2ff5037b844fe47792cf7afbfa529635a8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test leading space on macro assignment.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index 28d576cd4c8995f3c38490d306cbcd051afe457c..e0611bc68ead509b6ad5b44d97a5ae98093ff0b9 100755 (executable)
@@ -20,7 +20,7 @@
 # even if AM_CFLAGS is undefined. Similarly for other *FLAGS variables
 # (CXXFLAGS, YFLAGS, LDFLAGS, ...)
 
-. ./defs || exit 1
+. test-init.sh
 
 # Disable shell globbing if possible.
 (set +f) >/dev/null 2>&1 && set +f
index 958e887bf5283644964003fb785172042f8e3294..791d9f765f5caa252878b1773108cc0108b46063 100755 (executable)
@@ -18,7 +18,7 @@
 # conditionals are present.
 # From Richard Boulton.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7261d189105998e34a488b492ada1fb5f3f6e5c8..0572040571a515223411cdcd51833603affc6040 100755 (executable)
@@ -17,7 +17,7 @@
 # The true/false example from the manual, plus a check for _SHORTNAME.
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 598970ada01b2feb500cf669e7623534e4303cd0..be7cf459d57c64c5bb4f93cc8933b4d04177524a 100755 (executable)
@@ -19,7 +19,7 @@
 # use of _CPPFLAGS (PR/337).
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index c8cde9e0f89b418adadfe3c14d4c5fa566b74acd..4292629443d656cf7c7dab14c3ee859683324bde 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Another check for per-target flag substitutions.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 18abba24553234cba5c75008cb911b049528a48f..3bed9b1869184b05ab03165babf67f1a9c63d000 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure misspellings in _SOURCES variables cause failure.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = zardoz foo
index c468b2b06c53a1c33011b4fdd1dbd5071ac37a94..98550afe18b1714ac4f54616fe3b88ed6e6a0a5b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure misspellings in _SOURCES variables cause failure.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index c12703b9c877dc8cb779052166594099db837275..4d209302b4160845b913d767e37046dd7e6451d0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure some internal _DEPENDENCIES variables don't cause
 # errors.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TAGS_DEPENDENCIES = joe
index f6f99eb6654e89c1f9d7d2811fb4acc1cc1e24f6..94cce097faa3897bc10ee05fa4efb5c70be9ff6a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure that misspelled prefixes actually cause error.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 bni_PROGRAMS = zot
index f279745e84872bcc6694d0aad21e75d0bfecda03..0a2e5127767443780f92667d36d2decfc8069512 100755 (executable)
@@ -25,7 +25,7 @@
 #  <http://austingroupbugs.net/view.php?id=542>
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 10
 
index a23772d3c09b74320706792eaba86ff35230c7b4..641627a35ad4c3e2ba18a79b62e3acddffb75dd2 100755 (executable)
--- a/t/spy.sh
+++ b/t/spy.sh
@@ -67,7 +67,7 @@
 # So it seems only non-overlapping ::-rule may be portable.  This is
 # what we check now.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile <<\EOF
 a :: b
index 13531ac0a762871ca9865fa7192e31703eaccc8c..5772cb21461f19704718cbe61981c143455c5557 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure config substitution in _SOURCES fails.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >> configure.ac
 
index 10c7d98b27175249463c60ef9cd9b14856635ced..7860e72b079ed9e5db929839f3c1a9a2ca8011a2 100755 (executable)
@@ -15,7 +15,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Make sure stamp-h* files are created where we expect
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << END
 AC_CONFIG_HEADERS([1.h
index d030e64c4af51b4e97de8281985376fd928e451e..21c66b8579e783442800a1638871dec73599f4cc 100755 (executable)
@@ -18,7 +18,7 @@
 # Report by Kent Boortz.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index b3f458a90b7638fb40f931f148e92cf7e5f73c61..59177fcaeaaa90218074da87a4c5a2bfaca42a28 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test "not a standard library" error.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6cce9162d7e264e404ed6a5ce45b8ffae823c7a3..f79353c3e8a7ac8dce36d1264dcca782a0fbbcf5 100755 (executable)
@@ -17,7 +17,7 @@
 # Check for AM_LDFLAGS = -module
 # Report from Kevin P. Fleming.
 required=libtool
-. ./defs || exit 1
+. test-init.sh
 
 : > README
 : > NEWS
index 27e44dd1725ce6e3699f9c8f56794b2041801a64..f3028dbb0a511f67a5e06aa274a2447beea10f52 100755 (executable)
@@ -21,7 +21,7 @@
 # been in place for quite a long time); see also Automake bug #7673.
 # Update this test if the semantics are changed.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want complete control over automake options.
 AUTOMAKE=$am_original_AUTOMAKE
index ab70ee3fd008508464d33cc8a11e18dd8e567d82..d56cf5f22b0ece44866c1eff2abd663d1ae9a446 100755 (executable)
@@ -18,7 +18,7 @@
 # strictness specified later should take precedence over strictness
 # specified earlier.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want complete control over automake options.
 AUTOMAKE=$am_original_AUTOMAKE
index 6170627dc759780f95fc77b3e12fde5401de3f0c..338d5bb221c8db81740c40343eaeb0c40d6db4a1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for install-strip.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2397545d4f084a42970f8e9dc51b2157975b8a99..c18b517ebd2d73e32702debda819ad8d8d8171f9 100755 (executable)
@@ -18,7 +18,7 @@
 # This test needs GNU binutils strip.  See sister test 'strip3.sh'.
 
 required='cc strip'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 543449dba6f9c8308e61039b048d3b00c672ecbf..5c3121feebe187909f8dbbd7471ee4808d8e7aea 100755 (executable)
@@ -19,7 +19,7 @@
 # test 'strip2.sh'.
 
 required='cc libtoolize strip'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index a8deb17a6b63a8388057cde76a4ab723bc56a646..37f5899d3634e9d6719fc7894824d5ae8aab881e 100755 (executable)
@@ -18,7 +18,7 @@
 # SUBDIRS + AC_SUBST setup from the manual.
 # Lots of lines here are duplicated in 'subcond-am-cond.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 if test "$want_opt" = yes; then
index 66ecfda7ac927525cf3ea16428e7ce25b6246d4a..750ae800bafc9fe83625c0d2ed23f50d827e1170 100755 (executable)
@@ -19,7 +19,7 @@
 # test 'subdir-add2-pr46.sh' do it from a subdirectory.
 # PR automake/46
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index a4020525d333427b2b99e9b1ee1a6db06a7a590a..bfe7e9c51583a34c6c7b7fe21f2a25df2e3468a6 100755 (executable)
@@ -19,7 +19,7 @@
 # it works when make is run from the top-level directory.
 # PR automake/46
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_MACRO_DIR([m4])
index cb55ffb886318b65b0e831f1970177d8bbe15021..28868bf462689ed9b6db4936dabfa8524df096ac 100755 (executable)
@@ -18,7 +18,7 @@
 # SUBDIRS + AM_CONDITIONAL setup from the manual.
 # Lots of lines here are duplicated in 'subdir-ac-subst.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_CONDITIONAL([COND_OPT], [test "$want_opt" = yes])
index 4eba4f8943085a17b94362b01854f7d682921382..da0ab56974ef6e8a38bf3ddbff2a0004b9b7e0bb 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check SUBDIRS set based on conditionals.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([TEST], [true])
index f933f77db9560f8c4dc1d9de20481c23fb265be7..4cc48e5ec6ba313710af886d163578c0fb8d7295 100755 (executable)
@@ -17,7 +17,7 @@
 # It is ok to have a conditional SUBDIRS when using gettext.
 
 required=gettext
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_GNU_GETTEXT
index 25274fd23c990199c2f202eb5ebc8116cca150ae..4b005e8615a4a76eb94070b00254b960db003a72 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that "./configure && make && make distclean" is actually a
 # no-op, even when conditional SUBDIRS are involved.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub1/Makefile sub2/Makefile sub1/subsub/Makefile])
index 396aecc244492c59e8100288373a874110ce25be..8c3dc58c403473b97491aa7ec11beabff3314730 100755 (executable)
@@ -16,7 +16,7 @@
 
 # SUDBIRS with $fail set in the environment.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index 0ce19d9376f7c08f6d650f70ff622b174f3439a0..1b6ee9d21ab0ed5568eaba7c9b3634cb65f816f4 100755 (executable)
@@ -16,7 +16,7 @@
 
 # The $(SUDBIRS) entries are processed in the order they are specified.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([
index b8389ddd78458af9a655983847789aa622b635a1..6925ea74dc0f66bb4ce5edf0d3fdec30b8a565b4 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure sub-sub-dirs work correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir one
 mkdir one/two
index 0a3330b88318aeca73792062f372bae3af5d0c7c..106358973e827ba831f416d23185c1981509bee2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test SUDBIRS with '/' in them.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([src/subdir/Makefile src/subdir2/Makefile])
index 249481aa3a2d93650e5d456eea5f9739370241d6..e8719997d66bb3f31fe1ac370efd86253cfc5f17 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure install-sh and mkinstalldirs correctly found in
 # subdirs.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir zot
 
index 6cbc0214b15b555fbb22c802307bfc075ac054b7..b02a6a4dbde2942444958490f10df341b2c74ef8 100755 (executable)
@@ -22,7 +22,7 @@
 # 'subobj-clean-pr10697.sh', which deals with the non-libtool case.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_AR
index e7be1c5cc1ffae408ebb7ea35c48f28ef27d95c8..9fdc786f6676c3a1d35083b45f7be03d7811096a 100755 (executable)
@@ -22,7 +22,7 @@
 # 'subobj-clean-lt-pr10697.sh', which deals with the libtool case.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7ac839b6a246e8e1c7ba6cad1c55087390d75674..19b13117bf927b5733f0f03c7f51aed3ea890dd8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test of subdir objects with C.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index cefb0ab0652e1af0f402cd8e25fcda0fff24fc51..68f0e32b1017618700af8649a6d9d34051aefcfb 100755 (executable)
@@ -17,7 +17,7 @@
 # PR 492: Test asm subdir-objects.
 
 required=gcc
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 25bdb93d1e6cb7a89e1458568a195105daeb7bf7..4bd88630349a87b45dab9e0d1a7e4994bffe0a5a 100755 (executable)
@@ -27,7 +27,7 @@
 # 'subobj11c.sh'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6d539c2c321e935dac35567d4679193f81e41f4f..89f878b88ef4f77bd008ac66c197182ad8e4ee81 100755 (executable)
@@ -26,7 +26,7 @@
 # See also "semantic" sister test 'subobj11a.sh', and related test
 # 'subobj11c.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ce33e3086c7bd7d8d1054aba019979c587cc614b..20119e129c76abe7fd9128a09f6992d70825cd4c 100755 (executable)
@@ -19,7 +19,7 @@
 # included makefile fragments (containing dependency info).
 # See also related tests 'subobj11a.sh' and 'subobj11b.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 646c6cf2ccb6aa638fbc241d5b7c05f71d3286da..d0b05fe3beb9f21c7a2300f5f6bc8c9dbdbfb636 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test of subdir objects with C++.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 4399eefc0e8bbedfd1e733427162239b2108b0f0..4fb227ff84803d6d67021ef1b3b8e5eedce00fa3 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure '../foo/foo.cpp' generates a rule.
 # Report from Dave Brolley.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 6736cb1b99d8e0367469afbb35d42b1616095dce..b056374c4db83c478cdc8fd27c5a73e445673f8e 100755 (executable)
@@ -18,7 +18,7 @@
 # From Robert Collins.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([generic/Makefile])
index cf265f761fc0493615cbc6405dec1d6291ab0eee..67a0548c93c029c3c01e6d5183277594f2de60f1 100755 (executable)
@@ -18,7 +18,7 @@
 # From Robert Collins.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_CC_C_O
index 1ce58aeca6b2aaff7b0dafc9ec1a62181e7f5457..4e95b4c1d7d46da9280f528854e4aa45f759ea2d 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure AM_CFLAGS appears in subdir compilation rule.
 # Report from Steve M. Robbins.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 58b1e41f39f233861eee04254d76c207c9ccbe23..fe0d0c8881d1db664e8fade12a6d4a3ba5f3f3df 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure 'compile' is included when subdir-objects is used in a subdir.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 2d8f8fbe26bf09ac1a755af1283bbe19276f16cb..69675760bce4e921c864aa8dc0ef7939927ff16e 100755 (executable)
@@ -23,7 +23,7 @@
 # forgets '.../<file>.o'.
 
 required='c++ libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 7601664d5fd2c673925f458d1f6cd1739c9a9bd2..36cb4d62f919de31dd17592a7ec61f4ae2fcaac6 100755 (executable)
@@ -18,7 +18,7 @@
 # combinational explosion.  (This test is named after the &subobjname
 # sub in Automake).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0ce1a7c23621d591a79ca433aac9ce400fc333f3..f05396f74277c41c57b819d885468dfe6321c568 100755 (executable)
@@ -18,7 +18,7 @@
 # properly, when a subpackage is involved.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index d1c5ed3b65c9c36ab0c42a8ea76e570cda824aab..69445350e29b3753fbe587d9099df73e7aaa82bd 100755 (executable)
@@ -17,7 +17,7 @@
 # Check subpackage handling.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 mkdir m4
 
index ea95d5f0129e8e6f30c0d01ae07b4c760719b212..2914fdcbf8246599f62cfd2c5655ea49134d2341 100755 (executable)
@@ -17,7 +17,7 @@
 # Try a DIST_SUBDIRS subpackage with no SUBDIRS.
 # Report from Gary V. Vaughan.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir m4
 
index 6ebc4bd232ae467833b94e21df7addd1e07d1d4e..5f89b91d847843ee2d27cd4603a89519028a5fbb 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure different subpackages may share files and directories.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am <<'END'
 SUBDIRS = subpkg
index 97f452c6148d8d057ea431ef6a84e7b4b309f0ab..d4ac46d142c90fd0050d4223ce42a32351df5559 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to ensure 'distdir' fixes the mode of files and directories
 # copied into '$(distdir)', even with sub-packages.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am <<'END'
 SUBDIRS = subpkg
index 388f2973226fd59d0cbb78974417784244ccd146..f9a9c5bad363cc081e6febfe8d49e8b3697ff83b 100755 (executable)
@@ -21,7 +21,7 @@
 # These checks have been introduced in commit 'Release-1-9-254-g9d0eaef'
 # into the former test 'subst2.test'.
 
-. ./defs || exit 1
+. test-init.sh
 
 # These are deliberately quite long, so that the xxx_PROGRAMS definition
 # in Makefile.am below will be split on multiple lines, with the last
index db83d7334f5032b7fc22171762380dd026643b87..a6010e471e198ca36bead3290012e2a4eb962d16 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that AC_SUBST($1) does something sensible.  From Ulrich
 # Drepper.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 dnl This test used to have the following lines, which cannot have
index 18c17e2e2cdad112ab3ad1ad457fa82331fbf3ae..475027bced958565a2a43e1fef3ed59d4ff58278 100755 (executable)
@@ -18,7 +18,7 @@
 # 'nobase.sh'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AC_PROG_CC
index 739b3689c4a41935a186b5c33d50c7773b949b1b..91066e846087a860e02d019a3e611841de071b76 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test AM_SUBST_NOTMAKE.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 myrule="\
index f44b8516a34e7036b8f2ef84146051c9f9ffb0aa..636d188a7f96d11c5aa46773488530f480303e6a 100755 (executable)
@@ -19,7 +19,7 @@
 # Thus, we allow substitutions in bin_PROGRAMS, but then EXTRA_PROGRAMS
 # needs to list possible values of that substitution, literally.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index 06fcdf1dc87be2fb2e3352dc68f7889012dfdb98..dd23e00a9e5b0a191e636ebf8e1befd5c919d041 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for bug in variable substitution references, where
 # undefined variables break later substitutions.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([CC], [whocares])
index 4ea39e602a293d0b4d61685f89681e5c18386fd2..81aa175e4a4bf6b8e64873b9e1c63bb0241e2e21 100755 (executable)
@@ -18,7 +18,7 @@
 # pattern is null.
 # Report from Richard Boulton.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([CC], [whocares])
index 757885c1480d81b48f7f038d49197fca86ece039..75e19fb8a4b20a113598d295563dfaa67dd40273 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that substitutions in variables work.
 # From Lars J. Aas.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SOURCE([fakelib.c])
index 535e36e8637f444597e205f267be4df30ad4759d..20656db657d463629fbf41c6d951952914bc716e 100755 (executable)
@@ -19,7 +19,7 @@
 # See automake bug#7824 and bug#7670.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 8
 
index bcdbc9a0b489b7749af38e9876984632a73d3358..15aa56aa985c2472c3f3a05a1333a99633100be9 100755 (executable)
@@ -19,7 +19,7 @@
 # Reported by Florian Briegel.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CC
index 22ec98520e0b46db8333c3a71ac8853044774858..ae49151a61128dd6bd963adcab08cf6347734886 100755 (executable)
@@ -18,7 +18,7 @@
 # Reported by John Ratliff.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<EOF
 AC_PROG_CC
index cf7ea1050454cdce432e8d7b50a538ec47a80e0d..64100df1af59cf2d5bf608b4680a38f97082e463 100755 (executable)
@@ -18,7 +18,7 @@
 # only once.
 # See also related test 'suffix2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 7e19e04052c9b1dcc0a6db7c234a1fec664ccfba..1f83590eb79954f5971ec2925154d648e1489e70 100755 (executable)
@@ -18,7 +18,7 @@
 # (related to PR/37)
 
 required='cc libtoolize yacc'
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 7
 
index 26694ebdcec696f537aa4a5462a84d56d3cb6099..61fbb51cc276a25c3e3d306c918a5860d92d6bcc 100755 (executable)
@@ -19,7 +19,7 @@
 # We also check for suffixes containing '-'.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 10
 
index 1cee875344fe8f9d55595cd1c1c72edf32375fb6..9fc8f2b588e2ff074ded8aee08bec28f442607ec 100755 (executable)
@@ -19,7 +19,7 @@
 # See also related test 'suffix.sh'.
 required=libtoolize
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 15c562d97fc82ae533a6e84a03b41e649fc8117a..166788b02dc1666fc8580af1634465be623a1016 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure that suffix rules chain.
 
 required=c++
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 10
 
index 2defd0884c22c7b173e30e4b5e17712dfe011bd8..4756e7b6a6937aca0e93609e91b21484b2cde79a 100755 (executable)
@@ -20,7 +20,7 @@
 # Also make sure that .SUFFIXES is automatically adjusted with
 # extensions from implicit rules.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 .k.o:
index fec51e929860650bb9d104ee56dea97f2abb0dd7..d8c43ea8885bd41a1e6c742373ab915620cbe930 100755 (executable)
@@ -19,7 +19,7 @@
 # Based on a report from Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
 
 required='cc libtool'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_SUBST([LINK], [:])
index 4b3dee20d156eb94ec6bf1f559ce7670ef288a76..23cd5f051f8eae63e72991c725c78eaf5b41e1a0 100755 (executable)
@@ -19,7 +19,7 @@
 # '.$(OBJEXT)'.  See also related "semantic" tests 'suffix6b.sh'
 # and 'suffix6c.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 SUFFIXES = a b .$(OBJEXT) c .o .obj
index cfd1662158c7cd9cd9f51f7b7360954c070bc93d..f5504dce3f321b95db11009d73f46760e9e00182 100755 (executable)
@@ -18,7 +18,7 @@
 # extensions.  Se also related "grepping" test 'suffix6.sh'.
 
 required=GNUmake # Other makes might not grok dot-less suffix rules.
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 # $(LINK) is not defined automatically by Automake, since the *_SOURCES
index f688ef7795ea12b92f250290b1772d18d1d37671..ae3399fa8132d02f23152e7d38040ea36c83319c 100755 (executable)
@@ -17,7 +17,7 @@
 # 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 30a18c0d74345b10d6d55083fbe8ed3a260525ff..253a65260e3a08cc89dba452cbaa88ed84e10a75 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure Automake supports implicit rules "confusing"
 # extensions.  Inspired by a mail from Alex Hornby.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 SUFFIXES = .idl S.cpp C.h
index 516c9b227e8f40204150893152c6abaf45b1f356..f61a6b094581f0406131e481685ecc0841205967 100755 (executable)
@@ -19,7 +19,7 @@
 # From PR/37.
 
 required='cc libtoolize'
-. ./defs || exit 1
+. test-init.sh
 
 plan_ 10
 
index a0135daba8eb2ab80756657c295331aaf7c5528a..043b9ad0ac0fa722f625eefbeaaa3b3232f76251 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that Automake choose the shorter route between suffixes
 # (related to PR/37)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac << 'END'
 AC_PROG_CC
index ad7de70c00f00c180d9784fcb23346d6fc49e413..a4c7449884467d3bb8ee187e3ef6cfdf4513e005 100755 (executable)
@@ -18,7 +18,7 @@
 # Reported by Joerg-Martin Schwarz.
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index f1f9dc5a931d42cd7917f4998c0598bf1963eebc..fe7d2fa1d4360086ffc11c2b03301ec84fe2dd41 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure that 'automake -a' redirects dangling symlinks.
 
-. ./defs || exit 1
+. test-init.sh
 
 rm -f install-sh
 ln -s Zardoz install-sh || skip_ "cannot create broken symlinks"
index e2404ba6f364d909d55cbd33fa6584aadd69efc4..96cc8b3347c4d6b92a7b9a4baa28fdebbdab2b86 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for error for bad syntax.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 foo = q \
index 66b40a0965b473cdff07e943d32ccbfb34b960ca..e232d5fe4e63840d7f5a2cb30eeb6a1deba2b986 100755 (executable)
@@ -18,7 +18,7 @@
 # extensions.  See automake bug#12372.
 
 required='cc etags'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 8f38e6be833af1c9a87b24d0604aedd5a377e255..deeea16be9997eb34c6b3e92e700ad554e588f1e 100755 (executable)
--- a/t/tags.sh
+++ b/t/tags.sh
@@ -17,7 +17,7 @@
 # Test for bug reported by Harlan Stenn: the tags target doesn't work
 # when there are only headers in a directory.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 noinst_HEADERS = iguana.h
index 521d2ef2b8e8e5663511c1aad0432ba254fa9c73..a8d3486cf27f4b897ec05b7842535b6d1f340f7e 100755 (executable)
@@ -17,7 +17,7 @@
 # TAGS_DEPENDENCIES only make sense if other tag-worthy things (such as
 # sources) exist.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 9103805b32d3b80901e7e85f86af99d8643c4300..fab0c30f06c556f50156af853c61de0c0002e9de 100755 (executable)
@@ -18,7 +18,7 @@
 # François Pinard, and later by Akim Demaille.
 
 required=etags
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_FILES([sub/Makefile])
index 63544e3cba9cd3732de0f042356a68bebdfd8ca3..9c8b03fc07337ffa8493b586c74bc13c1892b7ad 100755 (executable)
@@ -18,7 +18,7 @@
 #  - handling of "ambiguous" TODO and SKIP directives
 # See also related test 'tap-todo-skip-together.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 876245ee835880e3b2be4d7829250a139680331e..450a3815ee05f7a3222a25bb7e0cd8d60f9b3553 100755 (executable)
@@ -20,7 +20,7 @@
 #  - test results without number get automatically numbered in the
 #    console progress output
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 09b2c74297cd19f3ddb578213f1b7734daf2f840..e37f18c17eff2f3735c22784cc6ac3d80d54a26b 100755 (executable)
@@ -18,7 +18,7 @@
 #  - missing, unreadable, or not-executable test scripts cause proper
 #    error reports
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index f87ccb3614eadb3860b6331a47a35743dfa3802a..33fab0dcc9e09ae3d8d93d26d4682afc73c61822 100755 (executable)
@@ -18,7 +18,7 @@
 #  - even after a "Bail out!" directive, all input is still copied in
 #    the log file
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index dfbadba101cce1c11087f5bd51531128dad7dde3..54985bae06982bbce0cb5f23bf1438d737f31acd 100755 (executable)
@@ -21,7 +21,7 @@
 # "more modern" behaviour in our awk TAP driver.
 
 am_tap_implementation=shell
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 7cd5458b7f5ebcb88843e250530580804d341cbe..e9bf2a15de4da027321b9d1fc01c59dd7d28bcc5 100755 (executable)
@@ -18,7 +18,7 @@
 #  - A "Bail out!" directive causes the driver to ignore the exit
 #    status of the test script.
 
-. ./defs || exit 1
+. test-init.sh
 
 tests='exit.test exit127.test sighup.test sigterm.test'
 
index 54e21fdc4b31316ba39f5ba4554935e3ac071b16..72a0512ae93fb46e0a6bf5733969af1ff4b425d5 100755 (executable)
@@ -18,7 +18,7 @@
 #  - A "Bail out!" directive causes the driver to ignore any TAP
 #    diagnostic message in the rest of the following TAP stream.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index bd90f8dbdb346c9327368d97a37253dfa39ad0f1..fffc21dc532a534fffd04bdec6308e09daa4e174 100755 (executable)
@@ -18,7 +18,7 @@
 #  - A "Bail out!" directive causes the driver to ignore any TAP
 #    result or error in the rest of the following TAP stream.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 08f12fdf09ae10449dedf91e9ba59d19e55850c3..0cc3434f71b270543135775f06bbaa09c87f9162 100755 (executable)
@@ -17,7 +17,7 @@
 # Basic TAP test protocol support:
 #  - "Bail out!" magic
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 4781ce5ac3a5f8133ebeff4c2d0c6a49541cffa1..31f330eb27719470dc6933284bb1b61248b5eca7 100755 (executable)
@@ -24,7 +24,7 @@
 # Note that some of the features checked here are checked in other
 # test cases too, usually in a more thorough and detailed way.
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index a3fab2f94b4c742d58c3e481e5b077d94816dacd..1e83623718f866a928f9631b9393790313a2869b 100755 (executable)
@@ -18,7 +18,7 @@
 #  - colorization of TAP results and diagnostic messages
 
 required='grep-nonprint'
-. ./defs || exit 1
+. test-init.sh
 
 # Escape '[' for grep, below.
 red="$esc\[0;31m"
index 6bf168e1a8c93e21545d87822621a01192ade3a4..63af43caf8c0a12492e92fdf002c12efa83197f3 100755 (executable)
@@ -16,7 +16,7 @@
 
 # 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
index 8e84a63bc1057cb1d077d184ca841370da9e84a4..535c58d4879b0f1991e0013a440fe419f97eea47 100755 (executable)
@@ -17,7 +17,7 @@
 # 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.
index 7c29aa9ccdba3c8d6a080b4d5e1e8abed0503159..511ed8b9e9d99b435c4f5532c67534c7ec35508d 100755 (executable)
@@ -18,7 +18,7 @@
 #  - option '--diagnostic-string' to customize the string introducing
 #    TAP diagnostics
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index fc00af9696cc2ff3e355837c001325f8706d9254..9cadc8634c79ffc673d8be64a788e1a76d33408d 100755 (executable)
@@ -18,7 +18,7 @@
 #  - diagnostic messages (TAP lines with leading "#")
 #  - flags '--comments' and '--no-comments' of the TAP test driver
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 69c56f00cd491991e328ac208342a2757d05aedd..b858ec9ab37c5cc8512020df5d900f73fec30a19 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that an example given in the documentation really works.
 # See section "Simple Tests" subsection "Script-based Testsuites".
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index c2f0fa3f41b8bddcd7bf06ea5aec469ce62538d7..78b88f668fdcbe3fc1e890c238c2e16d5622a206 100755 (executable)
@@ -19,7 +19,7 @@
 # with the Automake test harness".
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
index b1d9227bfdbb529f4bbc48c1eea13e7a1d2a76f0..909769a32cab2979ccc1b78cc734e7dc19c1f1e3 100755 (executable)
@@ -19,7 +19,7 @@
 
 required=non-root
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index ae0deef3c604718a89793a1f5006c858a75348a9..e0e596749d30abdb5dcba42e76d565365d55f475 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - empty diagnostic messages are discarder
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index e3d400c57873af46728a68556d03931d667e072a..a4c8e734ce19917c16077b51c14ac6d5761e2a10 100755 (executable)
@@ -18,7 +18,7 @@
 #  - empty TAP input
 #  - blank TAP input
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 49c63981c7080fce82413685dfa92d20ee8811a3..4e476fa3a8ca2db31a977d3852a6046a0625e57e 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - "escape" TODO and SKIP directives (by escaping the "#" character)
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 9b59c3d8bf1b081e15d51dc9c4a6fc24e5460e91..b6358142ba0df225565f91fe4f6461ffb017fb44 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - "escape" TODO and SKIP directives (by escaping the "#" character)
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index c9a9823b9f81697b35efaa6a42826f5f271cc840..3c51cc3be387fc9d653a8c8a67ea639b0c524089 100755 (executable)
@@ -19,7 +19,7 @@
 #  - the '--ignore-exit' option causes the TAP test driver to ignore
 #    exit statuses of the test scripts.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo TESTS = > Makefile.am
 for st in 1 2 77 99; do
index c59d0c1e53c96cb81608782f6d40cda85bf4e377..587b0ae1d874206530c7fd45dedfe91af3c844a2 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support: some unusual forms for valid TAP input.
 # See also related test 'tap-fancy2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 1a3ab024fae3b578dcf09cca210a57802bfdefd2..aaa4fbc337cf144c176619f93c7ac6de1b0340eb 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support: more unusual forms for valid TAP input.
 # See also related test 'tap-fancy.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 31e1ccb4f7936c9329536791ac5fb72530fa458b..2ebad94fa70dc2ff3ed44beea764d8a93277d78c 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - which log files get copied in the global log?
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 528c7bb5e4fed4a422973b43bd0d05787b8c14f8..2c272594ae3804dc19e5038e12554abdcea44262 100755 (executable)
@@ -18,7 +18,7 @@
 #  - which global test result derives from different test results
 #    mixed in a single script?
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index b9d360301e6df3a487898e44b763fca8a5a14e85..c679d4fea62a1ac2152725218cefeda5863fec15 100755 (executable)
@@ -22,7 +22,7 @@
 #  - VERBOSE environment variable support
 # Keep in sync with 'test-log.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TESTS = pass.test skip.test xfail.test fail.test xpass.test error.test
index b13d41d7fb1cfa86443364b65451cb6aa214c7d4..37167c612c8d4e8ac1eb70ca5a8404aaf6628f5f 100755 (executable)
@@ -18,7 +18,7 @@
 #  - The Automake TAP driver has an option that instruct it to read TAP
 #    input also from the stderr of the test command, not only its stdout.
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index 06a6f88801f40d25ca3351f5f10054731c25d85c..c49852a50b06dd768fe651108814213fab2300b8 100755 (executable)
@@ -19,7 +19,7 @@
 #    plan, then the driver reports both "missing plan" and "exited with
 #    non-zero status" errors.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > foo.test <<END
 #!/bin/sh
index 1556d70662d15bf63c0e90e66575e2880025cfa4..f330d150cb93405d679972cf0102342ebc444ab5 100755 (executable)
@@ -24,7 +24,7 @@
 #    correct test script(s)
 #  - "make distcheck" works
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index bb06248a7bef8b0d1084284d56ac4b0b8c30a5bc..b4d8d5086c14be0cc1cc016aa892503f4ef70cd8 100755 (executable)
@@ -20,7 +20,7 @@
 #  - interactions with 'check_*' variables
 
 required='cc native'
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index bdda865a0e31148c999a209ed9b91714d7448ea5..4fab88305cacf757d25b8457bb70c4479c4bd82a 100755 (executable)
@@ -19,7 +19,7 @@
 #    of a "plan with skip" TAP plan
 # generally true!
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 9be3816d00edd67a46cc676ae5d8faeff3b94888..dd9735918dc6ccd471ea871cbdefb0a243b8a907 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - literal string "0" as a TODO or SKIP message
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index d7751d7d240fd5e9a2138697b4a01ae973e8b769..1d5c568603d1c995498fdae173ef2ea6dc66adae 100755 (executable)
@@ -18,7 +18,7 @@
 #  - literal "0" and "0.0" in a test description and a TODO/SKIP message
 #    at the same time
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 24e569c1f6308f96b98adb1454c42f754ae3ccdf..72f37b7f29562093b965d9c0a7c2feb34ec40fcd 100755 (executable)
@@ -18,7 +18,7 @@
 #  - literal strings "0" and "0.0" as the reason of the skip in a "TAP
 #    plan with skip" (i.e., "1..0 # SKIP ...").
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index f55b0559efa944722d9b238ef26e117fc92100a4..23bcdfbdcadd261f05824ad0bd305bcbc3291762 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - the string "0" as a test description
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index fbf54be53dda821120e55dfafe25414334ebcd03..b7b2d72d848b52cd5adb0d25b82450c1305cf25a 100755 (executable)
@@ -18,7 +18,7 @@
 #  - don't spuriously recognize negative TAP result numbers, but correctly
 #    interpret them as test descriptions instead
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index dc4cad34af0b658941c27fbc6ead481a726b2e1d..2dc881e6f37de874d8f6b9e001b6b10ec24c8913 100755 (executable)
@@ -18,7 +18,7 @@
 #  - "Bail out!" magic and TAP parse errors are not disabled nor turned
 #    into simple failures by the definition DISABLE_HARD_ERRORS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 DISABLE_HARD_ERRORS = yes
index f1013156b82dc42cb1ac528f6533e729524240e8..6be67a7e2a9eb0eae7643fd64242b270a52da569 100755 (executable)
@@ -18,7 +18,7 @@
 #  - By default, TAP input is only from the stdout (and not the stderr)
 #    of the test command.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TEST_LOG_DRIVER_FLAGS = --comments
index 81104afbcac35fec71bdc3ba5d8a3fd37d7bf830..1f5e1b771014332d78c43bbd78459fc3afbd3202 100755 (executable)
@@ -18,7 +18,7 @@
 #  - we shouldn't spuriously recognize as TAP result numbers what it
 #    not, even if it seems pretty close
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 13c577c7a0eec5778b8f3bb1a792c832a3cc3fe7..1c420a092e7dfe26ec05070856cacedfc7d3ffe2 100755 (executable)
@@ -18,7 +18,7 @@
 #  - ':test-results:' directives in test scripts' output doesn't
 #    originate spurious results in the testsuite summary
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index d8bf5eefe3d4d4942b2182615ac57481f01a5d93..d40dd4102a7397d0362b65d87b0672e75441923f 100755 (executable)
@@ -18,7 +18,7 @@
 #  - don't spuriously recognize lines that are "almost" TAP lines as
 #    real TAP lines
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index bbb9a032a398f455b66906c2ccd78fedc893e3bd..4fb0511ffa972803e4cc305850c48fb6126bde5c 100755 (executable)
@@ -18,7 +18,7 @@
 #  - a "not ok # SKIP" line should count as a failure, for consistency
 #    with the prove(1) utility.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 2d15121c3f01ea95b755d8ca63000fbbf1e4d141..5cc3fa4482ab289d15de69aabdd96833c193aa37 100755 (executable)
@@ -18,7 +18,7 @@
 #  - TAP result numbers terminated by a non-whitespace "word boundary"
 #    character are recognized
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 620addfb56eca5ee497f22617a923a37ad188140..af306880f4171cb7b74e6280a6276e094037e8e3 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - how does TAP result numbers with leading zero fares?
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 61bc252419da52b967b89ae3702576799e747424..080aae910e4e16b7f15819a3a11f194e1a3daead 100755 (executable)
@@ -16,7 +16,7 @@
 
 # TAP result lines whose description is a number.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index ff0e8061423be5ad2a654cb3007cbad5195b400e..d08fd90d40160dc4d787829b9855766f877bba53 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - out-of-order test results
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 33287be9020fd9d7bacc572522b8cdb4eb0baea0..9ba399bc8419eebd6a9c99098015c6e8234d52c1 100755 (executable)
@@ -19,7 +19,7 @@
 #    log file
 # See also related test 'tap-passthrough.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TEST_LOG_COMPILER = $(SHELL)
index 981c42852dd8a76a949911d25854c084cd823f11..f3055c30466645af5cdf7b028f70585056c4e0e2 100755 (executable)
@@ -20,7 +20,7 @@
 #  - TAP errors are reported in the log file too
 # See also related test 'tap-passthrough-exit.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 weirdchars=\''"\$@!&()[]<>#;,:.^?*/'
 
index 8fc0c7e0f9de2d7215606ae7a4969d8f0b80bcdc..fc9b1a255a94c62cbf557b40dbb22e8f70e436d0 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - some corner cases for TAP plan
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index dd37aff08d722c30cd0a938902b912bccdab9289..bbe580e483b26521a91cbace0bd0e94b1fc7c2ce 100755 (executable)
@@ -23,7 +23,7 @@
 # and 'tap-skip-whole-badcount.sh'.  More checks about corner-cases
 # in TAP plans are performed in 'tap-plan-corner.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index dc1923c9f341083a6a7adc71a848f4e02d71255d..54097daa280960b36e5fc20056fcb98658c98658 100755 (executable)
@@ -19,7 +19,7 @@
 #  - TAP "SKIP" plans with multiple zeroes, as in "1..00 # SKIP"
 # This is consistent with the behaviour of the 'prove' utility.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index cf43d472876b0642271de9c0b12ac85b7904711b..1f7e4dd4e396f3ea80321cbd2853bdec289beb33 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support: a malformed TAP plan is not recognized.  The checks in
 # here should be consistent with the behaviour of the 'prove' utility.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 971869bf1bf5c4e303af43d5f9dfcae6cfec4be5..f234cb0dd47ba24af0007f96ab2cd25c89088ca1 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - test plan preceding and/or following non-result TAP lines
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 5cc198feabb8e0f5e2d6acd404f88ecf89e037b7..ea9e45cbd1629658d5d29fbf59f8de9949b6585c 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - plan line with trailing whitespace is recognized and handled correctly
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index d22287033b44cbc8b92940c0d7759ac832293a49..bc4170b5c044e7d62fd353567f8937563cccdaa8 100755 (executable)
@@ -18,7 +18,7 @@
 #  - test scripts with the test plan at the beginning
 #  - test scripts with the test plan at the end
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 33e5f7f5d511cf1c84b8968166981ea5a3396c95..71426ac63c9adebd58693cd41ca867d21f6f0512 100755 (executable)
@@ -18,7 +18,7 @@
 #  - interactions between "TAP plan with SKIP" and logging of earlier or
 #    later TAP or non-TAP text
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 0bcc7e315def0f72a4239b57b24a417d2f8c3944..cf39060b5cf13daa7267d05135a3fdefcc458be4 100755 (executable)
@@ -18,7 +18,7 @@
 #  - an exit status != 0 of a test script causes an hard error, even if
 #    the last line of output is a "SKIP plan" (e.g., "1..0 # SKIP").
 
-. ./defs || exit 1
+. test-init.sh
 
 echo TESTS = one.test two.test > Makefile.am
 
index 6558a697068e8fc8bed2db0d94ee6c22e0dfc40b..2bf683f56ecf86ac104eab574fdd04b1cc4631ca 100755 (executable)
@@ -18,7 +18,7 @@
 #  - a "Bail out!" directive causes an hard error, even if coming after
 #    a "SKIP plan" (e.g., "1..0 # SKIP").
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index ece3b2555fc368acf834115270762aa1de75bc94..01df36d07ba57e9b0e9cdf9bb2e1599dbf467c2f 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - "SKIP" keyword in a TAP plan is case-insensitive
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 678bd19494467101d949be36c31b0227dbd27a94..a5fd5f1d3a62e3fa227b71dbaf6b1ebfdae796a8 100755 (executable)
@@ -18,7 +18,7 @@
 #  - the special "plan with SKIP" can also be used "late" in the TAP
 #    stream, i.e., preceded by non-TAP output or TAP diagnostic.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index c8400446e23c61220d4f344a1afc80c0e4409b85..ecb5496a150cda20601f531807272a856bdb3e5e 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - TAP errors following a "TAP plan with SKIP" are still diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index ef9ab3c55c43eda7c22eb6533222a9e4a9a88f14..0272dd672544de37cc4a0ed37a1f879e2a337f5a 100755 (executable)
@@ -18,7 +18,7 @@
 #  - test results seen in a TAP stream that has a "plan with SKIP" are
 #    flagged as errors, even if all of them are "SKIP" results.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 5fa8ca52db3c848dcd1be0cd8a27a95b08d10a47..6ea3f057b6a17d059e6878daaaff69b0d3ef5614 100755 (executable)
@@ -19,7 +19,7 @@
 #    been seen is an error
 #  - any test result following a "plan with skip" is an error.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 5ae9d3af578b122dc4dcb4a56b57d6afa85d1255..0946b84b77fcb8a4482fe314fbfdc475dda5cd4a 100755 (executable)
@@ -18,7 +18,7 @@
 #  - normalization of whitespace in console testsuite progress associated
 #    with a SKIP directive in the TAP plan
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 76a72446c41b1ddbc2799ab52f0ba9af35a9ad92..4bb9c424234b5e1b0826b8526242d341fc1c3da8 100755 (executable)
@@ -17,7 +17,7 @@
 # Basic TAP test protocol support:
 #  - special plan format to skip all the tests in a script
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index fcac95fe5ce0bd62b50372b8fe5b7d925610ec36..f8544ee37ac68fbf8d9a9cb62dd26559d32a5519 100755 (executable)
@@ -22,7 +22,7 @@
 # children, and is pretty hacky and complex; is there a better way to
 # accomplish the checks done here?
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >expect-check <<'END'
 eval spawn $env(SHELL) -c ":"
index 1b7597e33b3205358cfc9cfafd6358009eb061c5..69c0fe2ea33164b61ad4e88795deadee46f42ee7 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 # - RECHECK_LOGS
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TEST_LOG_COMPILER = cat
index a5679645c12e798e1d4613ec6b8753e0c3dec485..55f08123a6046f5bdfcaa8532ca1cf620ffa11b2 100755 (executable)
@@ -17,7 +17,7 @@
 # Test the 'recheck' target for TAP test protocol.
 # Keep in sync with 'test-driver-custom-multitest-recheck.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index 714f328fd868ec6929ac56ae05eda96eca29fb61..b7880ab6edac86bb73fc561dd26885457c6029bd 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - non-directive comments in TAP results are kept verbatim
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 1dfc52df2a4911224670563071217725382a534d..f4006959b3a02d6acba790772ede1cf403db4028 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - a test script terminated by a signal causes an hard error
 
-. ./defs || exit 1
+. test-init.sh
 
 fetch_tap_driver
 
index f36034930cfc1abae2e73907bbe45dcdabee39e7..6939ed7bdd5e3bf5cc50e713ceee9171c25d5609 100755 (executable)
@@ -18,7 +18,7 @@
 #  - a test result numbered as 0 is to be considered out-of-order
 # This is consistent with the behaviour of the 'prove' utility.
 
-. ./defs || exit 1
+. test-init.sh
 
 if test $am_tap_implementation = perl; then
   $PERL -MTAP::Parser -e 1 \
index ee400585f56b5b23dd1674342fd4a248d85e63a7..212ad870bee839626c860435f88bbbceef7019c4 100755 (executable)
@@ -18,7 +18,7 @@
 #  - TODO and SKIP directives on the same line: the first one wins
 # See also related test 'tap-ambiguous-directive.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index b979c8be556d2fb2a087e0e0a0111795dbfdf687..7839e3767517de234e7fe449c6bc4f774cd54319 100755 (executable)
@@ -18,7 +18,7 @@
 #  - normalization of whitespace in console testsuite progress associated
 #    with TODO and SKIP directives
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index c4e47cfa391cf6c844fd001865259c0b80fabfa0..ceacdbf4b3172bcdb17f7187368d2bda3b91f835 100755 (executable)
@@ -23,7 +23,7 @@
 #  - the reasons for TODO and SKIP, if present, are nicely printed in
 #    the testsuite progress output
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 75ad7bf7a6d4240760cfeaa8c0877fc5080c63d3..49af6e0b13d717d976214d0c5e856835c26c6e20 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP support:
 #  - unplanned tests are properly reported as errors
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index c907d115bacd04b40c620539b94467bf5bd765c0..cb5b7591fee6aee0585c76760884eda3ad75cfdf 100755 (executable)
@@ -20,7 +20,7 @@
 # force us to tweak dozens of other tests (hopefully).
 # See also related test 'tap-todo-skip-whitespace.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 TEST_LOG_COMPILER = cat
index 6d69eb6f331f581680539253f87a7528c9e93437..8e34d809f012fd7b4ee67c7945d81a794318bb55 100755 (executable)
@@ -19,7 +19,7 @@
 #  - tests without explicit number get automatically numbered in the
 #    testsuite progress output on console
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index 94ae1c906117dc4685da98eba01cccb96ac44579..7458942fe123aae2659394458f061f1282a16919 100755 (executable)
@@ -17,7 +17,7 @@
 # TAP and $(XFAIL_TESTS): test results without directives are turned from
 # PASS to XPASS and from FAIL to XFAIL; other results are unchanged.
 
-. ./defs || exit 1
+. test-init.sh
 
 . tap-setup.sh
 
index c35234e9dc8c6661983f87aaa8c0642f14db232d..ce8529d9772e65d53ff66164032c5f1101d08c59 100755 (executable)
@@ -19,7 +19,7 @@
 # FIXME: currently this works only when the tar format used is 'v7'
 # FIXME: (which is the default one).
 
-. ./defs || exit 1
+. test-init.sh
 
 cwd=$(pwd) || fatal_ "getting current working directory"
 
index db3e4895d6a70de61c3f20f9a3aff9206d15224b..76256b8937991b1830ecaad567bcf785bca9bc69 100755 (executable)
--- a/t/tar.sh
+++ b/t/tar.sh
@@ -16,7 +16,7 @@
 
 # Check the tar-ustar option.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([tar], [1.0])
index 5d49cc3b7c287bda02746b44ecc50fb6c7bd544a..3ae53fcf3893cf5bd101f1e7c7ca8bfda6b40279 100755 (executable)
--- a/t/tar2.sh
+++ b/t/tar2.sh
@@ -16,7 +16,7 @@
 
 # Check the tar-pax option.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([tar2], [1.0])
index c09aa6f69cf38b47a4a56a5c75d212caf89d32a9..bc7c35305ebb5611b0b9ee8f61c57718e22bd030 100755 (executable)
--- a/t/tar3.sh
+++ b/t/tar3.sh
@@ -16,7 +16,7 @@
 
 # Check the tar options diagnostics.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([tar2], [1.0])
index 9b975d51d5f037bb861818b66366a3758357cbfe..f0058387f4c63327b708891d724f797d8d08a007 100755 (executable)
@@ -18,7 +18,7 @@
 # Assar Westerlund <assar@sics.se>
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 031cbc1516c3d7edcc62ee38de3a8b1e23991732..72cf55d6c4400fe808ca28159ce4302ba98ae0ed 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that target clashes are diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 501fcc9b7a46a912bbe6d67003c18447b5bcb568..e8d24ac1758cc7be1d71e3984c73d9c8902d44dc 100755 (executable)
@@ -17,7 +17,7 @@
 # parallel-tests:
 #  - LOG_DRIVER variables can be AC_SUBST'd
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir test-drivers
 
index 1bc4727e8805264197a66fb2ac34c474ce07755b..a96792da2adddb7d62f50238dd877d184f167d51 100755 (executable)
@@ -18,7 +18,7 @@
 #   - Automake can correctly handle conditionals contents for the
 #     LOG_DRIVER variables.
 
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_testauxdir"/trivial-test-driver . \
   || fatal_ "failed to fetch auxiliary script trivial-test-driver"
index 5441abfbc98cd5727c043d518f793188ca236d41..87db9070cf9d59e0d3a4a2dd02da0b06a84f603e 100755 (executable)
@@ -18,7 +18,7 @@
 # e.g., 'sub/foo.log'), the Automake test harness must ensure that
 # directory exists before calling any custom test driver.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 9d3f28f812c3267a6e3ddfd831099dba38d83daa..99197a5c01c28a01b7332c6f535603aa3bb120e1 100755 (executable)
@@ -22,7 +22,7 @@
 # and 'parallel-tests-recheck-override.sh'.
 # Keep in sync with 'tap-recheck.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_testauxdir"/trivial-test-driver . \
   || fatal_ "failed to fetch auxiliary script trivial-test-driver"
index 7f20b814eb282d5bee2e75c013662ef2758a9616..b87d035a171dfa9a745097291a83a815edbb0a20 100755 (executable)
@@ -21,7 +21,7 @@
 # See also related tests 'test-driver-custom-multitest-recheck.sh' and
 # 'parallel-tests-recheck-override.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_testauxdir"/trivial-test-driver . \
   || fatal_ "failed to fetch auxiliary script trivial-test-driver"
index da8a88fc9da211830c60290db8368564708dbdee..b3b7b2aa9fd1f1de099f09b8ee1494ec9029c45d 100755 (executable)
@@ -19,7 +19,7 @@
 # only checks implementation details in Automake's custom test drivers
 # support, but also serves as a "usability test" for our APIs.
 
-. ./defs || exit 1
+. test-init.sh
 
 cp "$am_testauxdir"/trivial-test-driver . \
   || fatal_ "failed to fetch auxiliary script trivial-test-driver"
index a44febd54996a0be0b83a2a0b1a840a72cbd01a2..edd6183c0a3e608f4293853f661700b98cecb61b 100755 (executable)
@@ -18,7 +18,7 @@
 # installed or referenced if it's not used, i.e., if the user has
 # defined his own '*LOG_DRIVER' variables.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index c19e69f8a89ecf24e7e7751f6546892cceb5a43d..8bfe3e6805a136d2a5475c40f2e2f18231aaba11 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Custom test drivers: "abstract" XFAIL_TESTS support.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_SUBST([nihil], [])
index f8306ff92dbd6144bee68ea8df041d3d1065f4f9..db41826107ebc8680dd728538df66e968f0009fd 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Custom test drivers: per-extension test drivers.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 10a4b1ef74c602fe8d294b6d9283dd844e872f59..963aadd32fb90441a1ce68bd65d395b9647cfc83 100755 (executable)
@@ -22,7 +22,7 @@
 # (like our dummy one in this test) might leave around a test log even
 # in case of internal failures.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index ede722794c4e5d77baa659e08c58624ed6ce5868..f13bf9bc342801735a2f50bbc845138d491d15ef 100755 (executable)
@@ -19,7 +19,7 @@
 #    defined in a subdir Makefile
 
 am_create_testdir=empty
-. ./defs || exit 1
+. test-init.sh
 
 ocwd=$(pwd) || fatal_ "getting current working directory"
 
index ab774db992da7018c1e122e59b89179e19ae054c..6aafb6ae2043460f817943ef32c5ce781ff281b9 100755 (executable)
@@ -17,7 +17,7 @@
 # Custom test drivers: check that the test name passed to the test
 # driver has any VPATH prefix stripped.
 
-. ./defs || exit 1
+. test-init.sh
 
 ocwd=$(pwd) || fatal_ "cannot get current working directory"
 
index 78acca23a8ccbfc78534dd1d6bc34077265e604b..9ce8b56fba1e710d013a134937cce0f0b1f08add 100755 (executable)
@@ -20,7 +20,7 @@
 #  - .test if $(TEST_EXTENSIONS) is not defined
 #  - stuff in $(TEST_EXTENSIONS) otherwise
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index dda019333f08bec807a59b3e23d64939092d26d2..3cc7d85ff5d2a37ef912b394c82cc175479529ca 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Expose bug in conditional definition of TEST_EXTENSIONS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_CONDITIONAL([COND], [:])
index 8f8c4131b06210c8ae73fcf06ece4646c158681e..b1c457aaa95ddcd8fcbd906c1c0d75dfff128936 100755 (executable)
@@ -18,7 +18,7 @@
 # and do not diagnose valid (albeit more unusual) ones.
 # See automake bug#9400.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 85e4bbb98f070284be7486a4e590fa3c076a94ec..ce904ce37a31e278d7a2d0e8c1b732a84613ba80 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that our concurrent test harness is not subject to spurious VPATH
 # rewrites.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 0350cce45e90a21bbfb43e321e2ea54edbf7125b..91c31c6deabb702464fb508440283a50e5364552 100755 (executable)
@@ -22,7 +22,7 @@
 #  - VERBOSE environment variable support
 # Keep in sync with 'tap-log.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index 881f67f926be8cf6651f2e716243c0e03d33ba24..f4dd06621f083679a9e4957915d157e8ac4ffec2 100755 (executable)
@@ -20,7 +20,7 @@
 # different test scripts don't end up sharing the same log file.
 # (Automake itself is such a project, BTW ;-)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index 54ecfb57b5d218c99b41e72efaf5e1403dee4382..b646cc261e699e3d7cf40a092c764dfb2230707a 100755 (executable)
@@ -20,7 +20,7 @@
 # with the use of the reStructuredText field ':copy-in-global-log:' in
 # the associated '.trs' files.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 8b6a3c8e28129f8a5d8d5ec9dc53ddd62047e3cd..d7fd8e9f878bc1e9e89cdea77c34714ec37b4979 100755 (executable)
@@ -18,7 +18,7 @@
 # "global test result" in '*.trs' files, as documented in the automake
 # manual.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 4f2d29bd09b6312e3c89a0988e622c21be55f50c..1aadc0519bfbd109da45806f0ec96a124cbacfd4 100755 (executable)
@@ -17,7 +17,7 @@
 # Test the "make recheck" semantics for custom test drivers, as documented
 # in the Automake manual.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 2410e03fadae34e35fcb1ab726b2c2c196cdb64b..5bcd0b8da8d14aae76bceb6d432f6f1363a2cfae 100755 (executable)
@@ -17,7 +17,7 @@
 # Parallel testsuite harness: check APIs for the registering of test
 # results in '*.trs' files, as documented in the automake manual.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 5db274d7d609f4af2231dfcb54df0898b99b4175..f8302487d8ca6e46182aa56de01b58f265663dc3 100755 (executable)
@@ -18,7 +18,7 @@
 #  - non-existent scripts listed in TESTS get diagnosed
 # See also related test 'test-missing2.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 2ba34798a27f188f485a1c1de84eb43fd0c40161..ca0588e9d6e25096895dd3471cc6b2f2ca715537 100755 (executable)
@@ -19,7 +19,7 @@
 #    all the $(TEST_LOGS) have a dummy dependency.
 # See also related test 'test-missing.sh'.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index f0c30b876246e87b6b43405931e265e6c0c7057e..209e0237108e9f31e218139d78e99bc6292e167c 100755 (executable)
@@ -18,7 +18,7 @@
 #  - creation and removal of '.trs' auxiliary files
 #  - check some internals regarding the use of '.trs' files.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index 95a9ddcec5d722204c22bc6cd2a27328e2df2270..68218398e12333af7e9043c4646718c29dedebc4 100755 (executable)
@@ -19,7 +19,7 @@
 # This test is complex and tricky, but that's acceptable since we are
 # testing semantics that are potentially complex and tricky.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index b8e56b577687128a6a716ff6afc3e044fad4ee33..8db3ed82ced2c7763ed7276b63875b4dbb27cae9 100755 (executable)
@@ -17,7 +17,7 @@
 # Check parallel harness features:
 #  - recovery from unreadable '.trs' files, in various scenarios
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_OUTPUT
index 9184a5ef926d6c610af9fcf227618b18ce20b490..3fd1b286bff2fa9da442b7ab8aaf7e7f27f4c471 100755 (executable)
@@ -18,7 +18,7 @@
 # by TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT in LOG_COMPILER and
 # LOG_FLAGS (for tests both with and without registered extensions).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index a82f2972f72200268e482a44f260ccefe5d49dd2..bd794564ae9314e27ae382f72842fde206255378 100755 (executable)
@@ -20,7 +20,7 @@
 # for this).  The behaviour tested here is also documented in the manual.
 
 am_serial_tests=yes
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<END
 AC_SUBST([PERL], ['$PERL'])
index 5780e570f24f570cc1c3f6cdf8f08448677e6419..1a512ba72e9e6db2e6beb0a274663a1fe1609ce3 100755 (executable)
@@ -26,7 +26,7 @@
 # and the following CC:ed thread on bug-autoconf list:
 #   <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00002.html>
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index d6f219daee9269317491136d07892b9355277e0c..519aa92bbcd58131777a3457f97dc8b4a6b360f5 100755 (executable)
@@ -17,7 +17,7 @@
 # "Simple Tests" testsuite driver: check TESTS_ENVIRONMENT support.
 
 am_serial_tests=yes
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 938c91e2ecd7406245fd7f32f46cde04efeb0004..866b92251c30554dd5ca5c73b12d691101e66eb8 100755 (executable)
@@ -19,7 +19,7 @@
 # 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
 
 for s in trivial-test-driver extract-testsuite-summary.pl; do
   cp "$am_testauxdir/$s" . || fatal_ "failed to fetch auxiliary script $s"
index 1851226ac8b3bf7eeedffcbe1adfdd0f25139bad..6b7485ba75590fb4c8f557804723fac812621bc8 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the global testsuite log file referenced in the testsuite
 # summary and in the global testsuite log itself is correct.
 
-. ./defs || exit 1
+. test-init.sh
 
 mv configure.ac configure.stub
 
index aa0797057a670aacc2a2674b9fde3ebf9d090ed9..dfea36f4fc20f89cb6e179c6c4447c924006792f 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that --program-transform works.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index cab5f1a689dc5239a080a824ccfba255263743ca..72c5359f82373209a1f82dd300f57dbcf587129f 100755 (executable)
@@ -18,7 +18,7 @@
 # collapsed.
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_CC
index fc37be1fe2dd1c48d355aceca9469acfb633f766..8eb67353e9b64d5684bb5047e71c866008d52231 100755 (executable)
@@ -18,7 +18,7 @@
 # stuff (in particular, pgklibdir, pkgdatadir and pkglibexecdir).
 
 required=cc
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac <<'END'
 AC_INIT([foo], [1.0])
index 558f8e101db4d033e745d230c648b68f83c1cdda..0325e68fcd481c5ec80e68643b3fee047c75dbab 100755 (executable)
@@ -18,7 +18,7 @@
 # build directory.  Related to automake bug#11146.
 
 required='makeinfo tex texi2dvi dvips'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_CONFIG_FILES([sub/Makefile])
index 96b5f91a68ebd7bd8c92cc4606aaab9f39233126..bb2b83df979079e85d2f1372f024ef60d9d28ac3 100755 (executable)
@@ -17,7 +17,7 @@
 # Test that automake complains properly when the files with unrecognized
 # extensions are passed to the TEXINFOS primary.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = foobar.foo bazquux.tex zardoz.c
index 31990c427b025434b1fd6e9884f774496be6db9c..8b22b27c5f7b2d123a4da4c4913b9c195526ec98 100755 (executable)
@@ -18,7 +18,7 @@
 # Jim Meyering.
 
 required=makeinfo
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
index 903d6f5b9271304968c27321563e8f3e1baeafa7..2a186e1ef95b228ba02263b6c1047a3782f6ec43 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure dvi target recurses into subdir.
 # Reported by Pavel Roskin.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 SUBDIRS = sub
index a98254c38a4fa5e518e8ca1eff0ca8fed244bb3f..374c44a273242b9dd88c3377fbca43d71c823b83 100755 (executable)
@@ -19,7 +19,7 @@
 # from Vincent Lefevre).
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index f4c1cee0a2784b46156eaac868fb8243f9f77cc4..11f7dea57070ac1646ed24f0773f1a3c07a589e6 100755 (executable)
@@ -18,7 +18,7 @@
 # not in $(builddir).
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index d21676920846af2303141d42db1872b64853e85c..f125af4849c97b716547d59d1b4c237ce4fb02da 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure Automake uses the _first_ @setfilname it sees.
 # Report from Karl Berry.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = texinfo.texi
index 71af13a5c1d4cbaa048f8b6bf88487894de18739..1fbc79ebc567f18de8b87aff8169362a812b221e 100755 (executable)
@@ -17,7 +17,7 @@
 # Test support for DJGPP's .iNN info files.
 
 required=makeinfo
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index 37c2953425a902021cf6fd313561f961d0a41f2a..c5e0e4723fc6f6ceb703653d656c69d9e3921d64 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to ensure that a ".info~" file doesn't end up in the
 # distribution.  Bug report from Greg McGary.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 3d644f5bbcb41732191cdb62085d6d6e58215be0..261725d8ed5826709925e7bd77c39bbc5a6f6bd1 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure info files survive makeinfo errors.
 
 required=makeinfo
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index b6c222f1921ff55e5c10b956fa076576e0113f99..4e9245c415d188cdf1114ec4845eb4ac84d3335e 100755 (executable)
@@ -18,7 +18,7 @@
 # install-DOC flavors.
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<\EOF
 AC_CONFIG_FILES([rec/Makefile])
index efde95387d2e0784fc5a840aaa1f1b3ee6403d07..d337d6ec115e4f1d02700286e0433806ab8e1565 100755 (executable)
@@ -19,7 +19,7 @@
 # Report from Tom Tromey.
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index c2d582a866722606256ea576fb5174ec4afd2948..6b90f189eb75161eaa7d9e450069d20d4644128c 100755 (executable)
@@ -20,7 +20,7 @@
 # (See also txinfo24.sh and txinfo25.sh).
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 6979215088d899fe9be6228dec2899ecf74f5568..5a89c6b8b7265b16f086ab126563d452bc711ed6 100755 (executable)
@@ -19,7 +19,7 @@
 # (See also txinfo23.sh and txinfo25.sh).
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index e23f53781237e0739da2c2458be78b1bf6dae32f..45ea42823ec167ef9759d10112d84a5c65b6c49f 100755 (executable)
@@ -21,7 +21,7 @@
 # (See also txinfo23.sh and txinfo24.sh).
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 5401fc9e4b395fe0f8577b151af63a339bc58aa1..268f81880dedfbe21ffd3f5fd00565917f6a11a9 100755 (executable)
@@ -18,7 +18,7 @@
 # PR/408
 
 required='makeinfo'
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index bfc075ae3875033b20ac85f664aabf0722f3c242..f1e8791badf36a7c90eeb16a50c035e3186dfb0e 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure install-info works even if no-installinfo is given.
 
 required='makeinfo'
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
index f3517b64fbffcdbc8f733b75db80a55519b6e6f5..069a51593717b03bcd173ec266d856108b2e0f65 100755 (executable)
@@ -20,7 +20,7 @@
 # Report from Ralf Corsepius.
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 # This setting, when honored by GNU ls, used to cause an infinite loop
 # in mdate-sh.
index 3e27362bfe1407547b6eab38dc571cd1290caa94..b2196789247ef8cc3d39b9c30eae511783fa5172 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that INFO_DEPS can be overridden.
 # Report from Bruce Korb.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 INFO_DEPS = foo.info
index 5d7694fe18b97ab70caaf45b79e56338ee6cc635..d6f7caf5c21a2a3982eee8e07bf08ee3a9322544 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure .info-less @setfilename works.
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index e8186e54b95f9f71e6cb3ca44f0ed36a6ac94e5e..567e28f407e267d9d60bd69adedae071e622d6c1 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure file extensions are matched correctly.
 # Report from Eric Dorland.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo info_TEXINFOS = bar.texi >Makefile.am
 cat >bar.texi <<EOF
index 9f2134a432defff04b6ea56cc278a2073292ca0a..c9d7d83da97aa253da3e5e93bc6621894fbeabd8 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure the documentation targets work as required with BSD make,
 # even in the presence of subdirs (requires presence of default *-am rules).
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 cat >>configure.ac <<'END'
index a55b5ed533f3f97265b7e0e079af18bab7a49580..47f403893a4db65dd6db55a39eccc849ab61b71e 100755 (executable)
@@ -18,7 +18,7 @@
 # Similar to txinfo25.sh.
 
 required='makeinfo tex texi2dvi dvips'
-. ./defs || exit 1
+. test-init.sh
 
 mkdir sub
 
index e6c67b95fef63169b686416195dd54592407249d..6784d034e9ba1605db61bb4f6ccca75c2d8c0844 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure non-empty, non-info suffixes are diagnosed.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
index ca3184dc6dd30adf7208f1221be9965f152ab976..549ead8b8ce11efa6d42efb06406bcbe64d1a06d 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure '.txi' extension works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = foo.txi
index 93d199c1cdfb28bc0cdaa4d67e3e9d94453fb999..8d720547bcec5740f39831311a0c2a0d43ab97ba 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure texinfo.tex correctly installed by -a.  Bug report
 # by Per Cederqvist.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
index 6b1c6face3d4f83693a994ab395a1048c4fb88e4..46b791ab70b8c95ddaf5a5c747d8e3e93555209f 100755 (executable)
@@ -18,7 +18,7 @@
 # -a when we're using AC_CONFIG_AUX_DIR.  Bug report by by Per
 # Cederqvist.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > configure.ac << END
 AC_INIT([$me], [1.0])
index 97770f4ce30ae97f4435c5965a69104d553d5ad8..63dcf755568e6bba41269d3b6a63fdd604d7ae27 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we only create texinfo-related targets once.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = maude.texi liver.txi heart.texinfo
index 510c9685aee89aa9fd4229349fccfb54dba4382b..6c0c57ce9ed96c8f1eb122406a1bf46d265948b8 100755 (executable)
@@ -20,7 +20,7 @@
 # tests for other primaries too?  E.g., SCRIPTS, PROGRAMS, LISP, PYTHON,
 # etc...
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir d
 : > d/f
index cb870b3b709e726711770dc42f3ad4764ffa20f6..e5f9acbcbb47c10d98b20c718710b88f0831a396 100755 (executable)
@@ -22,7 +22,7 @@
 # need sister tests for other primaries too?  E.g., PROGRAMS, LISP,
 # PYTHON, etc...
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
index 79c7b41b24c0382d95013bb2049609f5b1e218df..11c43c142cac22ad4b219cadb906cbec5c7d6847 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for failing check for unused macros.  From Johan Danielsson.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 MACRO_1
index 4128ea013110d71f909e2cec4e5ebaa1e1bfba1e..3800a0646629ea512d438c4adfd98610034094bf 100755 (executable)
--- a/t/upc.sh
+++ b/t/upc.sh
@@ -16,7 +16,7 @@
 
 # A simple Hello World for UPC.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AM_PROG_UPC
index be6461f2c3106c8d7e18c1063e9534e341832783..5abd0df2e396651bb43d8bd93d791d9b64a45a55 100755 (executable)
--- a/t/upc2.sh
+++ b/t/upc2.sh
@@ -17,7 +17,7 @@
 # Test that Automake suggests using AM_PROG_UPC if Unified Parallel C
 # sources are used.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo AC_PROG_CC >>configure.ac
 
index 7da65d532a36c19069ea1f5ffb5cee61ba60f16b..e0312524a82b3bddd2a068fec7f73af23e220186 100755 (executable)
--- a/t/upc3.sh
+++ b/t/upc3.sh
@@ -16,7 +16,7 @@
 
 # Test that C and Unified Parallel C link safely.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 48dbf81be33096db45928744e447fe0398731800..79a7b27c801e143600076842472204800c3c7d51 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure compiling Vala code really works with recursive make.
 
 required="pkg-config valac gcc GNUmake"
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f6a7ba9b30b4d974fc57836ff9d76dd2910e5357..c38740f99eab089fc180598924f206fc06fcab70 100755 (executable)
@@ -18,7 +18,7 @@
 # And use of vapi files to call C code from Vala.
 
 required="valac cc pkg-config libtoolize GNUmake"
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2580bd07493be74e4c807c0547c6578a941e9c07..5e2e7ce287ea6e3515ed32ed6aa40f27caf516aa 100755 (executable)
@@ -17,7 +17,7 @@
 # Vala sources and C sources in the same program.  Functional test.
 
 required='valac cc GNUmake'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index e1dbb5d480e0f5976272660e3e2151a441876572..9b2402dec4fc3e8fc577db3926a1490ad8525dfc 100755 (executable)
@@ -18,7 +18,7 @@
 # program.  Functional test.  See automake bug#10894.
 
 required='valac cc c++ GNUmake'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index d03080dcc3721f32fe291a0bdcb19dbb53987a48..c71420ad7719e59d48c750b67e5f17f2de8fead4 100755 (executable)
@@ -17,7 +17,7 @@
 # Vala support with parallel make.
 
 required='valac cc GNUmake'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 2f332da6f0952d061c02b3728c87955bc69acb66..f006832a9ddb4bb1d117a039379deb1bab22977b 100755 (executable)
@@ -17,7 +17,7 @@
 # Test and that vapi files are correctly handled by Vala support.
 
 required='valac cc GNUmake'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 9874f68b7f4ef872adfa2d171c427e348af6c34a..7428b9765b277d486d413b4160d7c41c26e1da37 100755 (executable)
@@ -18,7 +18,7 @@
 # See automake bug#8753.
 
 required="cc valac GNUmake"
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_CONFIG_SRCDIR([hello.vala])
index 9e48549f899f53ebc2dffea483bd246351eedbcc..4869a61dd59fbdf0d481fdd77cfe048989a5bbb6 100755 (executable)
--- a/t/vala.sh
+++ b/t/vala.sh
@@ -16,7 +16,7 @@
 
 # Basic "grepping" test on vala support.
 
-. ./defs || exit 1
+. test-init.sh
 
 # So that we won't require libtool macros.
 cat > acinclude.m4 <<'END'
index 1c5bdb9e1603c672220902fa1552f99e06cce275..2543c78e9b7aba9a76ed1a0b727842147dbf2cb4 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure compiling Vala code really works with recursive make.
 
 required="pkg-config valac gcc GNUmake"
-. ./defs || exit 1
+. test-init.sh
 
 mkdir src
 
index d9ecdea0e17c12f5a65b613bde78604b6fc451ad..96135d34e04ba0b2187454b17240b585cd7f71ad 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure compiling Vala code really works with non-recursive make.
 
 required="pkg-config valac gcc GNUmake"
-. ./defs || exit 1
+. test-init.sh
 
 mkdir src
 
index a727ec58a223ff8660ee0cebd795e3a71bb10335..aad5837b54f3563108b8c51c40a9e18f3cd6f4c7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test AM_PROG_VALAC.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index bc293468b217b3274104a2de43ff2590bf1b5e8a..9cd57f8d156838f4aad28f3c9c2316d3a4c31d1f 100755 (executable)
@@ -17,7 +17,7 @@
 # Test per-target flags.
 
 required="pkg-config valac gcc GNUmake"
-. ./defs || exit 1
+. test-init.sh
 
 mkdir src
 
index 6071e660f4c42b20d9d3c38c1b22ed4773386862..7a615846f48e43f05f0cb543b7bf70344ec559c5 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure recursive variable definitions die.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0acdc2a0e3d7c2a62e0c076698ed7fd8c578dda5..edf5d7b2fb6c2c4a6558a9f87bcba7703b2b4891 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure recursive variable definitions die.
 # From Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 man_MANS = chgrp.1
index cf45cb9abbbce4c7317728a94730ac73979ddea2..14c62d84c834df6fbc2a381405f9e59ec8ad2a11 100755 (executable)
--- a/t/vars.sh
+++ b/t/vars.sh
@@ -17,7 +17,7 @@
 # Test various variable definitions that include an '=' sign.
 # From Raja R Harinath.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 MY_FLAGS_1=-DABC=345
index be30006e4d70215df34ee32d678a79de9ec927c0..72af29c8f918a379544b62562ad3081fe7efaace 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that Automake warns about variables containing spaces
 # and other non-POSIX characters.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >Makefile.am <<'EOF'
 L01 = $(shell echo *)
index 1c9dc3bed038388205201af558539cf3bf91f7d4..384538a468abc236b1fdbaf19d6f8a325bdb23b7 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Targets and macros are two different name spaces.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 install = install
index 90facaadaee30bd9ff708d289d9fdc9e869ab566..94151eb29b3116260a5b07a555794bdf3bb0a154 100755 (executable)
@@ -18,7 +18,7 @@
 # Libtool variant.
 
 required=libtoolize
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_PROG_AR
index 16317fb32e7b7cbdaed04b48fccde4c5557a8715..e8da7e74ca76ab88d96a235e5cd633342b186dac 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure we warn about possible variable typos when we should.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AC_PROG_RANLIB
index 2b5294d10207f9f00cd2501d7644640337cb7918..6299c6154f922ef365bcdec339a3ee3a247bf0f8 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure version in AUTOMAKE_OPTIONS works.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = 9.9x
index f04305e1e8ce29ab9ec9d69b095a1f31c49c20b5..53285fe62be2b2bc0b00624ffcea49d181da22b5 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure we are compatible with the 1.4-p1 series.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = 1.4-p3
index 74fa088cc2e31ac3252f4e96cc8bfa6dfeae2d8f..659394e21818a69eb6126059a8349ec00fce9d92 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure the current version can be required.
 
-. ./defs || exit 1
+. test-init.sh
 
 amver=$($AUTOMAKE --version | sed -e 's/.* //;1q')
 
index 812dc017bb0290f9ca8adfe9b3704d11029ba3d3..93eed4d43ed18f8c681008777dae2e078af01e21 100755 (executable)
@@ -20,7 +20,7 @@
 # changes -- we don't support this feature on non-GNU Makes).
 
 required='makeinfo tex texi2dvi'
-. ./defs || exit 1
+. test-init.sh
 
 cat >configure.ac <<END
 m4_include([version.m4])
index 28f7548470eeb1b675f0b9b4f6341bb814128fdd..cff0f0275947421e3b4c9ff44825a82ced29ba5b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Calling AM_AUTOMAKE_VERSION by hand is a bug.
 
-. ./defs || exit 1
+. test-init.sh
 
 echo 'AM_AUTOMAKE_VERSION([1.9])' >>configure.ac
 $ACLOCAL 2>stderr && { cat stderr >&2; exit 0; }
index dcb08ffb00f23e295688fb273cebe3f886ee47cd..a67af17d8b7423b489ca5b398fed6f76cbf313e2 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure VPATH can be overridden.
 # Report from Anthony Green.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 VPATH = zardoz
index 5928ddd8370ae501a6897665b9d1b8c6f890cf02..31b763ec3d03853e378582c8ca62b5d09c0a63dd 100755 (executable)
@@ -17,7 +17,7 @@
 # Basic checks and some regressions testing on 'version.texi'
 # support for texinfo files.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
index 30f679fb74443f27eb497238d1fe95c07be95393..aee1044e1a14cf46ec37c0bbd038a71bade9a99d 100755 (executable)
@@ -19,7 +19,7 @@
 #   version.texi gets listed as a dependency for the .info file but
 #   not the .dvi file.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 info_TEXINFOS = zardoz.texi
index 9afadce0528c3c23fd1788c56c947827684bb9f6..a49579abe6323ee43e5da67cf003e96b1a3a9565 100755 (executable)
@@ -20,7 +20,7 @@
 # See also the related test 'vtexi4.sh', which does similar checks, but
 # for version.texi only, and requires makeinfo, tex and texi2dvi.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We are going to override package version in AC_INIT, so we need
 # to redefine the name of the distdir as well.
index 336ee8617356b68082dd38116829f7bce6115b32..97345ac0b6c7c6fb80b9bae955151ea9da0e4d22 100755 (executable)
@@ -22,7 +22,7 @@
 # texi2dvi.
 
 required='makeinfo tex texi2dvi grep-nonprint'
-. ./defs || exit 1
+. test-init.sh
 
 test $(LC_ALL=C date '+%u') -gt 0 && test $(LC_ALL=C date '+%u') -lt 8 \
   && day=$(LC_ALL=C date '+%d')   && test -n "$day" \
index 8824fa7b52732a2c3ee2c072b1e030830f6c7221..057ddaf05c2fbfaafe0c2b8be96ccce2421eeb72 100755 (executable)
@@ -19,7 +19,7 @@
 # levels are "catch-all warnings" (such as '-Wall' and '-Wnone').
 # Since we are at it, also throw in *.am and *.m4 file inclusions.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want complete control over automake options.
 AUTOMAKE=$am_original_AUTOMAKE
index fc439eab9ee2473df8ab0aa74765612639c16b00..7fbb1bc34cfcf543a4257a779cdb3ad6f18b6161 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that automake warnings in the 'obsolete' category are enabled
 # by default.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
index 756cac83bf36861ef221568d7d6bd03f986d48b5..94047a22a68bfbfc529423dfb911a20a500982d4 100755 (executable)
@@ -21,7 +21,7 @@
 # been in place for quite a long time); see also Automake bug #7673.
 # Update this test if the semantics are changed.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE -Werror"
index 4c15ecd7e069864a3575044cf32bb0caffc2cb1c..4a422342e4a4871eafa3b446eeaeabe96faaef64 100755 (executable)
@@ -18,7 +18,7 @@
 # warnings specified later should take precedence over those specified
 # earlier.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE -Werror"
index a2b6b403ea7ddf152d0071b1faae6e63e0c71c75..83537a20bc2576c2d7d5f780bdec062549c02127 100755 (executable)
@@ -18,7 +18,7 @@
 # in AUTOMAKE_OPTIONS take precedence over explicit warnings given in
 # AM_INIT_AUTOMAKE.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE -Werror"
index d1b2b8ca3b9f1fff89bdef0b344f1d4f4a8ac3f8..2677d082245b5e517737a84e0b90fcf27ba8f408 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check that automake complains about unknown warnings.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
index 087a70d72550822a31f8ce6e4e2242670e880379..eaeb8257dc692164ad577868ff7a641a41c61f8f 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that, on the command line, explicitly-defined warnings take
 # precedence over implicit strictness-implied warnings.
 
-. ./defs || exit 1
+. test-init.sh
 
 # We want complete control over automake options.
 AUTOMAKE=$am_original_AUTOMAKE
index 68ceb2a847324fda07c1e474d15e8444f43770c0..65165b731094f9897da9e592b095c86e66c2c07f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure that we can enable or disable warnings on a per-file basis.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<END
 AC_CONFIG_FILES([sub/Makefile])
index 01d76fc036bcf5e7fe2cbfafdb16fa628ee6f00f..57f6d648bd463478e42a28e9ff0d26d50177f689 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure -Werror and --add-missing work together.
 
-. ./defs || exit 1
+. test-init.sh
 
 : > Makefile.am
 
index 52ec1811ae4cf0ff34647b9ffa0e2e202d38f69f..b1feeff217ec1650e5bc3c63a7e8012c2fd6a5af 100755 (executable)
@@ -19,7 +19,7 @@
 # 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
 
index a22ff84703eb743d249787beee152f776abad28d..91e4dbc90ce52968122c04eb2e561a5a712d1eba 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure a per-Makefile.am -Werror setting is not carried over
 # to another Makefile.am.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<\END
 AC_CONFIG_FILES([sub/Makefile])
index 1b930d5e925472136f34bd823f29855da8e33bc1..7908d1deb33f68bec2b6b8dfd58a1482a944ec91 100755 (executable)
@@ -16,7 +16,7 @@
 
 # -Werror and local -Werror settings should be flagged for the user.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >>configure.ac <<\END
 AC_CONFIG_FILES([sub/Makefile])
index 4a4c2e97da763bd4c6299ab706e15d8036b93e08..6d0b13c4a2231b8fb0951e911f69b9242ef08170 100755 (executable)
@@ -18,7 +18,7 @@
 # from Johan Danielsson (and a very nice bug report, too, I might
 # add).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 WHO_AM_I=17
index cca400a75d72bace1da11ace49e250751770c5da..8e2814b49ebe68d568ef63b2fedf9525767d5dc0 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure multiple source files with the same object
 # file causes error.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat > Makefile.am << 'END'
 bin_PROGRAMS = zardoz
index eb7357d9d8a3d0f8d566060c682652cd6090e86a..03175c9bb0fe1532a42cc78edcf7ffd78610e7f1 100755 (executable)
@@ -17,7 +17,7 @@
 # Test to make sure ylwrap is put in right location.
 # Report from Tim Van Holder.
 
-. ./defs || exit 1
+. test-init.sh
 
 mkdir aux1 sub
 
index b1883385b1353011051c4bfa1f3dbff2a33f869e..0d37382a35d398ac084bef7ec06a08658144d0c3 100755 (executable)
@@ -18,7 +18,7 @@
 # Keep in sync with sister test 'yacc-cxx.sh'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index a02a25a8c0dcda350e5926813dc4f3f6bc68c942..e64ec459b4360e2fcd7b84e9959a821bcb3bbc1b 100755 (executable)
@@ -18,7 +18,7 @@
 # For Automake bug#7648 and PR automake/491.
 
 required='c++ bison'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index f4fdf327dc0c69e905b001e5c5cd4fdff93c2fd8..d7623b3760a259cc1181dd56f71e974fcc8c7bc4 100755 (executable)
@@ -18,7 +18,7 @@
 # For Automake bug#7648 and PR automake/491.
 
 required='cc bison'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f30ce1b2ae561559721fa93707c095798964b4a0..7bc009df4c2418763ad44d68a1796e133851b749 100755 (executable)
@@ -21,7 +21,7 @@
 # See also sister test 'yacc-clean.sh'.
 
 required='c++ yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index dce70a279d426fe5286807f4bd5bf49684232f7d..1f6664c9dd03d84a67dd4fd1e579f58c061cc9d5 100755 (executable)
@@ -20,7 +20,7 @@
 # See also sister test 'yacc-cxx-clean.sh'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 3c1babbfdc56eecd32982c4436d182cbe87c4f4e..5d0eafc067dbe20a81804af7c696bdb14f016d71 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep in sync with sister test 'yacc-basic.sh'.
 
 required='c++ yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index 97155a2d57626236b95047acd516da0881ebae58..1d2fc0756e2d95136867f534569fcdac23d3c769 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep in sync with sister test 'yacc-d-cxx.sh'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 5bd284e7d5820dc194f76171961503165f65fb79..a7b4aaa14677232371b22f8441f6a8b5e3c57233 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep in sync with sister test 'yacc-d-basic.sh'.
 
 required='c++ yacc'
-. ./defs || exit 1
+. test-init.sh
 
 write_parse ()
 {
index 05019fb9ef2761d4e34932da13bb567058dcd3f1..483330e273dedf7fbfd40beec649b1232c0854f3 100755 (executable)
@@ -23,7 +23,7 @@
 # Please keep this in sync with sister test 'yaccvpath.sh'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 952560d86bb6a64181b94131d4f9ee090b5c28d9..7dd9ded76c8f8db29c2c69720d9fca7278cd82c3 100755 (executable)
@@ -17,7 +17,7 @@
 # Tests that we can recover from deleted headers generated by 'yacc -d'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index f7254a2e49261493665c60f162cb1276848fcf36..3730abb7e0a0c8c643192b8e77320501cd2ced3b 100755 (executable)
@@ -18,7 +18,7 @@
 # Report from Paolo Bonzini.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 70f3f14cc81a5cadb8aefe3adfc9b5271c66f4ce..f20604deeb5412295d362aa4931b93341f806415 100755 (executable)
@@ -19,7 +19,7 @@
 # with NetBSD make).
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 0160c10982f289426c313b2cf6425fa81ae6f64d..f6064e7d41d0cccf8785b537bea8607dea11d7bb 100755 (executable)
@@ -19,7 +19,7 @@
 # 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.
index 40b8332453b47d4c01c068daad51f32fe46a9332..f23591e77d91729023dc44ee7546f2c82ee84367 100755 (executable)
@@ -19,7 +19,7 @@
 # See automake bug#7884.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 19036c4c7686cac5bd19225c1257756336e4baf1..546f4ad54e26ae73d2fd49b6d143a7f53554907c 100755 (executable)
@@ -23,7 +23,7 @@
 #    if (AM_)?YFLAGS do not contain '-d'.
 #    Requested by Jim Meyering.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 4382ded62e636d089754c2b4087ce82b8cea1ba7..f8dc920652b41f32ebc230725b2e1b34b747b4d8 100755 (executable)
@@ -17,7 +17,7 @@
 # Test of yacc functionality, derived from GNU binutils
 # by Tim Van Holder.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 5d7be75e5f42e62671ef20dfcfafbc155bae72cf..49458bcd760e94c506b676c677aee5573d99f5a1 100755 (executable)
@@ -21,7 +21,7 @@
 # PR/47.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 525a455b24ebc4361ba15eb6fab58ab06fbb8a89..1b2b4848e7401198fcc2f7f9e437b264e17810cd 100755 (executable)
@@ -20,7 +20,7 @@
 # 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])
index fbc49d66221604f440bc4273f7f3ebebe6832ca2..0ba3e4502ddfadf9d6b12bc94a895a1c14afc9ec 100755 (executable)
@@ -18,7 +18,7 @@
 # in the same directory.
 
 required='cc c++ yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 2e9c7e86b55d156e03344b0e5519894240904f90..78191d9b1b7247a1e617d833187fda36df64844e 100755 (executable)
@@ -21,7 +21,7 @@
 # for lex-generated .c files.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index babd2c9d757d5c1fe06c265271772893854b3c28..d45a30323e66b7b729661c22e5bcaf1cdd9f8b8e 100755 (executable)
@@ -21,7 +21,7 @@
 # for lex-generated C files.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'EOF'
 AM_MAINTAINER_MODE
index 3f12c54373598634ca294723439030c71dafd214..465f8287f87331a3f24893d82d7cdf074ed65af1 100755 (executable)
@@ -18,7 +18,7 @@
 
 required='cc yacc'
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index ab43af3e5c4f29e3c0fc82455e9c5ceaca71d1d4..028d9fa44b4c15aec8766a8545a429bc6e326adc 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that yacc sources with many dots in their name are handled
 # correctly.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index a0e121fb2805435058e7a57605742b08e9175056..a4802d5fbe657fb3cda7d101202c028f8aee7a09 100755 (executable)
@@ -17,7 +17,7 @@
 # Some simple tests of ylwrap functionality.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 8e5af56e6489b4d41d16289e43ea821b90a0fba1..bbfda87baf5391d082ebd07612c3dae5a5dd672c 100755 (executable)
@@ -17,7 +17,7 @@
 # Removal recovery rules for headers should not remove files with 'make -n'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index 30ad7bcad4f136c1fe5193002ca44e7dc3416c85..1bcf37955b7b23ffb0541733b74ddd95cea2b5cc 100755 (executable)
@@ -19,7 +19,7 @@
 # which does much more in-depth checks (but requires an actual
 # Yacc program and a working C++ compiler).
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
index e56ca8e4d29ee337a9864547ef4c6b6b981241bb..c881f0726da11adbae8495bc488cffa8cec0c456 100755 (executable)
@@ -23,7 +23,7 @@
 # Please keep this in sync with sister test 'yacc-d-vpath.sh'.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
index e53358acd217bf7e56b31c1a7356db4066840b09..367a0c6915673e7263f8bd449a2d60d1c6e9b677 100755 (executable)
@@ -18,7 +18,7 @@
 # at configure time and/or at make time.
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 unset YFLAGS || :
 
index 6765613959596d588885165e677a96f4ce53009e..d7fc7e0513002aad4160d5d0b5bf2856e4f63408 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that automake complains about *_YFLAGS variables which have
 # conditional content.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 5b120dde44c862b3f5c9dd8422ffe201bb4955f7..0cae14fb4b335f74699ecf1b34764d3ea8c5482f 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check for false positives in automake recognition of '-d' in YFLAGS.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index a8404b784e85f16767fd2798a78303d1eaa87bbc..96455bbfa96b4447581a98ca595edb4651d7a570 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that the user can force automake to use *_YFLAGS variables
 # which have conditional content.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_SUBST([CC], [false])
index 8682637eded1dd19e7dca093f456ef114469f75b..d7ed7a12ac5aabb3b13d0794111923ca3ffcd651 100755 (executable)
@@ -19,7 +19,7 @@
 # variable is user-reserved).
 
 required='cc yacc'
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 789cc2c70a9d8a91c0dd9e776bd4ae1218f6c5cc..23aea14858693b38bcdc601950be89330fd903ed 100755 (executable)
@@ -19,7 +19,7 @@
 #  foo_flags = -d
 #  AM_YFLAGS = $(foo_flags)
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_PROG_CC
index 6a6bea7ffc7db10b21d47945749a9360ea0763f5..bb453edd62dcd4108b8d828aa5ec04c4acf9cc87 100755 (executable)
@@ -19,7 +19,7 @@
 # Please keep this in sync with the sister tests yflags2.sh, lflags.sh
 # and lflags2.sh.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >fake-yacc <<'END'
 #!/bin/sh
index d9b913c65c8c70b3194f4db96bcf3e676f4a842c..b2a8114e80deaaf2a0a1e81f2e9df16e99f5c553 100755 (executable)
@@ -19,7 +19,7 @@
 # Please keep this in sync with the sister tests yflags.sh, lflags.sh
 # and lflags2.sh.
 
-. ./defs || exit 1
+. test-init.sh
 
 cat >fake-yacc <<'END'
 #!/bin/sh