summaryrefslogtreecommitdiffstats
path: root/security/nss/tests/ec/ec.sh
blob: 9869b6590ce4fdbe112ddc63f2ff230dca68997c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 ectest"
run_ec_tests