blob: c4f51f1454d17a4473330ee286c485c541c71b0f (
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
|
:
#!/bin/sh
#
# @(#)runtests 1.3 00/07/10 Connectathon Testsuite
#
InitFile="../tests.init"
if test $# -ge 1
then
TESTARG=$1
else
. $InitFile
fi
echo "Starting BASIC tests: test directory $NFSTESTDIR (arg: $TESTARG)"
mkdir $NFSTESTDIR
if test ! -d $NFSTESTDIR
then
echo "Can't make directory $NFSTESTDIR"
exit 1
fi
set -e
# File and Directory tree creation test
echo ""
./test1 $TESTARG
# File and Directory tree removal test
echo ""
./test2 $TESTARG
# Lookup across mount point
echo ""
./test3 $TESTARG
# Setattr, getattr and lookup tests
echo ""
if [ "$CIFS" != "yes" ]; then
./test4 $TESTARG
# Getattr and lookup tests
else
./test4a $TESTARG
fi
# Write and read tests
echo ""
./test5 $TESTARG
# Test 5a and 5b separate out the read and write tests into simpler components.
# echo ""
# ./test5a $TESTARG
# echo ""
# ./test5b $TESTARG
# Read Directory test
echo "TESTARG=$TESTARG"
./test6 $TESTARG
# Rename and Link test
echo ""
if [ "$HARDLINKS"o != no ]
then
./test7 $TESTARG
else
./test7a $TESTARG
fi
# Link Test
# echo ""
# ./test7b $TESTARG
# Symlink and readlink test
echo ""
./test8 $TESTARG
# Getfs test
echo ""
./test9 $TESTARG
echo ""
echo "Congratulations, you passed the basic tests!"
exit 0
|