summaryrefslogtreecommitdiffstats
path: root/special/runtests.wrk
blob: 954376185f63f200cb5708f5e4f6d0c8126c2b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
:
#!/bin/sh
#
#       @(#)runtests.wrk	1.7 01/12/09 Connectathon Testsuite
#

#  This script is intended to be invoked from 'runtests'
#  Don't run it manually

case x$1 in
    xFROM_RUNTESTS)
	;;
    *)
	echo "$0 must be run from 'runtests' - Don't run manually"
	exit 1
	;;
esac

set -e
umask 0

echo ""
echo "check for proper open/unlink operation"
TMPDIR= ./op_unlk

echo ""
echo "check for proper open/rename operation"
TMPDIR= ./op_ren

echo ""
echo "check for proper open/chmod 0 operation"
TMPDIR= ./op_chmod

if [ "$HARDLINKS"o != no ]
then
	echo ""
	echo "check for lost reply on non-idempotent requests"
	./dupreq 100 testfile
fi

echo ""
echo "test exclusive create."
./excltest

# This is a protocol bug which is not fixed yet
#echo ""
#echo "test statfs for file count, should get positive, different numbers"
#./fstat

echo ""
echo "test negative seek, you should get: read: Invalid argument"
echo "or lseek: Invalid argument"
./negseek testfile

echo ""
echo "test rename"
./rename 100

echo ""
echo "test truncate"
./truncate

echo ""
echo "test holey file support"
./holey

if [ "$HARDLINKS"o != no ]
then
	echo ""
	echo "second check for lost reply on non-idempotent requests"
	./nfsidem 50 testdir
fi

echo ""
echo "test rewind support"
./rewind

echo ""
echo "test telldir cookies"
./telldir

echo ""
echo "test freesp and file size"
./freesp

# Keep the following tests at the end.  They can take quite a bit of
# time to run.

echo ""
size=30
echo "write/read" $size "MB file"
./bigfile -s $size bigfile$$

echo ""
echo "write/read at 2GB, 4GB edges"
if echo $MNTOPTIONS | grep vers=2 > /dev/null
then
	echo "skipping test; not supported with v2"
else
	./bigfile2 bigfile$$
fi

echo ""
echo "Special tests complete"

exit 0