-h|--help show the help text
-s|--teststory run specific test story
<test story> one of the following:
- (rubbos, vstf, posca_factor_test)
+ (posca_factor_test)
user can also define their own test story and pass as var to this file,
please refer to testsuites/posca/testsuite_story/ for details
-c|--testcase run specific test case
<test case> one of the following:
- (posca_factor_system_bandwidth, posca_factor_ping)
+ (posca_factor_ping, posca_factor_soak_throughputs, ...)
--cleanup cleanup test dockers runing when test is done (false by default)
--report push results to DB (false by default)
examples:
- $(basename "$0")
$(basename "$0") -s posca_factor_test"
# Define global variables
# Define alias for log printing
info () {
- logger -s -t "bottlenecks.info" "$*"
+ logger -s -t "BOTTLENECKS INFO" "$*"
}
error () {
- logger -s -t "bottlenecks.error" "$*"
+ logger -s -t "BOTTLENECKS ERROR" "$*"
exit 1
}
;;
*)
info "Running posca $test_level: $test_exec"
- python ${POSCA_SUITE}/../run_testsuite.py $test_level $test_exec $REPORT
+ opts="--privileged=true -id"
+ docker_volume="-v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp"
+ docker run $opts --name bottlenecks-load-master $docker_volume opnfv/bottlenecks:latest /bin/bash
+ sleep 5
+ POSCA_SCRIPT="/home/opnfv/bottlenecks/testsuites/posca"
+ docker exec bottlenecks-load-master python ${POSCA_SCRIPT}/../run_testsuite.py ${test_level} ${test_exec} ${REPORT}
;;
esac
}
# Clean up testing dockers
if [[ ${cleanup} == true ]]; then
info "Cleaning up docker-compose images and dockers"
- docker-compose -f $BASEDIR/docker/bottleneck-compose/docker-compose.yml down --rmi all
bash ${BASEDIR}/docker/docker_cleanup.sh -d influxdb --debug
bash ${BASEDIR}/docker/docker_cleanup.sh -d bottlenecks --debug
+ bash ${BASEDIR}/docker/docker_cleanup.sh -d yardstick --debug
+ bash ${BASEDIR}/docker/docker_cleanup.sh -d elk --debug
fi