summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authorJun Li <matthew.lijun@huawei.com>2016-10-08 02:35:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-08 02:35:22 +0000
commit491c218b3d06bdb9eb54aa70905e8ec3c6f0b173 (patch)
tree21a12f73c1dd88aa6ac069f69b074d13aa97e69d /run_tests.sh
parent23f716997d7cc1f396007f5b2e3c4d82dc2e94a3 (diff)
parentb9850595c9b27752fe48ce874f8dc90d473d9e60 (diff)
Merge changes from topics 'add_factor_testcase_tx_pkt_size', 'add_posca_test_suite_framework'
* changes: Add Factor Testcase TX PKT Size Adding Posca Testsuite in Bottlenecks
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
}