summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh22
1 files changed, 21 insertions, 1 deletions
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
}