+2011-10-21 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tests: more faithful 'installcheck' support in few tests
+ * tests/test-driver-acsubst.test: Use the `$am_scriptdir'
+ variable instead of `$testsrcdir/../lib', to test more
+ faithfully under "make installcheck".
+ * tests/test-driver-cond.test: Likewise.
+ * tests/dist-auxfile.test: Likewise, and add one more use
+ of `fatal_' to report hard errors.
+ * tests/tests/dist-auxdir-many-subdirs.test: Likewise.
+
2011-10-21 Stefano Lattarini <stefano.lattarini@gmail.com>
tests: remove redundant settings of `errexit' shell flag
$ACLOCAL
$AUTOCONF
- # FIXME: this is not good for installcheck; fix after merging
- # into testsuite-work.
- "$top_testsrcdir"/lib/install-sh -d $auxdir
+ "$am_scriptdir"/install-sh -d $auxdir \
+ || fatal_ "creating directory \`$auxdir' with install-sh"
if test $add_missing = yes; then
$AUTOMAKE -a --copy
for f in $required_files; do
done
else
for f in $required_files; do
- # FIXME: this is not good for installcheck; fix after merging
- # into testsuite-work.
- cp "$top_testsrcdir"/lib/$f $auxdir/$f
+ cp "$am_scriptdir"/$f $auxdir/$f \
+ || fatal_ "faild to fetch auxiliary script \`$f'"
# See comments above.
chmod a-w $auxdir/$f
done
grep "^configure\\.in:6:.* required file.*$auxdir_rx/zardoz" stderr
touch $auxdir/foo.txt $auxdir/bar.sh $auxdir/zardoz
- cp "$testsrcdir"/../lib/missing "$testsrcdir"/../lib/install-sh $auxdir
+ cp "$am_scriptdir"/missing "$am_scriptdir"/install-sh $auxdir \
+ || fatal_ "fetching auxiliary scripts \`missing' and \`install-sh'"
$AUTOMAKE
./configure
$MAKE test
cp "$testsrcdir"/trivial-test-driver test-drivers/triv \
|| fatal_ "failed to fetch auxiliary script trivial-test-driver"
-# FIXME: better support for installcheck ...
-cp "$top_testsrcdir"/lib/test-driver test-drivers/dflt \
+cp "$am_scriptdir"/test-driver test-drivers/dflt \
|| fatal_ "failed to fetch auxiliary script test-driver"
cat >> configure.in <<'END'
cp "$testsrcdir"/trivial-test-driver . \
|| fatal_ "failed to fetch auxiliary script trivial-test-driver"
-# FIXME: better support for installcheck ...
-cp "$top_testsrcdir"/lib/tap-driver.pl . \
+cp "$am_scriptdir"/tap-driver.pl . \
|| fatal_ "failed to fetch auxiliary script tap-driver.pl"
cat >> configure.in << END