1997-08-31 16:17:56 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
test=f-1
|
|
|
|
|
|
|
|
|
|
if test "$VERBOSE" = yes; then
|
|
|
|
|
set -x
|
2002-04-19 19:55:21 +00:00
|
|
|
rm --version
|
1997-08-31 16:17:56 +00:00
|
|
|
fi
|
|
|
|
|
|
2002-04-19 19:55:21 +00:00
|
|
|
pwd=`pwd`
|
2002-04-20 14:49:46 +00:00
|
|
|
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
|
|
|
|
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
2002-04-19 19:55:21 +00:00
|
|
|
trap '(exit $?); exit' 1 2 13 15
|
1997-08-31 16:17:56 +00:00
|
|
|
|
|
|
|
|
test_failure=0
|
2002-04-20 14:49:46 +00:00
|
|
|
mkdir -p $tmp || test_failure=1
|
1997-08-31 16:17:56 +00:00
|
|
|
|
|
|
|
|
if test $test_failure = 1; then
|
|
|
|
|
echo 'failure in testing framework'
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
fail=0
|
2002-04-19 19:55:21 +00:00
|
|
|
rm -f $tmp/no-such-file || fail=1
|
1997-08-31 16:17:56 +00:00
|
|
|
|
2004-06-23 15:07:00 +00:00
|
|
|
(exit $fail); exit $fail
|