changes for the new distributed stress test

-) to get around the DNS/ipaddress problem
   -) be sourcable from ssl_dist_stress.sh (share a lot of functionality)
This commit is contained in:
sonmi%netscape.com 2001-03-28 00:01:43 +00:00
Родитель f729c1ed66
Коммит 66ac3e222c
1 изменённых файлов: 16 добавлений и 10 удалений

Просмотреть файл

@ -94,6 +94,7 @@ ssl_init()
#fileout=1 #fileout=1
#verbose="-v" #FIXME - see where this is usefull #verbose="-v" #FIXME - see where this is usefull
cd ${CLIENTDIR} cd ${CLIENTDIR}
} }
########################### is_selfserv_alive ########################## ########################### is_selfserv_alive ##########################
@ -157,15 +158,15 @@ start_selfserv()
echo "$SCRIPTNAME: $testname ----" echo "$SCRIPTNAME: $testname ----"
fi fi
sparam=`echo $sparam | sed -e 's;_; ;g'` sparam=`echo $sparam | sed -e 's;_; ;g'`
echo "selfserv -p ${PORT} -d ${R_SERVERDIR} -n ${HOST}.${DOMSUF} \\" echo "selfserv -p ${PORT} -d ${R_SERVERDIR} -n ${HOSTADDR} \\"
echo " -w nss ${sparam} -i ${R_SERVERPID} $verbose &" echo " -w nss ${sparam} -i ${R_SERVERPID} $verbose &"
echo "selfserv started at `date`" echo "selfserv started at `date`"
if [ ${fileout} -eq 1 ]; then if [ ${fileout} -eq 1 ]; then
selfserv -p ${PORT} -d ${R_SERVERDIR} -n ${HOST}.${DOMSUF} \ selfserv -p ${PORT} -d ${R_SERVERDIR} -n ${HOSTADDR} \
-w nss ${sparam} -i ${R_SERVERPID} $verbose \ -w nss ${sparam} -i ${R_SERVERPID} $verbose \
> ${SERVEROUTFILE} 2>&1 & > ${SERVEROUTFILE} 2>&1 &
else else
selfserv -p ${PORT} -d ${R_SERVERDIR} -n ${HOST}.${DOMSUF} \ selfserv -p ${PORT} -d ${R_SERVERDIR} -n ${HOSTADDR} \
-w nss ${sparam} -i ${R_SERVERPID} $verbose & -w nss ${sparam} -i ${R_SERVERPID} $verbose &
fi fi
wait_for_selfserv wait_for_selfserv
@ -258,9 +259,9 @@ ssl_stress()
start_selfserv start_selfserv
echo "strsclnt -p ${PORT} -d . -w nss $cparam $verbose \\" echo "strsclnt -p ${PORT} -d . -w nss $cparam $verbose \\"
echo " ${HOST}.${DOMSUF}" echo " ${HOSTADDR}"
echo "strsclnt started at `date`" echo "strsclnt started at `date`"
strsclnt -p ${PORT} -d . -w nss $cparam $verbose ${HOST}.${DOMSUF} strsclnt -p ${PORT} -d . -w nss $cparam $verbose ${HOSTADDR}
echo "strsclnt completed at `date`" echo "strsclnt completed at `date`"
html_msg $? $value "${testname}" html_msg $? $value "${testname}"
@ -271,6 +272,7 @@ ssl_stress()
html "</TABLE><BR>" html "</TABLE><BR>"
} }
############################## ssl_cleanup ############################# ############################## ssl_cleanup #############################
# local shell function to finish this script (no exit since it might be # local shell function to finish this script (no exit since it might be
# sourced) # sourced)
@ -284,8 +286,12 @@ ssl_cleanup()
################## main ################################################# ################## main #################################################
ssl_init #this script may be sourced from the distributed stress test - in this case do nothing...
ssl_cov
ssl_auth if [ -z "$DO_REM_ST" -a -z "$DO_DIST_ST" ] ; then
ssl_stress ssl_init
ssl_cleanup ssl_cov
ssl_auth
ssl_stress
ssl_cleanup
fi