1
0
Files
2022-09-29 17:59:04 +03:00

51 lines
754 B
Plaintext

:
#!/bin/sh
#
# @(#)runtests 1.2 97/01/03 Connectathon testsuite
#
InitFile="../tests.init"
. $InitFile
if test $# -ge 1
then
TESTARG=$1
fi
set -e
umask 0
echo "Starting LOCKING tests: test directory $NFSTESTDIR (arg: $TESTARG)"
if test ! -d $NFSTESTDIR
then
mkdir $NFSTESTDIR
fi
if test ! -d $NFSTESTDIR
then
echo "Can't make directory $NFSTESTDIR"
exit 1
fi
case $TESTARG in
-f) TESTARGS="" ;;
-t) TESTARGS="-r" ;;
esac
for i in $LOCKTESTS
do
echo ""
case $i in
tlock|tlock32) echo 'Testing 32 bit pre-LFS locking';;
tlock32lfs) echo 'Testing 32 bit post-LFS locking';;
tlock64) echo 'Testing 64 bit LFS locking';;
esac
echo ""
$i $TESTARGS $NFSTESTDIR
done
echo "Congratulations, you passed the locking tests!"
exit 0