X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_tests.sh;h=0892f92163e88b0f4516078aff0eca26bafb27b4;hb=9c22cd768a161ec0eab4da24f40a4c626275c746;hp=c03b19880d48f16cec43eae16dd28ba4135819ec;hpb=ab7055e7dafc6a1cf2f9b1daf755602ec437b9bf;p=bottlenecks.git 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 }