security/nss/tests/common/cleanup.sh

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rwxr-xr-x

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 #!/bin/bash
michael@0 2 #
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7
michael@0 8 if [ -z "${CLEANUP}" -o "${CLEANUP}" = "${SCRIPTNAME}" ]; then
michael@0 9 echo
michael@0 10 echo "SUMMARY:"
michael@0 11 echo "========"
michael@0 12 echo "NSS variables:"
michael@0 13 echo "--------------"
michael@0 14 echo "HOST=${HOST}"
michael@0 15 echo "DOMSUF=${DOMSUF}"
michael@0 16 echo "BUILD_OPT=${BUILD_OPT}"
michael@0 17 if [ "${OS_ARCH}" = "Linux" ]; then
michael@0 18 echo "USE_X32=${USE_X32}"
michael@0 19 fi
michael@0 20 echo "USE_64=${USE_64}"
michael@0 21 echo "NSS_CYCLES=\"${NSS_CYCLES}\""
michael@0 22 echo "NSS_TESTS=\"${NSS_TESTS}\""
michael@0 23 echo "NSS_SSL_TESTS=\"${NSS_SSL_TESTS}\""
michael@0 24 echo "NSS_SSL_RUN=\"${NSS_SSL_RUN}\""
michael@0 25 echo "NSS_AIA_PATH=${NSS_AIA_PATH}"
michael@0 26 echo "NSS_AIA_HTTP=${NSS_AIA_HTTP}"
michael@0 27 echo "NSS_AIA_OCSP=${NSS_AIA_OCSP}"
michael@0 28 echo "IOPR_HOSTADDR_LIST=${IOPR_HOSTADDR_LIST}"
michael@0 29 echo "PKITS_DATA=${PKITS_DATA}"
michael@0 30 echo
michael@0 31 echo "Tests summary:"
michael@0 32 echo "--------------"
michael@0 33 LINES_CNT=$(cat ${RESULTS} | grep ">Passed<" | wc -l | sed s/\ *//)
michael@0 34 echo "Passed: ${LINES_CNT}"
michael@0 35 LINES_CNT=$(cat ${RESULTS} | grep ">Failed<" | wc -l | sed s/\ *//)
michael@0 36 echo "Failed: ${LINES_CNT}"
michael@0 37 LINES_CNT=$(cat ${RESULTS} | grep ">Failed Core<" | wc -l | sed s/\ *//)
michael@0 38 echo "Failed with core: ${LINES_CNT}"
michael@0 39 LINES_CNT=$(cat ${RESULTS} | grep ">Unknown<" | wc -l | sed s/\ *//)
michael@0 40 echo "Unknown status: ${LINES_CNT}"
michael@0 41 if [ ${LINES_CNT} -gt 0 ]; then
michael@0 42 echo "TinderboxPrint:Unknown: ${LINES_CNT}"
michael@0 43 fi
michael@0 44 echo
michael@0 45
michael@0 46 html "END_OF_TEST<BR>"
michael@0 47 html "</BODY></HTML>"
michael@0 48 rm -f ${TEMPFILES} 2>/dev/null
michael@0 49 fi

mercurial