diff options
author | sonmi%netscape.com <devnull@localhost> | 2001-04-13 21:41:16 +0000 |
---|---|---|
committer | sonmi%netscape.com <devnull@localhost> | 2001-04-13 21:41:16 +0000 |
commit | 81ae6e3998423afbf2cdd674202a0506287b89c2 (patch) | |
tree | b44cacc390af914e15540c7f15b64b0124a63d47 /security/nss/tests/qa_stat | |
parent | 6a31897c7d6da2c92b728efd22332337d28e8e52 (diff) | |
download | nss-hg-81ae6e3998423afbf2cdd674202a0506287b89c2.tar.gz |
added more information to the QA report
ported to linux
added special "before contesxt" and "after context" parameters to grep when
running on linux
Diffstat (limited to 'security/nss/tests/qa_stat')
-rwxr-xr-x | security/nss/tests/qa_stat | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/security/nss/tests/qa_stat b/security/nss/tests/qa_stat index 4ec303842..e3a7e2c4e 100755 --- a/security/nss/tests/qa_stat +++ b/security/nss/tests/qa_stat @@ -51,7 +51,7 @@ HTML_PASSEDMSG=Passed RSH_FILE=$TMP/rsh.$$ echo >$RSH_FILE TMPFILES="$TMPFILES $RSH_FILE $WARNING_FILE" -RSH_WAIT_TIME=90 #maximum time allowed for the 2 rsh to finish... +RSH_WAIT_TIME=30 #maximum time allowed for the 2 rsh to finish... TOTAL_TESTS=106 Debug "NTDIST $NTDIST" @@ -59,9 +59,6 @@ Debug "UXDIST $UXDIST" Debug "TESTSCRIPTDIR $TESTSCRIPTDIR" Debug "RESULTDIR $RESULTDIR" -BEFORE_CONTEXT_GREP=10 -AFTER_CONTEXT_GREP=3 - ############################### watch_rsh ############################## # local shell function, deals with a hanging rsh (kills it...) # this function is started as a backgroundprocess before the rsh is started, @@ -199,9 +196,9 @@ qa_stat_init() rm $TMP_PLATFORMLIST_FILE 2>/dev/null TMP_PERF_FILE=${RFILE}.perf.$$ HTML_FILE=${RFILE}.html - WARNING_FILE=${RFILE}.warning - BCMISS=${RFILE}.bcmissing - BCERR=${RFILE}.bcerrors + WARNING_FILE=${RFILE}.warning.$$ + BCMISS=${RFILE}.bcmissing.$$ + BCERR=${RFILE}.bcerrors.$$ TMPFILES="$TMPFILES $ERRORLIST $WARNING_FILE $TMP_PERF_FILE " #FIXME rm the rest too - add them to the TMPFILES @@ -418,18 +415,33 @@ qa_errorlist() 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 -i error */output.log | - grep -vi "write to SSL socket" | + #grep -i error */output.log | grep -vi "write to SSL socket" | + #grep -vi "HDX PR_Read returned error" | grep -vi "no error" | + #grep -vi "12285" + #grep -i failed */output.log | grep -vi "write to SSL socket" | + #grep -vi "peer cannot verify" | grep -vi "error" |grep -vi "fatal" | + #grep -vi "TCP connection reset" + #grep -i fatal */output.log + grep -vi "write to SSL socket" */output.log | grep -vi "HDX PR_Read returned error" | grep -vi "no error" | - grep -vi "12285" - grep -i failed */output.log | - grep -vi "write to SSL socket" | - grep -vi "peer cannot verify" | + grep -vi "12285" | + grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP error + grep -vi "write to SSL socket" */output.log | + grep -vi "peer cannot verify" | grep -vi "error" | grep -vi "fatal" | - grep -vi "TCP connection reset" - grep -i fatal */output.log + grep -vi "TCP connection reset" | + grep $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i failed + grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i fatal */output.log + grep -i $BEFORE_CONTEXT_GREP $AFTER_CONTEXT_GREP -i\ + "PKCS12 decode not verified" */output.log +#BEFORE_CONTEXT_GREP=" --before-context=10" +#AFTER_CONTEXT_GREP="--after-context=3" +# linux:the gnu grep, on Linux can output 10 lines above and 3 lines below +#the errormessage + + find . -name core -print 2>/dev/null } @@ -452,6 +464,7 @@ platformlist() html_line passed >>$HTML_FILE fi done + echo '</table>' >>$HTML_FILE } @@ -607,6 +620,9 @@ CURRENT_TABLE="BC" #so html_line can determine which fields to write sort -u > $ERRORLIST platformlist $ERRORLIST > $RFILE + + cat $BCERR | sed -e 's/<[^>]*>//g' -e "s/^/<br>/" + } O_DEBUG=OFF @@ -616,13 +632,11 @@ find_qa_systems 2>/dev/null qa_errorlist > $ERRORLIST platformlist $ERRORLIST > $RFILE check_platforms $RFILE -echo '</table>' >>$HTML_FILE echo '<a NAME="errorlist"></a>' >> $HTML_FILE cat $ERRORLIST | sed -e "s/^/<br>/" >>$HTML_FILE cat $WARNING_FILE 2>/dev/null | sed -e "s/^/<br>/" >>$HTML_FILE 2>/dev/null rsaperf >>$HTML_FILE bc_test >>$HTML_FILE #cat $BCERR | sed -e "s/^/<br>/" >>$HTML_FILE -echo '</table>' >>$HTML_FILE qa_stat_cleanup |