test $have_symlinks = yes && chmod 000 $dir/symlink
chmod 500 $dir/sub $dir
command_ok_ "pre-cleanup can deal with low-perms testdir" \
- $SHELL -c '. ./defs' dummy.test
+ $SHELL -c '. ./defs' dummy.sh
command_ok_ "pre-cleanup removed low-perms testdir" \
eval 'test ! -f $dir && test ! -d $dir && test ! -r $dir'
test $have_symlinks = yes && chmod 000 dir/symlink
chmod 500 dir/sub dir
:
-' dummy.test
+' dummy.sh
command_ok_ "post-cleanup removed null-perms testdir" \
eval 'test ! -f $dir && test ! -d $dir && test ! -r $dir'
cd ..
command_ok_ "pre-cleanup with testdir with zero-perms symlinks" \
- $SHELL -c '. ./defs' dummy.test
+ $SHELL -c '. ./defs' dummy.sh
ls -l # For debugging.
command_ok_ "pre-cleanup chmod doesn't follow symlinks to files" \
eval 'ls -l file | grep "^----------.*file"'
stderr_fileno_=2
. ./defs || Exit 1
ln -s "$ocwd/dir" "$ocwd/file" .
- ' dummy.test
+ ' dummy.sh
ls -l # For debugging.
command_ok_ "post-cleanup chmod doesn't follow symlinks to files" \
eval 'ls -l file | grep "^----------.*file"'
. ./defs
: > foo
Exit $st
- " dummy.test
+ " dummy.sh
command_ok_ "testdir not removed if exiting with status $st" \
test -f dummy.dir/foo
do_clean
. ./defs
: > foo
kill -$sig \$\$
- " dummy.test
+ " dummy.sh
command_ok_ "testdir not removed if getting signal $sig" \
test -f dummy.dir/foo
do_clean