* t/self-check-cleanup.tap: No need to copy the 'ax/t/test-init.sh'
file over in our temporary directory.
* t/self-check-reexec.tap: Likewise.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
test ! -d $d || chmod u+rwx $d || :
done
rm -rf t
- mkdir -p t/ax
- cp "$am_top_builddir"/t/ax/test-init.sh t/ax
}
do_clean_setup
# Check that pre-test cleanup works also with directories with
# "null" permissions, and containing broken symlinks.
-mkdir t/dummy.dir t/dummy.dir/sub
+mkdir t t/dummy.dir t/dummy.dir/sub
(
cd t/dummy.dir
touch file sub/file
: > file
chmod 000 file
- mkdir t/dummy.dir
+ mkdir t t/dummy.dir
(cd t/dummy.dir && ln -s ../../dir ../../file .)
command_ok_ "pre-cleanup with testdir with zero-perms symlinks" \
unset AM_TESTS_REEXEC BASH_VERSION || :
-get_test_init_sh ()
-{
- mkdir -p ${1-.}/t/ax
- cp "$am_top_builddir"/t/ax/test-init.sh ${1-.}/t/ax \
- || fatal_ "fetching 't/ax/test-init.sh' from top_builddir"
-}
-
cwd=$(pwd) || fatal_ "getting current working directory"
-get_test_init_sh
cp "$am_top_builddir"/defs . || fatal_ "fetching 'defs' from top_builddir"
#
< "$am_top_builddir"/defs-static > defs-static
sed -e "s|^am_top_builddir=.*|am_top_builddir='$cwd/sub'|" \
< "$am_top_builddir"/defs-static > sub/defs-static
-get_test_init_sh sub
check_preserve_args ()
{