summaryrefslogtreecommitdiff
path: root/security/nss/cmd/ttformat/nClient
blob: aab8402bd298b1a8a5c41f50a184c128868cf504 (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 
#
# nClient -- run the nss test strsclnt for performance testing
#
# syntax: nClient [options]
#
# where: options are:
#   any valid command line option for strsclnt
#   Note that some options are set by this script!
#
# Description:
# nClient runs the nss test program "strsclnt" 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.
#
# You will have to tinker with this script to get it to
# run for you.
#
# See also: nServ
#
# --- begin nClient -------------------------------------------------------
baseDir=/home/lorenzo/nss-raw/mozilla
#
# shell variables for running strsclnt 
#
export HOST=`hostname -s`
export DOMSUF=red.iplanet.com
serverHost=dbldog
nssDB=${baseDir}/tests_results/security/${HOST}.1/client
nssHost=${HOST}.red.iplanet.com
pushd ${baseDir}/security/nss/tests/common
objDir=`gmake objdir_name`
popd
#
#
nssOptions="-p 12944 ${serverHost}.red.iplanet.com"
export LD_LIBRARY_PATH=${baseDir}/dist/${objDir}/lib
clientProg=${baseDir}/security/nss/cmd/strsclnt/${objDir}/strsclnt
#
# do the test
#
nssCommand="${clientProg} -d ${nssDB} ${nssOptions}" 
echo $nssCommand $*
${nssCommand} $* &
# 
# --- end nClient --------------------------------------------------------