summaryrefslogtreecommitdiffstats
path: root/tests.init
blob: eba14c728d65173db2b28c5ed4152c3b014a2515 (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235

#
#       @(#)tests.init	1.26 2003/12/30 Connectathon testsuite
#
MNTOPTIONS="rw,hard,intr"
# Dummy MNTPOINT definition; should get overriden by server script.
MNTPOINT="/mnt"

# Use this mount command if using:
#	SVR3
#MOUNTCMD='./domount -f NFS,$MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'

# Use this mount command if using:
#	SVR4
#	Solaris 2.x
#MOUNTCMD='./domount -F nfs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
#CFSMOUNTCMD='./domount -F cachefs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'

# Use this mount command if using:
#	BSD
#	SunOS 4.X
#	Tru64 UNIX
#	HPUX
#	Linux
#	AIX
#	Mac OS X
# At least some BSD systems don't recognize "hard" (since that's the
# default), so you might also want to use this definition of MNTOPTIONS.
MNTOPTIONS="rw,intr"
FSOPT=nfs
MOUNTCMD='./domount -t $FSOPT -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
#MOUNTCMD='./domount -t nfs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'

# Use this mount command if using:
#	DG/UX
#MOUNTCMD='./domount -t nfs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'

# Use this mount command if using:
#	SMB/CIFS
#MOUNTCMD='./domount -t cifs -o $MNTOPTIONS //$SERVER/$SERVPATH $MNTPOINT'

UMOUNTCMD='./domount -u $MNTPOINT'

# Use the next two lines if using:
#	SVR3
#	SVR4
#	Solaris 2.x
#	HPUX
#DASHN=
#BLC=\\c

# Use the next two lines if using:
#	BSD
#	SunOS 4.X
#	Linux
#	Tru64 UNIX
#	Mac OS X
DASHN=-n
BLC=

# Use this path for:
#	Solaris 2.x
#PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/sbin:/bin:/usr/bin:/usr/ucb:/etc:.

# Use this path for:
#	Solaris 2.x with GCC
#PATH=/opt/gnu/bin:/usr/ccs/bin:/sbin:/bin:/usr/bin:/usr/ucb:/etc:.

# Use this path for:
#	HPUX
#PATH=/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin:/usr/contrib/bin:.

# Use this path for:
#	BSD
#	SunOS 4.X
#PATH=/bin:/usr/bin:/usr/ucb:/etc:/usr/etc:.

# Use this path for:
#	Tru64 UNIX
#	SVR4
#	Linux
PATH=/bin:/usr/bin:/usr/ucb:/usr/ccs/bin:/sbin:/usr/sbin:.

# Use this path for:
#	DG/UX
#PATH=/bin:/usr/bin:/usr/ucb:/etc:/usr/etc:.

# Use this path for:
#	IRIX
#PATH=/bin:/usr/bin:/usr/bsd:/etc:/usr/etc:.

# Use this path for:
#	AIX
#PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:.
#MOUNT=/usr/sbin/mount
#UMOUNT=/usr/sbin/umount

# Use this path for:
#	Mac OS X
#PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:.

SERVER=""
SERVPATH="/server"
TEST="-a"
TESTARG="-t"

# -----------------------------------------------
# Defines for various variables used in scripts and makefiles.
#
# Do not remove the following three lines.  They may be overridden by
# other configuration parameters lower in this file, but these three
# variables must be defined.
CC=cc
CFLAGS=
LIBS=
LOCKTESTS=tlock

# Use with SVR3 systems.
# Add -TR2 to CFLAGS for use on Amdahl UTS systems.
#CFLAGS=-DSVR3
#LIBS=`echo -lrpc -lsocket`

# Use with BSD systems.
#CC=gcc
#CFLAGS=`echo -Duse_directs -DBSD`
#MOUNT=/sbin/mount
#UMOUNT=/sbin/umount

# Use with SVR4 systems.
#CFLAGS=-DSVR4
#LIBS=`echo -lsocket -lnsl`

# Use with SunOS 4.X systems
#CC=/usr/5bin/cc
#CFLAGS=`echo -DSUNOS4X -DNEED_STRERROR`

# Use with Solaris 2.x systems.  Need the 5.0 C compiler (or later)
# for 64-bit mode.
#CC=/opt/SUNWspro/bin/cc
# Use this with GCC
#CC=/opt/gnu/bin/gcc
# Use this through Solaris 2.6.  For Solaris 2.7 and later, use
# this for 32-bit mode applications.
#CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG`
# Use this with gcc (32-bit binaries):
#CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG -mcpu=ultrasparc`
# For Solaris 2.7 and later, use this for 64-bit mode applications
# (Sun compiler).
#CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG -xO0 -xarch=v9 -dalign -Xt -L/usr/lib/sparcv9`
# Use this to make 64-bit binaries with gcc (3.1 or later; untested): 
#CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG -m64`
#LIBS=`echo -lsocket -lnsl`
# Use this through Solaris 2.5.1.
#LOCKTESTS=`echo tlock`
# Use with 2.6 and later systems, 32-bit mode.
#LOCKTESTS=`echo tlocklfs tlock64`
# Use with 2.7 and later, 64-bit mode.
#LOCKTESTS=`echo tlocklfs`

# Use with Tru64 UNIX systems
#CFLAGS=`echo -O -DTRU64 -DOSF1 -DMMAP -DSTDARG`
# use the following instead of the above if using gcc
#CFLAGS=`echo -O -DTRU64 -DOSF1 -DMMAP -DSTDARG -fwritable-strings`
# 64-bit binaries with gcc (3.1 or later; untested):
#CFLAGS=`echo -O -DTRU64 -DOSF1 -DMMAP -DSTDARG -fwritable-strings -m64`
#MOUNT=/sbin/mount
#UMOUNT=/sbin/umount

# Use with HPUX systems, 10.00 and earlier.
#CFLAGS=-DHPUX
#CC=/bin/cc
#RM=/bin/rm
#MAKE=/bin/make

# Use with HPUX 10.01.
#CFLAGS=`echo -Ae -DHPUX`
#CC=/opt/ansic/bin/cc
#RM=/bin/rm
#MAKE=/usr/bin/make

# Use with HPUX 11.0, 32-bit machines.
#CFLAGS=`echo -Ae -DHPUX -D_PSTAT64 -D_LARGEFILE64_SOURCE -DPORTMAP`
#CC=/opt/ansic/bin/cc
#LIBS=`echo -lnsl`
#RM=/bin/rm
#MAKE=/usr/bin/make

# Use with HPUX 11.0, 64-bit machines.
#CFLAGS=`echo -Ae -DHPUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE`
#CC=/opt/ansic/bin/cc
#RM=/bin/rm
#MAKE=/usr/bin/make

# Use with DG/UX systems.
#CFLAGS=-DSVR4
#LIBS=`echo -lsocket -lnsl`

# Use with IRIX systems. Use HAVE_SOCKLEN_T for IRIX >= 6.5.19. 
#CFLAGS=`echo -g -DHAVE_SOCKLEN_T -DSTDARG -DSVR4 -DIRIX -DMMAP`

# Use with AIX.
#CC=gcc
#CFLAGS=`echo -DAIX -DSTDARG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE`
#LOCKTESTS=`echo tlocklfs`

# Use with Linux 2.2 / GNU libc 2.0
#CFLAGS=`echo -DLINUX -DGLIBC=20 -DMMAP -DSTDARG -fwritable-strings`
#LIBS=`echo -lnsl`
#MOUNT=/bin/mount
#UMOUNT=/bin/umount

# Use with Linux 2.4 / GNU libc 2.2
#CFLAGS=`echo -DLINUX -DGLIBC=22 -DMMAP -DSTDARG -fwritable-strings`
#LIBS=`echo -lnsl`
#MOUNT=/bin/mount
#UMOUNT=/bin/umount
#LOCKTESTS=`echo tlocklfs tlock64`

# Use with Linux 2.6 / gcc 4.0
CFLAGS=`echo -DLINUX -DHAVE_SOCKLEN_T -DGLIBC=22 -DMMAP -DSTDARG`
LIBS=`echo -lnsl`
MOUNT=/bin/mount
UMOUNT=/bin/umount
LOCKTESTS=`echo tlocklfs tlock64`

# Use with Linux if your distro doesn't provide a "cc".
#CC=gcc

# Use with Mac OS X
#CFLAGS=`echo -DMACOSX -DNATIVE64 -DLARGE_LOCKS`
#MOUNT=/sbin/mount
#UMOUNT=/sbin/umount
#LOCKTESTS=`echo tlock`

# -----------------------------------------------