2001-04-12 00:09:53 +04:00
|
|
|
#! /bin/sh
|
2000-12-13 02:08:15 +03:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# /u/sonmi/bin/qa_stat - /u/svbld/bin/init/nss/qa_stat
|
|
|
|
#
|
|
|
|
# this script is supposed to automatically run QA for NSS on all required
|
2001-06-01 04:36:03 +04:00
|
|
|
# Unix platforms
|
2000-12-13 02:08:15 +03:00
|
|
|
#
|
|
|
|
# parameters
|
|
|
|
# ----------
|
2001-02-21 00:49:30 +03:00
|
|
|
# nssversion (supported: 30b, 31, tip)
|
|
|
|
# builddate (default - today)
|
2000-12-13 02:08:15 +03:00
|
|
|
#
|
|
|
|
# options
|
|
|
|
# -------
|
2001-02-21 00:49:30 +03:00
|
|
|
# -y answer all questions with y - use at your own risk...ignores warnings
|
|
|
|
# -s silent (only usefull with -y)
|
|
|
|
# -h, -? - you guessed right - displays this text
|
|
|
|
# -d debug
|
|
|
|
# -f <filename> - write the (error)output to filename
|
|
|
|
# -m <mailinglist> - send filename to mailinglist (csl) only useful
|
|
|
|
# with -f
|
|
|
|
# -cron equivalient to -y -s -d -f $RESULTDIR/$HOST.qa_stat
|
2000-12-13 02:08:15 +03:00
|
|
|
#
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
O_OPTIONS=ON
|
|
|
|
|
2001-04-20 05:52:42 +04:00
|
|
|
TBX_EXIT=49 # in case we are running on a tinderbox build, any
|
2001-04-20 04:52:11 +04:00
|
|
|
# early exit needs to return an error
|
|
|
|
if [ -z "$O_TBX" -o "$O_TBX" = "OFF" ] ; then
|
2001-08-14 21:34:06 +04:00
|
|
|
if [ -z "$O_LOCAL" -o "$O_LOCAL" = "OFF" ] ; then
|
|
|
|
. `dirname $0`/header
|
|
|
|
fi
|
2001-04-20 04:52:11 +04:00
|
|
|
fi
|
2001-08-14 21:34:06 +04:00
|
|
|
Debug "Sourced header O_TBX=$O_TBX O_LOCAL=$O_LOCAL"
|
2001-04-20 05:52:42 +04:00
|
|
|
TBX_EXIT=48
|
2001-01-23 04:51:47 +03:00
|
|
|
EARLY_EXIT=TRUE
|
2000-12-13 02:08:15 +03:00
|
|
|
|
2001-07-09 21:50:08 +04:00
|
|
|
URL="cindercone.red.iplanet.com"
|
|
|
|
|
2000-12-13 02:08:15 +03:00
|
|
|
DOCDIR=/u/sonmi/doc
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
HTML_ERRORCOLOR=\"#FF0000\"
|
|
|
|
HTML_ERRORMSG=Failed
|
|
|
|
|
|
|
|
HTML_MISSINGCOLOR=\"#FFFFCC\"
|
|
|
|
HTML_MISSINGMSG=Missing
|
|
|
|
|
|
|
|
HTML_INCOMPLETECOLOR=$HTML_MISSINGCOLOR
|
|
|
|
HTML_INCOMPLETEMSG=Incomplete
|
|
|
|
|
|
|
|
HTML_PASSEDCOLOR=\"#66FF99\"
|
|
|
|
HTML_PASSEDMSG=Passed
|
|
|
|
|
2001-02-21 04:53:00 +03:00
|
|
|
# this file is used to deal with hanging rsh - a new shell is started
|
|
|
|
# for each rsh, and a function is called after it is finished - they
|
|
|
|
# communicate with this file
|
2001-04-12 00:09:53 +04:00
|
|
|
|
2001-02-21 04:53:00 +03:00
|
|
|
RSH_FILE=$TMP/rsh.$$
|
|
|
|
echo >$RSH_FILE
|
2001-08-10 01:06:51 +04:00
|
|
|
TMPFILES="$TMPFILES $WARNINGLIST $RSH_FILE "
|
2001-09-11 01:30:26 +04:00
|
|
|
RSH_WAIT_TIME=80 #maximum time allowed for the 2 rsh to finish...
|
2001-08-10 01:06:51 +04:00
|
|
|
#TOTAL_TESTS=106
|
2002-01-05 00:39:36 +03:00
|
|
|
TOTAL_TESTS=244 #3.4
|
2002-01-04 03:24:28 +03:00
|
|
|
#TOTAL_TESTS=123 #3.3.2
|
2001-11-22 00:19:14 +03:00
|
|
|
BCT_TOTAL_TESTS=122 #3.2.2
|
|
|
|
#TOTAL_TESTS=133 #tip
|
2001-02-21 04:53:00 +03:00
|
|
|
|
2000-12-13 02:08:15 +03:00
|
|
|
Debug "NTDIST $NTDIST"
|
|
|
|
Debug "UXDIST $UXDIST"
|
|
|
|
Debug "TESTSCRIPTDIR $TESTSCRIPTDIR"
|
|
|
|
Debug "RESULTDIR $RESULTDIR"
|
|
|
|
|
2001-02-21 04:53:00 +03:00
|
|
|
############################### watch_rsh ##############################
|
|
|
|
# local shell function, deals with a hanging rsh (kills it...)
|
|
|
|
# this function is started as a backgroundprocess before the rsh is started,
|
|
|
|
# and writes info to the RSH_FILE, after the rsh is finished it writes finish
|
|
|
|
# info to the same file (this time called as a function, forground).
|
|
|
|
# the backgroundprocess stays around for RSH_WAIT_TIME, if then the finish
|
|
|
|
# information is not there attempts to kill the rsh
|
|
|
|
#
|
|
|
|
# watch_rsh start qa_computername &
|
|
|
|
# watch_rsh stop qa_computername
|
|
|
|
#
|
|
|
|
########################################################################
|
|
|
|
watch_rsh()
|
|
|
|
{
|
|
|
|
case $1 in
|
|
|
|
start)
|
|
|
|
echo "$2 started" >>$RSH_FILE
|
|
|
|
sleep $RSH_WAIT_TIME
|
2001-03-03 02:37:21 +03:00
|
|
|
O_ALWAYS_YES=ON # may modify global flags because this is a
|
|
|
|
# forked off bg process - kill_by_name otherwise
|
|
|
|
# will ask the user if it really should be killed
|
|
|
|
grep "$2 finished" $RSH_FILE >/dev/null || kill_by_name "rsh $2"
|
|
|
|
exit
|
2001-02-21 04:53:00 +03:00
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
echo "$2 finished" >>$RSH_FILE
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
############################### find_qa_systems ########################
|
2000-12-13 02:08:15 +03:00
|
|
|
# local shell function, tries to determine the QA operating system
|
2001-04-20 04:52:11 +04:00
|
|
|
# works remotely, and for Windows machines
|
2000-12-13 02:08:15 +03:00
|
|
|
########################################################################
|
|
|
|
find_qa_systems()
|
|
|
|
{
|
2001-04-20 04:52:11 +04:00
|
|
|
for QA_SYS in `ls $RESULTDIR | grep '\.1$' | sed -e "s/\..*//" | sort -u`
|
2000-12-13 02:08:15 +03:00
|
|
|
do
|
2001-02-21 00:49:30 +03:00
|
|
|
NO_RSH="FALSE"
|
|
|
|
QA_OS=""
|
|
|
|
QA_RHVER=""
|
|
|
|
IS_64=""
|
|
|
|
IS_WIN=""
|
|
|
|
|
2001-09-11 01:30:26 +04:00
|
|
|
grep OS-LINE ${RESULTDIR}/${QA_SYS}.nssqa >/dev/null && NO_RSH=TRUE
|
2001-02-21 00:49:30 +03:00
|
|
|
|
2001-02-21 04:53:00 +03:00
|
|
|
if [ "$NO_RSH" = "TRUE" ]
|
2001-02-21 00:49:30 +03:00
|
|
|
then
|
2001-09-11 01:30:26 +04:00
|
|
|
|
|
|
|
QA_OS=`grep OS-LINE ${RESULTDIR}/${QA_SYS}.nssqa | sort -u | sed \
|
|
|
|
-e "s/.*-OS-LINE: /${QA_SYS}/"`
|
|
|
|
QA_OS_STRING=`echo $QA_OS | sed -e "s/^[_ ]//" -e "s/ /_/g"`
|
|
|
|
echo $QA_OS_STRING >>$PLATFORMLIST
|
2001-04-12 00:09:53 +04:00
|
|
|
if [ "$O_SILENT" != ON ] ; then
|
2001-09-11 01:30:26 +04:00
|
|
|
echo $QA_OS
|
2001-04-12 00:09:53 +04:00
|
|
|
fi
|
2001-09-11 01:30:26 +04:00
|
|
|
|
|
|
|
#grep OS-LINE ${RESULTDIR}/${QA_SYS}.nssqa | sort -u | sed \
|
|
|
|
#-e "s/.*-OS-LINE: /${QA_SYS}_/" >>$PLATFORMLIST
|
|
|
|
#if [ "$O_SILENT" != ON ] ; then
|
|
|
|
#grep OS-LINE ${RESULTDIR}/${QA_SYS}.nssqa | sort -u | sed \
|
|
|
|
#-e "s/.*-OS-LINE:/${QA_SYS}/"
|
|
|
|
#fi
|
2001-02-21 00:49:30 +03:00
|
|
|
else
|
2001-08-10 01:06:51 +04:00
|
|
|
REM_SYSNAME=$QA_SYS
|
|
|
|
watch_rsh start $REM_SYSNAME &
|
2001-04-20 04:52:11 +04:00
|
|
|
qa_stat_get_sysinfo $QA_SYS
|
2001-08-10 01:06:51 +04:00
|
|
|
watch_rsh stop $REM_SYSNAME
|
2001-04-20 04:52:11 +04:00
|
|
|
echo $QA_OS_STRING >>$PLATFORMLIST
|
|
|
|
# use later for missing list
|
2001-02-21 00:49:30 +03:00
|
|
|
fi
|
2000-12-13 02:08:15 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
}
|
2001-04-20 04:52:11 +04:00
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
################################### qa_stat_init ##########################
|
2000-12-13 02:08:15 +03:00
|
|
|
# local shell function, sets the name of the resultfile to:
|
2001-02-21 00:49:30 +03:00
|
|
|
# <filename> if option -f <filename>
|
|
|
|
# $RESULTDIR/result if write permission
|
|
|
|
# (mozilla/tests_results/security/result)
|
|
|
|
# $HOME/resultNSS${NSSVER}-${BUILDDATE} if no write permission in $RESULTDIR
|
2000-12-13 02:08:15 +03:00
|
|
|
########################################################################
|
2001-04-12 00:09:53 +04:00
|
|
|
qa_stat_init()
|
2000-12-13 02:08:15 +03:00
|
|
|
{
|
2001-02-21 00:49:30 +03:00
|
|
|
if [ $O_FILE = ON -a $O_CRON = OFF ] # if -f was specified write there
|
|
|
|
then
|
|
|
|
RFILE=$FILENAME
|
|
|
|
else
|
2001-04-20 04:52:11 +04:00
|
|
|
RFILE=${RESULTDIR}/result.$$
|
2001-02-21 00:49:30 +03:00
|
|
|
if [ ! -w $RESULTDIR ]
|
|
|
|
then
|
2001-04-20 04:52:11 +04:00
|
|
|
RFILE=$HOME/resultNSS${NSSVER}-${BUILDDATE}.$$
|
2001-02-21 00:49:30 +03:00
|
|
|
Debug "Using alternate resultfile $RFILE"
|
2001-04-12 00:09:53 +04:00
|
|
|
#elif [ $O_CRON = ON ]
|
|
|
|
#then
|
2001-05-11 02:49:13 +04:00
|
|
|
##find ${RESULTDIR} -exec chmod a+rw {} \; #FIXME - umask
|
2001-04-12 00:09:53 +04:00
|
|
|
##doesn't seem to work - this is a tmp workaround
|
2001-02-21 00:49:30 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -x $RESULTDIR -o ! -r $RESULTDIR -o ! -w $RESULTDIR ]
|
|
|
|
then
|
|
|
|
glob_usage "$RESULTDIR does not have the right permissions `ls -l $RESULTDIR`"
|
|
|
|
fi
|
|
|
|
if [ -d $RESULTDIR ]
|
|
|
|
then
|
|
|
|
cd $RESULTDIR
|
|
|
|
else
|
|
|
|
glob_usage "$RESULTDIR does not exist"
|
|
|
|
fi
|
|
|
|
fi
|
2001-04-20 04:52:11 +04:00
|
|
|
|
|
|
|
ERRORLIST=${RFILE}.E
|
|
|
|
PLATFORMLIST=${RFILE}.P
|
|
|
|
PERFLIST=${RFILE}.PE
|
|
|
|
TMP_HTML_FILE=${RFILE}.html
|
|
|
|
HTML_FILE=${RESULTDIR}/result.html
|
|
|
|
WARNINGLIST=${RFILE}.W
|
|
|
|
BCMISSINGLIST=${RFILE}.BCM
|
|
|
|
BCERRORLIST=${RFILE}.BCE
|
|
|
|
TMPFILE=${RFILE}.T
|
2001-09-14 05:04:05 +04:00
|
|
|
ML_FILE=${RFILE}.ML
|
2001-04-20 04:52:11 +04:00
|
|
|
|
|
|
|
TMPFILES="$TMPFILES $TMPFILE"
|
2001-07-09 21:50:08 +04:00
|
|
|
TMPFILES="$TMPFILES $ERRORLIST $PLATFORMLIST $PERFLIST $WARNINGLIST \
|
2001-09-14 05:04:05 +04:00
|
|
|
$BCMISSINGLIST $BCERRORLIST $ML_FILE" #FIXME uncomment
|
2001-04-20 04:52:11 +04:00
|
|
|
|
2001-02-21 00:49:30 +03:00
|
|
|
FILENAME=$RFILE #we might want to mail it...later switch to html file
|
|
|
|
O_FILE="ON"
|
2001-04-20 04:52:11 +04:00
|
|
|
|
|
|
|
rm $ERRORLIST $PLATFORMLIST $PERFLIST $WARNINGLIST \
|
|
|
|
$BCMISSINGLIST $BCERRORLIST $TMP_HTML_FILE 2>/dev/null
|
|
|
|
touch $ERRORLIST $PLATFORMLIST $PERFLIST $WARNINGLIST \
|
|
|
|
$BCMISSINGLIST $BCERRORLIST $TMP_HTML_FILE 2>/dev/null
|
|
|
|
|
2001-06-01 04:36:03 +04:00
|
|
|
if [ $O_WIN = "ON" -a "$O_TBX" = "ON" ] ; then
|
2001-07-09 21:50:08 +04:00
|
|
|
HTML_PATH="http://${URL}${UX_D0}/nss${NSSVER}/tinderbox/tests_results/security/`basename $RESULTDIR`"
|
2001-06-01 04:36:03 +04:00
|
|
|
else
|
2001-07-09 21:50:08 +04:00
|
|
|
HTML_PATH="http://${URL}${RESULTDIR}"
|
2001-06-01 04:36:03 +04:00
|
|
|
fi
|
|
|
|
HREF_TMP_HTML_FILE="${HTML_PATH}/`basename $HTML_FILE`"
|
2001-04-20 04:52:11 +04:00
|
|
|
|
|
|
|
write_qa_header_html >$TMP_HTML_FILE
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
################################# html_footer #########################
|
|
|
|
# local shell function, writes end of the html body
|
|
|
|
#######################################################################
|
|
|
|
write_qa_header_html()
|
2000-12-13 02:08:15 +03:00
|
|
|
{
|
2001-04-12 00:09:53 +04:00
|
|
|
echo 'Subject: QA Report ' $NSSVER $BUILDDATE '
|
2001-11-09 04:09:17 +03:00
|
|
|
From: sonmi@iplanet.com
|
|
|
|
Reply-To: sonmi@iplanet.com
|
2001-04-12 00:09:53 +04:00
|
|
|
Content-Type: text/html; charset=us-ascii
|
|
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
|
<meta name="GENERATOR" content="Mozilla/4.7 [en] (X11; U; SunOS 5.8 sun4u) [N
|
|
|
|
etscape]">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<br>
|
|
|
|
|
2001-09-14 05:04:05 +04:00
|
|
|
<br>
|
|
|
|
<h2>
|
|
|
|
<a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=NSS">Tinderbox</a
|
|
|
|
><br>
|
2001-11-15 22:01:42 +03:00
|
|
|
<a href="http://cindercone.red.iplanet.com/share/builds/mccrel/nss/nsstip/tinderbox/tests_results/security/">Tinderbox QA result</a><br>
|
|
|
|
<a href="ftp://ftp.mozilla.org/pub/security/nss/daily_qa">Mozilla Daily NSS QA result</a></h2>
|
2001-09-14 05:04:05 +04:00
|
|
|
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
|
|
|
|
<br>
|
|
|
|
<center>
|
|
|
|
<h1>
|
|
|
|
<a NAME="Top"></a><b><font size=+2>QA Results</font></b></h1></center>
|
|
|
|
|
|
|
|
|
|
|
|
<table BORDER WIDTH="100%" NOSAVE >
|
|
|
|
<tr>
|
|
|
|
<td> <b><font size=+1>Build-OS and version</font></b></td>
|
|
|
|
<td><b><font size=+1>QA-OS</font></b></td>
|
|
|
|
<td><b><font size=+1>Systemname</font></b></td>
|
|
|
|
<td><b><font size=+1>P/F</font></b></td>
|
|
|
|
<td><b><font size=+1>result</font></b></td>
|
|
|
|
<td><b><font size=+1>output</font></b></td>
|
|
|
|
<td><b><font size=+1>errors</font></b></td>
|
|
|
|
<td><b><font size=+1>QA time / #</font></b></td>
|
|
|
|
</tr>
|
|
|
|
'
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
################################# html_footer #########################
|
|
|
|
# local shell function, writes end of the html body
|
2001-02-21 00:49:30 +03:00
|
|
|
#######################################################################
|
2000-12-13 02:08:15 +03:00
|
|
|
html_footer()
|
|
|
|
{
|
2001-04-12 00:09:53 +04:00
|
|
|
echo '</body>'
|
|
|
|
echo '</html>'
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
################################# setQAsysvars #########################
|
|
|
|
# local shell function, sets system specific variables
|
|
|
|
########################################################################
|
|
|
|
setQAsysvars()
|
|
|
|
{
|
2001-02-21 00:49:30 +03:00
|
|
|
if [ "$MACHINE" != "0" ]
|
|
|
|
then
|
2001-10-06 02:27:54 +04:00
|
|
|
MACHINE=`echo $MACHINE | sed -e 's/^bct.//g'`
|
2001-05-12 03:12:52 +04:00
|
|
|
TESTDATE=`ls -ld $MACHINE | awk '{ print $6, $7, $8 }'`
|
2001-02-21 00:49:30 +03:00
|
|
|
TESTNUMBER=`echo $MACHINE | sed -e 's/.*\.//'`
|
|
|
|
SYSNAME=`echo $MACHINE | sed -e 's/\..*//'`
|
|
|
|
Debug "SYSNAME= $SYSNAME"
|
2001-04-12 00:09:53 +04:00
|
|
|
|
2001-08-14 21:34:06 +04:00
|
|
|
if [ "$O_TBX" = "ON" -o "$O_LOCAL" = "ON" ] ; then
|
2001-04-20 04:52:11 +04:00
|
|
|
QA_SYS_OS=$QA_OS
|
|
|
|
else
|
|
|
|
QA_SYS_OS=`grep $SYSNAME $PLATFORMLIST |
|
|
|
|
sed -e 's/
//' | \
|
|
|
|
sort | uniq | sed -e "s/$SYSNAME//" \
|
|
|
|
-e "s/^_//" | sort | uniq`
|
|
|
|
fi
|
2001-02-21 00:49:30 +03:00
|
|
|
Debug "QA_SYS_OS= $QA_SYS_OS"
|
|
|
|
fi
|
|
|
|
BUILD_SYS=`echo $BUILDPLATFORM | sed -e 's/\.OBJ//' -e 's/_DBG/ Debug/' \
|
|
|
|
-e 's/_OPT/ Optimized/' -e 's/_64/ 64bit/' -e 's/_glibc_PTH//' \
|
|
|
|
-e 's/_/ /'`
|
|
|
|
Debug "BUILD_SYS=$BUILD_SYS"
|
2001-04-12 00:09:53 +04:00
|
|
|
if [ -f "${RESULTDIR}/${MACHINE}/results.html" ] ; then
|
2001-06-01 04:36:03 +04:00
|
|
|
RESULT="${HTML_PATH}/${MACHINE}/results.html"
|
2001-02-21 00:49:30 +03:00
|
|
|
else
|
2000-12-13 02:08:15 +03:00
|
|
|
RESULT="0"
|
2001-04-12 00:09:53 +04:00
|
|
|
fi
|
2001-07-09 21:50:08 +04:00
|
|
|
if [ -f "${RESULTDIR}/bct/${MACHINE}/results.html" ] ; then
|
|
|
|
BCB_RESULT="${HTML_PATH}/bct/${MACHINE}/results.html"
|
2001-04-12 00:09:53 +04:00
|
|
|
else
|
|
|
|
BCB_RESULT="0"
|
2001-02-21 00:49:30 +03:00
|
|
|
fi
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
if [ -f "${RESULTDIR}/${MACHINE}/output.log" ] ; then
|
2001-06-01 04:36:03 +04:00
|
|
|
LOG="${HTML_PATH}/${MACHINE}/output.log"
|
2001-02-21 00:49:30 +03:00
|
|
|
else
|
|
|
|
LOG="0"
|
2001-04-12 00:09:53 +04:00
|
|
|
fi
|
2001-07-09 21:50:08 +04:00
|
|
|
if [ -f "${RESULTDIR}/bct/${MACHINE}/output.log" ] ; then
|
|
|
|
BCB_LOG="${HTML_PATH}/bct/${MACHINE}/output.log"
|
2001-04-12 00:09:53 +04:00
|
|
|
else
|
|
|
|
BCB_LOG="0"
|
2001-02-21 00:49:30 +03:00
|
|
|
fi
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
################################# html_line() #########################
|
|
|
|
# local shell function, writes a line in the html table
|
|
|
|
########################################################################
|
|
|
|
html_line()
|
|
|
|
{
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '<tr NOSAVE>'
|
|
|
|
echo '<td NOSAVE>'$BUILD_SYS'</td>'
|
|
|
|
echo ''
|
2001-05-12 03:12:52 +04:00
|
|
|
if [ "$QA_SYS_OS" != "0" ] ; then
|
|
|
|
echo '<td NOSAVE>'$QA_SYS_OS'</td>'
|
|
|
|
else
|
|
|
|
echo '<td></td>'
|
|
|
|
fi
|
2001-02-21 00:49:30 +03:00
|
|
|
echo ''
|
2001-05-12 03:12:52 +04:00
|
|
|
if [ "$SYSNAME" != "0" ] ; then
|
|
|
|
echo '<td>'$SYSNAME'</td>'
|
|
|
|
else
|
|
|
|
echo '<td></td>'
|
|
|
|
fi
|
2001-02-21 00:49:30 +03:00
|
|
|
#echo '<td>'$SYSNAME $TESTNUMBER $TESTDATE'</td>'
|
|
|
|
echo ''
|
2001-04-20 05:52:42 +04:00
|
|
|
# hopefully we never run more different tests on a tinderbox build...
|
|
|
|
# on win some shells can not handle exit codes greater then 52 (64???)
|
|
|
|
# so for very early exits the codes are set 50-45, for failures later
|
|
|
|
# in the process the higher the number, the more failures
|
|
|
|
if [ "$O_TBX" = "ON" -a "$TBX_EXIT" -gt 45 ] ; then
|
|
|
|
TBX_EXIT=0
|
|
|
|
fi
|
2001-02-21 00:49:30 +03:00
|
|
|
if [ "$1" = "failed" ]
|
|
|
|
then
|
2001-04-20 04:52:11 +04:00
|
|
|
TBX_EXIT=`expr $TBX_EXIT + 1`
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '<td BGCOLOR='$HTML_ERRORCOLOR' NOSAVE><b>'$HTML_ERRORMSG'</b></td>'
|
|
|
|
elif [ "$1" = "passed" ]
|
|
|
|
then
|
|
|
|
echo '<td BGCOLOR='$HTML_PASSEDCOLOR' NOSAVE>'$HTML_PASSEDMSG'</td>'
|
2001-03-03 02:37:21 +03:00
|
|
|
elif [ "$1" = "incomplete" ]
|
|
|
|
then
|
2001-04-20 04:52:11 +04:00
|
|
|
TBX_EXIT=`expr $TBX_EXIT + 1`
|
2001-03-03 02:37:21 +03:00
|
|
|
echo '<td BGCOLOR='$HTML_INCOMPLETECOLOR' NOSAVE>'$HTML_INCOMPLETEMSG'</td>'
|
2001-02-21 00:49:30 +03:00
|
|
|
else
|
2001-04-20 04:52:11 +04:00
|
|
|
TBX_EXIT=`expr $TBX_EXIT + 1`
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
|
|
|
fi
|
2001-04-12 00:09:53 +04:00
|
|
|
if [ "$CURRENT_TABLE" != "BC" ] ; then
|
|
|
|
if [ "$RESULT" = "0" ] ; then
|
|
|
|
echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
|
|
|
else
|
|
|
|
echo '<td> <a href="'$RESULT'">result</a> </td>'
|
|
|
|
fi
|
|
|
|
if [ "$LOG" = "0" ] ; then
|
|
|
|
echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
|
|
|
else
|
|
|
|
echo '<td> <a href="'$LOG'">log</a> </td>'
|
|
|
|
fi
|
|
|
|
if [ "$1" = "failed" ] ; then
|
2001-04-20 04:52:11 +04:00
|
|
|
echo '<td> <a href="'${HREF_TMP_HTML_FILE}'#errorlist">error</a> </td>'
|
2001-04-12 00:09:53 +04:00
|
|
|
else
|
|
|
|
echo '<td></td>'
|
|
|
|
fi
|
2001-02-21 00:49:30 +03:00
|
|
|
else
|
2001-07-09 21:50:08 +04:00
|
|
|
#<td><b><font size=+1>errors</font></b></td>
|
|
|
|
#<td><b><font size=+1>P/F</font></b></td>
|
|
|
|
#<td><b><font size=+1>P/F</font></b></td>
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
#echo '<td><b><font size=+1>All Current</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>old dlls</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>old executables</font></b></td>'
|
2001-07-09 21:50:08 +04:00
|
|
|
#if [ "$RESULT" != "0" -a "$LOG" != "0" ] ; then
|
|
|
|
#echo '<td><a href="'$RESULT'">result</a>, <a href="'$LOG'">log</td>'
|
|
|
|
#elif [ "$RESULT" = "0" -a "$LOG" != "0" ] ; then
|
|
|
|
#echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE><a href="'$LOG'">log</a></td>'
|
|
|
|
#elif [ "$RESULT" != "0" -a "$LOG" = "0" ] ; then
|
|
|
|
#echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE><a href="'$RESULT'">result</a></td>'
|
|
|
|
#else
|
|
|
|
#echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
|
|
|
#fi
|
|
|
|
#if [ "$BCB_RESULT" != "0" -a "$BCB_LOG" != "0" ] ; then
|
|
|
|
#echo '<td><a href="'$BCB_RESULT'">result</a>, <a href="'$BCB_LOG'"> log</td>'
|
|
|
|
#elif [ "$BCB_RESULT" = "0" -a "$BCB_LOG" != "0" ] ; then
|
|
|
|
#echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE><a href="'$BCB_LOG'">log</a></td>'
|
|
|
|
#elif [ "$BCB_RESULT" != "0" -a "$BCB_LOG" = "0" ] ; then
|
|
|
|
#echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE><a href="'$BCB_RESULT'">result</a></td>'
|
|
|
|
#else
|
|
|
|
#echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
|
|
|
#fi
|
|
|
|
if [ "$BCB_RESULT" = "0" ] ; then
|
2001-04-12 00:09:53 +04:00
|
|
|
echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
|
|
|
else
|
2001-07-09 21:50:08 +04:00
|
|
|
echo '<td> <a href="'$BCB_RESULT'">result</a> </td>'
|
2001-04-12 00:09:53 +04:00
|
|
|
fi
|
2001-07-09 21:50:08 +04:00
|
|
|
if [ "$BCB_LOG" = "0" ] ; then
|
2001-04-12 00:09:53 +04:00
|
|
|
echo '<td BGCOLOR='$HTML_MISSINGCOLOR' NOSAVE>'$HTML_MISSINGMSG'</td>'
|
2001-07-09 21:50:08 +04:00
|
|
|
else
|
|
|
|
echo '<td> <a href="'$BCB_LOG'">log</a> </td>'
|
2001-04-12 00:09:53 +04:00
|
|
|
fi
|
2001-02-21 00:49:30 +03:00
|
|
|
fi
|
2001-07-09 21:50:08 +04:00
|
|
|
echo '<td>'$TESTDATE $TESTNUMBER'</td>'
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '</tr>'
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
################################# qa_errorlist #########################
|
|
|
|
# local shell function, finds problems in the previously run QA
|
2001-04-20 04:52:11 +04:00
|
|
|
# linux:the gnu grep, on Linux can output 10 lines above and 3 lines below
|
|
|
|
# the errormessage
|
2000-12-13 02:08:15 +03:00
|
|
|
########################################################################
|
|
|
|
qa_errorlist()
|
|
|
|
{
|
2001-04-20 04:52:11 +04:00
|
|
|
grep "bgcolor=red" ${MACHINES_TO_CHECK}*/results.html |
|
2001-02-21 00:49:30 +03:00
|
|
|
sed -e 's/.results.html:<TR><TD>/ /' -e 's/<[^>]*>/ /g'
|
2001-04-20 04:52:11 +04:00
|
|
|
grep 'cache hits; .* cache misses, .* cache not reusable' \
|
|
|
|
${MACHINES_TO_CHECK}*/output.log |
|
2002-01-05 00:39:36 +03:00
|
|
|
grep strsclnt |
|
2001-02-21 00:49:30 +03:00
|
|
|
grep -v '0 cache hits; 0 cache misses, 0 cache not reusable' |
|
|
|
|
grep -v ' cache hits; 1 cache misses, 0 cache not reusable'
|
2001-04-20 04:52:11 +04:00
|
|
|
grep -vi "write to SSL socket" ${MACHINES_TO_CHECK}*/output.log |
|
2001-03-22 00:29:48 +03:00
|
|
|
grep -vi "HDX PR_Read returned error" |
|
|
|
|
grep -vi "no error" |
|
2001-04-14 01:41:16 +04:00
|
|
|
grep -vi "12285" |
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP error
|
2001-07-09 21:50:08 +04:00
|
|
|
#grep -vi "5938" | needed for -v option
|
|
|
|
#grep -vi "HDX PR_Read hit EOF" |
|
2001-04-20 04:52:11 +04:00
|
|
|
grep -vi "write to SSL socket" ${MACHINES_TO_CHECK}*/output.log |
|
2001-04-14 01:41:16 +04:00
|
|
|
grep -vi "peer cannot verify" |
|
2001-03-22 00:29:48 +03:00
|
|
|
grep -vi "error" |
|
|
|
|
grep -vi "fatal" |
|
2001-04-14 01:41:16 +04:00
|
|
|
grep -vi "TCP connection reset" |
|
|
|
|
grep $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i failed
|
2001-07-25 00:36:48 +04:00
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "segmentation violation" \
|
|
|
|
${MACHINES_TO_CHECK}*/output.log
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "memory fault" \
|
|
|
|
${MACHINES_TO_CHECK}*/output.log
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "bus error" \
|
|
|
|
${MACHINES_TO_CHECK}*/output.log
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "core dumped" \
|
|
|
|
${MACHINES_TO_CHECK}*/output.log
|
2001-04-20 04:52:11 +04:00
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP fatal \
|
|
|
|
${MACHINES_TO_CHECK}*/output.log
|
2001-04-14 01:41:16 +04:00
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i\
|
2001-04-20 04:52:11 +04:00
|
|
|
"PKCS12 decode not verified" ${MACHINES_TO_CHECK}*/output.log
|
2001-04-14 01:41:16 +04:00
|
|
|
|
2001-04-20 04:52:11 +04:00
|
|
|
if [ -n "${MACHINES_TO_CHECK}" ] ; then
|
2001-05-11 02:49:13 +04:00
|
|
|
find ${MACHINES_TO_CHECK}* -name core -print 2>/dev/null |
|
2001-07-09 21:50:08 +04:00
|
|
|
grep -v bct
|
2001-04-20 04:52:11 +04:00
|
|
|
else
|
2001-05-11 02:49:13 +04:00
|
|
|
find . -name core -print 2>/dev/null |
|
2001-07-09 21:50:08 +04:00
|
|
|
grep -v bct
|
2001-04-20 04:52:11 +04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
tbx_missing_platforms ()
|
|
|
|
{
|
|
|
|
QA_MISSING="QA report missing"
|
|
|
|
MACHINE="0"
|
2001-04-14 01:41:16 +04:00
|
|
|
|
2001-04-24 04:38:21 +04:00
|
|
|
if [ "$QA_OS_STRING" = "WINNT4.0" ] ; then
|
|
|
|
QA_OS_STRING="Windows-NT-4.0"
|
|
|
|
fi
|
2001-04-20 04:52:11 +04:00
|
|
|
for BUILDPLATFORM in `grep $QA_OS_STRING $TESTSCRIPTDIR/platformlist.tbx`
|
|
|
|
do
|
|
|
|
if [ "$BUILDPLATFORM" != "$QA_OS_STRING" ] ; then
|
2001-04-24 04:38:21 +04:00
|
|
|
Debug "BUILDPLATFORM = $BUILDPLATFORM QA_OS_STRING = $QA_OS_STRING"
|
2001-04-20 04:52:11 +04:00
|
|
|
grep $BUILDPLATFORM ${MACHINES_TO_CHECK}*/results.html \
|
|
|
|
>/dev/null || {
|
|
|
|
setQAsysvars
|
|
|
|
html_line missing >>$TMP_HTML_FILE
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
done
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
2001-04-20 04:52:11 +04:00
|
|
|
############################ platform _list ###########################
|
|
|
|
# local shell function, generate pass/fail information for each Platform
|
|
|
|
########################################################################
|
2000-12-13 02:08:15 +03:00
|
|
|
platformlist()
|
|
|
|
{
|
2001-04-20 04:52:11 +04:00
|
|
|
grep Platform ${MACHINES_TO_CHECK}*/results.html |
|
|
|
|
sed -e 's/.results.html:<H4>Platform: /---/' \
|
|
|
|
-e 's/<BR>//' >$TMPFILE
|
|
|
|
# this is done a little complicated to avoid starting a subshell in
|
|
|
|
# a while read that gets the input from a pipeline, and variables set
|
|
|
|
#in or underneath this function get unset after done...
|
|
|
|
for MB in `cat $TMPFILE` ; do
|
|
|
|
MACHINE=`echo $MB | sed -e "s/---.*//"`
|
|
|
|
BUILDPLATFORM=`echo $MB | sed -e "s/.*---//"`
|
2001-05-11 02:49:13 +04:00
|
|
|
grep "${MACHINE}[^0-9]" $ERRORLIST >/dev/null
|
2001-02-21 00:49:30 +03:00
|
|
|
ret=$?
|
|
|
|
setQAsysvars
|
|
|
|
if [ $ret -eq 0 ]
|
|
|
|
then
|
2001-04-20 04:52:11 +04:00
|
|
|
echo "Failed $MACHINE $BUILDPLATFORM" >>$RFILE
|
|
|
|
html_line failed >>$TMP_HTML_FILE
|
2001-02-21 00:49:30 +03:00
|
|
|
else
|
2001-04-20 04:52:11 +04:00
|
|
|
echo "Passed $MACHINE $BUILDPLATFORM" >>$RFILE
|
|
|
|
html_line passed >>$TMP_HTML_FILE
|
2001-02-21 00:49:30 +03:00
|
|
|
fi
|
|
|
|
done
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
2001-04-17 04:00:58 +04:00
|
|
|
############################ missing_platforms ###########################
|
2000-12-13 02:08:15 +03:00
|
|
|
# local shell function, finds out if we ran on all required platforms
|
|
|
|
########################################################################
|
2001-04-17 04:00:58 +04:00
|
|
|
missing_platforms()
|
2000-12-13 02:08:15 +03:00
|
|
|
{
|
2001-02-21 00:49:30 +03:00
|
|
|
QA_MISSING="QA report missing"
|
|
|
|
MACHINE="0"
|
2001-05-12 03:12:52 +04:00
|
|
|
SYSNAME="0"
|
|
|
|
QA_SYS_OS="0"
|
2001-02-21 00:49:30 +03:00
|
|
|
|
|
|
|
for BUILDPLATFORM in `cat $TESTSCRIPTDIR/platformlist`
|
|
|
|
do
|
2001-04-20 04:52:11 +04:00
|
|
|
grep $BUILDPLATFORM $PLATFORMLIST > /dev/null || {
|
2001-02-21 00:49:30 +03:00
|
|
|
setQAsysvars
|
2001-04-20 04:52:11 +04:00
|
|
|
html_line missing >>$TMP_HTML_FILE
|
2001-03-03 02:37:21 +03:00
|
|
|
}
|
|
|
|
done
|
2001-04-20 04:52:11 +04:00
|
|
|
}
|
2001-02-21 00:49:30 +03:00
|
|
|
|
2001-04-20 04:52:11 +04:00
|
|
|
############################ incomplete_results ###########################
|
|
|
|
# local shell function, finds out if all qa runs were complete
|
|
|
|
########################################################################
|
|
|
|
incomplete_results ()
|
|
|
|
{
|
|
|
|
|
|
|
|
for w in `ls ${MACHINES_TO_CHECK}*/results.html`
|
2001-03-03 02:37:21 +03:00
|
|
|
do
|
2001-05-12 03:12:52 +04:00
|
|
|
grep bgcolor=red $w || {
|
2001-03-03 02:37:21 +03:00
|
|
|
PASSED_LINES=""
|
|
|
|
PASSED_LINES=`grep bgcolor=lightGreen $w | wc -l`
|
|
|
|
if [ -n "$PASSED_LINES" -a "$PASSED_LINES" -lt "$TOTAL_TESTS" ] ; then
|
|
|
|
BUILDPLATFORM=`grep Platform $w | sed -e 's/<H4>Platform:/ /' -e 's/<BR>//'`
|
2001-05-12 03:12:52 +04:00
|
|
|
MACHINE=`echo $w | sed -e "s/.results.html//"`
|
|
|
|
#MACHINE=`echo $w | sed -e "s/\.[0-9]*.results.html//"`
|
2001-03-03 02:37:21 +03:00
|
|
|
setQAsysvars
|
2001-04-20 04:52:11 +04:00
|
|
|
html_line incomplete >>$TMP_HTML_FILE
|
2001-03-03 02:37:21 +03:00
|
|
|
elif [ "$PASSED_LINES" -gt "$TOTAL_TESTS" ] ; then
|
2001-04-20 04:52:11 +04:00
|
|
|
echo "WARNING - more tests than expected on $w ($PASSED_LINES)" >>$WARNINGLIST
|
2001-03-03 02:37:21 +03:00
|
|
|
fi
|
2001-05-12 03:12:52 +04:00
|
|
|
}
|
2001-02-21 00:49:30 +03:00
|
|
|
done
|
2000-12-13 02:08:15 +03:00
|
|
|
}
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
qa_stat_table()
|
2000-12-13 02:08:15 +03:00
|
|
|
{
|
2001-02-21 00:49:30 +03:00
|
|
|
echo ' '
|
|
|
|
echo '<br> '
|
|
|
|
echo '<center>'
|
|
|
|
echo '<h1>'
|
2001-04-12 00:09:53 +04:00
|
|
|
echo '<a NAME="'$1'"></a>'$1'</h1></center>'
|
2000-12-21 22:40:24 +03:00
|
|
|
echo ' '
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '<table BORDER WIDTH="100%" NOSAVE >'
|
|
|
|
echo '<tr NOSAVE>'
|
2001-04-12 00:09:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
############################### psaperf ########################
|
|
|
|
# local shell function, copies results of the daily performance test
|
|
|
|
# into a table in the QA report
|
|
|
|
########################################################################
|
|
|
|
rsaperf()
|
|
|
|
{
|
2001-04-20 04:52:11 +04:00
|
|
|
grep RSAPERF */output.log | grep -v "_DBG" > $PERFLIST
|
2001-04-12 00:09:53 +04:00
|
|
|
|
|
|
|
qa_stat_table "Performance list"
|
|
|
|
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '<td NOSAVE><b><font size=+1>Build-OS and version</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>Systemname</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1># of iterations</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>average for one op</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>Total</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA time / #</font></b></td>'
|
|
|
|
echo '</tr>'
|
2001-04-20 04:52:11 +04:00
|
|
|
cat $PERFLIST |
|
|
|
|
while read MACHINE BUILDPLATFORM no_iter t1 t2 total total_unit t3 \
|
|
|
|
t4 t5 average average_unit
|
2001-02-21 00:49:30 +03:00
|
|
|
do
|
2001-04-20 04:52:11 +04:00
|
|
|
#caution subshell, variables local to this loop
|
2001-02-21 00:49:30 +03:00
|
|
|
BUILD_SYS=`echo $BUILDPLATFORM | sed -e 's/\.OBJ//' \
|
|
|
|
-e 's/_DBG/ Debug/' \
|
|
|
|
-e 's/_OPT/ Optimized/' -e 's/_64/ 64bit/' -e 's/_glibc_PTH//' \
|
|
|
|
-e 's/_/ /'`
|
|
|
|
TESTNUMBER=`echo $MACHINE | sed -e 's/[^\.]*\.//' -e 's/\/.*//'`
|
|
|
|
MACHINE=`echo $MACHINE | sed -e 's/\..*//'`
|
2001-05-12 03:12:52 +04:00
|
|
|
TESTDATE=`ls -ld ${MACHINE}.${TESTNUMBER} | awk '{ print $6, $7, $8 }'`
|
2001-02-21 00:49:30 +03:00
|
|
|
echo '<tr>'
|
|
|
|
echo '<td>'$BUILD_SYS'</td>'
|
|
|
|
echo ''
|
|
|
|
echo '<td>'$MACHINE'</td>'
|
|
|
|
echo ''
|
|
|
|
echo '<td>'$no_iter'</td>'
|
|
|
|
echo ''
|
|
|
|
echo '<td>'$average' '$average_unit'</td>'
|
|
|
|
echo ''
|
|
|
|
echo '<td>'$total' '$total_unit'</td>'
|
|
|
|
echo ''
|
|
|
|
echo '<td>'$TESTDATE $TESTNUMBER'</td>'
|
|
|
|
echo ''
|
|
|
|
echo '</tr>'
|
|
|
|
done
|
|
|
|
echo '</table>'
|
2000-12-14 04:41:57 +03:00
|
|
|
}
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
############################### qa_stat_cleanup ########################
|
|
|
|
# local shell function, finishes html file, sets variables for global Exit
|
|
|
|
########################################################################
|
|
|
|
qa_stat_cleanup()
|
|
|
|
{
|
2000-12-13 02:08:15 +03:00
|
|
|
|
2001-04-20 04:52:11 +04:00
|
|
|
html_footer >>$TMP_HTML_FILE
|
|
|
|
|
|
|
|
O_DEBUG=OFF
|
2000-12-13 02:08:15 +03:00
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
EARLY_EXIT=FALSE
|
2001-04-20 04:52:11 +04:00
|
|
|
cp $TMP_HTML_FILE $HTML_FILE
|
2001-04-12 00:09:53 +04:00
|
|
|
FILENAME=$HTML_FILE #we might want to mail it...
|
|
|
|
Exit
|
|
|
|
}
|
2000-12-13 02:08:15 +03:00
|
|
|
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
############################### bc_test ########################
|
|
|
|
# local shell function, evaluates the results of the backward u
|
|
|
|
# compatibility tests
|
|
|
|
########################################################################
|
2001-10-06 02:27:54 +04:00
|
|
|
bc_header()
|
|
|
|
{
|
|
|
|
CURRENT_TABLE="BC" #so html_line can determine which fields to write
|
|
|
|
|
|
|
|
qa_stat_table "Backward Compatibility Test"
|
|
|
|
echo '<td NOSAVE><b><font size=+1>Build-OS and version</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA-OS</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>Systemname</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>P/F</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>All Current</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>backward comp. test</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>result</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>output</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA time / #</font></b></td>'
|
|
|
|
echo '</tr>'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
old_bc_test()
|
2001-04-12 00:09:53 +04:00
|
|
|
{
|
|
|
|
CURRENT_TABLE="BC" #so html_line can determine which fields to write
|
|
|
|
|
|
|
|
qa_stat_table "Backward Compatibility Test"
|
|
|
|
echo '<td NOSAVE><b><font size=+1>Build-OS and version</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA-OS</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>Systemname</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>P/F</font></b></td>'
|
2001-07-09 21:50:08 +04:00
|
|
|
#echo '<td><b><font size=+1>All Current</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>backward comp. test</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>result</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>output</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA time / #</font></b></td>'
|
2001-04-12 00:09:53 +04:00
|
|
|
echo '</tr>'
|
2000-12-13 02:08:15 +03:00
|
|
|
|
2001-09-14 05:04:05 +04:00
|
|
|
for w in `ls */results.html`
|
|
|
|
do
|
|
|
|
TMP_RESULT="`dirname $w`/results.tmp"
|
|
|
|
TMP_BC_RESULT="`dirname bct/$w`/results.tmp"
|
|
|
|
rm $TMP_RESULT $TMP_BC_RESULT 2>/dev/null
|
|
|
|
cat $w | sed -e 's/<[^>]*>//g' -e 's/ /_/g' \
|
|
|
|
-e 's/signtool_-[vw]/signtool_-vw/' |
|
|
|
|
grep '_[PF]a[si][sl]ed' >$TMP_RESULT
|
|
|
|
cat bct/$w | sed -e 's/<[^>]*>//g' -e 's/ /_/g' \
|
|
|
|
-e 's/signtool_-[vw]/signtool_-vw/' |
|
|
|
|
grep '_[PF]a[si][sl]ed' >$TMP_BC_RESULT
|
|
|
|
diff $TMP_RESULT $TMP_BC_RESULT 2>>$BCMISSINGLIST |
|
|
|
|
grep -v "Create_objsign_cert_.signtool_-G.*Passed" |
|
|
|
|
grep -v "porting_Alice.s_email_cert" |
|
|
|
|
grep -v "^[0-9,cad]*$" | grep -v "^---$" | grep -v "^---.$" |
|
|
|
|
grep -v "Can.t_run_pk12util_tests_for_NSS_3.2" >/dev/null && (
|
|
|
|
echo "$w differs" >> $BCMISSINGLIST
|
|
|
|
echo "========================================="
|
|
|
|
echo "diff $w bct/$w"
|
|
|
|
echo "========================================="
|
|
|
|
diff $TMP_RESULT $TMP_BC_RESULT 2>&1 |
|
|
|
|
grep -v "Create_objsign_cert_.signtool_-G.*Passed" |
|
|
|
|
grep -v "porting_Alice.s_email_cert" |
|
|
|
|
grep -v "Can.t_run_pk12util_tests_for_NSS_3.2"
|
|
|
|
) 2>&1 >>$BCERRORLIST
|
|
|
|
|
|
|
|
#diff -b $w bct/$w 2>>$BCMISSINGLIST |
|
|
|
|
#grep -v "Create objsign cert .signtool -G.*Passed" |
|
|
|
|
#grep -v "Listing signed files in jar .signtool -v.*Passed" |
|
|
|
|
#grep -v "Listing signed files in jar .signtool -w.*Passed" |
|
|
|
|
#grep -v "backward compatibility" |
|
|
|
|
#grep -v "Can.t run pk12util tests for NSS 3.2" |
|
|
|
|
#grep -v "porting Alice.s email cert " |
|
|
|
|
#grep -v "^---$" | grep -v "^[<> ] $" |
|
|
|
|
#grep -v "^---.$" | grep -v "^[<> ] .$" |
|
|
|
|
#grep -v '< </BODY></HTML>' |
|
|
|
|
#grep -v "^[0-9,cad]*$" 2>>$BCMISSINGLIST >/dev/null && (
|
|
|
|
#echo "$w differs" >> $BCMISSINGLIST
|
|
|
|
#echo "========================================="
|
|
|
|
#echo "diff $w bct/$w"
|
|
|
|
#echo "========================================="
|
|
|
|
#diff -b $w bct/$w 2>&1 |
|
|
|
|
#grep -v "Listing signed files in jar .signtool -v.*Passed" |
|
|
|
|
#grep -v "Listing signed files in jar .signtool -w.*Passed" |
|
|
|
|
#grep -v "backward compatibility" |
|
|
|
|
#grep -v "Can.t run pk12util tests for NSS 3.2" |
|
|
|
|
#grep -v "porting Alice.s email cert " |
|
|
|
|
#grep -v "^---$" | grep -v "^[<> ] $" |
|
|
|
|
#grep -v "^---.$" | grep -v "^[<> ] .$" |
|
|
|
|
#grep -v '< </BODY></HTML>' |
|
|
|
|
#grep -v "^[0-9,cad]*$" \
|
|
|
|
#) 2>&1 >>$BCERRORLIST
|
|
|
|
rm $TMP_RESULT $TMP_BC_RESULT 2>/dev/null
|
|
|
|
done
|
|
|
|
rm $ERRORLIST
|
|
|
|
cat $BCMISSINGLIST | sed -e "s/^diff: bc_...s.//" \
|
|
|
|
-e "s/.results.html.*/\/results.html/" |
|
|
|
|
sort -u > $ERRORLIST
|
|
|
|
|
|
|
|
platformlist
|
|
|
|
echo '</table>' >>$TMP_HTML_FILE
|
|
|
|
|
|
|
|
head -200 $BCERRORLIST | sed -e 's/<[^>]*>//g' -e "s/^/<br>/"
|
|
|
|
}
|
|
|
|
|
2001-10-06 02:27:54 +04:00
|
|
|
bc_test()
|
|
|
|
{
|
|
|
|
CURRENT_TABLE="BC" #so html_line can determine which fields to write
|
|
|
|
|
|
|
|
qa_stat_table "Backward Compatibility Test"
|
|
|
|
echo '<td NOSAVE><b><font size=+1>Build-OS and version</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA-OS</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>Systemname</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>P/F</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>All Current</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>backward comp. test</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>result</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>output</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA time / #</font></b></td>'
|
|
|
|
echo '</tr>'
|
|
|
|
|
|
|
|
set -x
|
|
|
|
for w in `ls */results.html`
|
|
|
|
do
|
|
|
|
BCT_DIR=`dirname "bct/$w"`
|
|
|
|
BCT_RESULT="bct/$w"
|
|
|
|
BCT_LOG="$BCT_DIR/output.log"
|
|
|
|
grep "bgcolor=red" $BCT_RESULT |
|
|
|
|
sed -e 's/.results.html:<TR><TD>/ /' -e 's/<[^>]*>/ /g'
|
|
|
|
grep 'cache hits; .* cache misses, .* cache not reusable' \
|
|
|
|
$BCT_LOG |
|
|
|
|
grep -v selfserv |
|
|
|
|
grep -v '0 cache hits; 1 cache misses, 0 cache not reusable' |
|
|
|
|
grep -v '0 cache hits; 0 cache misses, 0 cache not reusable' |
|
|
|
|
grep -v ' cache hits; 1 cache misses, 0 cache not reusable'
|
|
|
|
grep -vi "write to SSL socket" $BCT_LOG |
|
|
|
|
grep -vi "HDX PR_Read returned error" |
|
|
|
|
grep -vi "no error" |
|
|
|
|
grep -vi "12285" |
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP error
|
|
|
|
grep -vi "write to SSL socket" $BCT_LOG |
|
|
|
|
grep -vi "peer cannot verify" |
|
|
|
|
grep -vi "error" |
|
|
|
|
grep -vi "fatal" |
|
|
|
|
grep -vi "TCP connection reset" |
|
|
|
|
grep $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i failed $BCT_LOG
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "segmentation violation" $BCT_LOG
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "memory fault" $BCT_LOG
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "bus error" $BCT_LOG
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP "core dumped" $BCT_LOG
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP fatal $BCT_LOG
|
|
|
|
grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i "PKCS12 decode not verified" $BCT_LOG
|
|
|
|
find ${BTC_DIR} -name core -print
|
|
|
|
|
|
|
|
done 2>&1 >>$BCERRORLIST
|
|
|
|
rm $ERRORLIST
|
|
|
|
cat $BCMISSINGLIST | sed -e "s/^diff: bc_...s.//" \
|
|
|
|
-e "s/.results.html.*/\/results.html/" |
|
|
|
|
sort -u > $ERRORLIST
|
|
|
|
|
|
|
|
platformlist
|
|
|
|
echo '</table>' >>$TMP_HTML_FILE
|
|
|
|
|
|
|
|
head -200 $BCERRORLIST | sed -e 's/<[^>]*>//g' -e "s/^/<br>/"
|
|
|
|
}
|
|
|
|
|
2001-09-14 05:04:05 +04:00
|
|
|
|
|
|
|
############################### bc_test ########################
|
|
|
|
# local shell function, evaluates the results of the backward u
|
|
|
|
# compatibility tests
|
|
|
|
# move the whole function to old to tests a new solution
|
|
|
|
########################################################################
|
|
|
|
bc_test_old()
|
|
|
|
{
|
|
|
|
CURRENT_TABLE="BC" #so html_line can determine which fields to write
|
|
|
|
|
|
|
|
qa_stat_table "Backward Compatibility Test"
|
|
|
|
echo '<td NOSAVE><b><font size=+1>Build-OS and version</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA-OS</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>Systemname</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>P/F</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>All Current</font></b></td>'
|
|
|
|
#echo '<td><b><font size=+1>backward comp. test</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>result</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>output</font></b></td>'
|
|
|
|
echo '<td><b><font size=+1>QA time / #</font></b></td>'
|
|
|
|
echo '</tr>'
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
for w in `ls */results.html`
|
|
|
|
do
|
2001-07-09 21:50:08 +04:00
|
|
|
diff -b $w bct/$w 2>>$BCMISSINGLIST |
|
2001-09-11 04:59:50 +04:00
|
|
|
grep -v "Create objsign cert .signtool -G.*Passed" |
|
2001-07-25 00:36:48 +04:00
|
|
|
grep -v "Listing signed files in jar .signtool -v.*Passed" |
|
|
|
|
grep -v "Listing signed files in jar .signtool -w.*Passed" |
|
2001-07-09 21:50:08 +04:00
|
|
|
grep -v "backward compatibility" |
|
|
|
|
grep -v "Can.t run pk12util tests for NSS 3.2" |
|
|
|
|
grep -v "porting Alice.s email cert " |
|
|
|
|
grep -v "^---$" | grep -v "^[<> ] $" |
|
|
|
|
grep -v "^---.$" | grep -v "^[<> ] .$" |
|
|
|
|
grep -v '< </BODY></HTML>' |
|
|
|
|
grep -v "^[0-9,cad]*$" 2>>$BCMISSINGLIST >/dev/null && (
|
|
|
|
echo "$w differs" >> $BCMISSINGLIST
|
|
|
|
echo "========================================="
|
|
|
|
echo "diff $w bct/$w"
|
|
|
|
echo "========================================="
|
|
|
|
diff -b $w bct/$w 2>&1 |
|
2001-07-25 00:36:48 +04:00
|
|
|
grep -v "Listing signed files in jar .signtool -v.*Passed" |
|
|
|
|
grep -v "Listing signed files in jar .signtool -w.*Passed" |
|
2001-07-09 21:50:08 +04:00
|
|
|
grep -v "backward compatibility" |
|
|
|
|
grep -v "Can.t run pk12util tests for NSS 3.2" |
|
|
|
|
grep -v "porting Alice.s email cert " |
|
|
|
|
grep -v "^---$" | grep -v "^[<> ] $" |
|
|
|
|
grep -v "^---.$" | grep -v "^[<> ] .$" |
|
|
|
|
grep -v '< </BODY></HTML>' |
|
|
|
|
grep -v "^[0-9,cad]*$" \
|
|
|
|
) 2>&1 >>$BCERRORLIST
|
2001-04-12 00:09:53 +04:00
|
|
|
done
|
|
|
|
rm $ERRORLIST
|
2001-04-20 04:52:11 +04:00
|
|
|
cat $BCMISSINGLIST | sed -e "s/^diff: bc_...s.//" \
|
2001-04-12 00:09:53 +04:00
|
|
|
-e "s/.results.html.*/\/results.html/" |
|
|
|
|
sort -u > $ERRORLIST
|
|
|
|
|
2001-04-20 04:52:11 +04:00
|
|
|
platformlist
|
|
|
|
echo '</table>' >>$TMP_HTML_FILE
|
2001-04-14 01:41:16 +04:00
|
|
|
|
2001-07-09 21:50:08 +04:00
|
|
|
head -200 $BCERRORLIST | sed -e 's/<[^>]*>//g' -e "s/^/<br>/"
|
2001-04-14 01:41:16 +04:00
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
}
|
2000-12-13 02:08:15 +03:00
|
|
|
|
2001-04-20 04:52:11 +04:00
|
|
|
############################### tbx_main ########################
|
|
|
|
# local shell function, tinderbox variation of the qa status script
|
|
|
|
########################################################################
|
|
|
|
tbx_main()
|
|
|
|
{
|
2001-04-20 05:52:42 +04:00
|
|
|
TBX_EXIT=47
|
2001-04-20 04:52:11 +04:00
|
|
|
qa_stat_get_sysinfo # find out the OS we are running and all required tests
|
|
|
|
# on this OS
|
|
|
|
|
2001-04-24 04:38:21 +04:00
|
|
|
MACHINES_TO_CHECK=$HOST #`uname -n` only search the local tests for errors
|
2001-04-20 04:52:11 +04:00
|
|
|
qa_errorlist > $ERRORLIST #
|
|
|
|
platformlist
|
2001-11-02 01:43:55 +03:00
|
|
|
#tbx_missing_platforms #temp. taken out until we find a better way to
|
|
|
|
#determine if all necessary QA ran - right now we run different
|
|
|
|
#tinderboxes on one machine
|
2001-04-20 04:52:11 +04:00
|
|
|
incomplete_results
|
|
|
|
echo '</table>' >>$TMP_HTML_FILE
|
|
|
|
echo '<a NAME="errorlist"></a>' >> $TMP_HTML_FILE
|
|
|
|
cat $ERRORLIST | sed -e "s/^/<br>/" >>$TMP_HTML_FILE
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
############################### qa_stat_main ########################
|
|
|
|
# local shell function, main flow of the qa status script
|
|
|
|
########################################################################
|
|
|
|
qa_stat_main()
|
|
|
|
{
|
|
|
|
find_qa_systems 2>/dev/null
|
|
|
|
MACHINES_TO_CHECK="" # check all founf qa runs
|
|
|
|
qa_errorlist > $ERRORLIST
|
|
|
|
platformlist
|
|
|
|
missing_platforms
|
|
|
|
incomplete_results
|
|
|
|
echo '</table>' >>$TMP_HTML_FILE
|
|
|
|
echo '<a NAME="errorlist"></a>' >> $TMP_HTML_FILE
|
|
|
|
cat $ERRORLIST | sed -e "s/^/<br>/" >>$TMP_HTML_FILE
|
|
|
|
cat $WARNINGLIST 2>/dev/null | sed -e "s/^/<br>/" >>$TMP_HTML_FILE 2>/dev/null
|
|
|
|
rsaperf >>$TMP_HTML_FILE
|
2001-10-06 02:27:54 +04:00
|
|
|
bc_header >>$TMP_HTML_FILE
|
|
|
|
MACHINES_TO_CHECK="bct/"
|
2001-11-22 00:19:14 +03:00
|
|
|
TOTAL_TESTS=$BCT_TOTAL_TESTS
|
|
|
|
BEFORE_CONTEXT_GREP="" #WORKAROUND - errors in one outputlog within the first
|
|
|
|
AFTER_CONTEXT_GREP="" # or last lines will show up in the next/previos file
|
2001-10-06 02:27:54 +04:00
|
|
|
qa_errorlist > $ERRORLIST
|
|
|
|
platformlist
|
|
|
|
missing_platforms
|
|
|
|
incomplete_results
|
|
|
|
echo '</table>' >>$TMP_HTML_FILE
|
|
|
|
echo '<a NAME="errorlist"></a>' >> $TMP_HTML_FILE
|
|
|
|
cat $ERRORLIST | sed -e "s/^/<br>/" >>$TMP_HTML_FILE
|
|
|
|
cat $WARNINGLIST 2>/dev/null | sed -e "s/^/<br>/" >>$TMP_HTML_FILE 2>/dev/null
|
|
|
|
#bc_test >>$TMP_HTML_FILE
|
2001-04-20 04:52:11 +04:00
|
|
|
}
|
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
CURRENT_TABLE="Standard"
|
|
|
|
qa_stat_init
|
2001-04-20 04:52:11 +04:00
|
|
|
|
2001-08-14 21:34:06 +04:00
|
|
|
if [ "$O_TBX" = "ON" -o "$O_LOCAL" = "ON" ] ; then
|
2001-04-20 04:52:11 +04:00
|
|
|
tbx_main
|
|
|
|
else
|
|
|
|
qa_stat_main
|
|
|
|
fi
|
2000-12-21 22:40:24 +03:00
|
|
|
|
2001-04-12 00:09:53 +04:00
|
|
|
qa_stat_cleanup
|