X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_tests.sh;fp=run_tests.sh;h=ad0b31c5600d894103ae8a1c29182c6c82f33030;hb=37e67f46e74137f55ffc0d698d335b25cb24ec21;hp=d5c3059246fe4d856155a050ea03ccc7a8a5fc8d;hpb=d14f4c272cd900339c198a177ad9042fb03fab2d;p=bottlenecks.git diff --git a/run_tests.sh b/run_tests.sh index d5c30592..ad0b31c5 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -26,7 +26,7 @@ examples: report=true -arr_test_suite=(rubbos vstf) +arr_test_suite=(rubbos vstf posca) function check_testcase(){ @@ -38,6 +38,9 @@ function check_testcase(){ "-vstf") SUITE_PREFIX=$SUITE_PREFIX_CONFIG/vstf/testcase_cfg ;; + "-posca") + SUITE_PREFIX=$SUITE_PREFIX_CONFIG/posca/testcase_cfg + ;; esac TEST_CASE=$2 @@ -99,6 +102,23 @@ function run_test(){ python /home/opnfv/bottlenecks/testsuites/vstf/run_vstf.py -c $file done ;; + "posca") + info "Running posca test suite" + test_file="/home/opnfv/bottlenecks/testsuites/posca/testsuite_story/posca_factor_test" + if [[ -f $test_file ]]; then + testcases=($(cat $test_file)) + else + error "no posca test suite file " + fi + for i in "${testcases[@]}"; do + #check if the testcase is legal or not + check_testcase -posca $i + #adjust config parameters + #run test case + file=${BASEDIR}/testsuites/posca/testcase_cfg/${i}.yaml + python /home/opnfv/bottlenecks/testsuites/posca/run_posca.py -c $file + done + ;; esac }