Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 1265994 - enable ecperf tests, r=ttaubert
- Loading branch information
1 parent
492330e
commit cdb3e39
Showing
6 changed files
with
138 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# | ||
# | ||
# 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/. | ||
|
||
DEPTH = ../.. | ||
DEPTH = ../.. | ||
CORE_DEPTH = ../.. | ||
|
||
# MODULE public and private header directories are implicitly REQUIRED. | ||
# MODULE public and private header directories are implicitly REQUIRED. | ||
MODULE = nss | ||
|
||
INCLUDES += -I$(CORE_DEPTH)/nss/lib/softoken | ||
|
||
# This next line is used by .mk files | ||
# and gets translated into $LINCS in manifest.mnw | ||
REQUIRES = dbm seccmd | ||
REQUIRES = dbm seccmd | ||
|
||
# DIRS = | ||
# DIRS = | ||
|
||
CSRCS = ecperf.c | ||
CSRCS = ecperf.c | ||
|
||
PROGRAM = ecperf | ||
PROGRAM = ecperf | ||
|
||
USE_STATIC_LIBS = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ NSS_SRCDIRS = \ | |
dbtest \ | ||
derdump \ | ||
digest \ | ||
ecperf \ | ||
httpserv \ | ||
listsuites \ | ||
makepqg \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /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/ec.sh | ||
# | ||
# needs to work on all Unix and Windows platforms | ||
# this is a meta script to drive all ec tests | ||
# | ||
# special strings | ||
# --------------- | ||
# FIXME ... known problems, search for this string | ||
# NOTE .... unexpected behavior | ||
# | ||
######################################################################## | ||
|
||
############################## run_tests ############################### | ||
# run test suites defined in ECTESTS variable | ||
######################################################################## | ||
run_ec_tests() | ||
{ | ||
for ECTEST in ${ECTESTS} | ||
do | ||
SCRIPTNAME=${ECTEST}.sh | ||
echo "Running ec tests for ${ECTEST}" | ||
echo "TIMESTAMP ${ECTEST} BEGIN: `date`" | ||
(cd ${QADIR}/ec; . ./${SCRIPTNAME} 2>&1) | ||
echo "TIMESTAMP ${ECTEST} END: `date`" | ||
done | ||
} | ||
|
||
ECTESTS="ecperf" | ||
run_ec_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
chmod a+rw $RONLY_DIR | ||
. common/cleanup.sh | ||
} | ||
|
||
ecperf_init | ||
ECPERF_OUT=`ecperf` | ||
ECPERF_OUT=`echo $ECPERF_OUT | grep -i "failed"` | ||
# 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 |