mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
eb1023f573
MozReview-Commit-ID: g0XqOwNzkz --HG-- extra : rebase_source : f3b55831f927074846ce3def0e72941ba3c93ebf
53 lines
1.3 KiB
Bash
Executable File
53 lines
1.3 KiB
Bash
Executable File
#! /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
|