X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_tests.sh;h=093f7248313e529eef709a911ee8fe1ac8b45644;hb=4773636be28c52e57f8b9ca24ed5d13c047129cf;hp=e6e90846d0353181a6756a4e63951a03695741d4;hpb=6e41152562cb076f2c822f155fd93e8d760bb4c7;p=bottlenecks.git diff --git a/run_tests.sh b/run_tests.sh index e6e90846..093f7248 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -33,10 +33,10 @@ function check_testcase(){ check_suite="$1" case $check_suite in "-rubbos") - $SUITE_PREFIX=$SUITE_PREFIX_CONFIG/rubbos/testcase_cfg + SUITE_PREFIX=$SUITE_PREFIX_CONFIG/rubbos/testcase_cfg ;; "-vstf") - $SUITE_PREFIX=$SUITE_PREFIX_CONFIG/vstf/testcase_cfg + SUITE_PREFIX=$SUITE_PREFIX_CONFIG/vstf/testcase_cfg ;; esac @@ -47,10 +47,10 @@ function check_testcase(){ all_testcases_insuite=`cat /tmp/all_testcases.yaml | awk -F '/' '{print $NF}' | awk -F '.' '{print $1}'` all_testcases=(${all_testcases_insuite}) - if ["${TEST_CASE}" != ""]; then + if [ "${TEST_CASE}" != "" ]; then testcase_exec=(${TEST_CASE// /}) for i in "${testcase_exec[@]}"; do - if [[ " ${all_test_cases[*]} " != *" $i "* ]]; then + if [[ " ${all_testcases[*]} " != *" $i "* ]]; then error "unknown test case: $i. available test cases are: ${all_test_cases[@]}" fi done @@ -71,7 +71,7 @@ function run_test(){ if [[ -f $test_file ]]; then testcases=($(cat $test_file)) else - error("no rubbos test suite file ") + error "no rubbos test suite file" fi for i in "${testcases[@]}"; do #check if the testcase is legal or not @@ -79,7 +79,7 @@ function run_test(){ #adjust config parameters, different test suite has different methods, take rubbos as an example #run test case, different test suite has different methods file={$BASEDIR}/testsuites/rubbos/testcase_cfg/{$i}.yaml - python ${BOTTLENECK_TOP_DIR}/testsuites/rubbos/run_rubbos.py -c $file + python /home/opnfv/bottlenecks/testsuites/rubbos/run_rubbos.py -c $file done ;; "vstf") @@ -88,7 +88,7 @@ function run_test(){ if [[ -f $test_file ]]; then testcases=($(cat $test_file)) else - error("no vstf test suite file ") + error "no vstf test suite file " fi for i in "${testcases[@]}"; do #check if the testcase is legal or not