diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /security/nss/tests/ec/ecperf.sh | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'security/nss/tests/ec/ecperf.sh')
-rwxr-xr-x | security/nss/tests/ec/ecperf.sh | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/security/nss/tests/ec/ecperf.sh b/security/nss/tests/ec/ecperf.sh new file mode 100755 index 000000000..501488e08 --- /dev/null +++ b/security/nss/tests/ec/ecperf.sh @@ -0,0 +1,52 @@ +#! /bin/bash +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +######################################################################## +# +# tests/ec/ecperf.sh +# +# needs to work on all Unix and Windows platforms +# +# special strings +# --------------- +# FIXME ... known problems, search for this string +# NOTE .... unexpected behavior +# +######################################################################## + +############################## ecperf_init ############################# +# local shell function to initialize this script +######################################################################## + +ecperf_init() +{ + SCRIPTNAME="ecperf.sh" + if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ] ; then + cd ../common + . ./init.sh + fi + SCRIPTNAME="ecperf.sh" + html_head "ecperf test" +} + +ecperf_cleanup() +{ + html "</TABLE><BR>" + cd ${QADIR} + . common/cleanup.sh +} + +ecperf_init +ECPERF_OUT=$(ecperf 2>&1) +echo "$ECPERF_OUT" +ECPERF_OUT=`echo $ECPERF_OUT | grep -i 'failed\|Assertion failure'` +# TODO: this is a perf test we don't check for performance here but only failed +if [ -n "$ECPERF_OUT" ] ; then + html_failed "ec(perf) test" +else + html_passed "ec(perf) test" +fi +ecperf_cleanup |