ec.sh (1123B)
1 #! /bin/bash 2 # 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 ######################################################################## 8 # 9 # tests/ec/ec.sh 10 # 11 # needs to work on all Unix and Windows platforms 12 # this is a meta script to drive all ec tests 13 # 14 # special strings 15 # --------------- 16 # FIXME ... known problems, search for this string 17 # NOTE .... unexpected behavior 18 # 19 ######################################################################## 20 21 ############################## run_tests ############################### 22 # run test suites defined in ECTESTS variable 23 ######################################################################## 24 run_ec_tests() 25 { 26 for ECTEST in ${ECTESTS} 27 do 28 SCRIPTNAME=${ECTEST}.sh 29 echo "Running ec tests for ${ECTEST}" 30 echo "TIMESTAMP ${ECTEST} BEGIN: `date`" 31 (cd ${QADIR}/ec; . ./${SCRIPTNAME} 2>&1) 32 echo "TIMESTAMP ${ECTEST} END: `date`" 33 done 34 } 35 36 ECTESTS="ecperf ectest" 37 run_ec_tests