tests: update PATH early from AM_TESTS_ENVIRONMENT and runtest
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 25 Jul 2012 21:06:06 +0000 (23:06 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 12:10:07 +0000 (14:10 +0200)
commit69f0f0a143dd9e8ddf45da1b0db2a99f305f2202
treed84512fbc8af86485194cd15f9839f7a07a26ce7
parent6976741a7978349023fb415370ed0c946672a7f4
tests: update PATH early from AM_TESTS_ENVIRONMENT and runtest

Because the POSIX standards mandate that sourcing a file with ". FILE"
will cause FILE (assuming it is a relative containing no slashes) to be
looked for in PATH, such a move will allow us to simplify our sourcing
of shell testing libraries like (currently) 't/ax/test-init.sh' and
'defs', and to modularize and re-organize them better in the feature,
with minimal churn.

* runtest.in, Makefile.am (AM_TEST_ENVIRONMENT): Prepend $(abs_srcdir)/t/ax
and $(abs_builddir)/t/ax (in that order) to PATH; do so avoiding repetition
in the common case of non-VPATH builds.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Makefile.am
runtest.in