From 5ddf10071d94acf2ae0e69e187641f22cce0199a Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 27 Oct 2012 16:41:39 +0200 Subject: [PATCH] tests: prefer including 'test-init.sh' rather than './defs' 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 --- contrib/t/help-multilib.sh | 2 +- contrib/t/multilib.sh | 2 +- contrib/t/parallel-tests-html-recursive.sh | 2 +- contrib/t/parallel-tests-html.sh | 2 +- gen-testsuite-part | 2 +- t/acloca10.sh | 2 +- t/acloca11.sh | 2 +- t/acloca12.sh | 2 +- t/acloca13.sh | 2 +- t/acloca14.sh | 2 +- t/acloca14b.sh | 2 +- t/acloca15.sh | 2 +- t/acloca16.sh | 2 +- t/acloca17.sh | 2 +- t/acloca18.sh | 2 +- t/acloca19.sh | 2 +- t/acloca20.sh | 2 +- t/acloca21.sh | 2 +- t/acloca22.sh | 2 +- t/acloca22b.sh | 2 +- t/acloca23.sh | 2 +- t/aclocal-acdir.sh | 2 +- t/aclocal-amflags.sh | 2 +- t/aclocal-autoconf-version-check.sh | 2 +- t/aclocal-install-absdir.sh | 2 +- t/aclocal-install-fail.sh | 2 +- t/aclocal-install-mkdir.sh | 2 +- t/aclocal-macrodir.tap | 2 +- t/aclocal-no-install-no-mkdir.sh | 2 +- t/aclocal-path-install-serial.sh | 2 +- t/aclocal-path-install.sh | 2 +- t/aclocal-path-nonexistent.sh | 2 +- t/aclocal-path-precedence.sh | 2 +- t/aclocal-path.sh | 2 +- t/aclocal-print-acdir.sh | 2 +- t/aclocal-verbose-install.sh | 2 +- t/aclocal.sh | 2 +- t/aclocal3.sh | 2 +- t/aclocal4.sh | 2 +- t/aclocal5.sh | 2 +- t/aclocal6.sh | 2 +- t/aclocal7.sh | 2 +- t/aclocal8.sh | 2 +- t/aclocal9.sh | 2 +- t/acsilent.sh | 2 +- t/acsubst.sh | 2 +- t/acsubst2.sh | 2 +- t/add-missing.tap | 2 +- t/all.sh | 2 +- t/all2.sh | 2 +- t/alloca.sh | 2 +- t/alloca2.sh | 2 +- t/alpha.sh | 2 +- t/alpha2.sh | 2 +- t/am-default-source-ext.sh | 2 +- t/am-macro-not-found.sh | 2 +- t/am-missing-prog.sh | 2 +- t/am-tests-environment.sh | 2 +- t/amassign.sh | 2 +- t/amhello-binpkg.sh | 2 +- t/amhello-cflags.sh | 2 +- t/amhello-cross-compile.sh | 2 +- t/aminit-moreargs-deprecation.sh | 2 +- t/amopt.sh | 2 +- t/amopts-location.sh | 2 +- t/amopts-variable-expansion.sh | 2 +- t/amsubst.sh | 2 +- t/ansi2knr-no-more.sh | 2 +- t/ar-lib.sh | 2 +- t/ar-lib2.sh | 2 +- t/ar-lib3.sh | 2 +- t/ar-lib4.sh | 2 +- t/ar-lib5a.sh | 2 +- t/ar-lib5b.sh | 2 +- t/ar-lib6a.sh | 2 +- t/ar-lib6b.sh | 2 +- t/ar-lib7.sh | 2 +- t/ar.sh | 2 +- t/ar2.sh | 2 +- t/ar3.sh | 2 +- t/ar4.sh | 2 +- t/ar5.sh | 2 +- t/asm.sh | 2 +- t/asm2.sh | 2 +- t/asm3.sh | 2 +- t/autodist-acconfig-no-subdir.sh | 2 +- t/autodist-acconfig.sh | 2 +- t/autodist-aclocal-m4.sh | 2 +- t/autodist-config-headers.sh | 2 +- t/autodist-configure-no-subdir.sh | 2 +- t/autodist-no-duplicate.sh | 2 +- t/autodist-stamp-vti.sh | 2 +- t/autodist-subdir.sh | 2 +- t/autodist.sh | 2 +- t/autohdr-subdir-pr12495.sh | 2 +- t/autohdr.sh | 2 +- t/autohdr3.sh | 2 +- t/autohdr4.sh | 2 +- t/autohdrdry.sh | 2 +- t/automake-cmdline.tap | 2 +- t/auxdir-autodetect.sh | 2 +- t/auxdir-computed.tap | 2 +- t/auxdir-misplaced.sh | 2 +- t/auxdir-nonexistent.sh | 2 +- t/auxdir-unportable.tap | 2 +- t/auxdir.sh | 2 +- t/auxdir6.sh | 2 +- t/auxdir7.sh | 2 +- t/auxdir8.sh | 2 +- t/ax/tap-summary-aux.sh | 2 +- t/ax/testsuite-summary-checks.sh | 2 +- t/backcompat-acout.sh | 2 +- t/backcompat.sh | 2 +- t/backcompat2.sh | 2 +- t/backcompat3.sh | 2 +- t/backcompat6.sh | 2 +- t/backsl.sh | 2 +- t/backsl2.sh | 2 +- t/backsl3.sh | 2 +- t/backsl4.sh | 2 +- t/badline.sh | 2 +- t/badopt.sh | 2 +- t/badprog.sh | 2 +- t/block.sh | 2 +- t/built-sources-check.sh | 2 +- t/built-sources-cond.sh | 2 +- t/built-sources-fork-bomb.sh | 2 +- t/built-sources-install.sh | 2 +- t/built-sources-subdir.sh | 2 +- t/built-sources.sh | 2 +- t/candist.sh | 2 +- t/canon-name.sh | 2 +- t/canon.sh | 2 +- t/canon2.sh | 2 +- t/canon3.sh | 2 +- t/canon4.sh | 2 +- t/canon5.sh | 2 +- t/canon6.sh | 2 +- t/canon7.sh | 2 +- t/canon8.sh | 2 +- t/ccnoco.sh | 2 +- t/ccnoco2.sh | 2 +- t/ccnoco3.sh | 2 +- t/check-concurrency-bug9245.sh | 2 +- t/check-exported-srcdir.sh | 2 +- t/check-fd-redirect.sh | 2 +- t/check-no-test-driver.sh | 2 +- t/check-subst-prog.sh | 2 +- t/check-subst.sh | 2 +- t/check-tests-in-builddir.sh | 2 +- t/check.sh | 2 +- t/check10.sh | 2 +- t/check11.sh | 2 +- t/check12.sh | 2 +- t/check2.sh | 2 +- t/check4.sh | 2 +- t/check5.sh | 2 +- t/check6.sh | 2 +- t/check7.sh | 2 +- t/check8.sh | 2 +- t/checkall.sh | 2 +- t/clean.sh | 2 +- t/colneq.sh | 2 +- t/colneq2.sh | 2 +- t/colneq3.sh | 2 +- t/colon.sh | 2 +- t/colon2.sh | 2 +- t/colon3.sh | 2 +- t/colon4.sh | 2 +- t/colon5.sh | 2 +- t/colon6.sh | 2 +- t/colon7.sh | 2 +- t/color-tests-opt.sh | 2 +- t/color-tests.sh | 2 +- t/color-tests2.sh | 2 +- t/commen10.sh | 2 +- t/commen11.sh | 2 +- t/comment.sh | 2 +- t/comment2.sh | 2 +- t/comment3.sh | 2 +- t/comment4.sh | 2 +- t/comment5.sh | 2 +- t/comment6.sh | 2 +- t/comment7.sh | 2 +- t/comment8.sh | 2 +- t/comment9.sh | 2 +- t/comments-in-var-def.sh | 2 +- t/compile.sh | 2 +- t/compile2.sh | 2 +- t/compile3.sh | 2 +- t/compile4.sh | 2 +- t/compile5.sh | 2 +- t/compile6.sh | 2 +- t/compile_f90_c_cxx.sh | 2 +- t/compile_f_c_cxx.sh | 2 +- t/cond-basic.sh | 2 +- t/cond.sh | 2 +- t/cond10.sh | 2 +- t/cond11.sh | 2 +- t/cond13.sh | 2 +- t/cond14.sh | 2 +- t/cond15.sh | 2 +- t/cond16.sh | 2 +- t/cond17.sh | 2 +- t/cond18.sh | 2 +- t/cond19.sh | 2 +- t/cond20.sh | 2 +- t/cond21.sh | 2 +- t/cond22.sh | 2 +- t/cond23.sh | 2 +- t/cond24.sh | 2 +- t/cond25.sh | 2 +- t/cond26.sh | 2 +- t/cond27.sh | 2 +- t/cond28.sh | 2 +- t/cond3.sh | 2 +- t/cond30.sh | 2 +- t/cond31.sh | 2 +- t/cond32.sh | 2 +- t/cond33.sh | 2 +- t/cond34.sh | 2 +- t/cond35.sh | 2 +- t/cond36.sh | 2 +- t/cond37.sh | 2 +- t/cond38.sh | 2 +- t/cond39.sh | 2 +- t/cond4.sh | 2 +- t/cond40.sh | 2 +- t/cond41.sh | 2 +- t/cond42.sh | 2 +- t/cond43.sh | 2 +- t/cond44.sh | 2 +- t/cond45.sh | 2 +- t/cond46.sh | 2 +- t/cond5.sh | 2 +- t/cond6.sh | 2 +- t/cond7.sh | 2 +- t/cond8.sh | 2 +- t/cond9.sh | 2 +- t/condd.sh | 2 +- t/condhook.sh | 2 +- t/condhook2.sh | 2 +- t/condinc.sh | 2 +- t/condinc2.sh | 2 +- t/condlib.sh | 2 +- t/condman2.sh | 2 +- t/condman3.sh | 2 +- t/confdeps.sh | 2 +- t/conff.sh | 2 +- t/conff2.sh | 2 +- t/conffile-leading-dot.sh | 2 +- t/confh-subdir-clean.sh | 2 +- t/confh.sh | 2 +- t/confh4.sh | 2 +- t/confh5.sh | 2 +- t/confh6.sh | 2 +- t/confh7.sh | 2 +- t/confh8.sh | 2 +- t/configure.sh | 2 +- t/confincl.sh | 2 +- t/conflnk.sh | 2 +- t/conflnk2.sh | 2 +- t/conflnk3.sh | 2 +- t/conflnk4.sh | 2 +- t/confsub.sh | 2 +- t/confvar.sh | 2 +- t/confvar2.sh | 2 +- t/copy.sh | 2 +- t/cscope.tap | 2 +- t/cscope2.sh | 2 +- t/cscope3.sh | 2 +- t/cxx-demo.sh | 2 +- t/cxx-lt-demo.sh | 2 +- t/cxx.sh | 2 +- t/cxx2.sh | 2 +- t/cxxcpp.sh | 2 +- t/cxxlibobj.sh | 2 +- t/cxxlink.sh | 2 +- t/cxxnoc.sh | 2 +- t/cygnus-no-more.sh | 2 +- t/cygwin32.sh | 2 +- t/dash.sh | 2 +- t/defun.sh | 2 +- t/defun2.sh | 2 +- t/dejagnu-absolute-builddir.sh | 2 +- t/dejagnu-relative-srcdir.sh | 2 +- t/dejagnu-siteexp-append.sh | 2 +- t/dejagnu-siteexp-extend.sh | 2 +- t/dejagnu-siteexp-useredit.sh | 2 +- t/dejagnu.sh | 2 +- t/dejagnu2.sh | 2 +- t/dejagnu3.sh | 2 +- t/dejagnu4.sh | 2 +- t/dejagnu5.sh | 2 +- t/dejagnu6.sh | 2 +- t/dejagnu7.sh | 2 +- t/deleted-am.sh | 2 +- t/deleted-m4.sh | 2 +- t/depacl2.sh | 2 +- t/depcomp-implicit-auxdir.sh | 2 +- t/depcomp.sh | 2 +- t/depcomp2.sh | 2 +- t/depcomp8a.sh | 2 +- t/depcomp8b.sh | 2 +- t/depdist.sh | 2 +- t/depend.sh | 2 +- t/depend3.sh | 2 +- t/depend4.sh | 2 +- t/depend5.sh | 2 +- t/depend6.sh | 2 +- t/deprecated-acinit.sh | 2 +- t/destdir.sh | 2 +- t/dir-named-obj-is-bad.sh | 2 +- t/dirlist-abspath.sh | 2 +- t/dirlist.sh | 2 +- t/dirlist2.sh | 2 +- t/discover.sh | 2 +- t/dist-auxdir-many-subdirs.sh | 2 +- t/dist-auxfile-2.sh | 2 +- t/dist-auxfile.sh | 2 +- t/dist-formats.tap | 2 +- t/dist-included-parent-dir.sh | 2 +- t/dist-missing-am.sh | 2 +- t/dist-missing-included-m4.sh | 2 +- t/dist-missing-m4.sh | 2 +- t/dist-pr109765.sh | 2 +- t/dist-readonly.sh | 2 +- t/dist-repeated.sh | 2 +- t/distcheck-configure-flags-am.sh | 2 +- t/distcheck-configure-flags-subpkg.sh | 2 +- t/distcheck-configure-flags.sh | 2 +- t/distcheck-hook.sh | 2 +- t/distcheck-hook2.sh | 2 +- t/distcheck-missing-m4.sh | 2 +- t/distcheck-outdated-m4.sh | 2 +- t/distcheck-override-infodir.sh | 2 +- t/distcheck-pr10470.sh | 2 +- t/distcheck-pr9579.sh | 2 +- t/distcheck-writable-srcdir.sh | 2 +- t/distcleancheck.sh | 2 +- t/distcom-subdir.sh | 2 +- t/distcom2.sh | 2 +- t/distcom3.sh | 2 +- t/distcom4.sh | 2 +- t/distcom5.sh | 2 +- t/distdir.sh | 2 +- t/disthook.sh | 2 +- t/distlinks.sh | 2 +- t/distlinksbrk.sh | 2 +- t/distname.sh | 2 +- t/dmalloc.sh | 2 +- t/doc-parsing-buglets-colneq-subst.sh | 2 +- t/doc-parsing-buglets-tabs.sh | 2 +- t/dollar.sh | 2 +- t/dollarvar.sh | 2 +- t/dollarvar2.sh | 2 +- t/double.sh | 2 +- t/dup2.sh | 2 +- t/else.sh | 2 +- t/empty-data-primary.sh | 2 +- t/empty-sources-primary.tap | 2 +- t/exdir.sh | 2 +- t/exdir2.sh | 2 +- t/exdir3.sh | 2 +- t/exeext.sh | 2 +- t/exeext2.sh | 2 +- t/exeext3.sh | 2 +- t/exeext4.sh | 2 +- t/exsource.sh | 2 +- t/ext.sh | 2 +- t/ext2.sh | 2 +- t/ext3.sh | 2 +- t/extra-portability.sh | 2 +- t/extra-portability2.sh | 2 +- t/extra-portability3.sh | 2 +- t/extra-programs-empty.sh | 2 +- t/extra.sh | 2 +- t/extra10.sh | 2 +- t/extra11.sh | 2 +- t/extra12.sh | 2 +- t/extra2.sh | 2 +- t/extra3.sh | 2 +- t/extra4.sh | 2 +- t/extra5.sh | 2 +- t/extra6.sh | 2 +- t/extra7.sh | 2 +- t/extra8.sh | 2 +- t/extra9.sh | 2 +- t/extradep.sh | 2 +- t/extradep2.sh | 2 +- t/f90only.sh | 2 +- t/flavor.sh | 2 +- t/flibs.sh | 2 +- t/fn99.sh | 2 +- t/fn99subdir.sh | 2 +- t/fnoc.sh | 2 +- t/fonly.sh | 2 +- t/forcemiss.sh | 2 +- t/forcemiss2.sh | 2 +- t/fort1.sh | 2 +- t/fort2.sh | 2 +- t/fort4.sh | 2 +- t/fort5.sh | 2 +- t/fortdep.sh | 2 +- t/gcj.sh | 2 +- t/gcj2.sh | 2 +- t/gcj3.sh | 2 +- t/gcj4.sh | 2 +- t/gcj5.sh | 2 +- t/gcj6.sh | 2 +- t/get-sysconf.sh | 2 +- t/gettext-macros.sh | 2 +- t/gettext.sh | 2 +- t/gettext2.sh | 2 +- t/gettext3.sh | 2 +- t/gnits.sh | 2 +- t/gnits2.sh | 2 +- t/gnits3.sh | 2 +- t/gnumake.sh | 2 +- t/gnuwarn.sh | 2 +- t/gnuwarn2.sh | 2 +- t/hdr-vars-defined-once.sh | 2 +- t/header.sh | 2 +- t/help-depend.sh | 2 +- t/help-depend2.sh | 2 +- t/help-dmalloc.sh | 2 +- t/help-init.sh | 2 +- t/help-lispdir.sh | 2 +- t/help-python.sh | 2 +- t/help-silent.sh | 2 +- t/help-upc.sh | 2 +- t/help.sh | 2 +- t/help2.sh | 2 +- t/help3.sh | 2 +- t/help4.sh | 2 +- t/hfs.sh | 2 +- t/implicit.sh | 2 +- t/init.sh | 2 +- t/init2.sh | 2 +- t/insh2.sh | 2 +- t/install-info-dir.sh | 2 +- t/install2.sh | 2 +- t/installdir.sh | 2 +- t/instdat.sh | 2 +- t/instdat2.sh | 2 +- t/instdir-cond.sh | 2 +- t/instdir-cond2.sh | 2 +- t/instdir-java.sh | 2 +- t/instdir-lisp.sh | 2 +- t/instdir-ltlib.sh | 2 +- t/instdir-no-empty.sh | 2 +- t/instdir-prog.sh | 2 +- t/instdir-python.sh | 2 +- t/instdir-texi.sh | 2 +- t/instdir.sh | 2 +- t/instdir2.sh | 2 +- t/instexec.sh | 2 +- t/instfail-info.sh | 2 +- t/instfail-java.sh | 2 +- t/instfail-libtool.sh | 2 +- t/instfail.sh | 2 +- t/insthook.sh | 2 +- t/instman.sh | 2 +- t/instman2.sh | 2 +- t/instmany-mans.sh | 2 +- t/instmany-python.sh | 2 +- t/instmany.sh | 2 +- t/instsh.sh | 2 +- t/instsh2.sh | 2 +- t/instsh3.sh | 2 +- t/instspc.tap | 2 +- t/interp.sh | 2 +- t/interp2.sh | 2 +- t/java-check.sh | 2 +- t/java-clean.sh | 2 +- t/java-compile-install.sh | 2 +- t/java-compile-run-flat.sh | 2 +- t/java-compile-run-nested.sh | 2 +- t/java-empty-classpath.sh | 2 +- t/java-extra.sh | 2 +- t/java-mix.sh | 2 +- t/java-no-duplicate.sh | 2 +- t/java-nobase.sh | 2 +- t/java-noinst.sh | 2 +- t/java-rebuild.sh | 2 +- t/java-sources.sh | 2 +- t/java-uninstall.sh | 2 +- t/java.sh | 2 +- t/java2.sh | 2 +- t/java3.sh | 2 +- t/javadir-undefined.sh | 2 +- t/javaflags.sh | 2 +- t/javaprim.sh | 2 +- t/javasubst.sh | 2 +- t/ldadd.sh | 2 +- t/ldflags.sh | 2 +- t/lex-clean-cxx.sh | 2 +- t/lex-clean.sh | 2 +- t/lex-depend-cxx.sh | 2 +- t/lex-depend-grep.sh | 2 +- t/lex-depend.sh | 2 +- t/lex-header.sh | 2 +- t/lex-lib-external.sh | 2 +- t/lex-lib.sh | 2 +- t/lex-libobj.sh | 2 +- t/lex-line.sh | 2 +- t/lex-nodist.sh | 2 +- t/lex-noyywrap.sh | 2 +- t/lex-pr204.sh | 2 +- t/lex-subobj-nodep.sh | 2 +- t/lex.sh | 2 +- t/lex2.sh | 2 +- t/lex3.sh | 2 +- t/lex5.sh | 2 +- t/lexcpp.sh | 2 +- t/lexvpath.sh | 2 +- t/lflags.sh | 2 +- t/lflags2.sh | 2 +- t/libexec.sh | 2 +- t/libobj-basic.sh | 2 +- t/libobj10.sh | 2 +- t/libobj12.sh | 2 +- t/libobj13.sh | 2 +- t/libobj14.sh | 2 +- t/libobj15a.sh | 2 +- t/libobj15b.sh | 2 +- t/libobj15c.sh | 2 +- t/libobj16a.sh | 2 +- t/libobj16b.sh | 2 +- t/libobj17.sh | 2 +- t/libobj18.sh | 2 +- t/libobj19.sh | 2 +- t/libobj2.sh | 2 +- t/libobj20a.sh | 2 +- t/libobj20b.sh | 2 +- t/libobj20c.sh | 2 +- t/libobj3.sh | 2 +- t/libobj4.sh | 2 +- t/libobj5.sh | 2 +- t/libobj7.sh | 2 +- t/library.sh | 2 +- t/library2.sh | 2 +- t/library3.sh | 2 +- t/libtoo10.sh | 2 +- t/libtoo11.sh | 2 +- t/libtool-macros.sh | 2 +- t/libtool.sh | 2 +- t/libtool2.sh | 2 +- t/libtool3.sh | 2 +- t/libtool4.sh | 2 +- t/libtool5.sh | 2 +- t/libtool6.sh | 2 +- t/libtool7.sh | 2 +- t/libtool8.sh | 2 +- t/libtool9.sh | 2 +- t/license.sh | 2 +- t/license2.sh | 2 +- t/link_c_cxx.sh | 2 +- t/link_cond.sh | 2 +- t/link_dist.sh | 2 +- t/link_f90_only.sh | 2 +- t/link_f_only.sh | 2 +- t/link_fc.sh | 2 +- t/link_fccxx.sh | 2 +- t/link_fcxx.sh | 2 +- t/link_override.sh | 2 +- t/lisp-flags.sh | 2 +- t/lisp-loadpath.sh | 2 +- t/lisp-pr11806.sh | 2 +- t/lisp-subdir-mix.sh | 2 +- t/lisp-subdir.sh | 2 +- t/lisp-subdir2.sh | 2 +- t/lisp2.sh | 2 +- t/lisp3.sh | 2 +- t/lisp4.sh | 2 +- t/lisp5.sh | 2 +- t/lisp6.sh | 2 +- t/lisp7.sh | 2 +- t/lisp8.sh | 2 +- t/lispdry.sh | 2 +- t/listval.sh | 2 +- t/location.sh | 2 +- t/longlin2.sh | 2 +- t/longline.sh | 2 +- t/ltcond.sh | 2 +- t/ltcond2.sh | 2 +- t/ltconv.sh | 2 +- t/ltdeps.sh | 2 +- t/ltinit.sh | 2 +- t/ltinstloc.sh | 2 +- t/ltlibobjs.sh | 2 +- t/ltlibsrc.sh | 2 +- t/ltorder.sh | 2 +- t/lzma.sh | 2 +- t/m4-inclusion.sh | 2 +- t/maintclean-vpath.sh | 2 +- t/maintclean.sh | 2 +- t/maintmode-configure-msg.sh | 2 +- t/make-dryrun.tap | 2 +- t/make.sh | 2 +- t/makefile-deps.sh | 2 +- t/makej.sh | 2 +- t/makej2.sh | 2 +- t/maken.sh | 2 +- t/maken3.sh | 2 +- t/makevars.sh | 2 +- t/man.sh | 2 +- t/man2.sh | 2 +- t/man3.sh | 2 +- t/man5.sh | 2 +- t/man6.sh | 2 +- t/man7.sh | 2 +- t/man8.sh | 2 +- t/mdate.sh | 2 +- t/mdate2.sh | 2 +- t/mdate3.sh | 2 +- t/mdate4.sh | 2 +- t/mdate5.sh | 2 +- t/mdate6.sh | 2 +- t/missing-auxfile-stops-makefiles-creation.sh | 2 +- t/missing-version-mismatch.sh | 2 +- t/missing3.sh | 2 +- t/mkdir_p.sh | 2 +- t/mkdirp-deprecation.sh | 2 +- t/mkinst2.sh | 2 +- t/mkinst3.sh | 2 +- t/mkinstall.sh | 2 +- t/mmode.sh | 2 +- t/mmodely.sh | 2 +- t/no-extra-makefile-code.sh | 2 +- t/no-spurious-install-recursive.sh | 2 +- t/nobase-libtool.sh | 2 +- t/nobase-nodist.sh | 2 +- t/nobase-python.sh | 2 +- t/nobase.sh | 2 +- t/nodef.sh | 2 +- t/nodef2.sh | 2 +- t/nodep.sh | 2 +- t/nodep2.sh | 2 +- t/nodepcomp.sh | 2 +- t/nodist.sh | 2 +- t/nodist2.sh | 2 +- t/nodist3.sh | 2 +- t/noinst.sh | 2 +- t/noinstdir.sh | 2 +- t/nolink.sh | 2 +- t/nostdinc.sh | 2 +- t/notrans.sh | 2 +- t/number.sh | 2 +- t/objc-basic.sh | 2 +- t/objc-deps.sh | 2 +- t/objc-flags.sh | 2 +- t/objc-megademo.sh | 2 +- t/objc-minidemo.sh | 2 +- t/objcxx-basic.sh | 2 +- t/objcxx-deps.sh | 2 +- t/objcxx-flags.sh | 2 +- t/objcxx-minidemo.sh | 2 +- t/objext-pr10128.sh | 2 +- t/oldvars.sh | 2 +- t/order.sh | 2 +- t/output-order.sh | 2 +- t/output.sh | 2 +- t/output10.sh | 2 +- t/output11.sh | 2 +- t/output12.sh | 2 +- t/output13.sh | 2 +- t/output2.sh | 2 +- t/output3.sh | 2 +- t/output4.sh | 2 +- t/output5.sh | 2 +- t/output6.sh | 2 +- t/output7.sh | 2 +- t/output8.sh | 2 +- t/output9.sh | 2 +- t/override-conditional-1.sh | 2 +- t/override-conditional-2.sh | 2 +- t/override-html.sh | 2 +- t/override-suggest-local.sh | 2 +- t/parallel-am.sh | 2 +- t/parallel-am2.sh | 2 +- t/parallel-am3.sh | 2 +- t/parallel-tests-basics.sh | 2 +- t/parallel-tests-cmdline-override.sh | 2 +- t/parallel-tests-concurrency-2.sh | 2 +- t/parallel-tests-concurrency.sh | 2 +- t/parallel-tests-console-output.sh | 2 +- t/parallel-tests-driver-install.sh | 2 +- t/parallel-tests-dry-run-1.sh | 2 +- t/parallel-tests-dry-run-2.sh | 2 +- t/parallel-tests-empty-testlogs.sh | 2 +- t/parallel-tests-empty.sh | 2 +- t/parallel-tests-exeext.sh | 2 +- t/parallel-tests-exit-statuses.sh | 2 +- t/parallel-tests-extra-programs.sh | 2 +- t/parallel-tests-fd-redirect-exeext.sh | 2 +- t/parallel-tests-fd-redirect.sh | 2 +- t/parallel-tests-fork-bomb.sh | 2 +- t/parallel-tests-generated-and-distributed.sh | 2 +- t/parallel-tests-harderror.sh | 2 +- t/parallel-tests-interrupt.tap | 2 +- t/parallel-tests-log-compiler-1.sh | 2 +- t/parallel-tests-log-compiler-2.sh | 2 +- t/parallel-tests-log-compiler-example.sh | 2 +- t/parallel-tests-log-override-1.sh | 2 +- t/parallel-tests-log-override-2.sh | 2 +- t/parallel-tests-log-override-recheck.sh | 2 +- t/parallel-tests-no-color-in-log.sh | 2 +- t/parallel-tests-no-spurious-summary.sh | 2 +- t/parallel-tests-once.sh | 2 +- t/parallel-tests-recheck-depends-on-all.sh | 2 +- t/parallel-tests-recheck-pr11791.sh | 2 +- t/parallel-tests-recheck.sh | 2 +- t/parallel-tests-reset-term.sh | 2 +- t/parallel-tests-subdir.sh | 2 +- t/parallel-tests-suffix-prog.sh | 2 +- t/parallel-tests-suffix.sh | 2 +- t/parallel-tests-trailing-bslash.sh | 2 +- t/parallel-tests-trailing-whitespace.sh | 2 +- t/parallel-tests-unreadable.sh | 2 +- t/parse.sh | 2 +- t/per-target-flags.sh | 2 +- t/percent.sh | 2 +- t/percent2.sh | 2 +- t/perf/cond.sh | 2 +- t/perf/testsuite-recheck.sh | 2 +- t/perf/testsuite-summary.sh | 2 +- t/phony.sh | 2 +- t/pluseq.sh | 2 +- t/pluseq10.sh | 2 +- t/pluseq11.sh | 2 +- t/pluseq2.sh | 2 +- t/pluseq3.sh | 2 +- t/pluseq4.sh | 2 +- t/pluseq5.sh | 2 +- t/pluseq6.sh | 2 +- t/pluseq7.sh | 2 +- t/pluseq8.sh | 2 +- t/pluseq9.sh | 2 +- t/posixsubst-data.sh | 2 +- t/posixsubst-extradist.sh | 2 +- t/posixsubst-ldadd.sh | 2 +- t/posixsubst-libraries.sh | 2 +- t/posixsubst-ltlibraries.sh | 2 +- t/posixsubst-programs.sh | 2 +- t/posixsubst-scripts.sh | 2 +- t/posixsubst-sources.sh | 2 +- t/posixsubst-tests.sh | 2 +- t/postproc.sh | 2 +- t/ppf77.sh | 2 +- t/pr2.sh | 2 +- t/pr211.sh | 2 +- t/pr220.sh | 2 +- t/pr224.sh | 2 +- t/pr229.sh | 2 +- t/pr243.sh | 2 +- t/pr266.sh | 2 +- t/pr279-2.sh | 2 +- t/pr279.sh | 2 +- t/pr287.sh | 2 +- t/pr300-lib.sh | 2 +- t/pr300-ltlib.sh | 2 +- t/pr300-prog.sh | 2 +- t/pr307.sh | 2 +- t/pr401.sh | 2 +- t/pr401b.sh | 2 +- t/pr401c.sh | 2 +- t/pr72.sh | 2 +- t/pr87.sh | 2 +- t/pr9.sh | 2 +- t/prefix.sh | 2 +- t/primary-prefix-couples-documented-valid.sh | 2 +- t/primary-prefix-couples-force-valid.sh | 2 +- t/primary-prefix-invalid-couples.tap | 2 +- t/primary-prefix-valid-couples.sh | 2 +- t/primary.sh | 2 +- t/primary2.sh | 2 +- t/primary3.sh | 2 +- t/print-libdir.sh | 2 +- t/proginst.sh | 2 +- t/programs-primary-rewritten.sh | 2 +- t/py-compile-basedir.sh | 2 +- t/py-compile-basic.sh | 2 +- t/py-compile-basic2.sh | 2 +- t/py-compile-destdir.sh | 2 +- t/py-compile-env.sh | 2 +- t/py-compile-option-terminate.sh | 2 +- t/py-compile-usage.sh | 2 +- t/python-am-path-iftrue.sh | 2 +- t/python-dist.sh | 2 +- t/python-missing.sh | 2 +- t/python-pr10995.sh | 2 +- t/python-too-old.sh | 2 +- t/python-vars.sh | 2 +- t/python-virtualenv.sh | 2 +- t/python.sh | 2 +- t/python10.sh | 2 +- t/python11.sh | 2 +- t/python12.sh | 2 +- t/python2.sh | 2 +- t/python3.sh | 2 +- t/recurs-user-deeply-nested.sh | 2 +- t/recurs-user-indir.sh | 2 +- t/recurs-user-keep-going.sh | 2 +- t/recurs-user-many.sh | 2 +- t/recurs-user-no-subdirs.sh | 2 +- t/recurs-user-no-top-level.sh | 2 +- t/recurs-user-override.sh | 2 +- t/recurs-user-phony.sh | 2 +- t/recurs-user-wrap.sh | 2 +- t/recurs-user.sh | 2 +- t/recurs-user2.sh | 2 +- t/relativize.tap | 2 +- t/remake-aclocal-version-mismatch.sh | 2 +- t/remake-after-acinclude-m4.sh | 2 +- t/remake-after-aclocal-m4.sh | 2 +- t/remake-after-configure-ac.sh | 2 +- t/remake-after-makefile-am.sh | 2 +- t/remake-all-1.sh | 2 +- t/remake-all-2.sh | 2 +- t/remake-am-pr10111.sh | 2 +- t/remake-deeply-nested.sh | 2 +- t/remake-deleted-am-2.sh | 2 +- t/remake-deleted-am-subdir.sh | 2 +- t/remake-deleted-am.sh | 2 +- t/remake-deleted-m4-file.sh | 2 +- t/remake-fail.sh | 2 +- t/remake-gnulib-add-acsubst.sh | 2 +- t/remake-gnulib-add-header.sh | 2 +- t/remake-gnulib-remove-header.sh | 2 +- t/remake-include-aclocal.sh | 2 +- t/remake-include-configure.sh | 2 +- t/remake-include-makefile.sh | 2 +- t/remake-m4-pr10111.sh | 2 +- t/remake-macrodir.sh | 2 +- t/remake-maintainer-mode.sh | 2 +- t/remake-makefile-intree.sh | 2 +- t/remake-makefile-vpath.sh | 2 +- t/remake-mild-stress.sh | 2 +- t/remake-moved-m4-file.sh | 2 +- t/remake-not-after-make-dist.sh | 2 +- t/remake-recurs-user.sh | 2 +- t/remake-renamed-am.sh | 2 +- t/remake-renamed-m4-file.sh | 2 +- t/remake-renamed-m4-macro-and-file.sh | 2 +- t/remake-renamed-m4-macro.sh | 2 +- t/remake-subdir-from-subdir.sh | 2 +- t/remake-subdir-gnu.sh | 2 +- t/remake-subdir-grepping.sh | 2 +- t/remake-subdir-long-time.sh | 2 +- t/remake-subdir-no-makefile.sh | 2 +- t/remake-subdir-only.sh | 2 +- t/remake-subdir.sh | 2 +- t/remake-subdir2.sh | 2 +- t/remake-subdir3.sh | 2 +- t/remake-timing-bug-pr8365.sh | 2 +- t/repeated-options.sh | 2 +- t/req.sh | 2 +- t/reqd.sh | 2 +- t/reqd2.sh | 2 +- t/rulepat.sh | 2 +- t/sanity.sh | 2 +- t/seenc.sh | 2 +- t/self-check-configure-help.sh | 2 +- t/self-check-dir.tap | 4 ++-- t/self-check-exit.tap | 4 ++-- t/self-check-explicit-skips.sh | 4 ++-- t/self-check-is-blocked-signal.tap | 2 +- t/self-check-is_newest.tap | 2 +- t/self-check-me.tap | 6 +++--- t/self-check-report.sh | 2 +- t/self-check-seq.tap | 2 +- t/self-check-unindent.tap | 2 +- t/serial-tests.sh | 2 +- t/silent-configsite.sh | 2 +- t/silent-lex.sh | 2 +- t/silent-many-gcc.sh | 2 +- t/silent-many-generic.sh | 2 +- t/silent-nested-vars.sh | 2 +- t/silent-yacc-headers.sh | 2 +- t/silent-yacc.sh | 2 +- t/silent.sh | 2 +- t/silent2.sh | 2 +- t/silent3.sh | 2 +- t/silent4.sh | 2 +- t/silent6.sh | 2 +- t/silent7.sh | 2 +- t/silent8.sh | 2 +- t/silent9.sh | 2 +- t/silentcxx-gcc.sh | 2 +- t/silentcxx.sh | 2 +- t/silentf77.sh | 2 +- t/silentf90.sh | 2 +- t/sourcefile-in-subdir.sh | 2 +- t/space.sh | 2 +- t/specflg-dummy.sh | 2 +- t/specflg6.sh | 2 +- t/specflg7.sh | 2 +- t/specflg8.sh | 2 +- t/specflg9.sh | 2 +- t/spell.sh | 2 +- t/spell2.sh | 2 +- t/spell3.sh | 2 +- t/spelling.sh | 2 +- t/spy-rm.tap | 2 +- t/spy.sh | 2 +- t/src-acsubst.sh | 2 +- t/stamph2.sh | 2 +- t/stdinc.sh | 2 +- t/stdlib.sh | 2 +- t/stdlib2.sh | 2 +- t/strictness-override.sh | 2 +- t/strictness-precedence.sh | 2 +- t/strip.sh | 2 +- t/strip2.sh | 2 +- t/strip3.sh | 2 +- t/subdir-ac-subst.sh | 2 +- t/subdir-add-pr46.sh | 2 +- t/subdir-add2-pr46.sh | 2 +- t/subdir-am-cond.sh | 2 +- t/subdir-cond-err.sh | 2 +- t/subdir-cond-gettext.sh | 2 +- t/subdir-distclean.sh | 2 +- t/subdir-env-interference.sh | 2 +- t/subdir-order.sh | 2 +- t/subdir-subsub.sh | 2 +- t/subdir-with-slash.sh | 2 +- t/subdir.sh | 2 +- t/subobj-clean-lt-pr10697.sh | 2 +- t/subobj-clean-pr10697.sh | 2 +- t/subobj.sh | 2 +- t/subobj10.sh | 2 +- t/subobj11a.sh | 2 +- t/subobj11b.sh | 2 +- t/subobj11c.sh | 2 +- t/subobj2.sh | 2 +- t/subobj4.sh | 2 +- t/subobj5.sh | 2 +- t/subobj6.sh | 2 +- t/subobj7.sh | 2 +- t/subobj8.sh | 2 +- t/subobj9.sh | 2 +- t/subobjname.sh | 2 +- t/subpkg-yacc.sh | 2 +- t/subpkg.sh | 2 +- t/subpkg2.sh | 2 +- t/subpkg3.sh | 2 +- t/subpkg4.sh | 2 +- t/subst-no-trailing-empty-line.sh | 2 +- t/subst.sh | 2 +- t/subst3.sh | 2 +- t/subst4.sh | 2 +- t/subst5.sh | 2 +- t/substre2.sh | 2 +- t/substref.sh | 2 +- t/substtarg.sh | 2 +- t/suffix-chain.tap | 2 +- t/suffix-custom-subobj-and-specflg.sh | 2 +- t/suffix-custom-subobj.sh | 2 +- t/suffix.sh | 2 +- t/suffix10.tap | 2 +- t/suffix11.tap | 2 +- t/suffix2.sh | 2 +- t/suffix3.tap | 2 +- t/suffix4.sh | 2 +- t/suffix5.sh | 2 +- t/suffix6.sh | 2 +- t/suffix6b.sh | 2 +- t/suffix6c.sh | 2 +- t/suffix7.sh | 2 +- t/suffix8.tap | 2 +- t/suffix9.sh | 2 +- t/symlink.sh | 2 +- t/symlink2.sh | 2 +- t/syntax.sh | 2 +- t/tags-pr12372.sh | 2 +- t/tags.sh | 2 +- t/tags2.sh | 2 +- t/tagsub.sh | 2 +- t/tap-ambiguous-directive.sh | 2 +- t/tap-autonumber.sh | 2 +- t/tap-bad-prog.tap | 2 +- t/tap-bailout-and-logging.sh | 2 +- t/tap-bailout-leading-space.sh | 2 +- t/tap-bailout-suppress-badexit.sh | 2 +- t/tap-bailout-suppress-later-diagnostic.sh | 2 +- t/tap-bailout-suppress-later-errors.sh | 2 +- t/tap-bailout.sh | 2 +- t/tap-basic.sh | 2 +- t/tap-color.sh | 2 +- t/tap-common-setup.sh | 2 +- t/tap-deps.sh | 2 +- t/tap-diagnostic-custom.sh | 2 +- t/tap-diagnostic.sh | 2 +- t/tap-doc.sh | 2 +- t/tap-doc2.sh | 2 +- t/tap-driver-stderr.sh | 2 +- t/tap-empty-diagnostic.sh | 2 +- t/tap-empty.sh | 2 +- t/tap-escape-directive-2.sh | 2 +- t/tap-escape-directive.sh | 2 +- t/tap-exit.sh | 2 +- t/tap-fancy.sh | 2 +- t/tap-fancy2.sh | 2 +- t/tap-global-log.sh | 2 +- t/tap-global-result.sh | 2 +- t/tap-log.sh | 2 +- t/tap-merge-stdout-stderr.sh | 2 +- t/tap-missing-plan-and-bad-exit.sh | 2 +- t/tap-more.sh | 2 +- t/tap-more2.sh | 2 +- t/tap-msg0-bailout.sh | 2 +- t/tap-msg0-directive.sh | 2 +- t/tap-msg0-misc.sh | 2 +- t/tap-msg0-planskip.sh | 2 +- t/tap-msg0-result.sh | 2 +- t/tap-negative-numbers.sh | 2 +- t/tap-no-disable-hard-error.sh | 2 +- t/tap-no-merge-stdout-stderr.sh | 2 +- t/tap-no-spurious-numbers.sh | 2 +- t/tap-no-spurious-summary.sh | 2 +- t/tap-no-spurious.sh | 2 +- t/tap-not-ok-skip.sh | 2 +- t/tap-number-wordboundary.sh | 2 +- t/tap-numbers-leading-zero.sh | 2 +- t/tap-numeric-description.sh | 2 +- t/tap-out-of-order.sh | 2 +- t/tap-passthrough-exit.sh | 2 +- t/tap-passthrough.sh | 2 +- t/tap-plan-corner.sh | 2 +- t/tap-plan-errors.sh | 2 +- t/tap-plan-leading-zero.sh | 2 +- t/tap-plan-malformed.sh | 2 +- t/tap-plan-middle.sh | 2 +- t/tap-plan-whitespace.sh | 2 +- t/tap-plan.sh | 2 +- t/tap-planskip-and-logging.sh | 2 +- t/tap-planskip-badexit.sh | 2 +- t/tap-planskip-bailout.sh | 2 +- t/tap-planskip-case-insensitive.sh | 2 +- t/tap-planskip-late.sh | 2 +- t/tap-planskip-later-errors.sh | 2 +- t/tap-planskip-unplanned-corner.sh | 2 +- t/tap-planskip-unplanned.sh | 2 +- t/tap-planskip-whitespace.sh | 2 +- t/tap-planskip.sh | 2 +- t/tap-realtime.sh | 2 +- t/tap-recheck-logs.sh | 2 +- t/tap-recheck.sh | 2 +- t/tap-result-comment.sh | 2 +- t/tap-signal.tap | 2 +- t/tap-test-number-0.sh | 2 +- t/tap-todo-skip-together.sh | 2 +- t/tap-todo-skip-whitespace.sh | 2 +- t/tap-todo-skip.sh | 2 +- t/tap-unplanned.sh | 2 +- t/tap-whitespace-normalization.sh | 2 +- t/tap-with-and-without-number.sh | 2 +- t/tap-xfail-tests.sh | 2 +- t/tar-override.sh | 2 +- t/tar.sh | 2 +- t/tar2.sh | 2 +- t/tar3.sh | 2 +- t/target-cflags.sh | 2 +- t/targetclash.sh | 2 +- t/test-driver-acsubst.sh | 2 +- t/test-driver-cond.sh | 2 +- t/test-driver-create-log-dir.sh | 2 +- t/test-driver-custom-multitest-recheck.sh | 2 +- t/test-driver-custom-multitest-recheck2.sh | 2 +- t/test-driver-custom-multitest.sh | 2 +- t/test-driver-custom-no-extra-driver.sh | 2 +- t/test-driver-custom-xfail-tests.sh | 2 +- t/test-driver-custom.sh | 2 +- t/test-driver-fail.sh | 2 +- t/test-driver-is-distributed.sh | 2 +- t/test-driver-strip-vpath.sh | 2 +- t/test-driver-trs-suffix-registered.sh | 2 +- t/test-extensions-cond.sh | 2 +- t/test-extensions.sh | 2 +- t/test-harness-vpath-rewrite.sh | 2 +- t/test-log.sh | 2 +- t/test-logs-repeated.sh | 2 +- t/test-metadata-global-log.sh | 2 +- t/test-metadata-global-result.sh | 2 +- t/test-metadata-recheck.sh | 2 +- t/test-metadata-results.sh | 2 +- t/test-missing.sh | 2 +- t/test-missing2.sh | 2 +- t/test-trs-basic.sh | 2 +- t/test-trs-recover.sh | 2 +- t/test-trs-recover2.sh | 2 +- t/tests-environment-and-log-compiler.sh | 2 +- t/tests-environment-backcompat.sh | 2 +- t/tests-environment-fd-redirect.sh | 2 +- t/tests-environment.sh | 2 +- t/testsuite-summary-count-many.sh | 2 +- t/testsuite-summary-reference-log.sh | 2 +- t/transform.sh | 2 +- t/transform2.sh | 2 +- t/transform3.sh | 2 +- t/txinfo-no-clutter.sh | 2 +- t/txinfo-unrecognized-extension.sh | 2 +- t/txinfo.sh | 2 +- t/txinfo10.sh | 2 +- t/txinfo13.sh | 2 +- t/txinfo16.sh | 2 +- t/txinfo17.sh | 2 +- t/txinfo19.sh | 2 +- t/txinfo2.sh | 2 +- t/txinfo20.sh | 2 +- t/txinfo21.sh | 2 +- t/txinfo22.sh | 2 +- t/txinfo23.sh | 2 +- t/txinfo24.sh | 2 +- t/txinfo25.sh | 2 +- t/txinfo26.sh | 2 +- t/txinfo27.sh | 2 +- t/txinfo28.sh | 2 +- t/txinfo29.sh | 2 +- t/txinfo3.sh | 2 +- t/txinfo31.sh | 2 +- t/txinfo32.sh | 2 +- t/txinfo33.sh | 2 +- t/txinfo4.sh | 2 +- t/txinfo6.sh | 2 +- t/txinfo7.sh | 2 +- t/txinfo8.sh | 2 +- t/txinfo9.sh | 2 +- t/uninstall-fail.sh | 2 +- t/uninstall-pr9578.sh | 2 +- t/unused.sh | 2 +- t/upc.sh | 2 +- t/upc2.sh | 2 +- t/upc3.sh | 2 +- t/vala-headers.sh | 2 +- t/vala-libs.sh | 2 +- t/vala-mix.sh | 2 +- t/vala-mix2.sh | 2 +- t/vala-parallel.sh | 2 +- t/vala-vapi.sh | 2 +- t/vala-vpath.sh | 2 +- t/vala.sh | 2 +- t/vala2.sh | 2 +- t/vala3.sh | 2 +- t/vala4.sh | 2 +- t/vala5.sh | 2 +- t/var-recurs.sh | 2 +- t/var-recurs2.sh | 2 +- t/vars.sh | 2 +- t/vars3.sh | 2 +- t/vartar.sh | 2 +- t/vartypo2.sh | 2 +- t/vartypos.sh | 2 +- t/version3.sh | 2 +- t/version4.sh | 2 +- t/version6.sh | 2 +- t/version7.sh | 2 +- t/version8.sh | 2 +- t/vpath.sh | 2 +- t/vtexi.sh | 2 +- t/vtexi2.sh | 2 +- t/vtexi3.sh | 2 +- t/vtexi4.sh | 2 +- t/warning-groups-win-over-strictness.sh | 2 +- t/warnings-obsolete-default.sh | 2 +- t/warnings-override.sh | 2 +- t/warnings-precedence.sh | 2 +- t/warnings-strictness-interactions.sh | 2 +- t/warnings-unknown.sh | 2 +- t/warnings-win-over-strictness.sh | 2 +- t/warnopts.sh | 2 +- t/werror.sh | 2 +- t/werror2.sh | 2 +- t/werror3.sh | 2 +- t/werror4.sh | 2 +- t/whoami.sh | 2 +- t/xsource.sh | 2 +- t/yacc-auxdir.sh | 2 +- t/yacc-basic.sh | 2 +- t/yacc-bison-skeleton-cxx.sh | 2 +- t/yacc-bison-skeleton.sh | 2 +- t/yacc-clean-cxx.sh | 2 +- t/yacc-clean.sh | 2 +- t/yacc-cxx.sh | 2 +- t/yacc-d-basic.sh | 2 +- t/yacc-d-cxx.sh | 2 +- t/yacc-d-vpath.sh | 2 +- t/yacc-deleted-headers.sh | 2 +- t/yacc-depend.sh | 2 +- t/yacc-depend2.sh | 2 +- t/yacc-dist-nobuild-subdir.sh | 2 +- t/yacc-dist-nobuild.sh | 2 +- t/yacc-grepping.sh | 2 +- t/yacc-grepping2.sh | 2 +- t/yacc-headers-and-dist-pr47.sh | 2 +- t/yacc-line.sh | 2 +- t/yacc-mix-c-cxx.sh | 2 +- t/yacc-nodist.sh | 2 +- t/yacc-pr204.sh | 2 +- t/yacc-subdir.sh | 2 +- t/yacc-weirdnames.sh | 2 +- t/yacc4.sh | 2 +- t/yaccdry.sh | 2 +- t/yaccpp.sh | 2 +- t/yaccvpath.sh | 2 +- t/yflags-cmdline-override.sh | 2 +- t/yflags-conditional.sh | 2 +- t/yflags-d-false-positives.sh | 2 +- t/yflags-force-conditional.sh | 2 +- t/yflags-force-override.sh | 2 +- t/yflags-var-expand.sh | 2 +- t/yflags.sh | 2 +- t/yflags2.sh | 2 +- 1214 files changed, 1219 insertions(+), 1219 deletions(-) diff --git a/contrib/t/help-multilib.sh b/contrib/t/help-multilib.sh index 3e89bbe..7973d92 100755 --- a/contrib/t/help-multilib.sh +++ b/contrib/t/help-multilib.sh @@ -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 < configure.ac << 'END' AC_INIT diff --git a/t/acloca11.sh b/t/acloca11.sh index 3db8508..f24d4ed 100755 --- a/t/acloca11.sh +++ b/t/acloca11.sh @@ -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 diff --git a/t/acloca12.sh b/t/acloca12.sh index 01acb02..d0d4016 100755 --- a/t/acloca12.sh +++ b/t/acloca12.sh @@ -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 <> configure.ac << 'END' m4_include([somefile.m4]) diff --git a/t/acloca14.sh b/t/acloca14.sh index cc65214..c84023d 100755 --- a/t/acloca14.sh +++ b/t/acloca14.sh @@ -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]) diff --git a/t/acloca14b.sh b/t/acloca14b.sh index eb9105d..31a0540 100755 --- a/t/acloca14b.sh +++ b/t/acloca14b.sh @@ -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 diff --git a/t/acloca15.sh b/t/acloca15.sh index 38c6e3e..4ce34ab 100755 --- a/t/acloca15.sh +++ b/t/acloca15.sh @@ -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. diff --git a/t/acloca16.sh b/t/acloca16.sh index a702f27..8387439 100755 --- a/t/acloca16.sh +++ b/t/acloca16.sh @@ -18,7 +18,7 @@ # evaluated. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh cat > configure.ac << 'END' AC_SUBST([POM]) diff --git a/t/acloca17.sh b/t/acloca17.sh index a15cd57..ed8fc32 100755 --- a/t/acloca17.sh +++ b/t/acloca17.sh @@ -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 diff --git a/t/acloca18.sh b/t/acloca18.sh index 8bdbd56..2e1cbb5 100755 --- a/t/acloca18.sh +++ b/t/acloca18.sh @@ -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 diff --git a/t/acloca19.sh b/t/acloca19.sh index c6d2352..502bc69 100755 --- a/t/acloca19.sh +++ b/t/acloca19.sh @@ -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]) diff --git a/t/acloca20.sh b/t/acloca20.sh index b5881d6..c381dd7 100755 --- a/t/acloca20.sh +++ b/t/acloca20.sh @@ -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 diff --git a/t/acloca21.sh b/t/acloca21.sh index 2aca3f9..812f99b 100755 --- a/t/acloca21.sh +++ b/t/acloca21.sh @@ -20,7 +20,7 @@ # an Autoconf macro. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <>configure.ac <>configure.ac < configure.ac << 'END' AC_INIT diff --git a/t/aclocal-acdir.sh b/t/aclocal-acdir.sh index ac5de4c..59182bb 100755 --- a/t/aclocal-acdir.sh +++ b/t/aclocal-acdir.sh @@ -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 diff --git a/t/aclocal-amflags.sh b/t/aclocal-amflags.sh index 47bf135..49bcf5f 100755 --- a/t/aclocal-amflags.sh +++ b/t/aclocal-amflags.sh @@ -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]) diff --git a/t/aclocal-autoconf-version-check.sh b/t/aclocal-autoconf-version-check.sh index 8e02ae9..f5d8101 100755 --- a/t/aclocal-autoconf-version-check.sh +++ b/t/aclocal-autoconf-version-check.sh @@ -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 < configure.ac < configure.ac < configure.ac < configure.ac << 'END' AC_INIT diff --git a/t/aclocal-path-install.sh b/t/aclocal-path-install.sh index ccad30b..eb10f99 100755 --- a/t/aclocal-path-install.sh +++ b/t/aclocal-path-install.sh @@ -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 diff --git a/t/aclocal-path-nonexistent.sh b/t/aclocal-path-nonexistent.sh index ad8d5b7..df1bae1 100755 --- a/t/aclocal-path-nonexistent.sh +++ b/t/aclocal-path-nonexistent.sh @@ -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 diff --git a/t/aclocal-path-precedence.sh b/t/aclocal-path-precedence.sh index 220533e..0545231 100755 --- a/t/aclocal-path-precedence.sh +++ b/t/aclocal-path-precedence.sh @@ -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]) diff --git a/t/aclocal-path.sh b/t/aclocal-path.sh index c22a7c4..a4ee3ee 100755 --- a/t/aclocal-path.sh +++ b/t/aclocal-path.sh @@ -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 diff --git a/t/aclocal-print-acdir.sh b/t/aclocal-print-acdir.sh index c5a8eb5..440bb72 100755 --- a/t/aclocal-print-acdir.sh +++ b/t/aclocal-print-acdir.sh @@ -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" diff --git a/t/aclocal-verbose-install.sh b/t/aclocal-verbose-install.sh index 27fa0c5..b598bb8 100755 --- a/t/aclocal-verbose-install.sh +++ b/t/aclocal-verbose-install.sh @@ -17,7 +17,7 @@ # Check verbose messages by 'aclocal --install'. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh cat > configure.ac < configure.ac diff --git a/t/aclocal3.sh b/t/aclocal3.sh index 03aa42d..ce93251 100755 --- a/t/aclocal3.sh +++ b/t/aclocal3.sh @@ -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 <>configure.ac <> configure.ac << 'END' AC_CONFIG_MACRO_DIR([m4]) diff --git a/t/aclocal6.sh b/t/aclocal6.sh index 80c918a..97b7482 100755 --- a/t/aclocal6.sh +++ b/t/aclocal6.sh @@ -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 diff --git a/t/aclocal7.sh b/t/aclocal7.sh index c050b07..9f24614 100755 --- a/t/aclocal7.sh +++ b/t/aclocal7.sh @@ -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 diff --git a/t/aclocal8.sh b/t/aclocal8.sh index a242fca..9f2d1db 100755 --- a/t/aclocal8.sh +++ b/t/aclocal8.sh @@ -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 diff --git a/t/aclocal9.sh b/t/aclocal9.sh index bcdd6f4..bcdecb0 100755 --- a/t/aclocal9.sh +++ b/t/aclocal9.sh @@ -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 diff --git a/t/acsilent.sh b/t/acsilent.sh index 92c4300..2200d7d 100755 --- a/t/acsilent.sh +++ b/t/acsilent.sh @@ -16,7 +16,7 @@ # Test to make sure there are no spurious acinclude warnings. -. ./defs || exit 1 +. test-init.sh cat >configure.ac <. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/acsubst2.sh b/t/acsubst2.sh index ea7749c..da858fd 100755 --- a/t/acsubst2.sh +++ b/t/acsubst2.sh @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/add-missing.tap b/t/add-missing.tap index f15657a..ac8c763 100755 --- a/t/add-missing.tap +++ b/t/add-missing.tap @@ -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" diff --git a/t/all.sh b/t/all.sh index 3797acf..0a0216c 100755 --- 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 diff --git a/t/all2.sh b/t/all2.sh index 879cdfc..7c9ab32 100755 --- 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 diff --git a/t/alloca.sh b/t/alloca.sh index e054dd4..aa436ff 100755 --- a/t/alloca.sh +++ b/t/alloca.sh @@ -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 diff --git a/t/alloca2.sh b/t/alloca2.sh index 38d2cf8..6410344 100755 --- a/t/alloca2.sh +++ b/t/alloca2.sh @@ -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 diff --git a/t/alpha.sh b/t/alpha.sh index b1315f0..d8dc30a 100755 --- a/t/alpha.sh +++ b/t/alpha.sh @@ -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]) diff --git a/t/alpha2.sh b/t/alpha2.sh index 86f60b9..318b1c9 100755 --- a/t/alpha2.sh +++ b/t/alpha2.sh @@ -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]) diff --git a/t/am-default-source-ext.sh b/t/am-default-source-ext.sh index 4e0fed8..ec91a19 100755 --- a/t/am-default-source-ext.sh +++ b/t/am-default-source-ext.sh @@ -17,7 +17,7 @@ # AM_DEFAULT_SOURCE_EXT required='cc c++' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/am-macro-not-found.sh b/t/am-macro-not-found.sh index 038dabf..37e6959 100755 --- a/t/am-macro-not-found.sh +++ b/t/am-macro-not-found.sh @@ -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 diff --git a/t/am-missing-prog.sh b/t/am-missing-prog.sh index e16529d..08fc455 100755 --- a/t/am-missing-prog.sh +++ b/t/am-missing-prog.sh @@ -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]) diff --git a/t/am-tests-environment.sh b/t/am-tests-environment.sh index e8fbbe3..eff7850 100755 --- a/t/am-tests-environment.sh +++ b/t/am-tests-environment.sh @@ -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 diff --git a/t/amassign.sh b/t/amassign.sh index 555e3f4..96ec96d 100755 --- a/t/amassign.sh +++ b/t/amassign.sh @@ -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 diff --git a/t/amhello-binpkg.sh b/t/amhello-binpkg.sh index c1d2575..c87717c 100755 --- a/t/amhello-binpkg.sh +++ b/t/amhello-binpkg.sh @@ -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" diff --git a/t/amhello-cflags.sh b/t/amhello-cflags.sh index a120d81..6013789 100755 --- a/t/amhello-cflags.sh +++ b/t/amhello-cflags.sh @@ -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" diff --git a/t/amhello-cross-compile.sh b/t/amhello-cross-compile.sh index d447657..c4992d4 100755 --- a/t/amhello-cross-compile.sh +++ b/t/amhello-cross-compile.sh @@ -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" diff --git a/t/aminit-moreargs-deprecation.sh b/t/aminit-moreargs-deprecation.sh index a8d4605..99ac969 100755 --- a/t/aminit-moreargs-deprecation.sh +++ b/t/aminit-moreargs-deprecation.sh @@ -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' diff --git a/t/amopt.sh b/t/amopt.sh index 5d6005d..7b4a933 100755 --- a/t/amopt.sh +++ b/t/amopt.sh @@ -17,7 +17,7 @@ # Make Automake diagnose a conditional AUTOMAKE_OPTIONS. # Report from Bas Wijnen. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac < Makefile.am <<'END' # comment \ diff --git a/t/amopts-variable-expansion.sh b/t/amopts-variable-expansion.sh index bc0daea..d63b5f0 100755 --- a/t/amopts-variable-expansion.sh +++ b/t/amopts-variable-expansion.sh @@ -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 diff --git a/t/amsubst.sh b/t/amsubst.sh index 49d50c1..c229924 100755 --- a/t/amsubst.sh +++ b/t/amsubst.sh @@ -16,7 +16,7 @@ # Check for _AM_SUBST_NOTMAKE. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_SUBST([backslash], "\\") diff --git a/t/ansi2knr-no-more.sh b/t/ansi2knr-no-more.sh index 5387d20..e28e651 100755 --- a/t/ansi2knr-no-more.sh +++ b/t/ansi2knr-no-more.sh @@ -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' diff --git a/t/ar-lib.sh b/t/ar-lib.sh index c6f6a3c..e7ca34c 100755 --- a/t/ar-lib.sh +++ b/t/ar-lib.sh @@ -18,7 +18,7 @@ am_create_testdir=empty required=xsi-lib-shell -. ./defs || exit 1 +. test-init.sh get_shell_script ar-lib diff --git a/t/ar-lib2.sh b/t/ar-lib2.sh index da2b5ca..df5332d 100755 --- a/t/ar-lib2.sh +++ b/t/ar-lib2.sh @@ -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 diff --git a/t/ar-lib3.sh b/t/ar-lib3.sh index 513808a..77a8db9 100755 --- a/t/ar-lib3.sh +++ b/t/ar-lib3.sh @@ -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 diff --git a/t/ar-lib4.sh b/t/ar-lib4.sh index 2bd93aa..0bd5149 100755 --- a/t/ar-lib4.sh +++ b/t/ar-lib4.sh @@ -17,7 +17,7 @@ # Test if lib_LTLIBRARIES requests AM_PROG_AR. required=libtoolize -. ./defs || exit 1 +. test-init.sh cp configure.ac X diff --git a/t/ar-lib5a.sh b/t/ar-lib5a.sh index a11e218..6f800e6 100755 --- a/t/ar-lib5a.sh +++ b/t/ar-lib5a.sh @@ -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]) diff --git a/t/ar-lib5b.sh b/t/ar-lib5b.sh index a300760..fcf45b9 100755 --- a/t/ar-lib5b.sh +++ b/t/ar-lib5b.sh @@ -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]) diff --git a/t/ar-lib6a.sh b/t/ar-lib6a.sh index 7ee5257..86b8c99 100755 --- a/t/ar-lib6a.sh +++ b/t/ar-lib6a.sh @@ -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 diff --git a/t/ar-lib6b.sh b/t/ar-lib6b.sh index 92709f8..e402b63 100755 --- a/t/ar-lib6b.sh +++ b/t/ar-lib6b.sh @@ -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 diff --git a/t/ar-lib7.sh b/t/ar-lib7.sh index c27cabf..dd7d4a7 100755 --- a/t/ar-lib7.sh +++ b/t/ar-lib7.sh @@ -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 da01d75..5aa1681 100755 --- 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 diff --git a/t/ar2.sh b/t/ar2.sh index 88e90ca..bcda001 100755 --- 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 diff --git a/t/ar3.sh b/t/ar3.sh index f8bf855..3b3ab4e 100755 --- 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 diff --git a/t/ar4.sh b/t/ar4.sh index dc82605..15c5913 100755 --- 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 diff --git a/t/ar5.sh b/t/ar5.sh index 50cf2b0..90c4f96 100755 --- 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([ diff --git a/t/asm.sh b/t/asm.sh index 48df68b..0ce4d07 100755 --- 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 diff --git a/t/asm2.sh b/t/asm2.sh index d62cb60..29ab10b 100755 --- 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 diff --git a/t/asm3.sh b/t/asm3.sh index 67bb876..8044c08 100755 --- 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 diff --git a/t/autodist-acconfig-no-subdir.sh b/t/autodist-acconfig-no-subdir.sh index 474e05f..835d53e 100755 --- a/t/autodist-acconfig-no-subdir.sh +++ b/t/autodist-acconfig-no-subdir.sh @@ -18,7 +18,7 @@ # placed in a subdirectory. # Related to automake bug#7819. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <> configure.ac <> configure.ac <> configure.ac <> configure.ac << END AC_OUTPUT diff --git a/t/autodist-subdir.sh b/t/autodist-subdir.sh index 9af7128..0ca57dc 100755 --- a/t/autodist-subdir.sh +++ b/t/autodist-subdir.sh @@ -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]) diff --git a/t/autodist.sh b/t/autodist.sh index 2e591de..9834508 100755 --- a/t/autodist.sh +++ b/t/autodist.sh @@ -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 <> configure.ac << 'END' AC_CONFIG_HEADERS([a.h b.h sub/c.h]) diff --git a/t/autohdr.sh b/t/autohdr.sh index 19daabe..4079c7c 100755 --- a/t/autohdr.sh +++ b/t/autohdr.sh @@ -16,7 +16,7 @@ # Check that autoheaders works, despite our AC_CONFIG_HEADERS hack. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <>configure.ac <>configure.ac <<'EOF' AC_PROG_CC diff --git a/t/autohdrdry.sh b/t/autohdrdry.sh index af6c198..0a9acd3 100755 --- a/t/autohdrdry.sh +++ b/t/autohdrdry.sh @@ -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]) diff --git a/t/automake-cmdline.tap b/t/automake-cmdline.tap index dd8b30a..eb8bf78 100755 --- a/t/automake-cmdline.tap +++ b/t/automake-cmdline.tap @@ -16,7 +16,7 @@ # Test Automake's command-line options. -. ./defs || exit 1 +. test-init.sh plan_ 17 diff --git a/t/auxdir-autodetect.sh b/t/auxdir-autodetect.sh index 654a303..580f631 100755 --- a/t/auxdir-autodetect.sh +++ b/t/auxdir-autodetect.sh @@ -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 diff --git a/t/auxdir-computed.tap b/t/auxdir-computed.tap index 95d1003..324d825 100755 --- a/t/auxdir-computed.tap +++ b/t/auxdir-computed.tap @@ -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 diff --git a/t/auxdir-misplaced.sh b/t/auxdir-misplaced.sh index 87259b2..98e0591 100755 --- a/t/auxdir-misplaced.sh +++ b/t/auxdir-misplaced.sh @@ -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 diff --git a/t/auxdir-nonexistent.sh b/t/auxdir-nonexistent.sh index 43eeed2..82c46b0 100755 --- a/t/auxdir-nonexistent.sh +++ b/t/auxdir-nonexistent.sh @@ -16,7 +16,7 @@ # Make sure we diagnose non-existent AC_CONFIG_AUX_DIR names. -. ./defs || exit 1 +. test-init.sh cat > configure.ac < configure.ac < configure.ac < configure.ac <> configure.ac << 'END' AC_CONFIG_FILES([subdir/Makefile]) diff --git a/t/ax/tap-summary-aux.sh b/t/ax/tap-summary-aux.sh index 451020c..6f03b69 100644 --- a/t/ax/tap-summary-aux.sh +++ b/t/ax/tap-summary-aux.sh @@ -16,7 +16,7 @@ # Auxiliary script for tests on TAP support: checking testsuite summary. -. ./defs || exit 1 +. test-init.sh br='============================================================================' diff --git a/t/ax/testsuite-summary-checks.sh b/t/ax/testsuite-summary-checks.sh index 6eafdc9..7e65efb 100644 --- a/t/ax/testsuite-summary-checks.sh +++ b/t/ax/testsuite-summary-checks.sh @@ -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) diff --git a/t/backcompat-acout.sh b/t/backcompat-acout.sh index f2e552b..c483be5 100755 --- a/t/backcompat-acout.sh +++ b/t/backcompat-acout.sh @@ -16,7 +16,7 @@ # Backward-compatibility: AC_OUTPUT with arguments. -. ./defs || exit 1 +. test-init.sh mkdir sub : > Makefile.am diff --git a/t/backcompat.sh b/t/backcompat.sh index 214515d..ee7906e 100755 --- a/t/backcompat.sh +++ b/t/backcompat.sh @@ -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 diff --git a/t/backcompat2.sh b/t/backcompat2.sh index 109483b..fe3bb07 100755 --- a/t/backcompat2.sh +++ b/t/backcompat2.sh @@ -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!). diff --git a/t/backcompat3.sh b/t/backcompat3.sh index 26ea7d4..b245e36 100755 --- a/t/backcompat3.sh +++ b/t/backcompat3.sh @@ -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='' diff --git a/t/backcompat6.sh b/t/backcompat6.sh index bcfd3dc..b99321a 100755 --- a/t/backcompat6.sh +++ b/t/backcompat6.sh @@ -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. diff --git a/t/backsl.sh b/t/backsl.sh index fb34ee1..a781e80 100755 --- a/t/backsl.sh +++ b/t/backsl.sh @@ -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 diff --git a/t/backsl2.sh b/t/backsl2.sh index 5d9d6d1..10046f9 100755 --- a/t/backsl2.sh +++ b/t/backsl2.sh @@ -17,7 +17,7 @@ # We must skip the backslash, not complain about './\' not existing. # Reported by Rick Scott -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' SUBDIRS = \ diff --git a/t/backsl3.sh b/t/backsl3.sh index 7891753..b17631d 100755 --- a/t/backsl3.sh +++ b/t/backsl3.sh @@ -17,7 +17,7 @@ # Make sure we diagnose trailing backslash at the end of a file. # Report from Akim Demaile . -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' foo = \ diff --git a/t/backsl4.sh b/t/backsl4.sh index 707d358..7ac4c86 100755 --- a/t/backsl4.sh +++ b/t/backsl4.sh @@ -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 diff --git a/t/badline.sh b/t/badline.sh index 3d71425..e6eb5c8 100755 --- a/t/badline.sh +++ b/t/badline.sh @@ -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]) diff --git a/t/badopt.sh b/t/badopt.sh index b548a4f..927a10d 100755 --- a/t/badopt.sh +++ b/t/badopt.sh @@ -16,7 +16,7 @@ # Test to make sure bad options cause error. -. ./defs || exit 1 +. test-init.sh echo 'AUTOMAKE_OPTIONS = zardoz' > Makefile.am diff --git a/t/badprog.sh b/t/badprog.sh index 6134e3e..e8df06a 100755 --- a/t/badprog.sh +++ b/t/badprog.sh @@ -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 diff --git a/t/block.sh b/t/block.sh index 7cdb5ff..a50b9d3 100755 --- a/t/block.sh +++ b/t/block.sh @@ -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 diff --git a/t/built-sources-check.sh b/t/built-sources-check.sh index d4d3c51..3e0204c 100755 --- a/t/built-sources-check.sh +++ b/t/built-sources-check.sh @@ -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]) diff --git a/t/built-sources-cond.sh b/t/built-sources-cond.sh index ac78a97..a09334f 100755 --- a/t/built-sources-cond.sh +++ b/t/built-sources-cond.sh @@ -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]) diff --git a/t/built-sources-fork-bomb.sh b/t/built-sources-fork-bomb.sh index fac3750..bfb1b42 100755 --- a/t/built-sources-fork-bomb.sh +++ b/t/built-sources-fork-bomb.sh @@ -24,7 +24,7 @@ # Backported to improve coverage of mainline Automake. required=GNUmake -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/built-sources-install.sh b/t/built-sources-install.sh index 2f53bb5..e1c0bbc 100755 --- a/t/built-sources-install.sh +++ b/t/built-sources-install.sh @@ -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]) diff --git a/t/built-sources-subdir.sh b/t/built-sources-subdir.sh index cc162bb..b1c7764 100755 --- a/t/built-sources-subdir.sh +++ b/t/built-sources-subdir.sh @@ -19,7 +19,7 @@ # all-recursive-am which depended on BUILT_SOURCES. required=cc -. ./defs || exit 1 +. test-init.sh mkdir lib diff --git a/t/built-sources.sh b/t/built-sources.sh index 5173136..2f960b0 100755 --- a/t/built-sources.sh +++ b/t/built-sources.sh @@ -17,7 +17,7 @@ # Basic test on BUILT_SOURCES. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_PROG_CC diff --git a/t/candist.sh b/t/candist.sh index d87836a..4c84164 100755 --- a/t/candist.sh +++ b/t/candist.sh @@ -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 diff --git a/t/canon-name.sh b/t/canon-name.sh index 59f8d8d..460fb89 100755 --- a/t/canon-name.sh +++ b/t/canon-name.sh @@ -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 <> configure.ac << 'END' AC_PROG_CC diff --git a/t/canon2.sh b/t/canon2.sh index d9869e8..f79c2a5 100755 --- a/t/canon2.sh +++ b/t/canon2.sh @@ -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 diff --git a/t/canon3.sh b/t/canon3.sh index 4a95cb5..2efdd4c 100755 --- a/t/canon3.sh +++ b/t/canon3.sh @@ -16,7 +16,7 @@ # Yet another canonicalization test. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/canon4.sh b/t/canon4.sh index c79b151..eea87aa 100755 --- a/t/canon4.sh +++ b/t/canon4.sh @@ -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 diff --git a/t/canon5.sh b/t/canon5.sh index 124da02..dd66ec0 100755 --- a/t/canon5.sh +++ b/t/canon5.sh @@ -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 diff --git a/t/canon6.sh b/t/canon6.sh index 9c7fd94..aa1be20 100755 --- a/t/canon6.sh +++ b/t/canon6.sh @@ -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 diff --git a/t/canon7.sh b/t/canon7.sh index 8ffeffb..853db0a 100755 --- a/t/canon7.sh +++ b/t/canon7.sh @@ -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 diff --git a/t/canon8.sh b/t/canon8.sh index bb5e7f9..4c29f6d 100755 --- a/t/canon8.sh +++ b/t/canon8.sh @@ -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 diff --git a/t/ccnoco.sh b/t/ccnoco.sh index 2e5bd4f..ac30b01 100755 --- a/t/ccnoco.sh +++ b/t/ccnoco.sh @@ -18,7 +18,7 @@ # understand '-c -o'. required=gcc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/ccnoco2.sh b/t/ccnoco2.sh index dcb6fa7..5230182 100755 --- a/t/ccnoco2.sh +++ b/t/ccnoco2.sh @@ -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 <> configure.ac << 'END' AC_PROG_CC diff --git a/t/check-concurrency-bug9245.sh b/t/check-concurrency-bug9245.sh index 79e8ffc..ac0e66b 100755 --- a/t/check-concurrency-bug9245.sh +++ b/t/check-concurrency-bug9245.sh @@ -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 diff --git a/t/check-exported-srcdir.sh b/t/check-exported-srcdir.sh index ff48a5f..26d481f 100755 --- a/t/check-exported-srcdir.sh +++ b/t/check-exported-srcdir.sh @@ -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 () { diff --git a/t/check-fd-redirect.sh b/t/check-fd-redirect.sh index a11d0cd..3eeb52c 100755 --- a/t/check-fd-redirect.sh +++ b/t/check-fd-redirect.sh @@ -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 diff --git a/t/check-no-test-driver.sh b/t/check-no-test-driver.sh index bcb2cc9..9632e8e 100755 --- a/t/check-no-test-driver.sh +++ b/t/check-no-test-driver.sh @@ -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 diff --git a/t/check-subst-prog.sh b/t/check-subst-prog.sh index 77538cd..5400220 100755 --- a/t/check-subst-prog.sh +++ b/t/check-subst-prog.sh @@ -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 diff --git a/t/check-subst.sh b/t/check-subst.sh index 0b1aeda..47d6359 100755 --- a/t/check-subst.sh +++ b/t/check-subst.sh @@ -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']) diff --git a/t/check-tests-in-builddir.sh b/t/check-tests-in-builddir.sh index 6785877..2421b2a 100755 --- a/t/check-tests-in-builddir.sh +++ b/t/check-tests-in-builddir.sh @@ -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 diff --git a/t/check.sh b/t/check.sh index 1717e3b..74fdaa3 100755 --- a/t/check.sh +++ b/t/check.sh @@ -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 diff --git a/t/check10.sh b/t/check10.sh index e76773c..1751b60 100755 --- a/t/check10.sh +++ b/t/check10.sh @@ -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 diff --git a/t/check11.sh b/t/check11.sh index 2fa489a..90a5676 100755 --- a/t/check11.sh +++ b/t/check11.sh @@ -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 diff --git a/t/check12.sh b/t/check12.sh index 53cc4e6..0294d25 100755 --- a/t/check12.sh +++ b/t/check12.sh @@ -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 diff --git a/t/check2.sh b/t/check2.sh index 2332fd6..8b79024 100755 --- a/t/check2.sh +++ b/t/check2.sh @@ -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]) diff --git a/t/check4.sh b/t/check4.sh index 946290f..f351c0c 100755 --- a/t/check4.sh +++ b/t/check4.sh @@ -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]) diff --git a/t/check5.sh b/t/check5.sh index 50113b9..2f57e56 100755 --- a/t/check5.sh +++ b/t/check5.sh @@ -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 diff --git a/t/check6.sh b/t/check6.sh index d885713..d0965b1 100755 --- a/t/check6.sh +++ b/t/check6.sh @@ -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 diff --git a/t/check7.sh b/t/check7.sh index e77249f..52a52bc 100755 --- a/t/check7.sh +++ b/t/check7.sh @@ -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 diff --git a/t/check8.sh b/t/check8.sh index 6fcd30a..9651c0d 100755 --- a/t/check8.sh +++ b/t/check8.sh @@ -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 diff --git a/t/checkall.sh b/t/checkall.sh index 4320574..d030738 100755 --- a/t/checkall.sh +++ b/t/checkall.sh @@ -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 diff --git a/t/clean.sh b/t/clean.sh index 80f56df..683629c 100755 --- a/t/clean.sh +++ b/t/clean.sh @@ -16,7 +16,7 @@ # Test to make sure a clean target depends on previous one. -. ./defs || exit 1 +. test-init.sh : > Makefile.am diff --git a/t/colneq.sh b/t/colneq.sh index 6df427f..1db536a 100755 --- a/t/colneq.sh +++ b/t/colneq.sh @@ -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) diff --git a/t/colneq2.sh b/t/colneq2.sh index 124b6d2..7d5d121 100755 --- a/t/colneq2.sh +++ b/t/colneq2.sh @@ -16,7 +16,7 @@ # Test that := in var substitutions works. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/colneq3.sh b/t/colneq3.sh index 4211131..dd1adaa 100755 --- a/t/colneq3.sh +++ b/t/colneq3.sh @@ -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 diff --git a/t/colon.sh b/t/colon.sh index f3e95a6..33cf35b 100755 --- a/t/colon.sh +++ b/t/colon.sh @@ -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]) diff --git a/t/colon2.sh b/t/colon2.sh index febf20a..fde3523 100755 --- a/t/colon2.sh +++ b/t/colon2.sh @@ -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 < configure.ac <> configure.ac < configure.ac < configure.ac < configure.ac << 'END' AC_INIT([colon7], [1.0]) diff --git a/t/color-tests-opt.sh b/t/color-tests-opt.sh index 87d88c9..ac26ab7 100755 --- a/t/color-tests-opt.sh +++ b/t/color-tests-opt.sh @@ -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 < try-with-serial-tests <== -. ./defs || exit 1 +. test-init.sh # Escape '[' for grep, below. red="$esc\[0;31m" diff --git a/t/color-tests2.sh b/t/color-tests2.sh index d067c95..174d734 100755 --- a/t/color-tests2.sh +++ b/t/color-tests2.sh @@ -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" diff --git a/t/commen10.sh b/t/commen10.sh index 1bc60f0..ea51447 100755 --- a/t/commen10.sh +++ b/t/commen10.sh @@ -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 \ diff --git a/t/commen11.sh b/t/commen11.sh index 139545d..c7ea312 100755 --- a/t/commen11.sh +++ b/t/commen11.sh @@ -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 diff --git a/t/comment.sh b/t/comment.sh index 3508bed..79f6cb6 100755 --- a/t/comment.sh +++ b/t/comment.sh @@ -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 diff --git a/t/comment2.sh b/t/comment2.sh index 124e273..402296d 100755 --- a/t/comment2.sh +++ b/t/comment2.sh @@ -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 diff --git a/t/comment3.sh b/t/comment3.sh index e1f1583..b7a698b 100755 --- a/t/comment3.sh +++ b/t/comment3.sh @@ -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: diff --git a/t/comment4.sh b/t/comment4.sh index 8a0ab45..83413ec 100755 --- a/t/comment4.sh +++ b/t/comment4.sh @@ -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 diff --git a/t/comment5.sh b/t/comment5.sh index 06478e0..fcf5650 100755 --- a/t/comment5.sh +++ b/t/comment5.sh @@ -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 diff --git a/t/comment6.sh b/t/comment6.sh index 496dfdd..0a3a066 100755 --- a/t/comment6.sh +++ b/t/comment6.sh @@ -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 diff --git a/t/comment7.sh b/t/comment7.sh index 7e45853..26520e7 100755 --- a/t/comment7.sh +++ b/t/comment7.sh @@ -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]) diff --git a/t/comment8.sh b/t/comment8.sh index b4e871b..61f780a 100755 --- a/t/comment8.sh +++ b/t/comment8.sh @@ -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]) diff --git a/t/comment9.sh b/t/comment9.sh index 49a9f6f..1c2551b 100755 --- a/t/comment9.sh +++ b/t/comment9.sh @@ -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 = \ diff --git a/t/comments-in-var-def.sh b/t/comments-in-var-def.sh index dbb3b14..dad568d 100755 --- a/t/comments-in-var-def.sh +++ b/t/comments-in-var-def.sh @@ -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 diff --git a/t/compile.sh b/t/compile.sh index 1da1cde..4e44206 100755 --- a/t/compile.sh +++ b/t/compile.sh @@ -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 diff --git a/t/compile2.sh b/t/compile2.sh index 5f38775..8c22ed5 100755 --- a/t/compile2.sh +++ b/t/compile2.sh @@ -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 diff --git a/t/compile3.sh b/t/compile3.sh index e8bf8a4..db715b3 100755 --- a/t/compile3.sh +++ b/t/compile3.sh @@ -18,7 +18,7 @@ am_create_testdir=empty required=xsi-lib-shell -. ./defs || exit 1 +. test-init.sh get_shell_script compile diff --git a/t/compile4.sh b/t/compile4.sh index e5b5c57..80ce861 100755 --- a/t/compile4.sh +++ b/t/compile4.sh @@ -18,7 +18,7 @@ # with respect to absolute paths. required='cl' -. ./defs || exit 1 +. test-init.sh get_shell_script compile diff --git a/t/compile5.sh b/t/compile5.sh index 89c5be3..3661fb1 100755 --- a/t/compile5.sh +++ b/t/compile5.sh @@ -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 diff --git a/t/compile6.sh b/t/compile6.sh index 529f22c..c4fb22d 100755 --- a/t/compile6.sh +++ b/t/compile6.sh @@ -18,7 +18,7 @@ am_create_testdir=empty required=xsi-lib-shell -. ./defs || exit 1 +. test-init.sh get_shell_script compile diff --git a/t/compile_f90_c_cxx.sh b/t/compile_f90_c_cxx.sh index 27998dc..0bef8be 100755 --- a/t/compile_f90_c_cxx.sh +++ b/t/compile_f90_c_cxx.sh @@ -18,7 +18,7 @@ # mixed source objects. # (copied from compile_f_c_cxx.sh) Mike Nolta -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/compile_f_c_cxx.sh b/t/compile_f_c_cxx.sh index 419d802..7c1a2a2 100755 --- a/t/compile_f_c_cxx.sh +++ b/t/compile_f_c_cxx.sh @@ -18,7 +18,7 @@ # mixed source objects. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/cond-basic.sh b/t/cond-basic.sh index 0b79032..f01c558 100755 --- a/t/cond-basic.sh +++ b/t/cond-basic.sh @@ -16,7 +16,7 @@ # Check basic use of conditionals. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([TEST], [true]) diff --git a/t/cond.sh b/t/cond.sh index 04fb9fa..2fd6a66 100755 --- 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]) diff --git a/t/cond10.sh b/t/cond10.sh index a556a99..89f0263 100755 --- a/t/cond10.sh +++ b/t/cond10.sh @@ -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 diff --git a/t/cond11.sh b/t/cond11.sh index 95073d1..c4beffc 100755 --- a/t/cond11.sh +++ b/t/cond11.sh @@ -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]) diff --git a/t/cond13.sh b/t/cond13.sh index c23df15..c522932 100755 --- a/t/cond13.sh +++ b/t/cond13.sh @@ -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 diff --git a/t/cond14.sh b/t/cond14.sh index 345171e..67aa625 100755 --- a/t/cond14.sh +++ b/t/cond14.sh @@ -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 diff --git a/t/cond15.sh b/t/cond15.sh index 6ce37d7..e21f729 100755 --- a/t/cond15.sh +++ b/t/cond15.sh @@ -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 diff --git a/t/cond16.sh b/t/cond16.sh index ded3370..8e771e6 100755 --- a/t/cond16.sh +++ b/t/cond16.sh @@ -18,7 +18,7 @@ # references. # Report from Richard Boulton. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([COND1], [true]) diff --git a/t/cond17.sh b/t/cond17.sh index 837fa02..6726d2e 100755 --- a/t/cond17.sh +++ b/t/cond17.sh @@ -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 diff --git a/t/cond18.sh b/t/cond18.sh index 22bbfcf..353cad6 100755 --- a/t/cond18.sh +++ b/t/cond18.sh @@ -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]) diff --git a/t/cond19.sh b/t/cond19.sh index b0dd05c..6187c4c 100755 --- a/t/cond19.sh +++ b/t/cond19.sh @@ -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]) diff --git a/t/cond20.sh b/t/cond20.sh index 403c609..0a590d5 100755 --- a/t/cond20.sh +++ b/t/cond20.sh @@ -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 diff --git a/t/cond21.sh b/t/cond21.sh index f5c748c..8df1232 100755 --- a/t/cond21.sh +++ b/t/cond21.sh @@ -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]) diff --git a/t/cond22.sh b/t/cond22.sh index 10e1d4d..a28c847 100755 --- a/t/cond22.sh +++ b/t/cond22.sh @@ -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]) diff --git a/t/cond23.sh b/t/cond23.sh index 522cffa..d7a01eb 100755 --- a/t/cond23.sh +++ b/t/cond23.sh @@ -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 <>configure.ac <>configure.ac << 'EOF' AM_CONDITIONAL([USE_FOO], [true]) diff --git a/t/cond26.sh b/t/cond26.sh index 74cc7cc..275b32d 100755 --- a/t/cond26.sh +++ b/t/cond26.sh @@ -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]) diff --git a/t/cond27.sh b/t/cond27.sh index fa4aa94..b1a140a 100755 --- a/t/cond27.sh +++ b/t/cond27.sh @@ -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]) diff --git a/t/cond28.sh b/t/cond28.sh index 4df7446..a93e6fd 100755 --- a/t/cond28.sh +++ b/t/cond28.sh @@ -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]) diff --git a/t/cond3.sh b/t/cond3.sh index 4a348d1..d31b943 100755 --- a/t/cond3.sh +++ b/t/cond3.sh @@ -17,7 +17,7 @@ # Test sources listed in conditional. # Report from Rob Savoye , and Lars J. Aas. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/cond30.sh b/t/cond30.sh index cf505d9..09ea343 100755 --- a/t/cond30.sh +++ b/t/cond30.sh @@ -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"]) diff --git a/t/cond31.sh b/t/cond31.sh index b849a1a..d66305f 100755 --- a/t/cond31.sh +++ b/t/cond31.sh @@ -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]) diff --git a/t/cond32.sh b/t/cond32.sh index 07b7814..842704c 100755 --- a/t/cond32.sh +++ b/t/cond32.sh @@ -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"]) diff --git a/t/cond33.sh b/t/cond33.sh index 53225cb..9ea45f1 100755 --- a/t/cond33.sh +++ b/t/cond33.sh @@ -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"]) diff --git a/t/cond34.sh b/t/cond34.sh index 3d37a2b..b4a50bb 100755 --- a/t/cond34.sh +++ b/t/cond34.sh @@ -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"]) diff --git a/t/cond35.sh b/t/cond35.sh index ea663ce..fc371f5 100755 --- a/t/cond35.sh +++ b/t/cond35.sh @@ -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"]) diff --git a/t/cond36.sh b/t/cond36.sh index 2b8e584..a65343f 100755 --- a/t/cond36.sh +++ b/t/cond36.sh @@ -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"]) diff --git a/t/cond37.sh b/t/cond37.sh index 31a1f40..12a2ac7 100755 --- a/t/cond37.sh +++ b/t/cond37.sh @@ -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"]) diff --git a/t/cond38.sh b/t/cond38.sh index 887aa03..96aefa9 100755 --- a/t/cond38.sh +++ b/t/cond38.sh @@ -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], :) diff --git a/t/cond39.sh b/t/cond39.sh index 4cbda48..0bea420 100755 --- a/t/cond39.sh +++ b/t/cond39.sh @@ -17,7 +17,7 @@ # Build either as CONFIG_FILE or as PROGRAM. required=cc -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/cond4.sh b/t/cond4.sh index 72d98c9..cc580c6 100755 --- a/t/cond4.sh +++ b/t/cond4.sh @@ -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]) diff --git a/t/cond40.sh b/t/cond40.sh index 8725a03..2d7ba0d 100755 --- a/t/cond40.sh +++ b/t/cond40.sh @@ -16,7 +16,7 @@ # Test AM_COND_IF. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'END' AC_DEFUN([FOO], diff --git a/t/cond41.sh b/t/cond41.sh index 9f4cc53..3f9c3f4 100755 --- a/t/cond41.sh +++ b/t/cond41.sh @@ -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])]) diff --git a/t/cond42.sh b/t/cond42.sh index d7f885e..b3d0305 100755 --- a/t/cond42.sh +++ b/t/cond42.sh @@ -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], [:]) diff --git a/t/cond43.sh b/t/cond43.sh index a6c7545..ff33675 100755 --- a/t/cond43.sh +++ b/t/cond43.sh @@ -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], [:]) diff --git a/t/cond44.sh b/t/cond44.sh index 8d4d7d5..b79892b 100755 --- a/t/cond44.sh +++ b/t/cond44.sh @@ -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 <>configure.ac <> configure.ac << 'END' AM_CONDITIONAL([USE_A], [test x = y]) diff --git a/t/cond5.sh b/t/cond5.sh index fb5c920..b0f1194 100755 --- a/t/cond5.sh +++ b/t/cond5.sh @@ -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 diff --git a/t/cond6.sh b/t/cond6.sh index 640f496..3754d08 100755 --- a/t/cond6.sh +++ b/t/cond6.sh @@ -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 diff --git a/t/cond7.sh b/t/cond7.sh index 19cd12e..4f90bde 100755 --- a/t/cond7.sh +++ b/t/cond7.sh @@ -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 diff --git a/t/cond8.sh b/t/cond8.sh index 1eab707..f19ede5 100755 --- a/t/cond8.sh +++ b/t/cond8.sh @@ -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 diff --git a/t/cond9.sh b/t/cond9.sh index 9422748..80f13d1 100755 --- a/t/cond9.sh +++ b/t/cond9.sh @@ -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]) diff --git a/t/condd.sh b/t/condd.sh index 81fd015..cb88994 100755 --- a/t/condd.sh +++ b/t/condd.sh @@ -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 diff --git a/t/condhook.sh b/t/condhook.sh index 18ebcb3..8cfc94c 100755 --- a/t/condhook.sh +++ b/t/condhook.sh @@ -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]) diff --git a/t/condhook2.sh b/t/condhook2.sh index a6ec7ff..e41a24d 100755 --- a/t/condhook2.sh +++ b/t/condhook2.sh @@ -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]) diff --git a/t/condinc.sh b/t/condinc.sh index d826f96..d61766d 100755 --- a/t/condinc.sh +++ b/t/condinc.sh @@ -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]) diff --git a/t/condinc2.sh b/t/condinc2.sh index 1763a6d..57f92ea 100755 --- a/t/condinc2.sh +++ b/t/condinc2.sh @@ -16,7 +16,7 @@ # Another test of conditional include statements. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([TOBE], [false]) diff --git a/t/condlib.sh b/t/condlib.sh index 3c88226..6751386 100755 --- a/t/condlib.sh +++ b/t/condlib.sh @@ -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 diff --git a/t/condman2.sh b/t/condman2.sh index ad97abc..8f79e0e 100755 --- a/t/condman2.sh +++ b/t/condman2.sh @@ -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 diff --git a/t/condman3.sh b/t/condman3.sh index 094a66c..8f0f658 100755 --- a/t/condman3.sh +++ b/t/condman3.sh @@ -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"]) diff --git a/t/confdeps.sh b/t/confdeps.sh index 95e60f9..c2dccf2 100755 --- a/t/confdeps.sh +++ b/t/confdeps.sh @@ -16,7 +16,7 @@ # Make sure that config* files are properly regenerated. -. ./defs || exit 1 +. test-init.sh echo "FOO = foo" > Makefile.am diff --git a/t/conff.sh b/t/conff.sh index b6f9081..7456207 100755 --- a/t/conff.sh +++ b/t/conff.sh @@ -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]) diff --git a/t/conff2.sh b/t/conff2.sh index 728d78e..41820ae 100755 --- a/t/conff2.sh +++ b/t/conff2.sh @@ -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). diff --git a/t/conffile-leading-dot.sh b/t/conffile-leading-dot.sh index 3eed30b..acdbc1f 100755 --- a/t/conffile-leading-dot.sh +++ b/t/conffile-leading-dot.sh @@ -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]) diff --git a/t/confh-subdir-clean.sh b/t/confh-subdir-clean.sh index 75024f6..0572034 100755 --- a/t/confh-subdir-clean.sh +++ b/t/confh-subdir-clean.sh @@ -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]) diff --git a/t/confh.sh b/t/confh.sh index 1407757..81e6743 100755 --- a/t/confh.sh +++ b/t/confh.sh @@ -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]) diff --git a/t/confh4.sh b/t/confh4.sh index 06ae96f..65c03c5 100755 --- a/t/confh4.sh +++ b/t/confh4.sh @@ -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]) diff --git a/t/confh5.sh b/t/confh5.sh index 354c88c..c6c3e25 100755 --- a/t/confh5.sh +++ b/t/confh5.sh @@ -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]) diff --git a/t/confh6.sh b/t/confh6.sh index fa6aab4..4db74b5 100755 --- a/t/confh6.sh +++ b/t/confh6.sh @@ -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]) diff --git a/t/confh7.sh b/t/confh7.sh index dc80ae0..4d3bbbb 100755 --- a/t/confh7.sh +++ b/t/confh7.sh @@ -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]) diff --git a/t/confh8.sh b/t/confh8.sh index 00013d3..e2fc36f 100755 --- a/t/confh8.sh +++ b/t/confh8.sh @@ -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]) diff --git a/t/configure.sh b/t/configure.sh index 6ba740e..1a1bb94 100755 --- a/t/configure.sh +++ b/t/configure.sh @@ -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 <> configure.ac << 'END' AC_PROG_CC diff --git a/t/conflnk.sh b/t/conflnk.sh index 8446ac8..7b316a7 100755 --- a/t/conflnk.sh +++ b/t/conflnk.sh @@ -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 diff --git a/t/conflnk2.sh b/t/conflnk2.sh index fa0b009..66b1a49 100755 --- a/t/conflnk2.sh +++ b/t/conflnk2.sh @@ -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 diff --git a/t/conflnk3.sh b/t/conflnk3.sh index a0b8842..1f844fd 100755 --- a/t/conflnk3.sh +++ b/t/conflnk3.sh @@ -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 diff --git a/t/conflnk4.sh b/t/conflnk4.sh index 090f809..d879fbf 100755 --- a/t/conflnk4.sh +++ b/t/conflnk4.sh @@ -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 diff --git a/t/confsub.sh b/t/confsub.sh index de21d51..6ab6a2f 100755 --- a/t/confsub.sh +++ b/t/confsub.sh @@ -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]) diff --git a/t/confvar.sh b/t/confvar.sh index 39739d9..28e9e06 100755 --- a/t/confvar.sh +++ b/t/confvar.sh @@ -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]) diff --git a/t/confvar2.sh b/t/confvar2.sh index fc78f6e..cada470 100755 --- a/t/confvar2.sh +++ b/t/confvar2.sh @@ -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]) diff --git a/t/copy.sh b/t/copy.sh index 64a829d..04cb94c 100755 --- 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. diff --git a/t/cscope.tap b/t/cscope.tap index 9db0d8e..213481c 100755 --- a/t/cscope.tap +++ b/t/cscope.tap @@ -16,7 +16,7 @@ # Test cscope functionality. -. ./defs || exit 1 +. test-init.sh plan_ 18 diff --git a/t/cscope2.sh b/t/cscope2.sh index 631642f..16419a7 100755 --- a/t/cscope2.sh +++ b/t/cscope2.sh @@ -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 diff --git a/t/cscope3.sh b/t/cscope3.sh index 30e8c0c..a7468f8 100755 --- a/t/cscope3.sh +++ b/t/cscope3.sh @@ -19,7 +19,7 @@ # is empty. required=cscope -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_CONFIG_FILES([sub/Makefile]) diff --git a/t/cxx-demo.sh b/t/cxx-demo.sh index 77f7c83..6caae27 100755 --- a/t/cxx-demo.sh +++ b/t/cxx-demo.sh @@ -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]) diff --git a/t/cxx-lt-demo.sh b/t/cxx-lt-demo.sh index a060fc8..9289196 100755 --- a/t/cxx-lt-demo.sh +++ b/t/cxx-lt-demo.sh @@ -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]) diff --git a/t/cxx.sh b/t/cxx.sh index fc7fe96..744cde2 100755 --- 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 diff --git a/t/cxx2.sh b/t/cxx2.sh index 7ffba4e..4abcefc 100755 --- 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 diff --git a/t/cxxcpp.sh b/t/cxxcpp.sh index cd5d392..dca17c7 100755 --- a/t/cxxcpp.sh +++ b/t/cxxcpp.sh @@ -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 diff --git a/t/cxxlibobj.sh b/t/cxxlibobj.sh index b6d0231..7c95a4f 100755 --- a/t/cxxlibobj.sh +++ b/t/cxxlibobj.sh @@ -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 diff --git a/t/cxxlink.sh b/t/cxxlink.sh index ff271c3..734dc75 100755 --- a/t/cxxlink.sh +++ b/t/cxxlink.sh @@ -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 diff --git a/t/cxxnoc.sh b/t/cxxnoc.sh index b3e5631..1cdf58b 100755 --- a/t/cxxnoc.sh +++ b/t/cxxnoc.sh @@ -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 diff --git a/t/cygnus-no-more.sh b/t/cygnus-no-more.sh index 66ef57d..33803b1 100755 --- a/t/cygnus-no-more.sh +++ b/t/cygnus-no-more.sh @@ -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' diff --git a/t/cygwin32.sh b/t/cygwin32.sh index 95b442e..7163884 100755 --- a/t/cygwin32.sh +++ b/t/cygwin32.sh @@ -16,7 +16,7 @@ # Test basic Cygwin32 functionality. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/dash.sh b/t/dash.sh index 6c9c9e0..4cf34f3 100755 --- 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 diff --git a/t/defun.sh b/t/defun.sh index 5a4530c..0f6bd0a 100755 --- a/t/defun.sh +++ b/t/defun.sh @@ -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]) diff --git a/t/defun2.sh b/t/defun2.sh index 2c74cc4..cb1cee7 100755 --- a/t/defun2.sh +++ b/t/defun2.sh @@ -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 diff --git a/t/dejagnu-absolute-builddir.sh b/t/dejagnu-absolute-builddir.sh index 22f7cc5..6b873d0 100755 --- a/t/dejagnu-absolute-builddir.sh +++ b/t/dejagnu-absolute-builddir.sh @@ -18,7 +18,7 @@ # to an absolute path. required=runtest -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/dejagnu-relative-srcdir.sh b/t/dejagnu-relative-srcdir.sh index 9fdf179..141f56e 100755 --- a/t/dejagnu-relative-srcdir.sh +++ b/t/dejagnu-relative-srcdir.sh @@ -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 diff --git a/t/dejagnu-siteexp-append.sh b/t/dejagnu-siteexp-append.sh index c980c85..07254ca 100755 --- a/t/dejagnu-siteexp-append.sh +++ b/t/dejagnu-siteexp-append.sh @@ -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 diff --git a/t/dejagnu-siteexp-extend.sh b/t/dejagnu-siteexp-extend.sh index 45d8a22..8c16c54 100755 --- a/t/dejagnu-siteexp-extend.sh +++ b/t/dejagnu-siteexp-extend.sh @@ -18,7 +18,7 @@ # automake-generated Makefile. required=runtest -. ./defs || exit 1 +. test-init.sh write_check_for () { diff --git a/t/dejagnu-siteexp-useredit.sh b/t/dejagnu-siteexp-useredit.sh index 42f4d44..207d8a1 100755 --- a/t/dejagnu-siteexp-useredit.sh +++ b/t/dejagnu-siteexp-useredit.sh @@ -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 diff --git a/t/dejagnu.sh b/t/dejagnu.sh index 7583347..0293de5 100755 --- a/t/dejagnu.sh +++ b/t/dejagnu.sh @@ -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 diff --git a/t/dejagnu2.sh b/t/dejagnu2.sh index 5b75bb6..78cfb15 100755 --- a/t/dejagnu2.sh +++ b/t/dejagnu2.sh @@ -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 diff --git a/t/dejagnu3.sh b/t/dejagnu3.sh index 42345be..4b25805 100755 --- a/t/dejagnu3.sh +++ b/t/dejagnu3.sh @@ -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 diff --git a/t/dejagnu4.sh b/t/dejagnu4.sh index 655218b..18119b0 100755 --- a/t/dejagnu4.sh +++ b/t/dejagnu4.sh @@ -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 diff --git a/t/dejagnu5.sh b/t/dejagnu5.sh index d64a7f2..816a652 100755 --- a/t/dejagnu5.sh +++ b/t/dejagnu5.sh @@ -18,7 +18,7 @@ # the package by default. required=runtest -. ./defs || exit 1 +. test-init.sh package=$me diff --git a/t/dejagnu6.sh b/t/dejagnu6.sh index 80ff027..71998cc 100755 --- a/t/dejagnu6.sh +++ b/t/dejagnu6.sh @@ -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 diff --git a/t/dejagnu7.sh b/t/dejagnu7.sh index d34931b..17e5a18 100755 --- a/t/dejagnu7.sh +++ b/t/dejagnu7.sh @@ -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'" diff --git a/t/deleted-am.sh b/t/deleted-am.sh index 9dc015a..ee17a29 100755 --- a/t/deleted-am.sh +++ b/t/deleted-am.sh @@ -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 diff --git a/t/deleted-m4.sh b/t/deleted-m4.sh index 296f453..841e30e 100755 --- a/t/deleted-m4.sh +++ b/t/deleted-m4.sh @@ -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]) diff --git a/t/depacl2.sh b/t/depacl2.sh index 897a5a2..c7fd85e 100755 --- a/t/depacl2.sh +++ b/t/depacl2.sh @@ -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 diff --git a/t/depcomp-implicit-auxdir.sh b/t/depcomp-implicit-auxdir.sh index dc93a85..964b720 100755 --- a/t/depcomp-implicit-auxdir.sh +++ b/t/depcomp-implicit-auxdir.sh @@ -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 diff --git a/t/depcomp.sh b/t/depcomp.sh index 63c702f..33c293d 100755 --- a/t/depcomp.sh +++ b/t/depcomp.sh @@ -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]) diff --git a/t/depcomp2.sh b/t/depcomp2.sh index c29d9cd..a00236f 100755 --- a/t/depcomp2.sh +++ b/t/depcomp2.sh @@ -18,7 +18,7 @@ # From Pavel Roskin. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_CONFIG_FILES([subdir/Makefile]) diff --git a/t/depcomp8a.sh b/t/depcomp8a.sh index 4e34777..61ffa56 100755 --- a/t/depcomp8a.sh +++ b/t/depcomp8a.sh @@ -20,7 +20,7 @@ # same thing for libtool objects. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/depcomp8b.sh b/t/depcomp8b.sh index 3e26392..a97e2c3 100755 --- a/t/depcomp8b.sh +++ b/t/depcomp8b.sh @@ -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 diff --git a/t/depdist.sh b/t/depdist.sh index 8965cd8..e6b2459 100755 --- a/t/depdist.sh +++ b/t/depdist.sh @@ -18,7 +18,7 @@ # From Eric Magnien. required=cc -. ./defs || exit 1 +. test-init.sh rm -f configure.ac diff --git a/t/depend.sh b/t/depend.sh index 846a424..9dbbe82 100755 --- a/t/depend.sh +++ b/t/depend.sh @@ -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 diff --git a/t/depend3.sh b/t/depend3.sh index 65f83ce..fddc968 100755 --- a/t/depend3.sh +++ b/t/depend3.sh @@ -16,7 +16,7 @@ # Test _DEPENDENCIES variable. From Lee Iverson. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/depend4.sh b/t/depend4.sh index 3a71741..ddd77eb 100755 --- a/t/depend4.sh +++ b/t/depend4.sh @@ -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 diff --git a/t/depend5.sh b/t/depend5.sh index 8b2371e..518e00d 100755 --- a/t/depend5.sh +++ b/t/depend5.sh @@ -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 diff --git a/t/depend6.sh b/t/depend6.sh index 0795f93..4878b50 100755 --- a/t/depend6.sh +++ b/t/depend6.sh @@ -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 diff --git a/t/deprecated-acinit.sh b/t/deprecated-acinit.sh index 516b139..60b3e5a 100755 --- a/t/deprecated-acinit.sh +++ b/t/deprecated-acinit.sh @@ -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 diff --git a/t/destdir.sh b/t/destdir.sh index f10480b..6b27984 100755 --- a/t/destdir.sh +++ b/t/destdir.sh @@ -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 diff --git a/t/dir-named-obj-is-bad.sh b/t/dir-named-obj-is-bad.sh index d14f8c8..7b77a90 100755 --- a/t/dir-named-obj-is-bad.sh +++ b/t/dir-named-obj-is-bad.sh @@ -16,7 +16,7 @@ # Naming a subdirectory 'obj/' is a bad idea. Automake should say so. -. ./defs || exit 1 +. test-init.sh mkdir obj diff --git a/t/dirlist-abspath.sh b/t/dirlist-abspath.sh index 3c25fba..d90c1dc 100755 --- a/t/dirlist-abspath.sh +++ b/t/dirlist-abspath.sh @@ -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 diff --git a/t/dirlist.sh b/t/dirlist.sh index 319726c..b8288c5 100755 --- a/t/dirlist.sh +++ b/t/dirlist.sh @@ -16,7 +16,7 @@ # Check dirlist support. -. ./defs || exit 1 +. test-init.sh cat > configure.ac < configure.ac <> configure.ac << 'END' AC_PROG_RANLIB diff --git a/t/dist-auxdir-many-subdirs.sh b/t/dist-auxdir-many-subdirs.sh index 4937a14..334e3bd 100755 --- a/t/dist-auxdir-many-subdirs.sh +++ b/t/dist-auxdir-many-subdirs.sh @@ -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" diff --git a/t/dist-auxfile-2.sh b/t/dist-auxfile-2.sh index c11083a..cd62ef0 100755 --- a/t/dist-auxfile-2.sh +++ b/t/dist-auxfile-2.sh @@ -20,7 +20,7 @@ # Related to automake bug#9651. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh cat > configure.ac <> configure.ac << 'END' AC_CONFIG_FILES([sub/Makefile]) diff --git a/t/dist-missing-am.sh b/t/dist-missing-am.sh index 80254c4..2774fa6 100755 --- a/t/dist-missing-am.sh +++ b/t/dist-missing-am.sh @@ -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 diff --git a/t/dist-missing-included-m4.sh b/t/dist-missing-included-m4.sh index 93d11b7..81fce45 100755 --- a/t/dist-missing-included-m4.sh +++ b/t/dist-missing-included-m4.sh @@ -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]) diff --git a/t/dist-missing-m4.sh b/t/dist-missing-m4.sh index 4ab1e16..e0ed886 100755 --- a/t/dist-missing-m4.sh +++ b/t/dist-missing-m4.sh @@ -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_]) diff --git a/t/dist-pr109765.sh b/t/dist-pr109765.sh index 50085a6..5c47669 100755 --- a/t/dist-pr109765.sh +++ b/t/dist-pr109765.sh @@ -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 diff --git a/t/dist-readonly.sh b/t/dist-readonly.sh index b7b0e0e..ab000ee 100755 --- a/t/dist-readonly.sh +++ b/t/dist-readonly.sh @@ -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 diff --git a/t/dist-repeated.sh b/t/dist-repeated.sh index 491cf29..edfbc0f 100755 --- a/t/dist-repeated.sh +++ b/t/dist-repeated.sh @@ -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 diff --git a/t/distcheck-configure-flags-am.sh b/t/distcheck-configure-flags-am.sh index 11c992c..330fde1 100755 --- a/t/distcheck-configure-flags-am.sh +++ b/t/distcheck-configure-flags-am.sh @@ -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]) diff --git a/t/distcheck-configure-flags-subpkg.sh b/t/distcheck-configure-flags-subpkg.sh index f5bc15d..480ad44 100755 --- a/t/distcheck-configure-flags-subpkg.sh +++ b/t/distcheck-configure-flags-subpkg.sh @@ -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]) diff --git a/t/distcheck-configure-flags.sh b/t/distcheck-configure-flags.sh index e10b2ba..42dda30 100755 --- a/t/distcheck-configure-flags.sh +++ b/t/distcheck-configure-flags.sh @@ -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]) diff --git a/t/distcheck-hook.sh b/t/distcheck-hook.sh index 81a6646..f55918f 100755 --- a/t/distcheck-hook.sh +++ b/t/distcheck-hook.sh @@ -16,7 +16,7 @@ # Check basic support for distcheck-hook. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/distcheck-hook2.sh b/t/distcheck-hook2.sh index ee177ee..6b4d588 100755 --- a/t/distcheck-hook2.sh +++ b/t/distcheck-hook2.sh @@ -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]) diff --git a/t/distcheck-missing-m4.sh b/t/distcheck-missing-m4.sh index 1eef872..e396e22 100755 --- a/t/distcheck-missing-m4.sh +++ b/t/distcheck-missing-m4.sh @@ -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" diff --git a/t/distcheck-outdated-m4.sh b/t/distcheck-outdated-m4.sh index 50e1057..81440bd 100755 --- a/t/distcheck-outdated-m4.sh +++ b/t/distcheck-outdated-m4.sh @@ -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" diff --git a/t/distcheck-override-infodir.sh b/t/distcheck-override-infodir.sh index e65078f..607c573 100755 --- a/t/distcheck-override-infodir.sh +++ b/t/distcheck-override-infodir.sh @@ -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 diff --git a/t/distcheck-pr10470.sh b/t/distcheck-pr10470.sh index d888a99..89a21fe 100755 --- a/t/distcheck-pr10470.sh +++ b/t/distcheck-pr10470.sh @@ -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'" & diff --git a/t/distcheck-pr9579.sh b/t/distcheck-pr9579.sh index ae1da2b..8c6b6da 100755 --- a/t/distcheck-pr9579.sh +++ b/t/distcheck-pr9579.sh @@ -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 diff --git a/t/distcheck-writable-srcdir.sh b/t/distcheck-writable-srcdir.sh index 034dc1e..4dfd21f 100755 --- a/t/distcheck-writable-srcdir.sh +++ b/t/distcheck-writable-srcdir.sh @@ -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 diff --git a/t/distcleancheck.sh b/t/distcleancheck.sh index 5cdd6f1..213ee4e 100755 --- a/t/distcleancheck.sh +++ b/t/distcleancheck.sh @@ -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 diff --git a/t/distcom-subdir.sh b/t/distcom-subdir.sh index cb4d9c3..c129dea 100755 --- a/t/distcom-subdir.sh +++ b/t/distcom-subdir.sh @@ -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]) diff --git a/t/distcom2.sh b/t/distcom2.sh index 27b7dc9..113a251 100755 --- a/t/distcom2.sh +++ b/t/distcom2.sh @@ -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 diff --git a/t/distcom3.sh b/t/distcom3.sh index a2ffe0b..35dc739 100755 --- a/t/distcom3.sh +++ b/t/distcom3.sh @@ -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: diff --git a/t/distcom4.sh b/t/distcom4.sh index 691c197..04e9cdc 100755 --- a/t/distcom4.sh +++ b/t/distcom4.sh @@ -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], diff --git a/t/distcom5.sh b/t/distcom5.sh index 6a2c736..29ea76c 100755 --- a/t/distcom5.sh +++ b/t/distcom5.sh @@ -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 () { diff --git a/t/distdir.sh b/t/distdir.sh index 9600746..d4694fb 100755 --- a/t/distdir.sh +++ b/t/distdir.sh @@ -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 diff --git a/t/disthook.sh b/t/disthook.sh index 6fefacb..68e6f10 100755 --- a/t/disthook.sh +++ b/t/disthook.sh @@ -16,7 +16,7 @@ # Check that 'dist-hook' works. See automake bug#10878. -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/distlinks.sh b/t/distlinks.sh index 7d05b6e..35b8f3f 100755 --- a/t/distlinks.sh +++ b/t/distlinks.sh @@ -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 diff --git a/t/distlinksbrk.sh b/t/distlinksbrk.sh index eccfd9c..b549374 100755 --- a/t/distlinksbrk.sh +++ b/t/distlinksbrk.sh @@ -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. diff --git a/t/distname.sh b/t/distname.sh index 19806ce..0b1b541 100755 --- a/t/distname.sh +++ b/t/distname.sh @@ -18,7 +18,7 @@ # From Rainer Orth. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_CONFIG_SRCDIR([a.c]) diff --git a/t/dmalloc.sh b/t/dmalloc.sh index 3f37eb5..ff2d05e 100755 --- a/t/dmalloc.sh +++ b/t/dmalloc.sh @@ -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]) diff --git a/t/doc-parsing-buglets-colneq-subst.sh b/t/doc-parsing-buglets-colneq-subst.sh index f099f02..ddf37d0 100755 --- a/t/doc-parsing-buglets-colneq-subst.sh +++ b/t/doc-parsing-buglets-colneq-subst.sh @@ -22,7 +22,7 @@ # See: # or: -. ./defs || exit 1 +. test-init.sh cat > Makefile.am <<'END' $(FOO:=x): bar diff --git a/t/doc-parsing-buglets-tabs.sh b/t/doc-parsing-buglets-tabs.sh index 8c9ea4d..eb51431 100755 --- a/t/doc-parsing-buglets-tabs.sh +++ b/t/doc-parsing-buglets-tabs.sh @@ -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 <> configure.ac diff --git a/t/dollarvar.sh b/t/dollarvar.sh index adaf178..43fc043 100755 --- a/t/dollarvar.sh +++ b/t/dollarvar.sh @@ -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 diff --git a/t/dollarvar2.sh b/t/dollarvar2.sh index 1703ceb..7269ffd 100755 --- a/t/dollarvar2.sh +++ b/t/dollarvar2.sh @@ -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, diff --git a/t/double.sh b/t/double.sh index 6e1b96f..403e863 100755 --- a/t/double.sh +++ b/t/double.sh @@ -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 diff --git a/t/dup2.sh b/t/dup2.sh index 82d341c..12419b9 100755 --- 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 diff --git a/t/else.sh b/t/else.sh index 4bf82f6..072a40b 100755 --- 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 diff --git a/t/empty-data-primary.sh b/t/empty-data-primary.sh index a8e1b16..dd285f0 100755 --- a/t/empty-data-primary.sh +++ b/t/empty-data-primary.sh @@ -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 diff --git a/t/empty-sources-primary.tap b/t/empty-sources-primary.tap index 3e5b3f4..5f09e6f 100755 --- a/t/empty-sources-primary.tap +++ b/t/empty-sources-primary.tap @@ -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 diff --git a/t/exdir.sh b/t/exdir.sh index 0c249e4..7ebe056 100755 --- a/t/exdir.sh +++ b/t/exdir.sh @@ -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 diff --git a/t/exdir2.sh b/t/exdir2.sh index cf17f58..ac427da 100755 --- a/t/exdir2.sh +++ b/t/exdir2.sh @@ -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 diff --git a/t/exdir3.sh b/t/exdir3.sh index 6d602cb..e4ed095 100755 --- a/t/exdir3.sh +++ b/t/exdir3.sh @@ -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"]) diff --git a/t/exeext.sh b/t/exeext.sh index 1eb4256..f0850c6 100755 --- a/t/exeext.sh +++ b/t/exeext.sh @@ -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 diff --git a/t/exeext2.sh b/t/exeext2.sh index 956acff..606d81a 100755 --- a/t/exeext2.sh +++ b/t/exeext2.sh @@ -16,7 +16,7 @@ # Make sure no-exeext option works. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/exeext3.sh b/t/exeext3.sh index e12462a..6d99904 100755 --- a/t/exeext3.sh +++ b/t/exeext3.sh @@ -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 diff --git a/t/exeext4.sh b/t/exeext4.sh index 6d8bc88..bd455e0 100755 --- a/t/exeext4.sh +++ b/t/exeext4.sh @@ -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"]) diff --git a/t/exsource.sh b/t/exsource.sh index 4a308cf..4494dae 100755 --- a/t/exsource.sh +++ b/t/exsource.sh @@ -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 diff --git a/t/ext.sh b/t/ext.sh index a69fe8b..3e10491 100755 --- 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 diff --git a/t/ext2.sh b/t/ext2.sh index 7b97c85..79114d6 100755 --- 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 <> configure.ac << 'END' END diff --git a/t/extra-portability.sh b/t/extra-portability.sh index fffd6d3..0303ba3 100755 --- a/t/extra-portability.sh +++ b/t/extra-portability.sh @@ -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" diff --git a/t/extra-portability2.sh b/t/extra-portability2.sh index e87dde0..a82fa47 100755 --- a/t/extra-portability2.sh +++ b/t/extra-portability2.sh @@ -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 diff --git a/t/extra-portability3.sh b/t/extra-portability3.sh index 2412b4f..4f84422 100755 --- a/t/extra-portability3.sh +++ b/t/extra-portability3.sh @@ -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" diff --git a/t/extra-programs-empty.sh b/t/extra-programs-empty.sh index 189fac4..2975d7d 100755 --- a/t/extra-programs-empty.sh +++ b/t/extra-programs-empty.sh @@ -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]) diff --git a/t/extra.sh b/t/extra.sh index 0993706..2442faf 100755 --- a/t/extra.sh +++ b/t/extra.sh @@ -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 diff --git a/t/extra10.sh b/t/extra10.sh index db34e11..bd49d3c 100755 --- a/t/extra10.sh +++ b/t/extra10.sh @@ -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 diff --git a/t/extra11.sh b/t/extra11.sh index f5319c6..6d42d8d 100755 --- a/t/extra11.sh +++ b/t/extra11.sh @@ -18,7 +18,7 @@ # Suggested by observations from Braden McDaniel. required=GNUmake -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/extra12.sh b/t/extra12.sh index a2a797b..0dc817c 100755 --- a/t/extra12.sh +++ b/t/extra12.sh @@ -19,7 +19,7 @@ # Suggested by observations from Braden McDaniel. required=GNUmake -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/extra2.sh b/t/extra2.sh index e5576a5..e3eb5a2 100755 --- a/t/extra2.sh +++ b/t/extra2.sh @@ -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 diff --git a/t/extra3.sh b/t/extra3.sh index 02ac789..1dd94b5 100755 --- a/t/extra3.sh +++ b/t/extra3.sh @@ -16,7 +16,7 @@ # Check to make sure EXTRA_DATA not required. -. ./defs || exit 1 +. test-init.sh echo 'AC_SUBST(CODICIL)' >> configure.ac diff --git a/t/extra4.sh b/t/extra4.sh index 286540a..248a25b 100755 --- a/t/extra4.sh +++ b/t/extra4.sh @@ -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 diff --git a/t/extra5.sh b/t/extra5.sh index abe8e13..51bbb50 100755 --- a/t/extra5.sh +++ b/t/extra5.sh @@ -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 diff --git a/t/extra6.sh b/t/extra6.sh index b5308af..e3f0a3d 100755 --- a/t/extra6.sh +++ b/t/extra6.sh @@ -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 diff --git a/t/extra7.sh b/t/extra7.sh index b75a0a7..1cd5f6f 100755 --- a/t/extra7.sh +++ b/t/extra7.sh @@ -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 diff --git a/t/extra8.sh b/t/extra8.sh index 0a4f818..38234a9 100755 --- a/t/extra8.sh +++ b/t/extra8.sh @@ -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 diff --git a/t/extra9.sh b/t/extra9.sh index c0bb0f3..96c3122 100755 --- a/t/extra9.sh +++ b/t/extra9.sh @@ -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 diff --git a/t/extradep.sh b/t/extradep.sh index 75daf2e..18879f3 100755 --- a/t/extradep.sh +++ b/t/extradep.sh @@ -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 diff --git a/t/extradep2.sh b/t/extradep2.sh index eecf74f..72217e7 100755 --- a/t/extradep2.sh +++ b/t/extradep2.sh @@ -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 diff --git a/t/f90only.sh b/t/f90only.sh index 3d23628..7f938af 100755 --- a/t/f90only.sh +++ b/t/f90only.sh @@ -17,7 +17,7 @@ # Make sure programs with only Fortran 90 source are handled properly. # (copied from 'fonly.sh') Mike Nolta -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_FC diff --git a/t/flavor.sh b/t/flavor.sh index 91b3341..383c5c7 100755 --- a/t/flavor.sh +++ b/t/flavor.sh @@ -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 diff --git a/t/flibs.sh b/t/flibs.sh index d51849f..10b8e8e 100755 --- a/t/flibs.sh +++ b/t/flibs.sh @@ -17,7 +17,7 @@ # Make sure 'AC_F77_LIBRARY_LDFLAGS' works properly. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_F77 diff --git a/t/fn99.sh b/t/fn99.sh index f1351bb..80f9b05 100755 --- 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 diff --git a/t/fn99subdir.sh b/t/fn99subdir.sh index eb289b4..0e73263 100755 --- a/t/fn99subdir.sh +++ b/t/fn99subdir.sh @@ -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' diff --git a/t/fnoc.sh b/t/fnoc.sh index f0b2518..9f7abdd 100755 --- a/t/fnoc.sh +++ b/t/fnoc.sh @@ -18,7 +18,7 @@ # C-specific code. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_F77 diff --git a/t/fonly.sh b/t/fonly.sh index 9854187..796a093 100755 --- a/t/fonly.sh +++ b/t/fonly.sh @@ -17,7 +17,7 @@ # Make sure programs with only Fortran 77 source are handled properly. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_F77 diff --git a/t/forcemiss.sh b/t/forcemiss.sh index 74da2d7..4e00684 100755 --- a/t/forcemiss.sh +++ b/t/forcemiss.sh @@ -16,7 +16,7 @@ # Test to make sure that 'automake --force-missing' works. -. ./defs || exit 1 +. test-init.sh rm -f install-sh diff --git a/t/forcemiss2.sh b/t/forcemiss2.sh index 8c6369a..17aa06d 100755 --- a/t/forcemiss2.sh +++ b/t/forcemiss2.sh @@ -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 diff --git a/t/fort1.sh b/t/fort1.sh index d118e9f..10753e6 100755 --- a/t/fort1.sh +++ b/t/fort1.sh @@ -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 <> configure.ac << 'END' AC_CONFIG_SRCDIR([foo.f]) diff --git a/t/gcj.sh b/t/gcj.sh index d069ec7..f0a3897 100755 --- 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]) diff --git a/t/gcj2.sh b/t/gcj2.sh index 8da82a1..3aab7a3 100755 --- 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) diff --git a/t/gcj3.sh b/t/gcj3.sh index c4b4574..96d0d14 100755 --- 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]) diff --git a/t/gcj4.sh b/t/gcj4.sh index 299e1c1..680e59b 100755 --- 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 diff --git a/t/gcj5.sh b/t/gcj5.sh index 4df1059..9409ee8 100755 --- 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) diff --git a/t/gcj6.sh b/t/gcj6.sh index 60023c2..fc9fbe6 100755 --- 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 diff --git a/t/get-sysconf.sh b/t/get-sysconf.sh index 60f62cd..f802665 100755 --- a/t/get-sysconf.sh +++ b/t/get-sysconf.sh @@ -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 diff --git a/t/gettext-macros.sh b/t/gettext-macros.sh index f6424ae..1c774e7 100755 --- a/t/gettext-macros.sh +++ b/t/gettext-macros.sh @@ -18,7 +18,7 @@ # to the test cases requiring them. # See also automake bug#9807. -. ./defs || exit 1 +. test-init.sh extract_program_version () { diff --git a/t/gettext.sh b/t/gettext.sh index a1925f1..7cf62ef 100755 --- a/t/gettext.sh +++ b/t/gettext.sh @@ -17,7 +17,7 @@ # Check gettext support. required='gettext' -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <>configure.ac <>configure.ac < configure.ac << END AC_INIT([$me], [3.5.3.2]) diff --git a/t/gnits2.sh b/t/gnits2.sh index 337c0ae..61243f3 100755 --- a/t/gnits2.sh +++ b/t/gnits2.sh @@ -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 diff --git a/t/gnits3.sh b/t/gnits3.sh index 0b67253..0fe94d5 100755 --- a/t/gnits3.sh +++ b/t/gnits3.sh @@ -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 diff --git a/t/gnumake.sh b/t/gnumake.sh index ed660a2..a144755 100755 --- a/t/gnumake.sh +++ b/t/gnumake.sh @@ -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]) diff --git a/t/gnuwarn.sh b/t/gnuwarn.sh index 1e468a0..4a1c03b 100755 --- a/t/gnuwarn.sh +++ b/t/gnuwarn.sh @@ -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" diff --git a/t/gnuwarn2.sh b/t/gnuwarn2.sh index 0cdc710..5667e27 100755 --- a/t/gnuwarn2.sh +++ b/t/gnuwarn2.sh @@ -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]) diff --git a/t/hdr-vars-defined-once.sh b/t/hdr-vars-defined-once.sh index 92279d7..3380074 100755 --- a/t/hdr-vars-defined-once.sh +++ b/t/hdr-vars-defined-once.sh @@ -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 <> configure.ac << 'END' AC_SUBST([MY_HEADERS]) diff --git a/t/help-depend.sh b/t/help-depend.sh index 9a27d0b..12e89bb 100755 --- a/t/help-depend.sh +++ b/t/help-depend.sh @@ -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 < configure.ac < configure.ac < configure.ac < configure.ac < configure.ac < Makefile.am $ACLOCAL diff --git a/t/help-upc.sh b/t/help-upc.sh index 822eadf..6ccd962 100755 --- a/t/help-upc.sh +++ b/t/help-upc.sh @@ -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 <>configure.ac : >CHANGELOG diff --git a/t/implicit.sh b/t/implicit.sh index 86d6032..1d53fac 100755 --- a/t/implicit.sh +++ b/t/implicit.sh @@ -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 diff --git a/t/init.sh b/t/init.sh index 94cdd64..0d047bd 100755 --- 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 diff --git a/t/init2.sh b/t/init2.sh index fa2a065..94af06f 100755 --- a/t/init2.sh +++ b/t/init2.sh @@ -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 <> configure.ac diff --git a/t/install-info-dir.sh b/t/install-info-dir.sh index abf16e3..c348b5e 100755 --- a/t/install-info-dir.sh +++ b/t/install-info-dir.sh @@ -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" diff --git a/t/install2.sh b/t/install2.sh index 96d1c56..3aae3c0 100755 --- a/t/install2.sh +++ b/t/install2.sh @@ -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]) diff --git a/t/installdir.sh b/t/installdir.sh index 1cef2c1..2978f5c 100755 --- a/t/installdir.sh +++ b/t/installdir.sh @@ -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 diff --git a/t/instdat.sh b/t/instdat.sh index b6fad9d..afee3cb 100755 --- a/t/instdat.sh +++ b/t/instdat.sh @@ -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 <Makefile.am << 'EOF' # User directories. diff --git a/t/instdir-cond.sh b/t/instdir-cond.sh index d0be1a3..f646215 100755 --- a/t/instdir-cond.sh +++ b/t/instdir-cond.sh @@ -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]) diff --git a/t/instdir-cond2.sh b/t/instdir-cond2.sh index 559a7fe..a5fff9b 100755 --- a/t/instdir-cond2.sh +++ b/t/instdir-cond2.sh @@ -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]) diff --git a/t/instdir-java.sh b/t/instdir-java.sh index f31cdb7..7d7bf3d 100755 --- a/t/instdir-java.sh +++ b/t/instdir-java.sh @@ -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 diff --git a/t/instdir-lisp.sh b/t/instdir-lisp.sh index 59bf8b0..d37083d 100755 --- a/t/instdir-lisp.sh +++ b/t/instdir-lisp.sh @@ -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 diff --git a/t/instdir-ltlib.sh b/t/instdir-ltlib.sh index c6578e2..2c6deb7 100755 --- a/t/instdir-ltlib.sh +++ b/t/instdir-ltlib.sh @@ -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 diff --git a/t/instdir-no-empty.sh b/t/instdir-no-empty.sh index bef179d..0881fb8 100755 --- a/t/instdir-no-empty.sh +++ b/t/instdir-no-empty.sh @@ -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]) diff --git a/t/instdir-prog.sh b/t/instdir-prog.sh index ed0acc1..e59431c 100755 --- a/t/instdir-prog.sh +++ b/t/instdir-prog.sh @@ -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 diff --git a/t/instdir-python.sh b/t/instdir-python.sh index d57fb4b..1a20bea 100755 --- a/t/instdir-python.sh +++ b/t/instdir-python.sh @@ -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 diff --git a/t/instdir-texi.sh b/t/instdir-texi.sh index 33bf636..d8c575c 100755 --- a/t/instdir-texi.sh +++ b/t/instdir-texi.sh @@ -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" diff --git a/t/instdir.sh b/t/instdir.sh index 6c489fb..ef45105 100755 --- a/t/instdir.sh +++ b/t/instdir.sh @@ -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]) diff --git a/t/instdir2.sh b/t/instdir2.sh index 638e25a..e777bf6 100755 --- a/t/instdir2.sh +++ b/t/instdir2.sh @@ -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]) diff --git a/t/instexec.sh b/t/instexec.sh index f394d84..dc41c57 100755 --- a/t/instexec.sh +++ b/t/instexec.sh @@ -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 diff --git a/t/instfail-info.sh b/t/instfail-info.sh index fea2f5b..59fb1eb 100755 --- a/t/instfail-info.sh +++ b/t/instfail-info.sh @@ -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 <>configure.ac <<'END' AC_OUTPUT diff --git a/t/instfail-libtool.sh b/t/instfail-libtool.sh index 042f077..d5613b1 100755 --- a/t/instfail-libtool.sh +++ b/t/instfail-libtool.sh @@ -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 <>configure.ac <>configure.ac <<'EOF' AC_PROG_LN_S diff --git a/t/instman.sh b/t/instman.sh index 612f9a8..0616684 100755 --- a/t/instman.sh +++ b/t/instman.sh @@ -17,7 +17,7 @@ # Make sure the MKDIR_P invocation is correct in install-man # target. Bug reported by Gordon Irlam . -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/instman2.sh b/t/instman2.sh index 30baf91..b124f36 100755 --- a/t/instman2.sh +++ b/t/instman2.sh @@ -17,7 +17,7 @@ # Test to make sure mkinstalldirs invocation correct in install-man # target. Bug reported by Gordon Irlam . -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'EOF' man8_MANS = frob.8 diff --git a/t/instmany-mans.sh b/t/instmany-mans.sh index 4fd703b..1a581be 100755 --- a/t/instmany-mans.sh +++ b/t/instmany-mans.sh @@ -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 diff --git a/t/instmany-python.sh b/t/instmany-python.sh index 9cc659a..b7a614c 100755 --- a/t/instmany-python.sh +++ b/t/instmany-python.sh @@ -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 diff --git a/t/instmany.sh b/t/instmany.sh index 369e23a..6400517 100755 --- a/t/instmany.sh +++ b/t/instmany.sh @@ -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 diff --git a/t/instsh.sh b/t/instsh.sh index e7924b2..4a452ba 100755 --- a/t/instsh.sh +++ b/t/instsh.sh @@ -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 diff --git a/t/instsh2.sh b/t/instsh2.sh index 9e6182c..506eee9 100755 --- a/t/instsh2.sh +++ b/t/instsh2.sh @@ -17,7 +17,7 @@ # Various install-sh checks. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh get_shell_script install-sh diff --git a/t/instsh3.sh b/t/instsh3.sh index f823893..23334bb 100755 --- a/t/instsh3.sh +++ b/t/instsh3.sh @@ -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 \ diff --git a/t/instspc.tap b/t/instspc.tap index 2a0fb10..aace95c 100755 --- a/t/instspc.tap +++ b/t/instspc.tap @@ -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 () diff --git a/t/interp.sh b/t/interp.sh index 766e878..18d06c1 100755 --- a/t/interp.sh +++ b/t/interp.sh @@ -16,7 +16,7 @@ # Test to make sure variable interpolation works. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/interp2.sh b/t/interp2.sh index 5da8a61..32a357d 100755 --- a/t/interp2.sh +++ b/t/interp2.sh @@ -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 diff --git a/t/java-check.sh b/t/java-check.sh index c9ae66c..d4b4f0e 100755 --- a/t/java-check.sh +++ b/t/java-check.sh @@ -19,7 +19,7 @@ # See automake bug#8234. required=javac -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/java-clean.sh b/t/java-clean.sh index 5457f19..a6b465f 100755 --- a/t/java-clean.sh +++ b/t/java-clean.sh @@ -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 diff --git a/t/java-compile-install.sh b/t/java-compile-install.sh index 4f78ea8..89749e5 100755 --- a/t/java-compile-install.sh +++ b/t/java-compile-install.sh @@ -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 diff --git a/t/java-compile-run-flat.sh b/t/java-compile-run-flat.sh index 7d228bb..c4725b0 100755 --- a/t/java-compile-run-flat.sh +++ b/t/java-compile-run-flat.sh @@ -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 diff --git a/t/java-compile-run-nested.sh b/t/java-compile-run-nested.sh index 9c0958c..2d99345 100755 --- a/t/java-compile-run-nested.sh +++ b/t/java-compile-run-nested.sh @@ -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 diff --git a/t/java-empty-classpath.sh b/t/java-empty-classpath.sh index c54da0b..a610240 100755 --- a/t/java-empty-classpath.sh +++ b/t/java-empty-classpath.sh @@ -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]) diff --git a/t/java-extra.sh b/t/java-extra.sh index 7b3a759..4ab8de0 100755 --- a/t/java-extra.sh +++ b/t/java-extra.sh @@ -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"]) diff --git a/t/java-mix.sh b/t/java-mix.sh index 25e8511..65ffd68 100755 --- a/t/java-mix.sh +++ b/t/java-mix.sh @@ -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 diff --git a/t/java-no-duplicate.sh b/t/java-no-duplicate.sh index b5ad9fc..ec7467e 100755 --- a/t/java-no-duplicate.sh +++ b/t/java-no-duplicate.sh @@ -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 diff --git a/t/java-nobase.sh b/t/java-nobase.sh index a643b3d..b49210b 100755 --- a/t/java-nobase.sh +++ b/t/java-nobase.sh @@ -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 diff --git a/t/java-noinst.sh b/t/java-noinst.sh index 8bb3832..558a8aa 100755 --- a/t/java-noinst.sh +++ b/t/java-noinst.sh @@ -18,7 +18,7 @@ # be installed. required=javac -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/java-rebuild.sh b/t/java-rebuild.sh index 5b5f296..3b15c58 100755 --- a/t/java-rebuild.sh +++ b/t/java-rebuild.sh @@ -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 diff --git a/t/java-sources.sh b/t/java-sources.sh index 532cb1f..b0d51ba 100755 --- a/t/java-sources.sh +++ b/t/java-sources.sh @@ -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 diff --git a/t/java-uninstall.sh b/t/java-uninstall.sh index a128406..175b9c6 100755 --- a/t/java-uninstall.sh +++ b/t/java-uninstall.sh @@ -17,7 +17,7 @@ # Check uninstallation of Java class files. required=javac -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/java.sh b/t/java.sh index 0103eea..b1cf51d 100755 --- 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 diff --git a/t/java2.sh b/t/java2.sh index 286fdd6..c9064ac 100755 --- a/t/java2.sh +++ b/t/java2.sh @@ -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) diff --git a/t/java3.sh b/t/java3.sh index eab7203..f7fdf65 100755 --- a/t/java3.sh +++ b/t/java3.sh @@ -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]) diff --git a/t/javadir-undefined.sh b/t/javadir-undefined.sh index fb0872e..e0764bd 100755 --- a/t/javadir-undefined.sh +++ b/t/javadir-undefined.sh @@ -20,7 +20,7 @@ # the *.class files). # See automake bug#8461. -. ./defs || exit 1 +. test-init.sh $ACLOCAL diff --git a/t/javaflags.sh b/t/javaflags.sh index 17f0dad..e3aad99 100755 --- a/t/javaflags.sh +++ b/t/javaflags.sh @@ -16,7 +16,7 @@ # Check support for $(JAVACFLAGS) and $(AM_JAVACFLAGS). -. ./defs || exit 1 +. test-init.sh cat > fake-javac <<'END' #!/bin/sh diff --git a/t/javaprim.sh b/t/javaprim.sh index a5c4a62..6d039c2 100755 --- a/t/javaprim.sh +++ b/t/javaprim.sh @@ -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]) diff --git a/t/javasubst.sh b/t/javasubst.sh index b6929b8..e0e8aca 100755 --- a/t/javasubst.sh +++ b/t/javasubst.sh @@ -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]) diff --git a/t/ldadd.sh b/t/ldadd.sh index 9487459..9fbaf2c 100755 --- a/t/ldadd.sh +++ b/t/ldadd.sh @@ -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 diff --git a/t/ldflags.sh b/t/ldflags.sh index 7eb9be3..d25231d 100755 --- a/t/ldflags.sh +++ b/t/ldflags.sh @@ -18,7 +18,7 @@ # PR 77. required=libtool -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/lex-clean-cxx.sh b/t/lex-clean-cxx.sh index 38a129c..52becb7 100755 --- a/t/lex-clean-cxx.sh +++ b/t/lex-clean-cxx.sh @@ -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 diff --git a/t/lex-clean.sh b/t/lex-clean.sh index 3bc52d3..7fb7a2e 100755 --- a/t/lex-clean.sh +++ b/t/lex-clean.sh @@ -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 diff --git a/t/lex-depend-cxx.sh b/t/lex-depend-cxx.sh index 15557a8..0e72281 100755 --- a/t/lex-depend-cxx.sh +++ b/t/lex-depend-cxx.sh @@ -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 diff --git a/t/lex-depend-grep.sh b/t/lex-depend-grep.sh index e7c9538..7828088 100755 --- a/t/lex-depend-grep.sh +++ b/t/lex-depend-grep.sh @@ -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 diff --git a/t/lex-depend.sh b/t/lex-depend.sh index 7280b84..081f1ba 100755 --- a/t/lex-depend.sh +++ b/t/lex-depend.sh @@ -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 diff --git a/t/lex-header.sh b/t/lex-header.sh index f8d7333..d50a1ef 100755 --- a/t/lex-header.sh +++ b/t/lex-header.sh @@ -18,7 +18,7 @@ # bugs #8844 and #9933). required='cc flex' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/lex-lib-external.sh b/t/lex-lib-external.sh index 9a64266..5a2e3c3 100755 --- a/t/lex-lib-external.sh +++ b/t/lex-lib-external.sh @@ -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 diff --git a/t/lex-lib.sh b/t/lex-lib.sh index 11767d8..e0b05f5 100755 --- a/t/lex-lib.sh +++ b/t/lex-lib.sh @@ -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 diff --git a/t/lex-libobj.sh b/t/lex-libobj.sh index 9bd597a..f07b1bc 100755 --- a/t/lex-libobj.sh +++ b/t/lex-libobj.sh @@ -18,7 +18,7 @@ # LIBOBJ machinery. required='cc lex' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/lex-line.sh b/t/lex-line.sh index 11f40b8..4a51c1e 100755 --- a/t/lex-line.sh +++ b/t/lex-line.sh @@ -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]) diff --git a/t/lex-nodist.sh b/t/lex-nodist.sh index 0bbb6cb..e318c3e 100755 --- a/t/lex-nodist.sh +++ b/t/lex-nodist.sh @@ -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 diff --git a/t/lex-noyywrap.sh b/t/lex-noyywrap.sh index c4c4964..fed6cb0 100755 --- a/t/lex-noyywrap.sh +++ b/t/lex-noyywrap.sh @@ -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 diff --git a/t/lex-pr204.sh b/t/lex-pr204.sh index 8172ec7..f6b15ab 100755 --- a/t/lex-pr204.sh +++ b/t/lex-pr204.sh @@ -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 diff --git a/t/lex-subobj-nodep.sh b/t/lex-subobj-nodep.sh index 0c021a2..2d64051 100755 --- a/t/lex-subobj-nodep.sh +++ b/t/lex-subobj-nodep.sh @@ -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 diff --git a/t/lex.sh b/t/lex.sh index 34a1493..754031d 100755 --- 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 . -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/lex2.sh b/t/lex2.sh index bfdde02..c959db7 100755 --- 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 diff --git a/t/lex3.sh b/t/lex3.sh index b008880..633d55a 100755 --- 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 diff --git a/t/lex5.sh b/t/lex5.sh index cce028a..d8ccc7a 100755 --- 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 diff --git a/t/lexcpp.sh b/t/lexcpp.sh index d46c82d..90f2dc0 100755 --- a/t/lexcpp.sh +++ b/t/lexcpp.sh @@ -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 diff --git a/t/lexvpath.sh b/t/lexvpath.sh index 569048e..04098bb 100755 --- a/t/lexvpath.sh +++ b/t/lexvpath.sh @@ -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@' diff --git a/t/lflags.sh b/t/lflags.sh index 933f896..b277521 100755 --- a/t/lflags.sh +++ b/t/lflags.sh @@ -20,7 +20,7 @@ # and yflags2.sh. required=cc -. ./defs || exit 1 +. test-init.sh cat >fake-lex <<'END' #!/bin/sh diff --git a/t/lflags2.sh b/t/lflags2.sh index f657da5..5e5e8bf 100755 --- a/t/lflags2.sh +++ b/t/lflags2.sh @@ -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 diff --git a/t/libexec.sh b/t/libexec.sh index e4255e0..14c6739 100755 --- a/t/libexec.sh +++ b/t/libexec.sh @@ -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 diff --git a/t/libobj-basic.sh b/t/libobj-basic.sh index c730c52..c9e16da 100755 --- a/t/libobj-basic.sh +++ b/t/libobj-basic.sh @@ -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' diff --git a/t/libobj10.sh b/t/libobj10.sh index 1c0736b..d8e8d58 100755 --- a/t/libobj10.sh +++ b/t/libobj10.sh @@ -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 diff --git a/t/libobj12.sh b/t/libobj12.sh index 6c917e2..910dd79 100755 --- a/t/libobj12.sh +++ b/t/libobj12.sh @@ -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 diff --git a/t/libobj13.sh b/t/libobj13.sh index 3a9ee71..f872ec7 100755 --- a/t/libobj13.sh +++ b/t/libobj13.sh @@ -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 diff --git a/t/libobj14.sh b/t/libobj14.sh index 266aaad..17ba986 100755 --- a/t/libobj14.sh +++ b/t/libobj14.sh @@ -19,7 +19,7 @@ # that uses it. # Report from Bill Davidson. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'EOF' AC_PROG_CC diff --git a/t/libobj15a.sh b/t/libobj15a.sh index c7c30e8..b60154d 100755 --- a/t/libobj15a.sh +++ b/t/libobj15a.sh @@ -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 diff --git a/t/libobj15b.sh b/t/libobj15b.sh index 71ace12..004c539 100755 --- a/t/libobj15b.sh +++ b/t/libobj15b.sh @@ -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 diff --git a/t/libobj15c.sh b/t/libobj15c.sh index ccaa6bd..6db5f43 100755 --- a/t/libobj15c.sh +++ b/t/libobj15c.sh @@ -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 diff --git a/t/libobj16a.sh b/t/libobj16a.sh index 9bf602a..f2b32ac 100755 --- a/t/libobj16a.sh +++ b/t/libobj16a.sh @@ -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' diff --git a/t/libobj16b.sh b/t/libobj16b.sh index 6005725..abc6a66 100755 --- a/t/libobj16b.sh +++ b/t/libobj16b.sh @@ -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' diff --git a/t/libobj17.sh b/t/libobj17.sh index e4277f9..bc743b2 100755 --- a/t/libobj17.sh +++ b/t/libobj17.sh @@ -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 diff --git a/t/libobj18.sh b/t/libobj18.sh index 77d7d54..209cab1 100755 --- a/t/libobj18.sh +++ b/t/libobj18.sh @@ -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 diff --git a/t/libobj19.sh b/t/libobj19.sh index cae9e81..7a4c895 100755 --- a/t/libobj19.sh +++ b/t/libobj19.sh @@ -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]) diff --git a/t/libobj2.sh b/t/libobj2.sh index 778dbd3..cce0627 100755 --- a/t/libobj2.sh +++ b/t/libobj2.sh @@ -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]) diff --git a/t/libobj20a.sh b/t/libobj20a.sh index 52c41ec..3f67144 100755 --- a/t/libobj20a.sh +++ b/t/libobj20a.sh @@ -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]) diff --git a/t/libobj20b.sh b/t/libobj20b.sh index d9ba8da..b42b8c9 100755 --- a/t/libobj20b.sh +++ b/t/libobj20b.sh @@ -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]) diff --git a/t/libobj20c.sh b/t/libobj20c.sh index fe6ae63..295eeac 100755 --- a/t/libobj20c.sh +++ b/t/libobj20c.sh @@ -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]) diff --git a/t/libobj3.sh b/t/libobj3.sh index 1c78cba..c423591 100755 --- a/t/libobj3.sh +++ b/t/libobj3.sh @@ -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 diff --git a/t/libobj4.sh b/t/libobj4.sh index c7a199e..f2ab0cf 100755 --- a/t/libobj4.sh +++ b/t/libobj4.sh @@ -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 diff --git a/t/libobj5.sh b/t/libobj5.sh index d8b7e2d..7d1d510 100755 --- a/t/libobj5.sh +++ b/t/libobj5.sh @@ -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 diff --git a/t/libobj7.sh b/t/libobj7.sh index 1630bee..1fa6d20 100755 --- a/t/libobj7.sh +++ b/t/libobj7.sh @@ -17,7 +17,7 @@ # Test for multiple replacement functions. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/library.sh b/t/library.sh index e95fecb..8675f28 100755 --- a/t/library.sh +++ b/t/library.sh @@ -16,7 +16,7 @@ # Test for _DEPENDENCIES with libraries. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_RANLIB diff --git a/t/library2.sh b/t/library2.sh index 98c880b..0de45af 100755 --- a/t/library2.sh +++ b/t/library2.sh @@ -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 diff --git a/t/library3.sh b/t/library3.sh index 308e748..642c3c9 100755 --- a/t/library3.sh +++ b/t/library3.sh @@ -16,7 +16,7 @@ # Make sure Automake simplify conditions in diagnostics. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <> configure.ac << 'END' AM_PROG_AR diff --git a/t/libtoo11.sh b/t/libtoo11.sh index 1f91f19..5ebcf42 100755 --- a/t/libtoo11.sh +++ b/t/libtoo11.sh @@ -18,7 +18,7 @@ # Report by Charles Wilson. required='cc libtoolize' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_LIBTOOL diff --git a/t/libtool-macros.sh b/t/libtool-macros.sh index 17fea06..c50777b 100755 --- a/t/libtool-macros.sh +++ b/t/libtool-macros.sh @@ -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 diff --git a/t/libtool.sh b/t/libtool.sh index dd918a1..d1f1162 100755 --- a/t/libtool.sh +++ b/t/libtool.sh @@ -18,7 +18,7 @@ # Report from Kevin Dalley. required=libtool -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_LIBTOOL_DLOPEN diff --git a/t/libtool2.sh b/t/libtool2.sh index d9db4aa..df25abb 100755 --- a/t/libtool2.sh +++ b/t/libtool2.sh @@ -18,7 +18,7 @@ # Report from Eric Magnien. required=libtoolize -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/libtool3.sh b/t/libtool3.sh index fdbd86d..b86c84f 100755 --- a/t/libtool3.sh +++ b/t/libtool3.sh @@ -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 diff --git a/t/libtool4.sh b/t/libtool4.sh index e8704b7..84fa95d 100755 --- a/t/libtool4.sh +++ b/t/libtool4.sh @@ -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 diff --git a/t/libtool5.sh b/t/libtool5.sh index 7605098..9f7e995 100755 --- a/t/libtool5.sh +++ b/t/libtool5.sh @@ -19,7 +19,7 @@ # Report from Harlan Stenn. required='libtoolize' -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'END' AM_CONDITIONAL([COND1], [true]) diff --git a/t/libtool6.sh b/t/libtool6.sh index 19f30e7..34c8dc8 100755 --- a/t/libtool6.sh +++ b/t/libtool6.sh @@ -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]) diff --git a/t/libtool7.sh b/t/libtool7.sh index 59e9e25..f810b69 100755 --- a/t/libtool7.sh +++ b/t/libtool7.sh @@ -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 diff --git a/t/libtool8.sh b/t/libtool8.sh index 8cfb8e3..edf432d 100755 --- a/t/libtool8.sh +++ b/t/libtool8.sh @@ -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]) diff --git a/t/libtool9.sh b/t/libtool9.sh index 1bb85cc..4304467 100755 --- a/t/libtool9.sh +++ b/t/libtool9.sh @@ -20,7 +20,7 @@ # xxx_LDFLAGS. required='cc libtoolize' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/license.sh b/t/license.sh index cad4307..bda8b86 100755 --- a/t/license.sh +++ b/t/license.sh @@ -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 diff --git a/t/license2.sh b/t/license2.sh index 736e96f..ed1fd3c 100755 --- a/t/license2.sh +++ b/t/license2.sh @@ -16,7 +16,7 @@ # Check that installing 'COPYING' outputs a warning. -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' AUTOMAKE_OPTIONS = gnu diff --git a/t/link_c_cxx.sh b/t/link_c_cxx.sh index 27dcb24..14710e8 100755 --- a/t/link_c_cxx.sh +++ b/t/link_c_cxx.sh @@ -17,7 +17,7 @@ # Test to make sure the C++ linker is used when appropriate. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/link_cond.sh b/t/link_cond.sh index a5ac4b1..6913d47 100755 --- a/t/link_cond.sh +++ b/t/link_cond.sh @@ -21,7 +21,7 @@ # See automake bug#11089. required='cc c++' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/link_dist.sh b/t/link_dist.sh index 9ad4319..e9011e1 100755 --- a/t/link_dist.sh +++ b/t/link_dist.sh @@ -18,7 +18,7 @@ # *_SOURCES # Richard Boulton -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/link_f90_only.sh b/t/link_f90_only.sh index f9c7c18..90348d7 100755 --- a/t/link_f90_only.sh +++ b/t/link_f90_only.sh @@ -17,7 +17,7 @@ # Test to make sure the Fortran 90 linker is used when appropriate. # (copied from 'link_f_only.sh') Mike Nolta -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_FC diff --git a/t/link_f_only.sh b/t/link_f_only.sh index 5d27025..a176902 100755 --- a/t/link_f_only.sh +++ b/t/link_f_only.sh @@ -17,7 +17,7 @@ # Test to make sure the Fortran 77 linker is used when appropriate. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_F77 diff --git a/t/link_fc.sh b/t/link_fc.sh index f334ad8..76b9053 100755 --- a/t/link_fc.sh +++ b/t/link_fc.sh @@ -17,7 +17,7 @@ # Test to make sure the Fortran 77 linker is used when appropriate. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/link_fccxx.sh b/t/link_fccxx.sh index 03b71f5..059f155 100755 --- a/t/link_fccxx.sh +++ b/t/link_fccxx.sh @@ -17,7 +17,7 @@ # Test to make sure the C++ linker is used when appropriate. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/link_fcxx.sh b/t/link_fcxx.sh index 29893d8..723cddc 100755 --- a/t/link_fcxx.sh +++ b/t/link_fcxx.sh @@ -17,7 +17,7 @@ # Test to make sure the C++ linker is used when appropriate. # Matthew D. Langston -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CXX diff --git a/t/link_override.sh b/t/link_override.sh index 1bf1085..682225f 100755 --- a/t/link_override.sh +++ b/t/link_override.sh @@ -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 diff --git a/t/lisp-flags.sh b/t/lisp-flags.sh index 1d7d8f3..4c52f2e 100755 --- a/t/lisp-flags.sh +++ b/t/lisp-flags.sh @@ -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 diff --git a/t/lisp-loadpath.sh b/t/lisp-loadpath.sh index e0f21ce..43e2d09 100755 --- a/t/lisp-loadpath.sh +++ b/t/lisp-loadpath.sh @@ -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 diff --git a/t/lisp-pr11806.sh b/t/lisp-pr11806.sh index c372ea5..edcf9ba 100755 --- a/t/lisp-pr11806.sh +++ b/t/lisp-pr11806.sh @@ -18,7 +18,7 @@ # See automake bug#11806. required=emacs -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_PATH_LISPDIR diff --git a/t/lisp-subdir-mix.sh b/t/lisp-subdir-mix.sh index 20073ec..9688eec 100755 --- a/t/lisp-subdir-mix.sh +++ b/t/lisp-subdir-mix.sh @@ -20,7 +20,7 @@ # judicious use of $(AM_ELCFLAGS). required=emacs -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_PATH_LISPDIR diff --git a/t/lisp-subdir.sh b/t/lisp-subdir.sh index 5c67c53..9836400 100755 --- a/t/lisp-subdir.sh +++ b/t/lisp-subdir.sh @@ -17,7 +17,7 @@ # Emacs lisp files in subdirectories. required=emacs -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_PATH_LISPDIR diff --git a/t/lisp-subdir2.sh b/t/lisp-subdir2.sh index d7517ad..0ea3e9f 100755 --- a/t/lisp-subdir2.sh +++ b/t/lisp-subdir2.sh @@ -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 diff --git a/t/lisp2.sh b/t/lisp2.sh index 4f07911..dfd6800 100755 --- a/t/lisp2.sh +++ b/t/lisp2.sh @@ -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. diff --git a/t/lisp3.sh b/t/lisp3.sh index a752151..7717c1c 100755 --- a/t/lisp3.sh +++ b/t/lisp3.sh @@ -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 diff --git a/t/lisp4.sh b/t/lisp4.sh index 41dc873..1b2809c 100755 --- a/t/lisp4.sh +++ b/t/lisp4.sh @@ -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 diff --git a/t/lisp5.sh b/t/lisp5.sh index 28d7a62..de9c118 100755 --- a/t/lisp5.sh +++ b/t/lisp5.sh @@ -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 diff --git a/t/lisp6.sh b/t/lisp6.sh index c84917c..ae81a1c 100755 --- a/t/lisp6.sh +++ b/t/lisp6.sh @@ -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 diff --git a/t/lisp7.sh b/t/lisp7.sh index 7efa27f..4c4676e 100755 --- a/t/lisp7.sh +++ b/t/lisp7.sh @@ -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 diff --git a/t/lisp8.sh b/t/lisp8.sh index 7464c68..7348e41 100755 --- a/t/lisp8.sh +++ b/t/lisp8.sh @@ -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 diff --git a/t/lispdry.sh b/t/lispdry.sh index 765942d..f57e6dc 100755 --- a/t/lispdry.sh +++ b/t/lispdry.sh @@ -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 diff --git a/t/listval.sh b/t/listval.sh index 8bd6b79..2aa4d06 100755 --- a/t/listval.sh +++ b/t/listval.sh @@ -18,7 +18,7 @@ # From Adam J. Richter. required=libtool -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_SUBST([LTLIBOBJS]) diff --git a/t/location.sh b/t/location.sh index dab1e33..0ff7090 100755 --- a/t/location.sh +++ b/t/location.sh @@ -16,7 +16,7 @@ # Test for locations in error messages. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([COND1], [true]) diff --git a/t/longlin2.sh b/t/longlin2.sh index 1174a14..1fcc54e 100755 --- a/t/longlin2.sh +++ b/t/longlin2.sh @@ -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 diff --git a/t/longline.sh b/t/longline.sh index d0240fd..b262f45 100755 --- a/t/longline.sh +++ b/t/longline.sh @@ -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; diff --git a/t/ltcond.sh b/t/ltcond.sh index ae5415c..02e8bad 100755 --- a/t/ltcond.sh +++ b/t/ltcond.sh @@ -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]) diff --git a/t/ltcond2.sh b/t/ltcond2.sh index 49b14d8..a16a7cf 100755 --- a/t/ltcond2.sh +++ b/t/ltcond2.sh @@ -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 diff --git a/t/ltconv.sh b/t/ltconv.sh index cf06271..580ee6d 100755 --- a/t/ltconv.sh +++ b/t/ltconv.sh @@ -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 diff --git a/t/ltdeps.sh b/t/ltdeps.sh index a13ae03..950bc42 100755 --- a/t/ltdeps.sh +++ b/t/ltdeps.sh @@ -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 diff --git a/t/ltinit.sh b/t/ltinit.sh index 69e8d55..a98cffa 100755 --- a/t/ltinit.sh +++ b/t/ltinit.sh @@ -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 diff --git a/t/ltinstloc.sh b/t/ltinstloc.sh index f12da77..e476c98 100755 --- a/t/ltinstloc.sh +++ b/t/ltinstloc.sh @@ -18,7 +18,7 @@ required='libtoolize' -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'END' AC_PROG_CC diff --git a/t/ltlibobjs.sh b/t/ltlibobjs.sh index ed0d2ed..1e8ea24 100755 --- a/t/ltlibobjs.sh +++ b/t/ltlibobjs.sh @@ -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]) diff --git a/t/ltlibsrc.sh b/t/ltlibsrc.sh index 7c84814..acce8bb 100755 --- a/t/ltlibsrc.sh +++ b/t/ltlibsrc.sh @@ -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 diff --git a/t/ltorder.sh b/t/ltorder.sh index c8f60ed..32d0816 100755 --- a/t/ltorder.sh +++ b/t/ltorder.sh @@ -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 diff --git a/t/lzma.sh b/t/lzma.sh index da38c31..46015ed 100755 --- 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' diff --git a/t/m4-inclusion.sh b/t/m4-inclusion.sh index 3da20ee..c845617 100755 --- a/t/m4-inclusion.sh +++ b/t/m4-inclusion.sh @@ -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]) diff --git a/t/maintclean-vpath.sh b/t/maintclean-vpath.sh index b5c6ffe..0732fab 100755 --- a/t/maintclean-vpath.sh +++ b/t/maintclean-vpath.sh @@ -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]) diff --git a/t/maintclean.sh b/t/maintclean.sh index 757cf85..b7fd1b2 100755 --- a/t/maintclean.sh +++ b/t/maintclean.sh @@ -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]) diff --git a/t/maintmode-configure-msg.sh b/t/maintmode-configure-msg.sh index ebdf4d7..058438d 100755 --- a/t/maintmode-configure-msg.sh +++ b/t/maintmode-configure-msg.sh @@ -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 () { diff --git a/t/make-dryrun.tap b/t/make-dryrun.tap index 1fd255d..adf2f04 100755 --- a/t/make-dryrun.tap +++ b/t/make-dryrun.tap @@ -16,7 +16,7 @@ # Check that $(am__make_dryrun) works as expected. -. ./defs || exit 1 +. test-init.sh plan_ 14 diff --git a/t/make.sh b/t/make.sh index fad2242..1cb8149 100755 --- 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 diff --git a/t/makefile-deps.sh b/t/makefile-deps.sh index 192e56b..b4c5bd7 100755 --- a/t/makefile-deps.sh +++ b/t/makefile-deps.sh @@ -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 diff --git a/t/makej.sh b/t/makej.sh index b339bd7..e8d1ea5 100755 --- a/t/makej.sh +++ b/t/makej.sh @@ -22,7 +22,7 @@ # via autom4te. required=GNUmake -. ./defs || exit 1 +. test-init.sh cat >configure.ac <>configure.ac <<'END' AC_OUTPUT diff --git a/t/maken.sh b/t/maken.sh index ec72008..5087b92 100755 --- a/t/maken.sh +++ b/t/maken.sh @@ -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 diff --git a/t/maken3.sh b/t/maken3.sh index 5f5d87a..dbbdb4a 100755 --- a/t/maken3.sh +++ b/t/maken3.sh @@ -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 diff --git a/t/makevars.sh b/t/makevars.sh index 3654196..4614cd7 100755 --- a/t/makevars.sh +++ b/t/makevars.sh @@ -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 diff --git a/t/man.sh b/t/man.sh index 3feb3fa..d5c9ece 100755 --- 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 diff --git a/t/man2.sh b/t/man2.sh index a7b7646..31c4af5 100755 --- 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 diff --git a/t/man3.sh b/t/man3.sh index 2604c01..8904e54 100755 --- 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 diff --git a/t/man5.sh b/t/man5.sh index d3c2270..a04ccfe 100755 --- 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 diff --git a/t/man6.sh b/t/man6.sh index dc90321..d854732 100755 --- 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 \ diff --git a/t/man7.sh b/t/man7.sh index 5791b72..3ce410e 100755 --- 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 diff --git a/t/man8.sh b/t/man8.sh index a7116ae..7396006 100755 --- 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 \ diff --git a/t/mdate.sh b/t/mdate.sh index e44144a..009c753 100755 --- a/t/mdate.sh +++ b/t/mdate.sh @@ -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 diff --git a/t/mdate2.sh b/t/mdate2.sh index 6ba5727..ea005fe 100755 --- a/t/mdate2.sh +++ b/t/mdate2.sh @@ -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 diff --git a/t/mdate3.sh b/t/mdate3.sh index aa2755e..409abb7 100755 --- a/t/mdate3.sh +++ b/t/mdate3.sh @@ -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]) diff --git a/t/mdate4.sh b/t/mdate4.sh index 70809a6..912ef41 100755 --- a/t/mdate4.sh +++ b/t/mdate4.sh @@ -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]) diff --git a/t/mdate5.sh b/t/mdate5.sh index 0cbc198..6603667 100755 --- a/t/mdate5.sh +++ b/t/mdate5.sh @@ -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 diff --git a/t/mdate6.sh b/t/mdate6.sh index 110bb2d..fbb8557 100755 --- a/t/mdate6.sh +++ b/t/mdate6.sh @@ -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' diff --git a/t/missing-auxfile-stops-makefiles-creation.sh b/t/missing-auxfile-stops-makefiles-creation.sh index d1c0cd4..f8e91f9 100755 --- a/t/missing-auxfile-stops-makefiles-creation.sh +++ b/t/missing-auxfile-stops-makefiles-creation.sh @@ -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 <> configure.ac << 'END' AC_CONFIG_FILES([sub/Makefile]) diff --git a/t/mkdirp-deprecation.sh b/t/mkdirp-deprecation.sh index 8482dea..6f3b1ee 100755 --- a/t/mkdirp-deprecation.sh +++ b/t/mkdirp-deprecation.sh @@ -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 diff --git a/t/mkinst2.sh b/t/mkinst2.sh index daf8760..5ac297a 100755 --- a/t/mkinst2.sh +++ b/t/mkinst2.sh @@ -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 diff --git a/t/mkinst3.sh b/t/mkinst3.sh index 2582758..02dca5e 100755 --- a/t/mkinst3.sh +++ b/t/mkinst3.sh @@ -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" diff --git a/t/mkinstall.sh b/t/mkinstall.sh index 51c1fe9..3fbb9a5 100755 --- a/t/mkinstall.sh +++ b/t/mkinstall.sh @@ -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 = diff --git a/t/mmode.sh b/t/mmode.sh index 23cb646..ea26c02 100755 --- a/t/mmode.sh +++ b/t/mmode.sh @@ -16,7 +16,7 @@ # Check for AM_MAINTAINER_MODE defaults. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_MAINTAINER_MODE diff --git a/t/mmodely.sh b/t/mmodely.sh index 9147da1..e1b2807 100755 --- a/t/mmodely.sh +++ b/t/mmodely.sh @@ -19,7 +19,7 @@ # From Derek R. Price. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_MAINTAINER_MODE diff --git a/t/no-extra-makefile-code.sh b/t/no-extra-makefile-code.sh index ab0e33d..3673d45 100755 --- a/t/no-extra-makefile-code.sh +++ b/t/no-extra-makefile-code.sh @@ -19,7 +19,7 @@ # by a regression caused by removal of automatic de-ANSI-fication support: # -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/no-spurious-install-recursive.sh b/t/no-spurious-install-recursive.sh index d16b580..583686f 100755 --- a/t/no-spurious-install-recursive.sh +++ b/t/no-spurious-install-recursive.sh @@ -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 diff --git a/t/nobase-libtool.sh b/t/nobase-libtool.sh index 4a66601..af47c01 100755 --- a/t/nobase-libtool.sh +++ b/t/nobase-libtool.sh @@ -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 diff --git a/t/nobase-nodist.sh b/t/nobase-nodist.sh index 1ec466f..ef5dfce 100755 --- a/t/nobase-nodist.sh +++ b/t/nobase-nodist.sh @@ -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 diff --git a/t/nobase-python.sh b/t/nobase-python.sh index dba17f7..fe72ad4 100755 --- a/t/nobase-python.sh +++ b/t/nobase-python.sh @@ -17,7 +17,7 @@ # Make sure nobase_* works for python files. required=python -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <> configure.ac <<'EOF' AC_PROG_CC diff --git a/t/nodef.sh b/t/nodef.sh index 979b906..8197f44 100755 --- a/t/nodef.sh +++ b/t/nodef.sh @@ -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 diff --git a/t/nodef2.sh b/t/nodef2.sh index 2f7bb77..0a6a5ce 100755 --- a/t/nodef2.sh +++ b/t/nodef2.sh @@ -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. diff --git a/t/nodep.sh b/t/nodep.sh index 8a4ce8e..fba3e5f 100755 --- a/t/nodep.sh +++ b/t/nodep.sh @@ -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 diff --git a/t/nodep2.sh b/t/nodep2.sh index 13d1174..5ad04a0 100755 --- a/t/nodep2.sh +++ b/t/nodep2.sh @@ -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 diff --git a/t/nodepcomp.sh b/t/nodepcomp.sh index 25c66b5..9e96dc1 100755 --- a/t/nodepcomp.sh +++ b/t/nodepcomp.sh @@ -16,7 +16,7 @@ # Test to make sure depcomp isn't always required. -. ./defs || exit 1 +. test-init.sh rm -f depcomp diff --git a/t/nodist.sh b/t/nodist.sh index f63ea97..b7f491c 100755 --- a/t/nodist.sh +++ b/t/nodist.sh @@ -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 diff --git a/t/nodist2.sh b/t/nodist2.sh index 9db9dce..36b6691 100755 --- a/t/nodist2.sh +++ b/t/nodist2.sh @@ -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 diff --git a/t/nodist3.sh b/t/nodist3.sh index f45f66f..cb302d2 100755 --- a/t/nodist3.sh +++ b/t/nodist3.sh @@ -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 diff --git a/t/noinst.sh b/t/noinst.sh index ca4440f..39fd72c 100755 --- a/t/noinst.sh +++ b/t/noinst.sh @@ -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: diff --git a/t/noinstdir.sh b/t/noinstdir.sh index 24854cf..e2a7a84 100755 --- a/t/noinstdir.sh +++ b/t/noinstdir.sh @@ -18,7 +18,7 @@ # From Pavel Roskin. required=cc -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' noinst_SCRIPTS = foo.sh diff --git a/t/nolink.sh b/t/nolink.sh index 34219b2..cd0495c 100755 --- a/t/nolink.sh +++ b/t/nolink.sh @@ -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 diff --git a/t/nostdinc.sh b/t/nostdinc.sh index 812c6be..93761d5 100755 --- a/t/nostdinc.sh +++ b/t/nostdinc.sh @@ -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 diff --git a/t/notrans.sh b/t/notrans.sh index d997e97..4b2c803 100755 --- a/t/notrans.sh +++ b/t/notrans.sh @@ -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 diff --git a/t/number.sh b/t/number.sh index e0ccd24..673805e 100755 --- a/t/number.sh +++ b/t/number.sh @@ -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 diff --git a/t/objc-basic.sh b/t/objc-basic.sh index 919bb10..028cbc2 100755 --- a/t/objc-basic.sh +++ b/t/objc-basic.sh @@ -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 diff --git a/t/objc-deps.sh b/t/objc-deps.sh index 31bc30d..2ac4ad0 100755 --- a/t/objc-deps.sh +++ b/t/objc-deps.sh @@ -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 diff --git a/t/objc-flags.sh b/t/objc-flags.sh index 2f65d46..91b0043 100755 --- a/t/objc-flags.sh +++ b/t/objc-flags.sh @@ -16,7 +16,7 @@ # Test Objective C compilation flags. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_OBJC diff --git a/t/objc-megademo.sh b/t/objc-megademo.sh index 4329029..a94f5f7 100755 --- a/t/objc-megademo.sh +++ b/t/objc-megademo.sh @@ -18,7 +18,7 @@ required=libtoolize am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh ## Autotools Input Files. diff --git a/t/objc-minidemo.sh b/t/objc-minidemo.sh index e20a036..8b8d6e7 100755 --- a/t/objc-minidemo.sh +++ b/t/objc-minidemo.sh @@ -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 diff --git a/t/objcxx-basic.sh b/t/objcxx-basic.sh index de94a48..e176660 100755 --- a/t/objcxx-basic.sh +++ b/t/objcxx-basic.sh @@ -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 diff --git a/t/objcxx-deps.sh b/t/objcxx-deps.sh index 950663b..5f35080 100755 --- a/t/objcxx-deps.sh +++ b/t/objcxx-deps.sh @@ -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 diff --git a/t/objcxx-flags.sh b/t/objcxx-flags.sh index 6e79fc5..2dde42b 100755 --- a/t/objcxx-flags.sh +++ b/t/objcxx-flags.sh @@ -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 diff --git a/t/objcxx-minidemo.sh b/t/objcxx-minidemo.sh index cf62e31..52d692d 100755 --- a/t/objcxx-minidemo.sh +++ b/t/objcxx-minidemo.sh @@ -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 diff --git a/t/objext-pr10128.sh b/t/objext-pr10128.sh index e773b72..da77c41 100755 --- a/t/objext-pr10128.sh +++ b/t/objext-pr10128.sh @@ -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 diff --git a/t/oldvars.sh b/t/oldvars.sh index 26f6001..5f42229 100755 --- a/t/oldvars.sh +++ b/t/oldvars.sh @@ -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 = diff --git a/t/order.sh b/t/order.sh index cd0beac..6f5dd17 100755 --- a/t/order.sh +++ b/t/order.sh @@ -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 diff --git a/t/output-order.sh b/t/output-order.sh index 02b26df..569be90 100755 --- a/t/output-order.sh +++ b/t/output-order.sh @@ -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 diff --git a/t/output.sh b/t/output.sh index a21fe89..1a7cd1f 100755 --- a/t/output.sh +++ b/t/output.sh @@ -16,7 +16,7 @@ # Test to make sure files listed in AC_OUTPUT are found. -. ./defs || exit 1 +. test-init.sh cat > configure.ac <> configure.ac << END AC_SUBST([FOO], [top]) diff --git a/t/output11.sh b/t/output11.sh index 7dbd835..5b66a43 100755 --- a/t/output11.sh +++ b/t/output11.sh @@ -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]) diff --git a/t/output12.sh b/t/output12.sh index 80e0f20..8462b48 100755 --- a/t/output12.sh +++ b/t/output12.sh @@ -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]) diff --git a/t/output13.sh b/t/output13.sh index 16bc0f9..e96552a 100755 --- a/t/output13.sh +++ b/t/output13.sh @@ -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]) diff --git a/t/output2.sh b/t/output2.sh index 615f6cf..a69b979 100755 --- a/t/output2.sh +++ b/t/output2.sh @@ -16,7 +16,7 @@ # Another AC_OUTPUT test. From report by Ulrich Drepper. -. ./defs || exit 1 +. test-init.sh cat > configure.ac < configure.ac < configure.ac < configure.ac << 'END' AC_INIT([foo], [bar], [baz]) diff --git a/t/output6.sh b/t/output6.sh index 418e1a5..2d4f3d4 100755 --- a/t/output6.sh +++ b/t/output6.sh @@ -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]) diff --git a/t/output7.sh b/t/output7.sh index d5aca29..22d41f9 100755 --- a/t/output7.sh +++ b/t/output7.sh @@ -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]) diff --git a/t/output8.sh b/t/output8.sh index 62cade5..d9f8344 100755 --- a/t/output8.sh +++ b/t/output8.sh @@ -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 diff --git a/t/output9.sh b/t/output9.sh index 54dc8c1..e5b55fe 100755 --- a/t/output9.sh +++ b/t/output9.sh @@ -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]) diff --git a/t/override-conditional-1.sh b/t/override-conditional-1.sh index 42e0350..8ccae76 100755 --- a/t/override-conditional-1.sh +++ b/t/override-conditional-1.sh @@ -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"]) diff --git a/t/override-conditional-2.sh b/t/override-conditional-2.sh index 58ab1fd..00fa63d 100755 --- a/t/override-conditional-2.sh +++ b/t/override-conditional-2.sh @@ -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], [:]) diff --git a/t/override-html.sh b/t/override-html.sh index 777d946..c5fbebb 100755 --- a/t/override-html.sh +++ b/t/override-html.sh @@ -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: diff --git a/t/override-suggest-local.sh b/t/override-suggest-local.sh index 11b7fb9..671683f 100755 --- a/t/override-suggest-local.sh +++ b/t/override-suggest-local.sh @@ -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: diff --git a/t/parallel-am.sh b/t/parallel-am.sh index bd50af9..4b6ea5f 100755 --- a/t/parallel-am.sh +++ b/t/parallel-am.sh @@ -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]) diff --git a/t/parallel-am2.sh b/t/parallel-am2.sh index 0cca565..cb9853b 100755 --- a/t/parallel-am2.sh +++ b/t/parallel-am2.sh @@ -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 diff --git a/t/parallel-am3.sh b/t/parallel-am3.sh index 1bc12bb..9951aa5 100755 --- a/t/parallel-am3.sh +++ b/t/parallel-am3.sh @@ -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]) diff --git a/t/parallel-tests-basics.sh b/t/parallel-tests-basics.sh index a1062d3..3022e22 100755 --- a/t/parallel-tests-basics.sh +++ b/t/parallel-tests-basics.sh @@ -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 diff --git a/t/parallel-tests-cmdline-override.sh b/t/parallel-tests-cmdline-override.sh index 4e8780f..37215a6 100755 --- a/t/parallel-tests-cmdline-override.sh +++ b/t/parallel-tests-cmdline-override.sh @@ -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 diff --git a/t/parallel-tests-concurrency-2.sh b/t/parallel-tests-concurrency-2.sh index 1a88ddf..bb38d50 100755 --- a/t/parallel-tests-concurrency-2.sh +++ b/t/parallel-tests-concurrency-2.sh @@ -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 diff --git a/t/parallel-tests-concurrency.sh b/t/parallel-tests-concurrency.sh index b606276..702572d 100755 --- a/t/parallel-tests-concurrency.sh +++ b/t/parallel-tests-concurrency.sh @@ -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'";; diff --git a/t/parallel-tests-console-output.sh b/t/parallel-tests-console-output.sh index 2265008..409047e 100755 --- a/t/parallel-tests-console-output.sh +++ b/t/parallel-tests-console-output.sh @@ -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 diff --git a/t/parallel-tests-driver-install.sh b/t/parallel-tests-driver-install.sh index e1a2248..803762b 100755 --- a/t/parallel-tests-driver-install.sh +++ b/t/parallel-tests-driver-install.sh @@ -18,7 +18,7 @@ # in the correct directory. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh cat > configure.ac <> configure.ac diff --git a/t/parallel-tests-dry-run-2.sh b/t/parallel-tests-dry-run-2.sh index 0d324d8..d47a76a 100755 --- a/t/parallel-tests-dry-run-2.sh +++ b/t/parallel-tests-dry-run-2.sh @@ -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 diff --git a/t/parallel-tests-empty-testlogs.sh b/t/parallel-tests-empty-testlogs.sh index 0ed2ff2..37ed83d 100755 --- a/t/parallel-tests-empty-testlogs.sh +++ b/t/parallel-tests-empty-testlogs.sh @@ -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]) diff --git a/t/parallel-tests-empty.sh b/t/parallel-tests-empty.sh index 146f1fc..a367038 100755 --- a/t/parallel-tests-empty.sh +++ b/t/parallel-tests-empty.sh @@ -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 diff --git a/t/parallel-tests-exeext.sh b/t/parallel-tests-exeext.sh index 22a5aad..bb96635 100755 --- a/t/parallel-tests-exeext.sh +++ b/t/parallel-tests-exeext.sh @@ -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. diff --git a/t/parallel-tests-exit-statuses.sh b/t/parallel-tests-exit-statuses.sh index bd5bb76..a7d6230 100755 --- a/t/parallel-tests-exit-statuses.sh +++ b/t/parallel-tests-exit-statuses.sh @@ -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 diff --git a/t/parallel-tests-extra-programs.sh b/t/parallel-tests-extra-programs.sh index 0a7f97c..75a34b7 100755 --- a/t/parallel-tests-extra-programs.sh +++ b/t/parallel-tests-extra-programs.sh @@ -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 diff --git a/t/parallel-tests-fd-redirect-exeext.sh b/t/parallel-tests-fd-redirect-exeext.sh index 3575765..80b6b28 100755 --- a/t/parallel-tests-fd-redirect-exeext.sh +++ b/t/parallel-tests-fd-redirect-exeext.sh @@ -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 diff --git a/t/parallel-tests-fd-redirect.sh b/t/parallel-tests-fd-redirect.sh index 7cb59c3..ec48e4e 100755 --- a/t/parallel-tests-fd-redirect.sh +++ b/t/parallel-tests-fd-redirect.sh @@ -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 diff --git a/t/parallel-tests-fork-bomb.sh b/t/parallel-tests-fork-bomb.sh index 493e671..0698742 100755 --- a/t/parallel-tests-fork-bomb.sh +++ b/t/parallel-tests-fork-bomb.sh @@ -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. diff --git a/t/parallel-tests-generated-and-distributed.sh b/t/parallel-tests-generated-and-distributed.sh index eb48f93..ff6c2f5 100755 --- a/t/parallel-tests-generated-and-distributed.sh +++ b/t/parallel-tests-generated-and-distributed.sh @@ -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 diff --git a/t/parallel-tests-harderror.sh b/t/parallel-tests-harderror.sh index 8e1e014..88c5f59 100755 --- a/t/parallel-tests-harderror.sh +++ b/t/parallel-tests-harderror.sh @@ -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]) diff --git a/t/parallel-tests-interrupt.tap b/t/parallel-tests-interrupt.tap index 76e89f2..406bd7a 100755 --- a/t/parallel-tests-interrupt.tap +++ b/t/parallel-tests-interrupt.tap @@ -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 diff --git a/t/parallel-tests-log-compiler-1.sh b/t/parallel-tests-log-compiler-1.sh index 0e8c9d8..9214a07 100755 --- a/t/parallel-tests-log-compiler-1.sh +++ b/t/parallel-tests-log-compiler-1.sh @@ -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]) diff --git a/t/parallel-tests-log-compiler-2.sh b/t/parallel-tests-log-compiler-2.sh index 775a4d1..2790dcb 100755 --- a/t/parallel-tests-log-compiler-2.sh +++ b/t/parallel-tests-log-compiler-2.sh @@ -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 diff --git a/t/parallel-tests-log-compiler-example.sh b/t/parallel-tests-log-compiler-example.sh index 0d66b64..1c0d44d 100755 --- a/t/parallel-tests-log-compiler-example.sh +++ b/t/parallel-tests-log-compiler-example.sh @@ -18,7 +18,7 @@ # LOG_COMPILER and LOG_FLAGS given in the manual. required=python -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <> configure.ac <<'END' AC_OUTPUT diff --git a/t/parallel-tests-log-override-2.sh b/t/parallel-tests-log-override-2.sh index a747b00..0cbf730 100755 --- a/t/parallel-tests-log-override-2.sh +++ b/t/parallel-tests-log-override-2.sh @@ -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 diff --git a/t/parallel-tests-log-override-recheck.sh b/t/parallel-tests-log-override-recheck.sh index a6ab216..df08bd3 100755 --- a/t/parallel-tests-log-override-recheck.sh +++ b/t/parallel-tests-log-override-recheck.sh @@ -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 diff --git a/t/parallel-tests-no-color-in-log.sh b/t/parallel-tests-no-color-in-log.sh index c46993f..fb6fc13 100755 --- a/t/parallel-tests-no-color-in-log.sh +++ b/t/parallel-tests-no-color-in-log.sh @@ -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 diff --git a/t/parallel-tests-no-spurious-summary.sh b/t/parallel-tests-no-spurious-summary.sh index 0088529..751ddb0 100755 --- a/t/parallel-tests-no-spurious-summary.sh +++ b/t/parallel-tests-no-spurious-summary.sh @@ -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 diff --git a/t/parallel-tests-once.sh b/t/parallel-tests-once.sh index 67fcbab..d27224a 100755 --- a/t/parallel-tests-once.sh +++ b/t/parallel-tests-once.sh @@ -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 diff --git a/t/parallel-tests-recheck-depends-on-all.sh b/t/parallel-tests-recheck-depends-on-all.sh index af53061..14783fd 100755 --- a/t/parallel-tests-recheck-depends-on-all.sh +++ b/t/parallel-tests-recheck-depends-on-all.sh @@ -18,7 +18,7 @@ # See automake bug#11252. required='cc native' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/parallel-tests-recheck-pr11791.sh b/t/parallel-tests-recheck-pr11791.sh index 2d2fc5a..22203c9 100755 --- a/t/parallel-tests-recheck-pr11791.sh +++ b/t/parallel-tests-recheck-pr11791.sh @@ -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 diff --git a/t/parallel-tests-recheck.sh b/t/parallel-tests-recheck.sh index ea9dba6..85adf69 100755 --- a/t/parallel-tests-recheck.sh +++ b/t/parallel-tests-recheck.sh @@ -17,7 +17,7 @@ # Check parallel-tests features: # - recheck -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/parallel-tests-reset-term.sh b/t/parallel-tests-reset-term.sh index 61cbad5..3555fcb 100755 --- a/t/parallel-tests-reset-term.sh +++ b/t/parallel-tests-reset-term.sh @@ -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 diff --git a/t/parallel-tests-subdir.sh b/t/parallel-tests-subdir.sh index b7bb481..de62f7f 100755 --- a/t/parallel-tests-subdir.sh +++ b/t/parallel-tests-subdir.sh @@ -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 diff --git a/t/parallel-tests-suffix-prog.sh b/t/parallel-tests-suffix-prog.sh index a0287da..f2ed390 100755 --- a/t/parallel-tests-suffix-prog.sh +++ b/t/parallel-tests-suffix-prog.sh @@ -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 diff --git a/t/parallel-tests-suffix.sh b/t/parallel-tests-suffix.sh index 93c7ea0..d0d1733 100755 --- a/t/parallel-tests-suffix.sh +++ b/t/parallel-tests-suffix.sh @@ -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 diff --git a/t/parallel-tests-trailing-bslash.sh b/t/parallel-tests-trailing-bslash.sh index dadc874..6770b27 100755 --- a/t/parallel-tests-trailing-bslash.sh +++ b/t/parallel-tests-trailing-bslash.sh @@ -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 diff --git a/t/parallel-tests-trailing-whitespace.sh b/t/parallel-tests-trailing-whitespace.sh index e8e4203..3d729c8 100755 --- a/t/parallel-tests-trailing-whitespace.sh +++ b/t/parallel-tests-trailing-whitespace.sh @@ -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 diff --git a/t/parallel-tests-unreadable.sh b/t/parallel-tests-unreadable.sh index 895d476..ff36294 100755 --- a/t/parallel-tests-unreadable.sh +++ b/t/parallel-tests-unreadable.sh @@ -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" diff --git a/t/parse.sh b/t/parse.sh index ec5bcbb..44a697b 100755 --- a/t/parse.sh +++ b/t/parse.sh @@ -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 diff --git a/t/per-target-flags.sh b/t/per-target-flags.sh index e5278fb..437d0b2 100755 --- a/t/per-target-flags.sh +++ b/t/per-target-flags.sh @@ -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' diff --git a/t/percent.sh b/t/percent.sh index a4bad35..82040ae 100755 --- a/t/percent.sh +++ b/t/percent.sh @@ -17,7 +17,7 @@ # Test to make sure that -Wportability understands %-style pattern # rules. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <>Makefile.am << 'EOF' ${ARCH}/%.$(OBJEXT): %.S diff --git a/t/perf/cond.sh b/t/perf/cond.sh index cf9c760..cce2906 100755 --- a/t/perf/cond.sh +++ b/t/perf/cond.sh @@ -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 diff --git a/t/perf/testsuite-recheck.sh b/t/perf/testsuite-recheck.sh index e3383be..5400dc4 100755 --- a/t/perf/testsuite-recheck.sh +++ b/t/perf/testsuite-recheck.sh @@ -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 diff --git a/t/perf/testsuite-summary.sh b/t/perf/testsuite-summary.sh index 296a621..3c02481 100755 --- a/t/perf/testsuite-summary.sh +++ b/t/perf/testsuite-summary.sh @@ -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 diff --git a/t/phony.sh b/t/phony.sh index fce2a6b..6f90b0e 100755 --- a/t/phony.sh +++ b/t/phony.sh @@ -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 diff --git a/t/pluseq.sh b/t/pluseq.sh index 74dea56..a6dfb92 100755 --- a/t/pluseq.sh +++ b/t/pluseq.sh @@ -16,7 +16,7 @@ # Test '+=' functionality. -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' data_DATA = zar diff --git a/t/pluseq10.sh b/t/pluseq10.sh index 20516c3..f0be6cf 100755 --- a/t/pluseq10.sh +++ b/t/pluseq10.sh @@ -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]) diff --git a/t/pluseq11.sh b/t/pluseq11.sh index 67dfd33..f00e743 100755 --- a/t/pluseq11.sh +++ b/t/pluseq11.sh @@ -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 diff --git a/t/pluseq2.sh b/t/pluseq2.sh index 2069444..d2f7ee7 100755 --- a/t/pluseq2.sh +++ b/t/pluseq2.sh @@ -16,7 +16,7 @@ # Test '+=' with conditionals. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([CHECK], [true]) diff --git a/t/pluseq3.sh b/t/pluseq3.sh index 52e82c5..b284847 100755 --- a/t/pluseq3.sh +++ b/t/pluseq3.sh @@ -16,7 +16,7 @@ # Another '+=' test with conditionals. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([CHECK], [true]) diff --git a/t/pluseq4.sh b/t/pluseq4.sh index 32c64ea..3292dc5 100755 --- a/t/pluseq4.sh +++ b/t/pluseq4.sh @@ -16,7 +16,7 @@ # Yet another '+=' test. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/pluseq5.sh b/t/pluseq5.sh index 914e3b7..facab4e 100755 --- a/t/pluseq5.sh +++ b/t/pluseq5.sh @@ -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]) diff --git a/t/pluseq6.sh b/t/pluseq6.sh index 2db9c6f..0d4fcbe 100755 --- a/t/pluseq6.sh +++ b/t/pluseq6.sh @@ -16,7 +16,7 @@ # Test that '+=' works with standard header-vars. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_SUBST([ZZZ]) diff --git a/t/pluseq7.sh b/t/pluseq7.sh index c7ea2ad..f9a667f 100755 --- a/t/pluseq7.sh +++ b/t/pluseq7.sh @@ -16,7 +16,7 @@ # Test that '+=' fails when required. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/pluseq8.sh b/t/pluseq8.sh index da0ad89..83fa50a 100755 --- a/t/pluseq8.sh +++ b/t/pluseq8.sh @@ -16,7 +16,7 @@ # Another '+=' test. From Paul Berrevoets. -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' VAR = \ diff --git a/t/pluseq9.sh b/t/pluseq9.sh index 4bbb78a..ab97c08 100755 --- a/t/pluseq9.sh +++ b/t/pluseq9.sh @@ -16,7 +16,7 @@ # Test the += diagnostics. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac << 'END' AM_CONDITIONAL([COND1], [true]) diff --git a/t/posixsubst-data.sh b/t/posixsubst-data.sh index 51b791e..9fd5340 100755 --- a/t/posixsubst-data.sh +++ b/t/posixsubst-data.sh @@ -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 diff --git a/t/posixsubst-extradist.sh b/t/posixsubst-extradist.sh index b8e69d7..d8ba0d9 100755 --- a/t/posixsubst-extradist.sh +++ b/t/posixsubst-extradist.sh @@ -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 diff --git a/t/posixsubst-ldadd.sh b/t/posixsubst-ldadd.sh index c9acd41..579bc23 100755 --- a/t/posixsubst-ldadd.sh +++ b/t/posixsubst-ldadd.sh @@ -18,7 +18,7 @@ # when used in LDADD. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/posixsubst-libraries.sh b/t/posixsubst-libraries.sh index 884e8aa..69ea925 100755 --- a/t/posixsubst-libraries.sh +++ b/t/posixsubst-libraries.sh @@ -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 diff --git a/t/posixsubst-ltlibraries.sh b/t/posixsubst-ltlibraries.sh index 3111954..4a7d867 100755 --- a/t/posixsubst-ltlibraries.sh +++ b/t/posixsubst-ltlibraries.sh @@ -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 diff --git a/t/posixsubst-programs.sh b/t/posixsubst-programs.sh index 6e8e56b..edcd4dd 100755 --- a/t/posixsubst-programs.sh +++ b/t/posixsubst-programs.sh @@ -18,7 +18,7 @@ # with the PROGRAMS primary. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/posixsubst-scripts.sh b/t/posixsubst-scripts.sh index c9083cb..7b758f3 100755 --- a/t/posixsubst-scripts.sh +++ b/t/posixsubst-scripts.sh @@ -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 diff --git a/t/posixsubst-sources.sh b/t/posixsubst-sources.sh index d3abfa1..b69bc54 100755 --- a/t/posixsubst-sources.sh +++ b/t/posixsubst-sources.sh @@ -18,7 +18,7 @@ # with the SOURCES primary. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/posixsubst-tests.sh b/t/posixsubst-tests.sh index c631863..470527c 100755 --- a/t/posixsubst-tests.sh +++ b/t/posixsubst-tests.sh @@ -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 diff --git a/t/postproc.sh b/t/postproc.sh index 2b60d88..d73eaec 100755 --- a/t/postproc.sh +++ b/t/postproc.sh @@ -18,7 +18,7 @@ # and renamed. required=cc -. ./defs || exit 1 +. test-init.sh cat >configure.ac <> configure.ac << 'END' AC_PROG_F77 diff --git a/t/pr2.sh b/t/pr2.sh index bafff25..e5124d6 100755 --- 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]) diff --git a/t/pr211.sh b/t/pr211.sh index a7dcee8..3d19a06 100755 --- a/t/pr211.sh +++ b/t/pr211.sh @@ -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 diff --git a/t/pr220.sh b/t/pr220.sh index 2054fb3..fc67cf8 100755 --- a/t/pr220.sh +++ b/t/pr220.sh @@ -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 diff --git a/t/pr224.sh b/t/pr224.sh index c4fb9c1..640640f 100755 --- a/t/pr224.sh +++ b/t/pr224.sh @@ -24,7 +24,7 @@ # should be '$(top_builddir)/bar/.deps'. required=cc -. ./defs || exit 1 +. test-init.sh mkdir foo diff --git a/t/pr229.sh b/t/pr229.sh index cb3b223..b0ed4c4 100755 --- a/t/pr229.sh +++ b/t/pr229.sh @@ -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 < configure.ac << END AC_INIT([$me], [1.0]) diff --git a/t/pr266.sh b/t/pr266.sh index 5d8efad..c358227 100755 --- a/t/pr266.sh +++ b/t/pr266.sh @@ -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]) diff --git a/t/pr279-2.sh b/t/pr279-2.sh index fbd06ac..7f29251 100755 --- a/t/pr279-2.sh +++ b/t/pr279-2.sh @@ -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 diff --git a/t/pr279.sh b/t/pr279.sh index 7f5f7b5..24b7fb7 100755 --- a/t/pr279.sh +++ b/t/pr279.sh @@ -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 diff --git a/t/pr287.sh b/t/pr287.sh index 62eb739..bbbfe48 100755 --- a/t/pr287.sh +++ b/t/pr287.sh @@ -16,7 +16,7 @@ # Test for PR 287: empty SUBDIRS. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/pr300-lib.sh b/t/pr300-lib.sh index d9a5dd1..ca73523 100755 --- a/t/pr300-lib.sh +++ b/t/pr300-lib.sh @@ -18,7 +18,7 @@ # PR/300 required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_RANLIB diff --git a/t/pr300-ltlib.sh b/t/pr300-ltlib.sh index 4926834..62c5b55 100755 --- a/t/pr300-ltlib.sh +++ b/t/pr300-ltlib.sh @@ -18,7 +18,7 @@ # PR/300 required='cc libtoolize' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/pr300-prog.sh b/t/pr300-prog.sh index b9aa97d..d7ada2d 100755 --- a/t/pr300-prog.sh +++ b/t/pr300-prog.sh @@ -18,7 +18,7 @@ # PR/300 required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/pr307.sh b/t/pr307.sh index 04b4ee9..1204c77 100755 --- a/t/pr307.sh +++ b/t/pr307.sh @@ -33,7 +33,7 @@ # compilation. required='libtoolize gcc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/pr401.sh b/t/pr401.sh index 73a7e25..3e73b0d 100755 --- a/t/pr401.sh +++ b/t/pr401.sh @@ -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 diff --git a/t/pr401b.sh b/t/pr401b.sh index e591473..6193587 100755 --- a/t/pr401b.sh +++ b/t/pr401b.sh @@ -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 diff --git a/t/pr401c.sh b/t/pr401c.sh index e452ab6..96561c5 100755 --- a/t/pr401c.sh +++ b/t/pr401c.sh @@ -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 diff --git a/t/pr72.sh b/t/pr72.sh index 3c2c914..9eb55b7 100755 --- 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 diff --git a/t/pr87.sh b/t/pr87.sh index 872dfa9..4027b5c 100755 --- 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" diff --git a/t/pr9.sh b/t/pr9.sh index ccb0b93..7d75cc4 100755 --- 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]) diff --git a/t/prefix.sh b/t/prefix.sh index 907cd78..bc10771 100755 --- a/t/prefix.sh +++ b/t/prefix.sh @@ -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 diff --git a/t/primary-prefix-couples-documented-valid.sh b/t/primary-prefix-couples-documented-valid.sh index 5b43157..89e7880 100755 --- a/t/primary-prefix-couples-documented-valid.sh +++ b/t/primary-prefix-couples-documented-valid.sh @@ -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 diff --git a/t/primary-prefix-couples-force-valid.sh b/t/primary-prefix-couples-force-valid.sh index a6d7ace..5cf02d8 100755 --- a/t/primary-prefix-couples-force-valid.sh +++ b/t/primary-prefix-couples-force-valid.sh @@ -24,7 +24,7 @@ # should work. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_PROG_CC diff --git a/t/primary-prefix-invalid-couples.tap b/t/primary-prefix-invalid-couples.tap index 86d7665..2152d18 100755 --- a/t/primary-prefix-invalid-couples.tap +++ b/t/primary-prefix-invalid-couples.tap @@ -20,7 +20,7 @@ # cover more cases. # See also test 'primary-prefix-valid-couples.test'. -. ./defs || exit 1 +. test-init.sh plan_ "later" diff --git a/t/primary-prefix-valid-couples.sh b/t/primary-prefix-valid-couples.sh index d8cbc30..91d1b88 100755 --- a/t/primary-prefix-valid-couples.sh +++ b/t/primary-prefix-valid-couples.sh @@ -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 diff --git a/t/primary.sh b/t/primary.sh index b107f4d..e11eb0e 100755 --- a/t/primary.sh +++ b/t/primary.sh @@ -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@ diff --git a/t/primary2.sh b/t/primary2.sh index f355da0..c7437fe 100755 --- a/t/primary2.sh +++ b/t/primary2.sh @@ -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 diff --git a/t/primary3.sh b/t/primary3.sh index 9905a8c..0a80a54 100755 --- a/t/primary3.sh +++ b/t/primary3.sh @@ -17,7 +17,7 @@ # Make sure we can build programs ending in '.la' required=cc -. ./defs || exit 1 +. test-init.sh cat >>configure.ac < Makefile.am << 'END' bin_SCRIPTS = zardoz qbert brownie diff --git a/t/programs-primary-rewritten.sh b/t/programs-primary-rewritten.sh index 89b8025..40caf20 100755 --- a/t/programs-primary-rewritten.sh +++ b/t/programs-primary-rewritten.sh @@ -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]) diff --git a/t/py-compile-basedir.sh b/t/py-compile-basedir.sh index f2cef30..8abad87 100755 --- a/t/py-compile-basedir.sh +++ b/t/py-compile-basedir.sh @@ -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. diff --git a/t/py-compile-basic.sh b/t/py-compile-basic.sh index 73597c3..d80ef89 100755 --- a/t/py-compile-basic.sh +++ b/t/py-compile-basic.sh @@ -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" diff --git a/t/py-compile-basic2.sh b/t/py-compile-basic2.sh index 19fdf72..8100e98 100755 --- a/t/py-compile-basic2.sh +++ b/t/py-compile-basic2.sh @@ -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" diff --git a/t/py-compile-destdir.sh b/t/py-compile-destdir.sh index 4d303d5..71f3f7a 100755 --- a/t/py-compile-destdir.sh +++ b/t/py-compile-destdir.sh @@ -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" diff --git a/t/py-compile-env.sh b/t/py-compile-env.sh index 89d4ffc..a0d055d 100755 --- a/t/py-compile-env.sh +++ b/t/py-compile-env.sh @@ -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" diff --git a/t/py-compile-option-terminate.sh b/t/py-compile-option-terminate.sh index 5c2b56f..9af5e13 100755 --- a/t/py-compile-option-terminate.sh +++ b/t/py-compile-option-terminate.sh @@ -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" diff --git a/t/py-compile-usage.sh b/t/py-compile-usage.sh index 13ddc8e..ee5177d 100755 --- a/t/py-compile-usage.sh +++ b/t/py-compile-usage.sh @@ -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" diff --git a/t/python-am-path-iftrue.sh b/t/python-am-path-iftrue.sh index d7ba436..9c2335a 100755 --- a/t/python-am-path-iftrue.sh +++ b/t/python-am-path-iftrue.sh @@ -18,7 +18,7 @@ am_create_testdir=empty required=python -. ./defs || exit 1 +. test-init.sh cat > configure.ac <> configure.ac << 'END' AM_PATH_PYTHON([], [:], [:]) diff --git a/t/python-missing.sh b/t/python-missing.sh index b0912d3..9a3ccfb 100755 --- a/t/python-missing.sh +++ b/t/python-missing.sh @@ -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 diff --git a/t/python-pr10995.sh b/t/python-pr10995.sh index c530a13..4075a37 100755 --- a/t/python-pr10995.sh +++ b/t/python-pr10995.sh @@ -19,7 +19,7 @@ # declaration. required=python -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'EOF' AM_PATH_PYTHON diff --git a/t/python-too-old.sh b/t/python-too-old.sh index e4185fc..24ee584 100755 --- a/t/python-too-old.sh +++ b/t/python-too-old.sh @@ -19,7 +19,7 @@ am_create_testdir=empty required=python -. ./defs || exit 1 +. test-init.sh py_too_old () { diff --git a/t/python-vars.sh b/t/python-vars.sh index 5bac280..eec07ae 100755 --- a/t/python-vars.sh +++ b/t/python-vars.sh @@ -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 diff --git a/t/python-virtualenv.sh b/t/python-virtualenv.sh index 51ae78e..cf3ae37 100755 --- a/t/python-virtualenv.sh +++ b/t/python-virtualenv.sh @@ -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 diff --git a/t/python.sh b/t/python.sh index a3add40..3f79ca3 100755 --- a/t/python.sh +++ b/t/python.sh @@ -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 diff --git a/t/python10.sh b/t/python10.sh index 5465810..c4a0ab4 100755 --- a/t/python10.sh +++ b/t/python10.sh @@ -17,7 +17,7 @@ # Test _PYTHON with conditionals. required=python -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'EOF' AM_PATH_PYTHON diff --git a/t/python11.sh b/t/python11.sh index e86d30e..e3e29e5 100755 --- a/t/python11.sh +++ b/t/python11.sh @@ -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]) diff --git a/t/python12.sh b/t/python12.sh index 898c673..3fd4030 100755 --- a/t/python12.sh +++ b/t/python12.sh @@ -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 diff --git a/t/python2.sh b/t/python2.sh index 71ba25f..0ecf79d 100755 --- a/t/python2.sh +++ b/t/python2.sh @@ -16,7 +16,7 @@ # Make sure that Automake suggests using AM_PATH_PYTHON. -. ./defs || exit 1 +. test-init.sh $ACLOCAL diff --git a/t/python3.sh b/t/python3.sh index 8667cf9..f749f9f 100755 --- a/t/python3.sh +++ b/t/python3.sh @@ -17,7 +17,7 @@ # Make sure we install built python files. required=python -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <> configure.ac <<'END' AC_CONFIG_FILES([ diff --git a/t/recurs-user-indir.sh b/t/recurs-user-indir.sh index 01d98a7..5e85d34 100755 --- a/t/recurs-user-indir.sh +++ b/t/recurs-user-indir.sh @@ -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([ diff --git a/t/recurs-user-keep-going.sh b/t/recurs-user-keep-going.sh index 6c2d432..041e304 100755 --- a/t/recurs-user-keep-going.sh +++ b/t/recurs-user-keep-going.sh @@ -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]) diff --git a/t/recurs-user-many.sh b/t/recurs-user-many.sh index c1e4757..b40dd79 100755 --- a/t/recurs-user-many.sh +++ b/t/recurs-user-many.sh @@ -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]) diff --git a/t/recurs-user-no-subdirs.sh b/t/recurs-user-no-subdirs.sh index ed56d07..76da433 100755 --- a/t/recurs-user-no-subdirs.sh +++ b/t/recurs-user-no-subdirs.sh @@ -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]) diff --git a/t/recurs-user-no-top-level.sh b/t/recurs-user-no-top-level.sh index f80010a..1546f1c 100755 --- a/t/recurs-user-no-top-level.sh +++ b/t/recurs-user-no-top-level.sh @@ -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]) diff --git a/t/recurs-user-override.sh b/t/recurs-user-override.sh index 64ef2ee..02dd333 100755 --- a/t/recurs-user-override.sh +++ b/t/recurs-user-override.sh @@ -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]) diff --git a/t/recurs-user-phony.sh b/t/recurs-user-phony.sh index 29e50a8..274f441 100755 --- a/t/recurs-user-phony.sh +++ b/t/recurs-user-phony.sh @@ -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]) diff --git a/t/recurs-user-wrap.sh b/t/recurs-user-wrap.sh index 9c4e375..15a210c 100755 --- a/t/recurs-user-wrap.sh +++ b/t/recurs-user-wrap.sh @@ -18,7 +18,7 @@ # by other makefiles. required=GNUmake -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_EXTRA_RECURSIVE_TARGETS([extra]) diff --git a/t/recurs-user.sh b/t/recurs-user.sh index 34a3fd2..198483f 100755 --- a/t/recurs-user.sh +++ b/t/recurs-user.sh @@ -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]) diff --git a/t/recurs-user2.sh b/t/recurs-user2.sh index 0e4cba5..4664efd 100755 --- a/t/recurs-user2.sh +++ b/t/recurs-user2.sh @@ -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( diff --git a/t/relativize.tap b/t/relativize.tap index d940ddf..6d469344 100755 --- a/t/relativize.tap +++ b/t/relativize.tap @@ -17,7 +17,7 @@ # Test Automake-provided internal make macro $(am__relativize). am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh plan_ later diff --git a/t/remake-aclocal-version-mismatch.sh b/t/remake-aclocal-version-mismatch.sh index 22d31d0..b844fc1 100755 --- a/t/remake-aclocal-version-mismatch.sh +++ b/t/remake-aclocal-version-mismatch.sh @@ -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 diff --git a/t/remake-after-acinclude-m4.sh b/t/remake-after-acinclude-m4.sh index 7c899dc..39596f6 100755 --- a/t/remake-after-acinclude-m4.sh +++ b/t/remake-after-acinclude-m4.sh @@ -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__ diff --git a/t/remake-after-aclocal-m4.sh b/t/remake-after-aclocal-m4.sh index 45d7a6a..f7ba219 100755 --- a/t/remake-after-aclocal-m4.sh +++ b/t/remake-after-aclocal-m4.sh @@ -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__ diff --git a/t/remake-after-configure-ac.sh b/t/remake-after-configure-ac.sh index ee178b1..0ff7454 100755 --- a/t/remake-after-configure-ac.sh +++ b/t/remake-after-configure-ac.sh @@ -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__ diff --git a/t/remake-after-makefile-am.sh b/t/remake-after-makefile-am.sh index fca90b6..2161790 100755 --- a/t/remake-after-makefile-am.sh +++ b/t/remake-after-makefile-am.sh @@ -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; } diff --git a/t/remake-all-1.sh b/t/remake-all-1.sh index 93a870e..29cefd4 100755 --- a/t/remake-all-1.sh +++ b/t/remake-all-1.sh @@ -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 diff --git a/t/remake-all-2.sh b/t/remake-all-2.sh index 0f7d984..debdbb4 100755 --- a/t/remake-all-2.sh +++ b/t/remake-all-2.sh @@ -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 diff --git a/t/remake-am-pr10111.sh b/t/remake-am-pr10111.sh index b3b7c6c..787e71b 100755 --- a/t/remake-am-pr10111.sh +++ b/t/remake-am-pr10111.sh @@ -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 diff --git a/t/remake-deeply-nested.sh b/t/remake-deeply-nested.sh index 8f29499..4949b52 100755 --- a/t/remake-deeply-nested.sh +++ b/t/remake-deeply-nested.sh @@ -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" diff --git a/t/remake-deleted-am-2.sh b/t/remake-deleted-am-2.sh index 0b55062..dde1615 100755 --- a/t/remake-deleted-am-2.sh +++ b/t/remake-deleted-am-2.sh @@ -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 diff --git a/t/remake-deleted-am-subdir.sh b/t/remake-deleted-am-subdir.sh index 868d36e..f784593 100755 --- a/t/remake-deleted-am-subdir.sh +++ b/t/remake-deleted-am-subdir.sh @@ -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]) diff --git a/t/remake-deleted-am.sh b/t/remake-deleted-am.sh index f754a37..485f37f 100755 --- a/t/remake-deleted-am.sh +++ b/t/remake-deleted-am.sh @@ -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 diff --git a/t/remake-deleted-m4-file.sh b/t/remake-deleted-m4-file.sh index 0bb7cae..2499d82 100755 --- a/t/remake-deleted-m4-file.sh +++ b/t/remake-deleted-m4-file.sh @@ -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 diff --git a/t/remake-fail.sh b/t/remake-fail.sh index 9ccf5d1..99a5b00 100755 --- a/t/remake-fail.sh +++ b/t/remake-fail.sh @@ -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]) diff --git a/t/remake-gnulib-add-acsubst.sh b/t/remake-gnulib-add-acsubst.sh index 2fdab58..3aea5b9 100755 --- a/t/remake-gnulib-add-acsubst.sh +++ b/t/remake-gnulib-add-acsubst.sh @@ -22,7 +22,7 @@ # for more info). required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_PROG_CC diff --git a/t/remake-gnulib-add-header.sh b/t/remake-gnulib-add-header.sh index 127fa1f..c70b3c6 100755 --- a/t/remake-gnulib-add-header.sh +++ b/t/remake-gnulib-add-header.sh @@ -22,7 +22,7 @@ # for more info). required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_CONFIG_HEADERS([config.h]) diff --git a/t/remake-gnulib-remove-header.sh b/t/remake-gnulib-remove-header.sh index 9044a04..23fbfc8 100755 --- a/t/remake-gnulib-remove-header.sh +++ b/t/remake-gnulib-remove-header.sh @@ -23,7 +23,7 @@ # for more info). required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_CONFIG_HEADERS([config.h]) diff --git a/t/remake-include-aclocal.sh b/t/remake-include-aclocal.sh index da0a070..7567dfb 100755 --- a/t/remake-include-aclocal.sh +++ b/t/remake-include-aclocal.sh @@ -19,7 +19,7 @@ # - remake-include-configure.sh # - remake-include-makefile.sh -. ./defs || exit 1 +. test-init.sh magic1=::MagicStringOne:: magic2=__MagicStringTwo__ diff --git a/t/remake-include-configure.sh b/t/remake-include-configure.sh index f7f8c04..5e0a426 100755 --- a/t/remake-include-configure.sh +++ b/t/remake-include-configure.sh @@ -19,7 +19,7 @@ # - remake-include-aclocal.sh # - remake-include-makefile.sh -. ./defs || exit 1 +. test-init.sh magic1=::MagicStringOne:: magic2=__MagicStringTwo__ diff --git a/t/remake-include-makefile.sh b/t/remake-include-makefile.sh index ed749cc..0dcee58 100755 --- a/t/remake-include-makefile.sh +++ b/t/remake-include-makefile.sh @@ -20,7 +20,7 @@ # - remake-include-configure.sh -. ./defs || exit 1 +. test-init.sh magic1=::MagicStringOne:: magic2=__MagicStringTwo__ diff --git a/t/remake-m4-pr10111.sh b/t/remake-m4-pr10111.sh index 8a28925..9df34b6 100755 --- a/t/remake-m4-pr10111.sh +++ b/t/remake-m4-pr10111.sh @@ -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]) diff --git a/t/remake-macrodir.sh b/t/remake-macrodir.sh index 61ac197..bdd3f02 100755 --- a/t/remake-macrodir.sh +++ b/t/remake-macrodir.sh @@ -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]) diff --git a/t/remake-maintainer-mode.sh b/t/remake-maintainer-mode.sh index b1e8dd8..326a3c9 100755 --- a/t/remake-maintainer-mode.sh +++ b/t/remake-maintainer-mode.sh @@ -18,7 +18,7 @@ # but not all. # Report from Ralf Corsepius. -. ./defs || exit 1 +. test-init.sh if using_gmake; then remake="$MAKE" diff --git a/t/remake-makefile-intree.sh b/t/remake-makefile-intree.sh index 3c4d45a..b9e33c3 100755 --- a/t/remake-makefile-intree.sh +++ b/t/remake-makefile-intree.sh @@ -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 diff --git a/t/remake-makefile-vpath.sh b/t/remake-makefile-vpath.sh index 737b046..54c6af9 100755 --- a/t/remake-makefile-vpath.sh +++ b/t/remake-makefile-vpath.sh @@ -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 diff --git a/t/remake-mild-stress.sh b/t/remake-mild-stress.sh index 02cef71..54f7cdf 100755 --- a/t/remake-mild-stress.sh +++ b/t/remake-mild-stress.sh @@ -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__ diff --git a/t/remake-moved-m4-file.sh b/t/remake-moved-m4-file.sh index 68ea5a8..3ca1680 100755 --- a/t/remake-moved-m4-file.sh +++ b/t/remake-moved-m4-file.sh @@ -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 diff --git a/t/remake-not-after-make-dist.sh b/t/remake-not-after-make-dist.sh index 10fdf11..f06ede6 100755 --- a/t/remake-not-after-make-dist.sh +++ b/t/remake-not-after-make-dist.sh @@ -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. diff --git a/t/remake-recurs-user.sh b/t/remake-recurs-user.sh index 27e8bad..34f8651 100755 --- a/t/remake-recurs-user.sh +++ b/t/remake-recurs-user.sh @@ -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]) diff --git a/t/remake-renamed-am.sh b/t/remake-renamed-am.sh index 378aa26..200bef1 100755 --- a/t/remake-renamed-am.sh +++ b/t/remake-renamed-am.sh @@ -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 diff --git a/t/remake-renamed-m4-file.sh b/t/remake-renamed-m4-file.sh index ee25c58..ff99f1d 100755 --- a/t/remake-renamed-m4-file.sh +++ b/t/remake-renamed-m4-file.sh @@ -16,7 +16,7 @@ # Test remake rules when m4 files get renamed. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' MY_MACRO diff --git a/t/remake-renamed-m4-macro-and-file.sh b/t/remake-renamed-m4-macro-and-file.sh index f440a45..9658737 100755 --- a/t/remake-renamed-m4-macro-and-file.sh +++ b/t/remake-renamed-m4-macro-and-file.sh @@ -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 diff --git a/t/remake-renamed-m4-macro.sh b/t/remake-renamed-m4-macro.sh index 281dde2..99ab1db 100755 --- a/t/remake-renamed-m4-macro.sh +++ b/t/remake-renamed-m4-macro.sh @@ -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 diff --git a/t/remake-subdir-from-subdir.sh b/t/remake-subdir-from-subdir.sh index b6c0c61..0a2c5fa 100755 --- a/t/remake-subdir-from-subdir.sh +++ b/t/remake-subdir-from-subdir.sh @@ -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]) diff --git a/t/remake-subdir-gnu.sh b/t/remake-subdir-gnu.sh index 9b2672b..a00ae57 100755 --- a/t/remake-subdir-gnu.sh +++ b/t/remake-subdir-gnu.sh @@ -21,7 +21,7 @@ # related test 'aclocal5.sh' required=GNUmake -. ./defs || exit 1 +. test-init.sh magic1='::MagicString::One::' magic2='__MagicString__Two__' diff --git a/t/remake-subdir-grepping.sh b/t/remake-subdir-grepping.sh index 0cce72e..6700472 100755 --- a/t/remake-subdir-grepping.sh +++ b/t/remake-subdir-grepping.sh @@ -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 < configure.ac <> configure.ac << 'END' AC_CONFIG_FILES([sub/foo]) diff --git a/t/remake-subdir-only.sh b/t/remake-subdir-only.sh index 12d1ca5..b1023dd 100755 --- a/t/remake-subdir-only.sh +++ b/t/remake-subdir-only.sh @@ -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/=' diff --git a/t/remake-subdir.sh b/t/remake-subdir.sh index 1e4716d..a8014cf 100755 --- a/t/remake-subdir.sh +++ b/t/remake-subdir.sh @@ -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 diff --git a/t/remake-subdir2.sh b/t/remake-subdir2.sh index 42f0ba1..a875544 100755 --- a/t/remake-subdir2.sh +++ b/t/remake-subdir2.sh @@ -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__' diff --git a/t/remake-subdir3.sh b/t/remake-subdir3.sh index 2146b38..9362a69 100755 --- a/t/remake-subdir3.sh +++ b/t/remake-subdir3.sh @@ -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]) diff --git a/t/remake-timing-bug-pr8365.sh b/t/remake-timing-bug-pr8365.sh index 3e7f1e6..db1c46c 100755 --- a/t/remake-timing-bug-pr8365.sh +++ b/t/remake-timing-bug-pr8365.sh @@ -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 diff --git a/t/repeated-options.sh b/t/repeated-options.sh index c300996..83253d3 100755 --- a/t/repeated-options.sh +++ b/t/repeated-options.sh @@ -18,7 +18,7 @@ # generate broken or incorrect makefiles. required='cc bzip2' -. ./defs || exit 1 +. test-init.sh cat >configure.ac < configure.ac <> configure.ac < configure.ac << 'END' AC_INIT([req2], [1.0]) diff --git a/t/rulepat.sh b/t/rulepat.sh index a7cbb97..2d0e537 100755 --- a/t/rulepat.sh +++ b/t/rulepat.sh @@ -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: diff --git a/t/sanity.sh b/t/sanity.sh index 09b1272..1f20b11 100755 --- a/t/sanity.sh +++ b/t/sanity.sh @@ -16,7 +16,7 @@ # Unsafe absolute directory names should be diagnosed. -. ./defs || exit 1 +. test-init.sh mkdir 'unsafe$' cd 'unsafe$' diff --git a/t/seenc.sh b/t/seenc.sh index 9f0ae11..9a1ae2b 100755 --- a/t/seenc.sh +++ b/t/seenc.sh @@ -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 diff --git a/t/self-check-configure-help.sh b/t/self-check-configure-help.sh index cbe0aa5..2460025 100755 --- a/t/self-check-configure-help.sh +++ b/t/self-check-configure-help.sh @@ -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. diff --git a/t/self-check-dir.tap b/t/self-check-dir.tap index 2bc2ce0..9ad4010 100755 --- a/t/self-check-dir.tap +++ b/t/self-check-dir.tap @@ -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 diff --git a/t/self-check-exit.tap b/t/self-check-exit.tap index 19cf27a..556badc 100755 --- a/t/self-check-exit.tap +++ b/t/self-check-exit.tap @@ -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. diff --git a/t/self-check-explicit-skips.sh b/t/self-check-explicit-skips.sh index 97f5288..aa92504 100755 --- a/t/self-check-explicit-skips.sh +++ b/t/self-check-explicit-skips.sh @@ -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 } diff --git a/t/self-check-is-blocked-signal.tap b/t/self-check-is-blocked-signal.tap index 9077ca8..cd23b29 100755 --- a/t/self-check-is-blocked-signal.tap +++ b/t/self-check-is-blocked-signal.tap @@ -18,7 +18,7 @@ # shell function. am_create_testdir=no -. ./defs || exit 99 +. test-init.sh plan_ 2 diff --git a/t/self-check-is_newest.tap b/t/self-check-is_newest.tap index a5f84b3..a236798 100755 --- a/t/self-check-is_newest.tap +++ b/t/self-check-is_newest.tap @@ -16,7 +16,7 @@ # Sanity check for the automake testsuite: the 'is_newest' subroutine. -. ./defs || exit 1 +. test-init.sh plan_ 21 diff --git a/t/self-check-me.tap b/t/self-check-me.tap index 9c3125e..c76a0e1 100755 --- a/t/self-check-me.tap +++ b/t/self-check-me.tap @@ -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" \ diff --git a/t/self-check-report.sh b/t/self-check-report.sh index 11211ec..74ec75c 100755 --- a/t/self-check-report.sh +++ b/t/self-check-report.sh @@ -21,7 +21,7 @@ unset stderr_fileno_ || : am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh set +e diff --git a/t/self-check-seq.tap b/t/self-check-seq.tap index ead4eed..4db0050 100755 --- a/t/self-check-seq.tap +++ b/t/self-check-seq.tap @@ -17,7 +17,7 @@ # Sanity check for the automake testsuite. # Check the 'seq_' subroutine. -. ./defs || exit 1 +. test-init.sh plan_ 14 diff --git a/t/self-check-unindent.tap b/t/self-check-unindent.tap index 2bd3bc2..c8dc5a8 100755 --- a/t/self-check-unindent.tap +++ b/t/self-check-unindent.tap @@ -17,7 +17,7 @@ # Sanity check for the automake testsuite. # Check the 'unindent' subroutine. -. ./defs || exit 1 +. test-init.sh plan_ 22 diff --git a/t/serial-tests.sh b/t/serial-tests.sh index 26ce68f..52178c5 100755 --- a/t/serial-tests.sh +++ b/t/serial-tests.sh @@ -17,7 +17,7 @@ # Option 'serial-tests'. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh hasnt_parallel_tests () { diff --git a/t/silent-configsite.sh b/t/silent-configsite.sh index c70d8c8..8bca33f 100755 --- a/t/silent-configsite.sh +++ b/t/silent-configsite.sh @@ -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. diff --git a/t/silent-lex.sh b/t/silent-lex.sh index e9c6b55..6cc0430 100755 --- a/t/silent-lex.sh +++ b/t/silent-lex.sh @@ -17,7 +17,7 @@ # Check silent-rules mode for Lex. required='cc lex' -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silent-many-gcc.sh b/t/silent-many-gcc.sh index 2e5d203..e810e27 100755 --- a/t/silent-many-gcc.sh +++ b/t/silent-many-gcc.sh @@ -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 () diff --git a/t/silent-many-generic.sh b/t/silent-many-generic.sh index 7d18c57..6e8c33b 100755 --- a/t/silent-many-generic.sh +++ b/t/silent-many-generic.sh @@ -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 () diff --git a/t/silent-nested-vars.sh b/t/silent-nested-vars.sh index 08ba070..3969ada 100755 --- a/t/silent-nested-vars.sh +++ b/t/silent-nested-vars.sh @@ -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 diff --git a/t/silent-yacc-headers.sh b/t/silent-yacc-headers.sh index 6324047..e9ef9a0 100755 --- a/t/silent-yacc-headers.sh +++ b/t/silent-yacc-headers.sh @@ -18,7 +18,7 @@ # involved (i.e., the '-d' option is in *YFLAGS). required='cc yacc' -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silent-yacc.sh b/t/silent-yacc.sh index 9283b32..b54bfe2 100755 --- a/t/silent-yacc.sh +++ b/t/silent-yacc.sh @@ -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 diff --git a/t/silent.sh b/t/silent.sh index 410e51c..32713d5 100755 --- a/t/silent.sh +++ b/t/silent.sh @@ -19,7 +19,7 @@ # Please keep this file in sync with 'silent2.sh'. required=cc -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silent2.sh b/t/silent2.sh index 25cf8b1..5dcaa26 100755 --- a/t/silent2.sh +++ b/t/silent2.sh @@ -20,7 +20,7 @@ # Please keep this file in sync with 'silent.sh'. required=gcc -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silent3.sh b/t/silent3.sh index f5dd834..9c3ed5d 100755 --- a/t/silent3.sh +++ b/t/silent3.sh @@ -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 diff --git a/t/silent4.sh b/t/silent4.sh index 8dcad3d..28de9e0 100755 --- a/t/silent4.sh +++ b/t/silent4.sh @@ -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 diff --git a/t/silent6.sh b/t/silent6.sh index a4b0f69..73fc4d0 100755 --- a/t/silent6.sh +++ b/t/silent6.sh @@ -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]) diff --git a/t/silent7.sh b/t/silent7.sh index 5e5472e..42e5a83 100755 --- a/t/silent7.sh +++ b/t/silent7.sh @@ -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 diff --git a/t/silent8.sh b/t/silent8.sh index 5d7b135..2c99560 100755 --- a/t/silent8.sh +++ b/t/silent8.sh @@ -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 diff --git a/t/silent9.sh b/t/silent9.sh index 8d0f6ea..4ffb4b6 100755 --- a/t/silent9.sh +++ b/t/silent9.sh @@ -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 diff --git a/t/silentcxx-gcc.sh b/t/silentcxx-gcc.sh index bafad6d..f75100a 100755 --- a/t/silentcxx-gcc.sh +++ b/t/silentcxx-gcc.sh @@ -19,7 +19,7 @@ # test 'silentcxx.sh', which should work with generic compilers. required=g++ -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silentcxx.sh b/t/silentcxx.sh index fe4c9d4..0bc4c35 100755 --- a/t/silentcxx.sh +++ b/t/silentcxx.sh @@ -20,7 +20,7 @@ # and forces the use of gcc depmode. required=c++ -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silentf77.sh b/t/silentf77.sh index e104a69..f1a423b 100755 --- a/t/silentf77.sh +++ b/t/silentf77.sh @@ -18,7 +18,7 @@ # Keep this ins sync with the sister test 'silentf90.sh'. required=fortran77 -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/silentf90.sh b/t/silentf90.sh index f0c470d..650d0b6 100755 --- a/t/silentf90.sh +++ b/t/silentf90.sh @@ -18,7 +18,7 @@ # Keep this ins sync with the sister test 'silentf77.sh'. required=fortran -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/sourcefile-in-subdir.sh b/t/sourcefile-in-subdir.sh index 831300e..66fe9b7 100755 --- a/t/sourcefile-in-subdir.sh +++ b/t/sourcefile-in-subdir.sh @@ -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 diff --git a/t/space.sh b/t/space.sh index 96bf9ba..21cffd2 100755 --- a/t/space.sh +++ b/t/space.sh @@ -16,7 +16,7 @@ # Test leading space on macro assignment. -. ./defs || exit 1 +. test-init.sh echo AC_PROG_CC >> configure.ac diff --git a/t/specflg-dummy.sh b/t/specflg-dummy.sh index 28d576c..e0611bc 100755 --- a/t/specflg-dummy.sh +++ b/t/specflg-dummy.sh @@ -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 diff --git a/t/specflg6.sh b/t/specflg6.sh index 958e887..791d9f7 100755 --- a/t/specflg6.sh +++ b/t/specflg6.sh @@ -18,7 +18,7 @@ # conditionals are present. # From Richard Boulton. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/specflg7.sh b/t/specflg7.sh index 7261d18..0572040 100755 --- a/t/specflg7.sh +++ b/t/specflg7.sh @@ -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 diff --git a/t/specflg8.sh b/t/specflg8.sh index 598970a..be7cf45 100755 --- a/t/specflg8.sh +++ b/t/specflg8.sh @@ -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 diff --git a/t/specflg9.sh b/t/specflg9.sh index c8cde9e..4292629 100755 --- a/t/specflg9.sh +++ b/t/specflg9.sh @@ -16,7 +16,7 @@ # Another check for per-target flag substitutions. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/spell.sh b/t/spell.sh index 18abba2..3bed9b1 100755 --- a/t/spell.sh +++ b/t/spell.sh @@ -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 diff --git a/t/spell2.sh b/t/spell2.sh index c468b2b..98550af 100755 --- a/t/spell2.sh +++ b/t/spell2.sh @@ -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 diff --git a/t/spell3.sh b/t/spell3.sh index c12703b..4d20930 100755 --- a/t/spell3.sh +++ b/t/spell3.sh @@ -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 diff --git a/t/spelling.sh b/t/spelling.sh index f6f99eb..94cce09 100755 --- a/t/spelling.sh +++ b/t/spelling.sh @@ -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 diff --git a/t/spy-rm.tap b/t/spy-rm.tap index f279745..0a2e512 100755 --- a/t/spy-rm.tap +++ b/t/spy-rm.tap @@ -25,7 +25,7 @@ # am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh plan_ 10 diff --git a/t/spy.sh b/t/spy.sh index a23772d..641627a 100755 --- 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 diff --git a/t/src-acsubst.sh b/t/src-acsubst.sh index 13531ac..5772cb2 100755 --- a/t/src-acsubst.sh +++ b/t/src-acsubst.sh @@ -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 diff --git a/t/stamph2.sh b/t/stamph2.sh index 10c7d98..7860e72 100755 --- a/t/stamph2.sh +++ b/t/stamph2.sh @@ -15,7 +15,7 @@ # along with this program. If not, see . # 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 diff --git a/t/stdinc.sh b/t/stdinc.sh index d030e64..21c66b8 100755 --- a/t/stdinc.sh +++ b/t/stdinc.sh @@ -18,7 +18,7 @@ # Report by Kent Boortz. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/stdlib.sh b/t/stdlib.sh index b3f458a..59177fc 100755 --- a/t/stdlib.sh +++ b/t/stdlib.sh @@ -16,7 +16,7 @@ # Test "not a standard library" error. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/stdlib2.sh b/t/stdlib2.sh index 6cce916..f79353c 100755 --- a/t/stdlib2.sh +++ b/t/stdlib2.sh @@ -17,7 +17,7 @@ # Check for AM_LDFLAGS = -module # Report from Kevin P. Fleming. required=libtool -. ./defs || exit 1 +. test-init.sh : > README : > NEWS diff --git a/t/strictness-override.sh b/t/strictness-override.sh index 27e44dd..f3028db 100755 --- a/t/strictness-override.sh +++ b/t/strictness-override.sh @@ -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 diff --git a/t/strictness-precedence.sh b/t/strictness-precedence.sh index ab70ee3..d56cf5f 100755 --- a/t/strictness-precedence.sh +++ b/t/strictness-precedence.sh @@ -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 diff --git a/t/strip.sh b/t/strip.sh index 6170627..338d5bb 100755 --- a/t/strip.sh +++ b/t/strip.sh @@ -17,7 +17,7 @@ # Test for install-strip. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/strip2.sh b/t/strip2.sh index 2397545..c18b517 100755 --- a/t/strip2.sh +++ b/t/strip2.sh @@ -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 diff --git a/t/strip3.sh b/t/strip3.sh index 543449d..5c3121f 100755 --- a/t/strip3.sh +++ b/t/strip3.sh @@ -19,7 +19,7 @@ # test 'strip2.sh'. required='cc libtoolize strip' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/subdir-ac-subst.sh b/t/subdir-ac-subst.sh index a8deb17..37f5899 100755 --- a/t/subdir-ac-subst.sh +++ b/t/subdir-ac-subst.sh @@ -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 diff --git a/t/subdir-add-pr46.sh b/t/subdir-add-pr46.sh index 66ecfda..750ae80 100755 --- a/t/subdir-add-pr46.sh +++ b/t/subdir-add-pr46.sh @@ -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 diff --git a/t/subdir-add2-pr46.sh b/t/subdir-add2-pr46.sh index a402052..bfe7e9c 100755 --- a/t/subdir-add2-pr46.sh +++ b/t/subdir-add2-pr46.sh @@ -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]) diff --git a/t/subdir-am-cond.sh b/t/subdir-am-cond.sh index cb55ffb..28868bf 100755 --- a/t/subdir-am-cond.sh +++ b/t/subdir-am-cond.sh @@ -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]) diff --git a/t/subdir-cond-err.sh b/t/subdir-cond-err.sh index 4eba4f8..da0ab56 100755 --- a/t/subdir-cond-err.sh +++ b/t/subdir-cond-err.sh @@ -16,7 +16,7 @@ # Check SUBDIRS set based on conditionals. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_CONDITIONAL([TEST], [true]) diff --git a/t/subdir-cond-gettext.sh b/t/subdir-cond-gettext.sh index f933f77..4cc48e5 100755 --- a/t/subdir-cond-gettext.sh +++ b/t/subdir-cond-gettext.sh @@ -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 diff --git a/t/subdir-distclean.sh b/t/subdir-distclean.sh index 25274fd..4b005e8 100755 --- a/t/subdir-distclean.sh +++ b/t/subdir-distclean.sh @@ -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]) diff --git a/t/subdir-env-interference.sh b/t/subdir-env-interference.sh index 396aecc..8c3dc58 100755 --- a/t/subdir-env-interference.sh +++ b/t/subdir-env-interference.sh @@ -16,7 +16,7 @@ # SUDBIRS with $fail set in the environment. -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/subdir-order.sh b/t/subdir-order.sh index 0ce19d9..1b6ee9d 100755 --- a/t/subdir-order.sh +++ b/t/subdir-order.sh @@ -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([ diff --git a/t/subdir-subsub.sh b/t/subdir-subsub.sh index b8389dd..6925ea7 100755 --- a/t/subdir-subsub.sh +++ b/t/subdir-subsub.sh @@ -16,7 +16,7 @@ # Test to make sure sub-sub-dirs work correctly. -. ./defs || exit 1 +. test-init.sh mkdir one mkdir one/two diff --git a/t/subdir-with-slash.sh b/t/subdir-with-slash.sh index 0a3330b..1063589 100755 --- a/t/subdir-with-slash.sh +++ b/t/subdir-with-slash.sh @@ -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]) diff --git a/t/subdir.sh b/t/subdir.sh index 249481a..e871999 100755 --- a/t/subdir.sh +++ b/t/subdir.sh @@ -17,7 +17,7 @@ # Test to make sure install-sh and mkinstalldirs correctly found in # subdirs. -. ./defs || exit 1 +. test-init.sh mkdir zot diff --git a/t/subobj-clean-lt-pr10697.sh b/t/subobj-clean-lt-pr10697.sh index 6cbc021..b02a6a4 100755 --- a/t/subobj-clean-lt-pr10697.sh +++ b/t/subobj-clean-lt-pr10697.sh @@ -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 diff --git a/t/subobj-clean-pr10697.sh b/t/subobj-clean-pr10697.sh index e7be1c5..9fdc786 100755 --- a/t/subobj-clean-pr10697.sh +++ b/t/subobj-clean-pr10697.sh @@ -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 diff --git a/t/subobj.sh b/t/subobj.sh index 7ac839b..19b1311 100755 --- a/t/subobj.sh +++ b/t/subobj.sh @@ -16,7 +16,7 @@ # Test of subdir objects with C. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/subobj10.sh b/t/subobj10.sh index cefb0ab..68f0e32 100755 --- a/t/subobj10.sh +++ b/t/subobj10.sh @@ -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]) diff --git a/t/subobj11a.sh b/t/subobj11a.sh index 25bdb93..4bd8863 100755 --- a/t/subobj11a.sh +++ b/t/subobj11a.sh @@ -27,7 +27,7 @@ # 'subobj11c.sh'. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/subobj11b.sh b/t/subobj11b.sh index 6d539c2..89f878b 100755 --- a/t/subobj11b.sh +++ b/t/subobj11b.sh @@ -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 diff --git a/t/subobj11c.sh b/t/subobj11c.sh index ce33e30..20119e1 100755 --- a/t/subobj11c.sh +++ b/t/subobj11c.sh @@ -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 diff --git a/t/subobj2.sh b/t/subobj2.sh index 646c6cf..d0b05fe 100755 --- a/t/subobj2.sh +++ b/t/subobj2.sh @@ -16,7 +16,7 @@ # Test of subdir objects with C++. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CXX diff --git a/t/subobj4.sh b/t/subobj4.sh index 4399eef..4fb227f 100755 --- a/t/subobj4.sh +++ b/t/subobj4.sh @@ -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 diff --git a/t/subobj5.sh b/t/subobj5.sh index 6736cb1..b056374 100755 --- a/t/subobj5.sh +++ b/t/subobj5.sh @@ -18,7 +18,7 @@ # From Robert Collins. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_CONFIG_FILES([generic/Makefile]) diff --git a/t/subobj6.sh b/t/subobj6.sh index cf265f7..67a0548 100755 --- a/t/subobj6.sh +++ b/t/subobj6.sh @@ -18,7 +18,7 @@ # From Robert Collins. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AM_PROG_CC_C_O diff --git a/t/subobj7.sh b/t/subobj7.sh index 1ce58ae..4e95b4c 100755 --- a/t/subobj7.sh +++ b/t/subobj7.sh @@ -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 diff --git a/t/subobj8.sh b/t/subobj8.sh index 58b1e41..fe0d0c8 100755 --- a/t/subobj8.sh +++ b/t/subobj8.sh @@ -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]) diff --git a/t/subobj9.sh b/t/subobj9.sh index 2d8f8fb..6967576 100755 --- a/t/subobj9.sh +++ b/t/subobj9.sh @@ -23,7 +23,7 @@ # forgets '.../.o'. required='c++ libtoolize' -. ./defs || exit 1 +. test-init.sh cat > configure.ac << END AC_INIT([$me], [1.0]) diff --git a/t/subobjname.sh b/t/subobjname.sh index 7601664..36cb4d6 100755 --- a/t/subobjname.sh +++ b/t/subobjname.sh @@ -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 diff --git a/t/subpkg-yacc.sh b/t/subpkg-yacc.sh index 0ce1a7c..f05396f 100755 --- a/t/subpkg-yacc.sh +++ b/t/subpkg-yacc.sh @@ -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 diff --git a/t/subpkg.sh b/t/subpkg.sh index d1c5ed3..6944535 100755 --- a/t/subpkg.sh +++ b/t/subpkg.sh @@ -17,7 +17,7 @@ # Check subpackage handling. required=cc -. ./defs || exit 1 +. test-init.sh mkdir m4 diff --git a/t/subpkg2.sh b/t/subpkg2.sh index ea95d5f..2914fdc 100755 --- a/t/subpkg2.sh +++ b/t/subpkg2.sh @@ -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 diff --git a/t/subpkg3.sh b/t/subpkg3.sh index 6ebc4bd..5f89b91 100755 --- a/t/subpkg3.sh +++ b/t/subpkg3.sh @@ -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 diff --git a/t/subpkg4.sh b/t/subpkg4.sh index 97f452c..d4ac46d 100755 --- a/t/subpkg4.sh +++ b/t/subpkg4.sh @@ -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 diff --git a/t/subst-no-trailing-empty-line.sh b/t/subst-no-trailing-empty-line.sh index 388f297..f9a9c5b 100755 --- a/t/subst-no-trailing-empty-line.sh +++ b/t/subst-no-trailing-empty-line.sh @@ -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 diff --git a/t/subst.sh b/t/subst.sh index db83d73..a6010e4 100755 --- a/t/subst.sh +++ b/t/subst.sh @@ -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 diff --git a/t/subst3.sh b/t/subst3.sh index 18c17e2..475027b 100755 --- a/t/subst3.sh +++ b/t/subst3.sh @@ -18,7 +18,7 @@ # 'nobase.sh'. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'EOF' AC_PROG_CC diff --git a/t/subst4.sh b/t/subst4.sh index 739b368..91066e8 100755 --- a/t/subst4.sh +++ b/t/subst4.sh @@ -16,7 +16,7 @@ # Test AM_SUBST_NOTMAKE. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'EOF' myrule="\ diff --git a/t/subst5.sh b/t/subst5.sh index f44b851..636d188 100755 --- a/t/subst5.sh +++ b/t/subst5.sh @@ -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 diff --git a/t/substre2.sh b/t/substre2.sh index 06fcdf1..dd23e00 100755 --- a/t/substre2.sh +++ b/t/substre2.sh @@ -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]) diff --git a/t/substref.sh b/t/substref.sh index 4ea39e6..81aa175 100755 --- a/t/substref.sh +++ b/t/substref.sh @@ -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]) diff --git a/t/substtarg.sh b/t/substtarg.sh index 757885c..75e19fb 100755 --- a/t/substtarg.sh +++ b/t/substtarg.sh @@ -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]) diff --git a/t/suffix-chain.tap b/t/suffix-chain.tap index 535e36e..20656db 100755 --- a/t/suffix-chain.tap +++ b/t/suffix-chain.tap @@ -19,7 +19,7 @@ # See automake bug#7824 and bug#7670. required=cc -. ./defs || exit 1 +. test-init.sh plan_ 8 diff --git a/t/suffix-custom-subobj-and-specflg.sh b/t/suffix-custom-subobj-and-specflg.sh index bcdbc9a..15aa56a 100755 --- a/t/suffix-custom-subobj-and-specflg.sh +++ b/t/suffix-custom-subobj-and-specflg.sh @@ -19,7 +19,7 @@ # Reported by Florian Briegel. required=cc -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <>configure.ac <> configure.ac << 'END' AC_PROG_CC diff --git a/t/suffix10.tap b/t/suffix10.tap index 7e19e04..1f83590 100755 --- a/t/suffix10.tap +++ b/t/suffix10.tap @@ -18,7 +18,7 @@ # (related to PR/37) required='cc libtoolize yacc' -. ./defs || exit 1 +. test-init.sh plan_ 7 diff --git a/t/suffix11.tap b/t/suffix11.tap index 26694eb..61fbb51 100755 --- a/t/suffix11.tap +++ b/t/suffix11.tap @@ -19,7 +19,7 @@ # We also check for suffixes containing '-'. required=cc -. ./defs || exit 1 +. test-init.sh plan_ 10 diff --git a/t/suffix2.sh b/t/suffix2.sh index 1cee875..9fc8f2b 100755 --- a/t/suffix2.sh +++ b/t/suffix2.sh @@ -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 diff --git a/t/suffix3.tap b/t/suffix3.tap index 15c562d..166788b 100755 --- a/t/suffix3.tap +++ b/t/suffix3.tap @@ -17,7 +17,7 @@ # Test to make sure that suffix rules chain. required=c++ -. ./defs || exit 1 +. test-init.sh plan_ 10 diff --git a/t/suffix4.sh b/t/suffix4.sh index 2defd08..4756e7b 100755 --- a/t/suffix4.sh +++ b/t/suffix4.sh @@ -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: diff --git a/t/suffix5.sh b/t/suffix5.sh index fec51e9..d8c43ea 100755 --- a/t/suffix5.sh +++ b/t/suffix5.sh @@ -19,7 +19,7 @@ # Based on a report from Arkadiusz Miskiewicz . required='cc libtool' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_SUBST([LINK], [:]) diff --git a/t/suffix6.sh b/t/suffix6.sh index 4b3dee2..23cd5f0 100755 --- a/t/suffix6.sh +++ b/t/suffix6.sh @@ -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 diff --git a/t/suffix6b.sh b/t/suffix6b.sh index cfd1662..f5504dc 100755 --- a/t/suffix6b.sh +++ b/t/suffix6b.sh @@ -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 diff --git a/t/suffix6c.sh b/t/suffix6c.sh index f688ef7..ae3399f 100755 --- a/t/suffix6c.sh +++ b/t/suffix6c.sh @@ -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 diff --git a/t/suffix7.sh b/t/suffix7.sh index 30a18c0..253a652 100755 --- a/t/suffix7.sh +++ b/t/suffix7.sh @@ -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 diff --git a/t/suffix8.tap b/t/suffix8.tap index 516c9b2..f61a6b0 100755 --- a/t/suffix8.tap +++ b/t/suffix8.tap @@ -19,7 +19,7 @@ # From PR/37. required='cc libtoolize' -. ./defs || exit 1 +. test-init.sh plan_ 10 diff --git a/t/suffix9.sh b/t/suffix9.sh index a0135da..043b9ad 100755 --- a/t/suffix9.sh +++ b/t/suffix9.sh @@ -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 diff --git a/t/symlink.sh b/t/symlink.sh index ad7de70..a4c7449 100755 --- a/t/symlink.sh +++ b/t/symlink.sh @@ -18,7 +18,7 @@ # Reported by Joerg-Martin Schwarz. am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh : > Makefile.am diff --git a/t/symlink2.sh b/t/symlink2.sh index f1f9dc5..fe7d2fa 100755 --- a/t/symlink2.sh +++ b/t/symlink2.sh @@ -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" diff --git a/t/syntax.sh b/t/syntax.sh index e2404ba..96cc8b3 100755 --- a/t/syntax.sh +++ b/t/syntax.sh @@ -16,7 +16,7 @@ # Test for error for bad syntax. -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' foo = q \ diff --git a/t/tags-pr12372.sh b/t/tags-pr12372.sh index 66b40a0..e232d5f 100755 --- a/t/tags-pr12372.sh +++ b/t/tags-pr12372.sh @@ -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 diff --git a/t/tags.sh b/t/tags.sh index 8f38e6b..deeea16 100755 --- 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 diff --git a/t/tags2.sh b/t/tags2.sh index 521d2ef..a8d3486 100755 --- a/t/tags2.sh +++ b/t/tags2.sh @@ -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 diff --git a/t/tagsub.sh b/t/tagsub.sh index 9103805..fab0c30 100755 --- a/t/tagsub.sh +++ b/t/tagsub.sh @@ -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]) diff --git a/t/tap-ambiguous-directive.sh b/t/tap-ambiguous-directive.sh index 63544e3..9c8b03f 100755 --- a/t/tap-ambiguous-directive.sh +++ b/t/tap-ambiguous-directive.sh @@ -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 diff --git a/t/tap-autonumber.sh b/t/tap-autonumber.sh index 876245e..450a381 100755 --- a/t/tap-autonumber.sh +++ b/t/tap-autonumber.sh @@ -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 diff --git a/t/tap-bad-prog.tap b/t/tap-bad-prog.tap index 09b2c74..e37f18c 100755 --- a/t/tap-bad-prog.tap +++ b/t/tap-bad-prog.tap @@ -18,7 +18,7 @@ # - missing, unreadable, or not-executable test scripts cause proper # error reports -. ./defs || exit 1 +. test-init.sh fetch_tap_driver diff --git a/t/tap-bailout-and-logging.sh b/t/tap-bailout-and-logging.sh index f87ccb3..33fab0d 100755 --- a/t/tap-bailout-and-logging.sh +++ b/t/tap-bailout-and-logging.sh @@ -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 diff --git a/t/tap-bailout-leading-space.sh b/t/tap-bailout-leading-space.sh index dfbadba..54985ba 100755 --- a/t/tap-bailout-leading-space.sh +++ b/t/tap-bailout-leading-space.sh @@ -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 diff --git a/t/tap-bailout-suppress-badexit.sh b/t/tap-bailout-suppress-badexit.sh index 7cd5458..e9bf2a1 100755 --- a/t/tap-bailout-suppress-badexit.sh +++ b/t/tap-bailout-suppress-badexit.sh @@ -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' diff --git a/t/tap-bailout-suppress-later-diagnostic.sh b/t/tap-bailout-suppress-later-diagnostic.sh index 54e21fd..72a0512 100755 --- a/t/tap-bailout-suppress-later-diagnostic.sh +++ b/t/tap-bailout-suppress-later-diagnostic.sh @@ -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 diff --git a/t/tap-bailout-suppress-later-errors.sh b/t/tap-bailout-suppress-later-errors.sh index bd90f8d..fffc21d 100755 --- a/t/tap-bailout-suppress-later-errors.sh +++ b/t/tap-bailout-suppress-later-errors.sh @@ -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 diff --git a/t/tap-bailout.sh b/t/tap-bailout.sh index 08f12fd..0cc3434 100755 --- a/t/tap-bailout.sh +++ b/t/tap-bailout.sh @@ -17,7 +17,7 @@ # Basic TAP test protocol support: # - "Bail out!" magic -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-basic.sh b/t/tap-basic.sh index 4781ce5..31f330e 100755 --- a/t/tap-basic.sh +++ b/t/tap-basic.sh @@ -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 diff --git a/t/tap-color.sh b/t/tap-color.sh index a3fab2f..1e83623 100755 --- a/t/tap-color.sh +++ b/t/tap-color.sh @@ -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" diff --git a/t/tap-common-setup.sh b/t/tap-common-setup.sh index 6bf168e..63af43c 100755 --- a/t/tap-common-setup.sh +++ b/t/tap-common-setup.sh @@ -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 diff --git a/t/tap-deps.sh b/t/tap-deps.sh index 8e84a63..535c58d 100755 --- a/t/tap-deps.sh +++ b/t/tap-deps.sh @@ -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. diff --git a/t/tap-diagnostic-custom.sh b/t/tap-diagnostic-custom.sh index 7c29aa9..511ed8b 100755 --- a/t/tap-diagnostic-custom.sh +++ b/t/tap-diagnostic-custom.sh @@ -18,7 +18,7 @@ # - option '--diagnostic-string' to customize the string introducing # TAP diagnostics -. ./defs || exit 1 +. test-init.sh fetch_tap_driver diff --git a/t/tap-diagnostic.sh b/t/tap-diagnostic.sh index fc00af9..9cadc86 100755 --- a/t/tap-diagnostic.sh +++ b/t/tap-diagnostic.sh @@ -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 diff --git a/t/tap-doc.sh b/t/tap-doc.sh index 69c56f0..b858ec9 100755 --- a/t/tap-doc.sh +++ b/t/tap-doc.sh @@ -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 diff --git a/t/tap-doc2.sh b/t/tap-doc2.sh index c2f0fa3..78b88f6 100755 --- a/t/tap-doc2.sh +++ b/t/tap-doc2.sh @@ -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) \ diff --git a/t/tap-driver-stderr.sh b/t/tap-driver-stderr.sh index b1d9227..909769a 100755 --- a/t/tap-driver-stderr.sh +++ b/t/tap-driver-stderr.sh @@ -19,7 +19,7 @@ required=non-root am_create_testdir=empty -. ./defs || exit 1 +. test-init.sh fetch_tap_driver diff --git a/t/tap-empty-diagnostic.sh b/t/tap-empty-diagnostic.sh index ae0deef..e0e5967 100755 --- a/t/tap-empty-diagnostic.sh +++ b/t/tap-empty-diagnostic.sh @@ -17,7 +17,7 @@ # TAP support: # - empty diagnostic messages are discarder -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-empty.sh b/t/tap-empty.sh index e3d400c..a4c8e73 100755 --- a/t/tap-empty.sh +++ b/t/tap-empty.sh @@ -18,7 +18,7 @@ # - empty TAP input # - blank TAP input -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-escape-directive-2.sh b/t/tap-escape-directive-2.sh index 49c6398..4e476fa 100755 --- a/t/tap-escape-directive-2.sh +++ b/t/tap-escape-directive-2.sh @@ -17,7 +17,7 @@ # TAP support: # - "escape" TODO and SKIP directives (by escaping the "#" character) -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-escape-directive.sh b/t/tap-escape-directive.sh index 9b59c3d..b635814 100755 --- a/t/tap-escape-directive.sh +++ b/t/tap-escape-directive.sh @@ -17,7 +17,7 @@ # TAP support: # - "escape" TODO and SKIP directives (by escaping the "#" character) -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-exit.sh b/t/tap-exit.sh index c9a9823..3c51cc3 100755 --- a/t/tap-exit.sh +++ b/t/tap-exit.sh @@ -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 diff --git a/t/tap-fancy.sh b/t/tap-fancy.sh index c59d0c1..587b0ae 100755 --- a/t/tap-fancy.sh +++ b/t/tap-fancy.sh @@ -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 diff --git a/t/tap-fancy2.sh b/t/tap-fancy2.sh index 1a3ab02..aaa4fbc 100755 --- a/t/tap-fancy2.sh +++ b/t/tap-fancy2.sh @@ -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 diff --git a/t/tap-global-log.sh b/t/tap-global-log.sh index 31e1ccb..2ebad94 100755 --- a/t/tap-global-log.sh +++ b/t/tap-global-log.sh @@ -17,7 +17,7 @@ # TAP support: # - which log files get copied in the global log? -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-global-result.sh b/t/tap-global-result.sh index 528c7bb..2c27259 100755 --- a/t/tap-global-result.sh +++ b/t/tap-global-result.sh @@ -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 diff --git a/t/tap-log.sh b/t/tap-log.sh index b9d3603..c679d4f 100755 --- a/t/tap-log.sh +++ b/t/tap-log.sh @@ -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 diff --git a/t/tap-merge-stdout-stderr.sh b/t/tap-merge-stdout-stderr.sh index b13d41d..37167c6 100755 --- a/t/tap-merge-stdout-stderr.sh +++ b/t/tap-merge-stdout-stderr.sh @@ -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 diff --git a/t/tap-missing-plan-and-bad-exit.sh b/t/tap-missing-plan-and-bad-exit.sh index 06a6f88..c49852a 100755 --- a/t/tap-missing-plan-and-bad-exit.sh +++ b/t/tap-missing-plan-and-bad-exit.sh @@ -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 < Makefile.am << 'END' DISABLE_HARD_ERRORS = yes diff --git a/t/tap-no-merge-stdout-stderr.sh b/t/tap-no-merge-stdout-stderr.sh index f101315..6be67a7 100755 --- a/t/tap-no-merge-stdout-stderr.sh +++ b/t/tap-no-merge-stdout-stderr.sh @@ -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 diff --git a/t/tap-no-spurious-numbers.sh b/t/tap-no-spurious-numbers.sh index 81104af..1f5e1b7 100755 --- a/t/tap-no-spurious-numbers.sh +++ b/t/tap-no-spurious-numbers.sh @@ -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 diff --git a/t/tap-no-spurious-summary.sh b/t/tap-no-spurious-summary.sh index 13c577c..1c420a0 100755 --- a/t/tap-no-spurious-summary.sh +++ b/t/tap-no-spurious-summary.sh @@ -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 diff --git a/t/tap-no-spurious.sh b/t/tap-no-spurious.sh index d8bf5ee..d40dd41 100755 --- a/t/tap-no-spurious.sh +++ b/t/tap-no-spurious.sh @@ -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 diff --git a/t/tap-not-ok-skip.sh b/t/tap-not-ok-skip.sh index bbb9a03..4fb0511 100755 --- a/t/tap-not-ok-skip.sh +++ b/t/tap-not-ok-skip.sh @@ -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 diff --git a/t/tap-number-wordboundary.sh b/t/tap-number-wordboundary.sh index 2d15121..5cc3fa4 100755 --- a/t/tap-number-wordboundary.sh +++ b/t/tap-number-wordboundary.sh @@ -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 diff --git a/t/tap-numbers-leading-zero.sh b/t/tap-numbers-leading-zero.sh index 620addf..af30688 100755 --- a/t/tap-numbers-leading-zero.sh +++ b/t/tap-numbers-leading-zero.sh @@ -17,7 +17,7 @@ # TAP support: # - how does TAP result numbers with leading zero fares? -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-numeric-description.sh b/t/tap-numeric-description.sh index 61bc252..080aae9 100755 --- a/t/tap-numeric-description.sh +++ b/t/tap-numeric-description.sh @@ -16,7 +16,7 @@ # TAP result lines whose description is a number. -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-out-of-order.sh b/t/tap-out-of-order.sh index ff0e806..d08fd90 100755 --- a/t/tap-out-of-order.sh +++ b/t/tap-out-of-order.sh @@ -17,7 +17,7 @@ # TAP support: # - out-of-order test results -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-passthrough-exit.sh b/t/tap-passthrough-exit.sh index 33287be..9ba399b 100755 --- a/t/tap-passthrough-exit.sh +++ b/t/tap-passthrough-exit.sh @@ -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) diff --git a/t/tap-passthrough.sh b/t/tap-passthrough.sh index 981c428..f3055c3 100755 --- a/t/tap-passthrough.sh +++ b/t/tap-passthrough.sh @@ -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=\''"\$@!&()[]<>#;,:.^?*/' diff --git a/t/tap-plan-corner.sh b/t/tap-plan-corner.sh index 8fc0c7e..fc9b1a2 100755 --- a/t/tap-plan-corner.sh +++ b/t/tap-plan-corner.sh @@ -17,7 +17,7 @@ # TAP support: # - some corner cases for TAP plan -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-plan-errors.sh b/t/tap-plan-errors.sh index dd37aff..bbe580e 100755 --- a/t/tap-plan-errors.sh +++ b/t/tap-plan-errors.sh @@ -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 diff --git a/t/tap-plan-leading-zero.sh b/t/tap-plan-leading-zero.sh index dc1923c..54097da 100755 --- a/t/tap-plan-leading-zero.sh +++ b/t/tap-plan-leading-zero.sh @@ -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 diff --git a/t/tap-plan-malformed.sh b/t/tap-plan-malformed.sh index cf43d47..1f7e4dd 100755 --- a/t/tap-plan-malformed.sh +++ b/t/tap-plan-malformed.sh @@ -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 diff --git a/t/tap-plan-middle.sh b/t/tap-plan-middle.sh index 971869b..f234cb0 100755 --- a/t/tap-plan-middle.sh +++ b/t/tap-plan-middle.sh @@ -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 diff --git a/t/tap-plan-whitespace.sh b/t/tap-plan-whitespace.sh index 5cc198f..ea9e45c 100755 --- a/t/tap-plan-whitespace.sh +++ b/t/tap-plan-whitespace.sh @@ -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 diff --git a/t/tap-plan.sh b/t/tap-plan.sh index d222870..bc4170b 100755 --- a/t/tap-plan.sh +++ b/t/tap-plan.sh @@ -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 diff --git a/t/tap-planskip-and-logging.sh b/t/tap-planskip-and-logging.sh index 33e5f7f..71426ac 100755 --- a/t/tap-planskip-and-logging.sh +++ b/t/tap-planskip-and-logging.sh @@ -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 diff --git a/t/tap-planskip-badexit.sh b/t/tap-planskip-badexit.sh index 0bcc7e3..cf39060 100755 --- a/t/tap-planskip-badexit.sh +++ b/t/tap-planskip-badexit.sh @@ -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 diff --git a/t/tap-planskip-bailout.sh b/t/tap-planskip-bailout.sh index 6558a69..2bf683f 100755 --- a/t/tap-planskip-bailout.sh +++ b/t/tap-planskip-bailout.sh @@ -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 diff --git a/t/tap-planskip-case-insensitive.sh b/t/tap-planskip-case-insensitive.sh index ece3b25..01df36d 100755 --- a/t/tap-planskip-case-insensitive.sh +++ b/t/tap-planskip-case-insensitive.sh @@ -17,7 +17,7 @@ # TAP support: # - "SKIP" keyword in a TAP plan is case-insensitive -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-planskip-late.sh b/t/tap-planskip-late.sh index 678bd19..a5fd5f1 100755 --- a/t/tap-planskip-late.sh +++ b/t/tap-planskip-late.sh @@ -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 diff --git a/t/tap-planskip-later-errors.sh b/t/tap-planskip-later-errors.sh index c840044..ecb5496 100755 --- a/t/tap-planskip-later-errors.sh +++ b/t/tap-planskip-later-errors.sh @@ -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 diff --git a/t/tap-planskip-unplanned-corner.sh b/t/tap-planskip-unplanned-corner.sh index ef9ab3c..0272dd6 100755 --- a/t/tap-planskip-unplanned-corner.sh +++ b/t/tap-planskip-unplanned-corner.sh @@ -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 diff --git a/t/tap-planskip-unplanned.sh b/t/tap-planskip-unplanned.sh index 5fa8ca5..6ea3f05 100755 --- a/t/tap-planskip-unplanned.sh +++ b/t/tap-planskip-unplanned.sh @@ -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 diff --git a/t/tap-planskip-whitespace.sh b/t/tap-planskip-whitespace.sh index 5ae9d3a..0946b84 100755 --- a/t/tap-planskip-whitespace.sh +++ b/t/tap-planskip-whitespace.sh @@ -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 diff --git a/t/tap-planskip.sh b/t/tap-planskip.sh index 76a7244..4bb9c42 100755 --- a/t/tap-planskip.sh +++ b/t/tap-planskip.sh @@ -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 diff --git a/t/tap-realtime.sh b/t/tap-realtime.sh index fcac95f..f8544ee 100755 --- a/t/tap-realtime.sh +++ b/t/tap-realtime.sh @@ -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 ":" diff --git a/t/tap-recheck-logs.sh b/t/tap-recheck-logs.sh index 1b7597e..69c0fe2 100755 --- a/t/tap-recheck-logs.sh +++ b/t/tap-recheck-logs.sh @@ -17,7 +17,7 @@ # TAP support: # - RECHECK_LOGS -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' TEST_LOG_COMPILER = cat diff --git a/t/tap-recheck.sh b/t/tap-recheck.sh index a567964..55f0812 100755 --- a/t/tap-recheck.sh +++ b/t/tap-recheck.sh @@ -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 diff --git a/t/tap-result-comment.sh b/t/tap-result-comment.sh index 714f328..b7880ab 100755 --- a/t/tap-result-comment.sh +++ b/t/tap-result-comment.sh @@ -17,7 +17,7 @@ # TAP support: # - non-directive comments in TAP results are kept verbatim -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-signal.tap b/t/tap-signal.tap index 1dfc52d..f400695 100755 --- a/t/tap-signal.tap +++ b/t/tap-signal.tap @@ -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 diff --git a/t/tap-test-number-0.sh b/t/tap-test-number-0.sh index f360349..6939ed7 100755 --- a/t/tap-test-number-0.sh +++ b/t/tap-test-number-0.sh @@ -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 \ diff --git a/t/tap-todo-skip-together.sh b/t/tap-todo-skip-together.sh index ee40058..212ad87 100755 --- a/t/tap-todo-skip-together.sh +++ b/t/tap-todo-skip-together.sh @@ -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 diff --git a/t/tap-todo-skip-whitespace.sh b/t/tap-todo-skip-whitespace.sh index b979c8b..7839e37 100755 --- a/t/tap-todo-skip-whitespace.sh +++ b/t/tap-todo-skip-whitespace.sh @@ -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 diff --git a/t/tap-todo-skip.sh b/t/tap-todo-skip.sh index c4e47cf..ceacdbf 100755 --- a/t/tap-todo-skip.sh +++ b/t/tap-todo-skip.sh @@ -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 diff --git a/t/tap-unplanned.sh b/t/tap-unplanned.sh index 75ad7bf..49af6e0 100755 --- a/t/tap-unplanned.sh +++ b/t/tap-unplanned.sh @@ -17,7 +17,7 @@ # TAP support: # - unplanned tests are properly reported as errors -. ./defs || exit 1 +. test-init.sh . tap-setup.sh diff --git a/t/tap-whitespace-normalization.sh b/t/tap-whitespace-normalization.sh index c907d11..cb5b759 100755 --- a/t/tap-whitespace-normalization.sh +++ b/t/tap-whitespace-normalization.sh @@ -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 diff --git a/t/tap-with-and-without-number.sh b/t/tap-with-and-without-number.sh index 6d69eb6..8e34d80 100755 --- a/t/tap-with-and-without-number.sh +++ b/t/tap-with-and-without-number.sh @@ -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 diff --git a/t/tap-xfail-tests.sh b/t/tap-xfail-tests.sh index 94ae1c9..7458942 100755 --- a/t/tap-xfail-tests.sh +++ b/t/tap-xfail-tests.sh @@ -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 diff --git a/t/tar-override.sh b/t/tar-override.sh index c35234e..ce8529d 100755 --- a/t/tar-override.sh +++ b/t/tar-override.sh @@ -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" diff --git a/t/tar.sh b/t/tar.sh index db3e489..76256b8 100755 --- 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]) diff --git a/t/tar2.sh b/t/tar2.sh index 5d49cc3..3ae53fc 100755 --- 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]) diff --git a/t/tar3.sh b/t/tar3.sh index c09aa6f..bc7c353 100755 --- 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]) diff --git a/t/target-cflags.sh b/t/target-cflags.sh index 9b975d5..f005838 100755 --- a/t/target-cflags.sh +++ b/t/target-cflags.sh @@ -18,7 +18,7 @@ # Assar Westerlund required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/targetclash.sh b/t/targetclash.sh index 031cbc1..72cf55d 100755 --- a/t/targetclash.sh +++ b/t/targetclash.sh @@ -16,7 +16,7 @@ # Check that target clashes are diagnosed. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/test-driver-acsubst.sh b/t/test-driver-acsubst.sh index 501fcc9..e8d24ac 100755 --- a/t/test-driver-acsubst.sh +++ b/t/test-driver-acsubst.sh @@ -17,7 +17,7 @@ # parallel-tests: # - LOG_DRIVER variables can be AC_SUBST'd -. ./defs || exit 1 +. test-init.sh mkdir test-drivers diff --git a/t/test-driver-cond.sh b/t/test-driver-cond.sh index 1bc4727..a96792d 100755 --- a/t/test-driver-cond.sh +++ b/t/test-driver-cond.sh @@ -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" diff --git a/t/test-driver-create-log-dir.sh b/t/test-driver-create-log-dir.sh index 5441abf..87db907 100755 --- a/t/test-driver-create-log-dir.sh +++ b/t/test-driver-create-log-dir.sh @@ -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 diff --git a/t/test-driver-custom-multitest-recheck.sh b/t/test-driver-custom-multitest-recheck.sh index 9d3f28f..99197a5 100755 --- a/t/test-driver-custom-multitest-recheck.sh +++ b/t/test-driver-custom-multitest-recheck.sh @@ -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" diff --git a/t/test-driver-custom-multitest-recheck2.sh b/t/test-driver-custom-multitest-recheck2.sh index 7f20b81..b87d035 100755 --- a/t/test-driver-custom-multitest-recheck2.sh +++ b/t/test-driver-custom-multitest-recheck2.sh @@ -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" diff --git a/t/test-driver-custom-multitest.sh b/t/test-driver-custom-multitest.sh index da8a88f..b3b7b2a 100755 --- a/t/test-driver-custom-multitest.sh +++ b/t/test-driver-custom-multitest.sh @@ -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" diff --git a/t/test-driver-custom-no-extra-driver.sh b/t/test-driver-custom-no-extra-driver.sh index a44febd..edd6183 100755 --- a/t/test-driver-custom-no-extra-driver.sh +++ b/t/test-driver-custom-no-extra-driver.sh @@ -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 diff --git a/t/test-driver-custom-xfail-tests.sh b/t/test-driver-custom-xfail-tests.sh index c19e69f..8bfe3e6 100755 --- a/t/test-driver-custom-xfail-tests.sh +++ b/t/test-driver-custom-xfail-tests.sh @@ -16,7 +16,7 @@ # Custom test drivers: "abstract" XFAIL_TESTS support. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_SUBST([nihil], []) diff --git a/t/test-driver-custom.sh b/t/test-driver-custom.sh index f8306ff..db41826 100755 --- a/t/test-driver-custom.sh +++ b/t/test-driver-custom.sh @@ -16,7 +16,7 @@ # Custom test drivers: per-extension test drivers. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/test-driver-fail.sh b/t/test-driver-fail.sh index 10a4b1e..963aadd 100755 --- a/t/test-driver-fail.sh +++ b/t/test-driver-fail.sh @@ -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 diff --git a/t/test-driver-is-distributed.sh b/t/test-driver-is-distributed.sh index ede7227..f13bf9b 100755 --- a/t/test-driver-is-distributed.sh +++ b/t/test-driver-is-distributed.sh @@ -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" diff --git a/t/test-driver-strip-vpath.sh b/t/test-driver-strip-vpath.sh index ab774db..6aafb6a 100755 --- a/t/test-driver-strip-vpath.sh +++ b/t/test-driver-strip-vpath.sh @@ -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" diff --git a/t/test-driver-trs-suffix-registered.sh b/t/test-driver-trs-suffix-registered.sh index 78acca2..9ce8b56 100755 --- a/t/test-driver-trs-suffix-registered.sh +++ b/t/test-driver-trs-suffix-registered.sh @@ -20,7 +20,7 @@ # - .test if $(TEST_EXTENSIONS) is not defined # - stuff in $(TEST_EXTENSIONS) otherwise -. ./defs || exit 1 +. test-init.sh : > Makefile.am diff --git a/t/test-extensions-cond.sh b/t/test-extensions-cond.sh index dda0193..3cc7d85 100755 --- a/t/test-extensions-cond.sh +++ b/t/test-extensions-cond.sh @@ -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], [:]) diff --git a/t/test-extensions.sh b/t/test-extensions.sh index 8f8c413..b1c457a 100755 --- a/t/test-extensions.sh +++ b/t/test-extensions.sh @@ -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 diff --git a/t/test-harness-vpath-rewrite.sh b/t/test-harness-vpath-rewrite.sh index 85e4bbb..ce904ce 100755 --- a/t/test-harness-vpath-rewrite.sh +++ b/t/test-harness-vpath-rewrite.sh @@ -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 diff --git a/t/test-log.sh b/t/test-log.sh index 0350cce..91c31c6 100755 --- a/t/test-log.sh +++ b/t/test-log.sh @@ -22,7 +22,7 @@ # - VERBOSE environment variable support # Keep in sync with 'tap-log.sh'. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <> configure.ac <> configure.ac << 'END' AC_OUTPUT diff --git a/t/test-metadata-global-result.sh b/t/test-metadata-global-result.sh index 8b6a3c8..d7fd8e9 100755 --- a/t/test-metadata-global-result.sh +++ b/t/test-metadata-global-result.sh @@ -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 diff --git a/t/test-metadata-recheck.sh b/t/test-metadata-recheck.sh index 4f2d29b..1aadc05 100755 --- a/t/test-metadata-recheck.sh +++ b/t/test-metadata-recheck.sh @@ -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 diff --git a/t/test-metadata-results.sh b/t/test-metadata-results.sh index 2410e03..5bcd0b8 100755 --- a/t/test-metadata-results.sh +++ b/t/test-metadata-results.sh @@ -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 diff --git a/t/test-missing.sh b/t/test-missing.sh index 5db274d..f830248 100755 --- a/t/test-missing.sh +++ b/t/test-missing.sh @@ -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 diff --git a/t/test-missing2.sh b/t/test-missing2.sh index 2ba3479..ca0588e 100755 --- a/t/test-missing2.sh +++ b/t/test-missing2.sh @@ -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 diff --git a/t/test-trs-basic.sh b/t/test-trs-basic.sh index f0c30b8..209e023 100755 --- a/t/test-trs-basic.sh +++ b/t/test-trs-basic.sh @@ -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 <> configure.ac <> configure.ac <> configure.ac << 'END' AC_OUTPUT diff --git a/t/tests-environment-backcompat.sh b/t/tests-environment-backcompat.sh index a82f297..bd79456 100755 --- a/t/tests-environment-backcompat.sh +++ b/t/tests-environment-backcompat.sh @@ -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 < -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/tests-environment.sh b/t/tests-environment.sh index d6f219d..519aa92 100755 --- a/t/tests-environment.sh +++ b/t/tests-environment.sh @@ -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 diff --git a/t/testsuite-summary-count-many.sh b/t/testsuite-summary-count-many.sh index 938c91e..866b922 100755 --- a/t/testsuite-summary-count-many.sh +++ b/t/testsuite-summary-count-many.sh @@ -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" diff --git a/t/testsuite-summary-reference-log.sh b/t/testsuite-summary-reference-log.sh index 1851226..6b7485b 100755 --- a/t/testsuite-summary-reference-log.sh +++ b/t/testsuite-summary-reference-log.sh @@ -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 diff --git a/t/transform.sh b/t/transform.sh index aa07970..dfea36f 100755 --- a/t/transform.sh +++ b/t/transform.sh @@ -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 diff --git a/t/transform2.sh b/t/transform2.sh index cab5f1a..72c5359 100755 --- a/t/transform2.sh +++ b/t/transform2.sh @@ -18,7 +18,7 @@ # collapsed. required=cc -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'END' AC_PROG_CC diff --git a/t/transform3.sh b/t/transform3.sh index fc37be1..8eb6735 100755 --- a/t/transform3.sh +++ b/t/transform3.sh @@ -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]) diff --git a/t/txinfo-no-clutter.sh b/t/txinfo-no-clutter.sh index 558f8e1..0325e68 100755 --- a/t/txinfo-no-clutter.sh +++ b/t/txinfo-no-clutter.sh @@ -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]) diff --git a/t/txinfo-unrecognized-extension.sh b/t/txinfo-unrecognized-extension.sh index 96b5f91..bb2b83d 100755 --- a/t/txinfo-unrecognized-extension.sh +++ b/t/txinfo-unrecognized-extension.sh @@ -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 diff --git a/t/txinfo.sh b/t/txinfo.sh index 31990c4..8b22b27 100755 --- a/t/txinfo.sh +++ b/t/txinfo.sh @@ -18,7 +18,7 @@ # Jim Meyering. required=makeinfo -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_OUTPUT diff --git a/t/txinfo10.sh b/t/txinfo10.sh index 903d6f5..2a186e1 100755 --- a/t/txinfo10.sh +++ b/t/txinfo10.sh @@ -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 diff --git a/t/txinfo13.sh b/t/txinfo13.sh index a98254c..374c44a 100755 --- a/t/txinfo13.sh +++ b/t/txinfo13.sh @@ -19,7 +19,7 @@ # from Vincent Lefevre). required='makeinfo tex texi2dvi' -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/txinfo16.sh b/t/txinfo16.sh index f4c1cee..11f7dea 100755 --- a/t/txinfo16.sh +++ b/t/txinfo16.sh @@ -18,7 +18,7 @@ # not in $(builddir). required='makeinfo tex texi2dvi' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_OUTPUT diff --git a/t/txinfo17.sh b/t/txinfo17.sh index d216769..f125af4 100755 --- a/t/txinfo17.sh +++ b/t/txinfo17.sh @@ -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 diff --git a/t/txinfo19.sh b/t/txinfo19.sh index 71af13a..1fbc79e 100755 --- a/t/txinfo19.sh +++ b/t/txinfo19.sh @@ -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 diff --git a/t/txinfo2.sh b/t/txinfo2.sh index 37c2953..c5e0e47 100755 --- a/t/txinfo2.sh +++ b/t/txinfo2.sh @@ -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 diff --git a/t/txinfo20.sh b/t/txinfo20.sh index 3d644f5..261725d 100755 --- a/t/txinfo20.sh +++ b/t/txinfo20.sh @@ -17,7 +17,7 @@ # Make sure info files survive makeinfo errors. required=makeinfo -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/txinfo21.sh b/t/txinfo21.sh index b6c222f..4e9245c 100755 --- a/t/txinfo21.sh +++ b/t/txinfo21.sh @@ -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]) diff --git a/t/txinfo22.sh b/t/txinfo22.sh index efde953..d337d6e 100755 --- a/t/txinfo22.sh +++ b/t/txinfo22.sh @@ -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]) diff --git a/t/txinfo23.sh b/t/txinfo23.sh index c2d582a..6b90f18 100755 --- a/t/txinfo23.sh +++ b/t/txinfo23.sh @@ -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 diff --git a/t/txinfo24.sh b/t/txinfo24.sh index 6979215..5a89c6b 100755 --- a/t/txinfo24.sh +++ b/t/txinfo24.sh @@ -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 diff --git a/t/txinfo25.sh b/t/txinfo25.sh index e23f537..45ea428 100755 --- a/t/txinfo25.sh +++ b/t/txinfo25.sh @@ -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 diff --git a/t/txinfo26.sh b/t/txinfo26.sh index 5401fc9..268f818 100755 --- a/t/txinfo26.sh +++ b/t/txinfo26.sh @@ -18,7 +18,7 @@ # PR/408 required='makeinfo' -. ./defs || exit 1 +. test-init.sh echo AC_OUTPUT >> configure.ac diff --git a/t/txinfo27.sh b/t/txinfo27.sh index bfc075a..f1e8791 100755 --- a/t/txinfo27.sh +++ b/t/txinfo27.sh @@ -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 diff --git a/t/txinfo28.sh b/t/txinfo28.sh index f3517b6..069a515 100755 --- a/t/txinfo28.sh +++ b/t/txinfo28.sh @@ -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. diff --git a/t/txinfo29.sh b/t/txinfo29.sh index 3e27362..b219678 100755 --- a/t/txinfo29.sh +++ b/t/txinfo29.sh @@ -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 diff --git a/t/txinfo3.sh b/t/txinfo3.sh index 5d7694f..d6f7caf 100755 --- a/t/txinfo3.sh +++ b/t/txinfo3.sh @@ -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 diff --git a/t/txinfo31.sh b/t/txinfo31.sh index e8186e5..567e28f 100755 --- a/t/txinfo31.sh +++ b/t/txinfo31.sh @@ -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 <>configure.ac <<'END' diff --git a/t/txinfo33.sh b/t/txinfo33.sh index a55b5ed..47f4038 100755 --- a/t/txinfo33.sh +++ b/t/txinfo33.sh @@ -18,7 +18,7 @@ # Similar to txinfo25.sh. required='makeinfo tex texi2dvi dvips' -. ./defs || exit 1 +. test-init.sh mkdir sub diff --git a/t/txinfo4.sh b/t/txinfo4.sh index e6c67b9..6784d03 100755 --- a/t/txinfo4.sh +++ b/t/txinfo4.sh @@ -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 diff --git a/t/txinfo6.sh b/t/txinfo6.sh index ca3184d..549ead8 100755 --- a/t/txinfo6.sh +++ b/t/txinfo6.sh @@ -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 diff --git a/t/txinfo7.sh b/t/txinfo7.sh index 93d199c..8d72054 100755 --- a/t/txinfo7.sh +++ b/t/txinfo7.sh @@ -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 diff --git a/t/txinfo8.sh b/t/txinfo8.sh index 6b1c6fa..46b791a 100755 --- a/t/txinfo8.sh +++ b/t/txinfo8.sh @@ -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]) diff --git a/t/txinfo9.sh b/t/txinfo9.sh index 97770f4..63dcf75 100755 --- a/t/txinfo9.sh +++ b/t/txinfo9.sh @@ -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 diff --git a/t/uninstall-fail.sh b/t/uninstall-fail.sh index 510c968..6c0c57c 100755 --- a/t/uninstall-fail.sh +++ b/t/uninstall-fail.sh @@ -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 diff --git a/t/uninstall-pr9578.sh b/t/uninstall-pr9578.sh index cb870b3..e5f9acb 100755 --- a/t/uninstall-pr9578.sh +++ b/t/uninstall-pr9578.sh @@ -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 diff --git a/t/unused.sh b/t/unused.sh index 79c7b41..11c43c1 100755 --- a/t/unused.sh +++ b/t/unused.sh @@ -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 diff --git a/t/upc.sh b/t/upc.sh index 4128ea0..3800a06 100755 --- 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 diff --git a/t/upc2.sh b/t/upc2.sh index be6461f..5abd0df 100755 --- 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 diff --git a/t/upc3.sh b/t/upc3.sh index 7da65d5..e031252 100755 --- 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 diff --git a/t/vala-headers.sh b/t/vala-headers.sh index 48dbf81..79a7b27 100755 --- a/t/vala-headers.sh +++ b/t/vala-headers.sh @@ -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 diff --git a/t/vala-libs.sh b/t/vala-libs.sh index f6a7ba9..c38740f 100755 --- a/t/vala-libs.sh +++ b/t/vala-libs.sh @@ -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 diff --git a/t/vala-mix.sh b/t/vala-mix.sh index 2580bd0..5e2e7ce 100755 --- a/t/vala-mix.sh +++ b/t/vala-mix.sh @@ -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 diff --git a/t/vala-mix2.sh b/t/vala-mix2.sh index e1dbb5d..9b2402d 100755 --- a/t/vala-mix2.sh +++ b/t/vala-mix2.sh @@ -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 diff --git a/t/vala-parallel.sh b/t/vala-parallel.sh index d03080d..c71420a 100755 --- a/t/vala-parallel.sh +++ b/t/vala-parallel.sh @@ -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 diff --git a/t/vala-vapi.sh b/t/vala-vapi.sh index 2f332da..f006832 100755 --- a/t/vala-vapi.sh +++ b/t/vala-vapi.sh @@ -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 diff --git a/t/vala-vpath.sh b/t/vala-vpath.sh index 9874f68..7428b97 100755 --- a/t/vala-vpath.sh +++ b/t/vala-vpath.sh @@ -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]) diff --git a/t/vala.sh b/t/vala.sh index 9e48549..4869a61 100755 --- 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' diff --git a/t/vala2.sh b/t/vala2.sh index 1c5bdb9..2543c78 100755 --- a/t/vala2.sh +++ b/t/vala2.sh @@ -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 diff --git a/t/vala3.sh b/t/vala3.sh index d9ecdea..96135d3 100755 --- a/t/vala3.sh +++ b/t/vala3.sh @@ -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 diff --git a/t/vala4.sh b/t/vala4.sh index a727ec5..aad5837 100755 --- a/t/vala4.sh +++ b/t/vala4.sh @@ -16,7 +16,7 @@ # Test AM_PROG_VALAC. -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/vala5.sh b/t/vala5.sh index bc29346..9cd57f8 100755 --- a/t/vala5.sh +++ b/t/vala5.sh @@ -17,7 +17,7 @@ # Test per-target flags. required="pkg-config valac gcc GNUmake" -. ./defs || exit 1 +. test-init.sh mkdir src diff --git a/t/var-recurs.sh b/t/var-recurs.sh index 6071e66..7a61584 100755 --- a/t/var-recurs.sh +++ b/t/var-recurs.sh @@ -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 diff --git a/t/var-recurs2.sh b/t/var-recurs2.sh index 0acdc2a..edf5d7b 100755 --- a/t/var-recurs2.sh +++ b/t/var-recurs2.sh @@ -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 diff --git a/t/vars.sh b/t/vars.sh index cf45cb9..14c62d8 100755 --- 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 diff --git a/t/vars3.sh b/t/vars3.sh index be30006..72af29c 100755 --- a/t/vars3.sh +++ b/t/vars3.sh @@ -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 *) diff --git a/t/vartar.sh b/t/vartar.sh index 1c9dc3b..384538a 100755 --- a/t/vartar.sh +++ b/t/vartar.sh @@ -16,7 +16,7 @@ # Targets and macros are two different name spaces. -. ./defs || exit 1 +. test-init.sh cat > Makefile.am << 'END' install = install diff --git a/t/vartypo2.sh b/t/vartypo2.sh index 90facaa..94151eb 100755 --- a/t/vartypo2.sh +++ b/t/vartypo2.sh @@ -18,7 +18,7 @@ # Libtool variant. required=libtoolize -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'END' AM_PROG_AR diff --git a/t/vartypos.sh b/t/vartypos.sh index 16317fb..e8da7e7 100755 --- a/t/vartypos.sh +++ b/t/vartypos.sh @@ -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 diff --git a/t/version3.sh b/t/version3.sh index 2b5294d..6299c61 100755 --- a/t/version3.sh +++ b/t/version3.sh @@ -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 diff --git a/t/version4.sh b/t/version4.sh index f04305e..53285fe 100755 --- a/t/version4.sh +++ b/t/version4.sh @@ -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 diff --git a/t/version6.sh b/t/version6.sh index 74fa088..659394e 100755 --- a/t/version6.sh +++ b/t/version6.sh @@ -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') diff --git a/t/version7.sh b/t/version7.sh index 812dc01..93eed4d 100755 --- a/t/version7.sh +++ b/t/version7.sh @@ -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 <>configure.ac $ACLOCAL 2>stderr && { cat stderr >&2; exit 0; } diff --git a/t/vpath.sh b/t/vpath.sh index dcb08ff..a67af17 100755 --- a/t/vpath.sh +++ b/t/vpath.sh @@ -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 diff --git a/t/vtexi.sh b/t/vtexi.sh index 5928ddd..31b763e 100755 --- a/t/vtexi.sh +++ b/t/vtexi.sh @@ -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 diff --git a/t/vtexi2.sh b/t/vtexi2.sh index 30f679f..aee1044 100755 --- a/t/vtexi2.sh +++ b/t/vtexi2.sh @@ -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 diff --git a/t/vtexi3.sh b/t/vtexi3.sh index 9afadce..a49579a 100755 --- a/t/vtexi3.sh +++ b/t/vtexi3.sh @@ -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. diff --git a/t/vtexi4.sh b/t/vtexi4.sh index 336ee86..97345ac 100755 --- a/t/vtexi4.sh +++ b/t/vtexi4.sh @@ -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" \ diff --git a/t/warning-groups-win-over-strictness.sh b/t/warning-groups-win-over-strictness.sh index 8824fa7..057ddaf 100755 --- a/t/warning-groups-win-over-strictness.sh +++ b/t/warning-groups-win-over-strictness.sh @@ -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 diff --git a/t/warnings-obsolete-default.sh b/t/warnings-obsolete-default.sh index fc439ea..7fbb1bc 100755 --- a/t/warnings-obsolete-default.sh +++ b/t/warnings-obsolete-default.sh @@ -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" diff --git a/t/warnings-override.sh b/t/warnings-override.sh index 756cac8..94047a2 100755 --- a/t/warnings-override.sh +++ b/t/warnings-override.sh @@ -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" diff --git a/t/warnings-precedence.sh b/t/warnings-precedence.sh index 4c15ecd..4a42234 100755 --- a/t/warnings-precedence.sh +++ b/t/warnings-precedence.sh @@ -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" diff --git a/t/warnings-strictness-interactions.sh b/t/warnings-strictness-interactions.sh index a2b6b40..83537a2 100755 --- a/t/warnings-strictness-interactions.sh +++ b/t/warnings-strictness-interactions.sh @@ -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" diff --git a/t/warnings-unknown.sh b/t/warnings-unknown.sh index d1b2b8c..2677d08 100755 --- a/t/warnings-unknown.sh +++ b/t/warnings-unknown.sh @@ -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" diff --git a/t/warnings-win-over-strictness.sh b/t/warnings-win-over-strictness.sh index 087a70d..eaeb825 100755 --- a/t/warnings-win-over-strictness.sh +++ b/t/warnings-win-over-strictness.sh @@ -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 diff --git a/t/warnopts.sh b/t/warnopts.sh index 68ceb2a..65165b7 100755 --- a/t/warnopts.sh +++ b/t/warnopts.sh @@ -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 < Makefile.am diff --git a/t/werror2.sh b/t/werror2.sh index 52ec181..b1feeff 100755 --- a/t/werror2.sh +++ b/t/werror2.sh @@ -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 diff --git a/t/werror3.sh b/t/werror3.sh index a22ff84..91e4dbc 100755 --- a/t/werror3.sh +++ b/t/werror3.sh @@ -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]) diff --git a/t/werror4.sh b/t/werror4.sh index 1b930d5..7908d1d 100755 --- a/t/werror4.sh +++ b/t/werror4.sh @@ -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]) diff --git a/t/whoami.sh b/t/whoami.sh index 4a4c2e9..6d0b13c 100755 --- a/t/whoami.sh +++ b/t/whoami.sh @@ -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 diff --git a/t/xsource.sh b/t/xsource.sh index cca400a..8e2814b 100755 --- a/t/xsource.sh +++ b/t/xsource.sh @@ -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 diff --git a/t/yacc-auxdir.sh b/t/yacc-auxdir.sh index eb7357d..03175c9 100755 --- a/t/yacc-auxdir.sh +++ b/t/yacc-auxdir.sh @@ -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 diff --git a/t/yacc-basic.sh b/t/yacc-basic.sh index b188338..0d37382 100755 --- a/t/yacc-basic.sh +++ b/t/yacc-basic.sh @@ -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 diff --git a/t/yacc-bison-skeleton-cxx.sh b/t/yacc-bison-skeleton-cxx.sh index a02a25a..e64ec45 100755 --- a/t/yacc-bison-skeleton-cxx.sh +++ b/t/yacc-bison-skeleton-cxx.sh @@ -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 diff --git a/t/yacc-bison-skeleton.sh b/t/yacc-bison-skeleton.sh index f4fdf32..d7623b3 100755 --- a/t/yacc-bison-skeleton.sh +++ b/t/yacc-bison-skeleton.sh @@ -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 diff --git a/t/yacc-clean-cxx.sh b/t/yacc-clean-cxx.sh index f30ce1b..7bc009d 100755 --- a/t/yacc-clean-cxx.sh +++ b/t/yacc-clean-cxx.sh @@ -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 diff --git a/t/yacc-clean.sh b/t/yacc-clean.sh index dce70a2..1f6664c 100755 --- a/t/yacc-clean.sh +++ b/t/yacc-clean.sh @@ -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 diff --git a/t/yacc-cxx.sh b/t/yacc-cxx.sh index 3c1babb..5d0eafc 100755 --- a/t/yacc-cxx.sh +++ b/t/yacc-cxx.sh @@ -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 diff --git a/t/yacc-d-basic.sh b/t/yacc-d-basic.sh index 97155a2..1d2fc07 100755 --- a/t/yacc-d-basic.sh +++ b/t/yacc-d-basic.sh @@ -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 diff --git a/t/yacc-d-cxx.sh b/t/yacc-d-cxx.sh index 5bd284e..a7b4aaa 100755 --- a/t/yacc-d-cxx.sh +++ b/t/yacc-d-cxx.sh @@ -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 () { diff --git a/t/yacc-d-vpath.sh b/t/yacc-d-vpath.sh index 05019fb..483330e 100755 --- a/t/yacc-d-vpath.sh +++ b/t/yacc-d-vpath.sh @@ -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 diff --git a/t/yacc-deleted-headers.sh b/t/yacc-deleted-headers.sh index 952560d..7dd9ded 100755 --- a/t/yacc-deleted-headers.sh +++ b/t/yacc-deleted-headers.sh @@ -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 diff --git a/t/yacc-depend.sh b/t/yacc-depend.sh index f7254a2..3730abb 100755 --- a/t/yacc-depend.sh +++ b/t/yacc-depend.sh @@ -18,7 +18,7 @@ # Report from Paolo Bonzini. required='cc yacc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/yacc-depend2.sh b/t/yacc-depend2.sh index 70f3f14..f20604d 100755 --- a/t/yacc-depend2.sh +++ b/t/yacc-depend2.sh @@ -19,7 +19,7 @@ # with NetBSD make). required='cc yacc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/yacc-dist-nobuild-subdir.sh b/t/yacc-dist-nobuild-subdir.sh index 0160c10..f6064e7 100755 --- a/t/yacc-dist-nobuild-subdir.sh +++ b/t/yacc-dist-nobuild-subdir.sh @@ -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. diff --git a/t/yacc-dist-nobuild.sh b/t/yacc-dist-nobuild.sh index 40b8332..f23591e 100755 --- a/t/yacc-dist-nobuild.sh +++ b/t/yacc-dist-nobuild.sh @@ -19,7 +19,7 @@ # See automake bug#7884. required='cc yacc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/yacc-grepping.sh b/t/yacc-grepping.sh index 19036c4..546f4ad 100755 --- a/t/yacc-grepping.sh +++ b/t/yacc-grepping.sh @@ -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 diff --git a/t/yacc-grepping2.sh b/t/yacc-grepping2.sh index 4382ded..f8dc920 100755 --- a/t/yacc-grepping2.sh +++ b/t/yacc-grepping2.sh @@ -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 diff --git a/t/yacc-headers-and-dist-pr47.sh b/t/yacc-headers-and-dist-pr47.sh index 5d7be75..49458bc 100755 --- a/t/yacc-headers-and-dist-pr47.sh +++ b/t/yacc-headers-and-dist-pr47.sh @@ -21,7 +21,7 @@ # PR/47. required='cc yacc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/yacc-line.sh b/t/yacc-line.sh index 525a455..1b2b484 100755 --- a/t/yacc-line.sh +++ b/t/yacc-line.sh @@ -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]) diff --git a/t/yacc-mix-c-cxx.sh b/t/yacc-mix-c-cxx.sh index fbc49d6..0ba3e45 100755 --- a/t/yacc-mix-c-cxx.sh +++ b/t/yacc-mix-c-cxx.sh @@ -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 diff --git a/t/yacc-nodist.sh b/t/yacc-nodist.sh index 2e9c7e8..78191d9 100755 --- a/t/yacc-nodist.sh +++ b/t/yacc-nodist.sh @@ -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 diff --git a/t/yacc-pr204.sh b/t/yacc-pr204.sh index babd2c9..d45a303 100755 --- a/t/yacc-pr204.sh +++ b/t/yacc-pr204.sh @@ -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 diff --git a/t/yacc-subdir.sh b/t/yacc-subdir.sh index 3f12c54..465f828 100755 --- a/t/yacc-subdir.sh +++ b/t/yacc-subdir.sh @@ -18,7 +18,7 @@ required='cc yacc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC diff --git a/t/yacc-weirdnames.sh b/t/yacc-weirdnames.sh index ab43af3..028d9fa 100755 --- a/t/yacc-weirdnames.sh +++ b/t/yacc-weirdnames.sh @@ -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 diff --git a/t/yacc4.sh b/t/yacc4.sh index a0e121f..a4802d5 100755 --- a/t/yacc4.sh +++ b/t/yacc4.sh @@ -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 diff --git a/t/yaccdry.sh b/t/yaccdry.sh index 8e5af56..bbfda87 100755 --- a/t/yaccdry.sh +++ b/t/yaccdry.sh @@ -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 diff --git a/t/yaccpp.sh b/t/yaccpp.sh index 30ad7bc..1bcf379 100755 --- a/t/yaccpp.sh +++ b/t/yaccpp.sh @@ -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 diff --git a/t/yaccvpath.sh b/t/yaccvpath.sh index e56ca8e..c881f07 100755 --- a/t/yaccvpath.sh +++ b/t/yaccvpath.sh @@ -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 diff --git a/t/yflags-cmdline-override.sh b/t/yflags-cmdline-override.sh index e53358a..367a0c6 100755 --- a/t/yflags-cmdline-override.sh +++ b/t/yflags-cmdline-override.sh @@ -18,7 +18,7 @@ # at configure time and/or at make time. required='cc yacc' -. ./defs || exit 1 +. test-init.sh unset YFLAGS || : diff --git a/t/yflags-conditional.sh b/t/yflags-conditional.sh index 6765613..d7fc7e0 100755 --- a/t/yflags-conditional.sh +++ b/t/yflags-conditional.sh @@ -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 diff --git a/t/yflags-d-false-positives.sh b/t/yflags-d-false-positives.sh index 5b120dd..0cae14f 100755 --- a/t/yflags-d-false-positives.sh +++ b/t/yflags-d-false-positives.sh @@ -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 diff --git a/t/yflags-force-conditional.sh b/t/yflags-force-conditional.sh index a8404b7..96455bb 100755 --- a/t/yflags-force-conditional.sh +++ b/t/yflags-force-conditional.sh @@ -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]) diff --git a/t/yflags-force-override.sh b/t/yflags-force-override.sh index 8682637..d7ed7a1 100755 --- a/t/yflags-force-override.sh +++ b/t/yflags-force-override.sh @@ -19,7 +19,7 @@ # variable is user-reserved). required='cc yacc' -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_PROG_CC diff --git a/t/yflags-var-expand.sh b/t/yflags-var-expand.sh index 789cc2c..23aea14 100755 --- a/t/yflags-var-expand.sh +++ b/t/yflags-var-expand.sh @@ -19,7 +19,7 @@ # foo_flags = -d # AM_YFLAGS = $(foo_flags) -. ./defs || exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_PROG_CC diff --git a/t/yflags.sh b/t/yflags.sh index 6a6bea7..bb453ed 100755 --- a/t/yflags.sh +++ b/t/yflags.sh @@ -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 diff --git a/t/yflags2.sh b/t/yflags2.sh index d9b913c..b2a8114 100755 --- a/t/yflags2.sh +++ b/t/yflags2.sh @@ -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 -- 2.7.4