summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2017-02-06 16:21:36 +0800
committeryuyang <Gabriel.yuyang@huawei.com>2017-02-09 16:35:44 +0800
commit9038727dee2e67f8facd75f8b498ca20a1e066c9 (patch)
treedcf40ce6ee38d8d214345c6befefdd0fac973dbf /run_tests.sh
parent0a29e9ec59e21dc46db0497187cc9d0de0844b05 (diff)
Add POSCA jenkins job support
JIRA: BOTTLENECK-128 This patch is to make the POSCA testsuite could be built automatically for OPNFV CI job. Change-Id: I21d7fd553ce3591aea3391a33fe0a7b8579b57d4 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh25
1 files changed, 9 insertions, 16 deletions
diff --git a/run_tests.sh b/run_tests.sh
index c03b1988..0892f921 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -71,7 +71,7 @@ function run_test(){
case $test_suite in
"rubbos")
- info "Running rubbos test suite"
+ info "Running rubbos test suite\n"
test_file="/home/opnfv/bottlenecks/testsuites/rubbos/testsuite_story/rubbos_story1"
if [[ -f $test_file ]]; then
testcases=($(cat $test_file))
@@ -107,22 +107,15 @@ function run_test(){
done
;;
"posca")
+ info "Composing up dockers"
+ docker-compose -f /home/opnfv/bottlenecks/docker/bottleneck-compose/docker-compose.yml up -d
+ info "Pulling tutum/influxdb for yardstick"
+ docker pull tutum/influxdb:0.13
+ info "Copying testing scripts to docker"
+ docker cp /home/opnfv/bottlenecks/run_posca.sh bottleneckcompose_bottlenecks_1:/home/opnfv/bottlenecks
+ sleep 5
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 ${i}
- done
+ docker exec bottleneckcompose_bottlenecks_1 bash /home/opnfv/bottlenecks/run_posca.sh
;;
esac
}