summaryrefslogtreecommitdiff
path: root/security/nss/cmd/ttformat/nServ
blob: ddf51b0e871e8ed0a043ac2d939f9f4756245e0f (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
# /bin/ksh 
#
# nServ -- run the nss test selfserv for performance testing
#
# syntax: nServ [options]
#
# where: options are:
#   Valid arguments to the selfserv program
#   Note that this script sets some options
#
# Description:
# nServ runs the nss test program "selfserv" for purposes of
# gathering performance data.
#
# some shell variables are set at the top of the script
# you may have to change these, depending on the host you
# are running on and other "stuff". caveat emptor.
#
# See also: nClinet
#
# --- begin nServ -------------------------------------------------------
#
baseDir=/home/lorenzo/nss-server/mozilla
#
# shell variables for running selfserv
#
export HOST=`hostname -s`
export DOMSUF=red.iplanet.com
nssDB=${baseDir}/tests_results/security/${HOST}.1/server
nssHost=${HOST}.red.iplanet.com
nssOptions="-p 12944 -w nss"
pushd ${baseDir}/security/nss/tests/common
objDir=`gmake objdir_name`
popd
export LD_LIBRARY_PATH=${baseDir}/dist/${objDir}/lib
#
# shell variables for capturing instrumentation data
#
export NSPR_LOG_MODULES=TestCase:6
export NSPR_LOG_FILE=xxxLogfile
#
# do the test
#
nssCommand="${baseDir}/dist/${objDir}/bin/selfserv -d ${nssDB} -n ${nssHost} ${nssOptions}" 
echo $nssCommand
${nssCommand} $* & 
# xxgdb ${baseDir}/dist/${objDir}/bin/selfserv
# 
# --- end nServ -------------------------------------------------------