]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: prefer including 'test-init.sh' rather than './defs'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Oct 2012 16:22:58 +0000 (18:22 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Oct 2012 16:22:58 +0000 (18:22 +0200)
commit1a22cb32d6c2c385e6ab3d838c818b7057b29f6b
tree5bc1f5d9218cf9d68984b08de9f5fb9f5d5c23e7
parent90a874d77ae0143df410f18053b94c0416f6543d
tests: prefer including 'test-init.sh' rather than './defs'

This is a follow-up to today's same-name commit v1.12.4-181-g5ddf100,
which did the same for the test cases in master.

* 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).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
56 files changed:
t/all-prog-libs.sh
t/am-dir.sh
t/am-xargs-map.sh
t/ax/depcomp-shuffle.sh
t/backslash-tricks.sh
t/clean-many.sh
t/clean-many2.sh
t/cleanvars.sh
t/confh-internals.sh
t/ctags.sh
t/cxx-fortran.sh
t/depcomp-recover.sh
t/dist-many.sh
t/dist-many2.sh
t/dist-srcdir.sh
t/dist-srcdir2.sh
t/double-colon-rules.sh
t/ensure-dir-exists.sh
t/etags.sh
t/gmake-vars.sh
t/internals.tap
t/local-targets.sh
t/memoize.tap
t/no-c.tap
t/parallel-tests-concatenated-suffix.sh
t/parallel-tests-dynamic.sh
t/parallel-tests-longest-stem.sh
t/parallel-tests-many.sh
t/parallel-tests-per-suffix-deps.sh
t/silent-texi.sh
t/spy-autovars.sh
t/spy-pattern-rules.sh
t/spy-trailing-backlash.sh
t/spy-var-append.sh
t/spy-vpath-rewrite.sh
t/subobj-c.sh
t/subobj-cxx.sh
t/subobj-libtool.sh
t/suffix-custom-default-ext.sh
t/suffix-custom-link.sh
t/suffix-custom.sh
t/suffix-hdr.sh
t/suffix3.sh
t/test-extensions-dynamic.sh
t/test-extensions-funny-chars.sh
t/triplet.sh
t/txinfo-include.sh
t/txinfo21b.sh
t/var-undef-append.sh
t/vartypos-deps.sh
t/vartypos-whitelist.sh
t/verbatim.sh
t/vpath-built-sources.sh
t/vpath-rewrite.sh
t/yacc-lex-cxx-alone.sh
t/yacc-subobj-nodep.sh