mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
50 lines
1.3 KiB
Plaintext
Executable File
50 lines
1.3 KiB
Plaintext
Executable File
# /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 --------------------------------------------------------
|