coreutils/tests/sample-test

27 lines
410 B
Plaintext
Raw Normal View History

2000-08-24 16:40:47 +08:00
#!/bin/sh
# FIXME
if test "$VERBOSE" = yes; then
set -x
FIXME --version
fi
pwd=`pwd`
tmp=FIXME.$$
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
framework_failure=0
mkdir $tmp || framework_failure=1
cd $tmp || framework_failure=1
if test $framework_failure = 1; then
2000-12-09 20:47:51 +08:00
echo 'failure in testing framework' 1>&2
(exit 1); exit
2000-08-24 16:40:47 +08:00
fi
fail=0
(exit $fail); exit