summaryrefslogtreecommitdiffstats
path: root/docker/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/run_tests.sh')
-rwxr-xr-xdocker/run_tests.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/docker/run_tests.sh b/docker/run_tests.sh
index 56d70ec50..4dabddacf 100755
--- a/docker/run_tests.sh
+++ b/docker/run_tests.sh
@@ -25,7 +25,8 @@ where:
-s|--serial run tests in one thread
-t|--test run specific set of tests
<test_name> one or more of the following separated by comma:
- vping_ssh,vping_userdata,odl,onos,tempest,rally,vims,promise,doctor
+ healthcheck,vping_ssh,vping_userdata,odl,onos,
+ tempest,rally,vims,promise,doctor
examples:
@@ -34,9 +35,6 @@ examples:
$(basename "$0") -t tempest,rally"
-# Support for Functest offline
-# NOTE: Still not 100% working when running the tests
-offline=false
report=""
clean=true
serial=false
@@ -95,6 +93,11 @@ function run_test(){
fi
case $test_name in
+ "healthcheck")
+ info "Running health check test..."
+ ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/healthcheck.sh
+ clean_openstack
+ ;;
"vping_ssh")
info "Running vPing-SSH test..."
python ${FUNCTEST_REPO_DIR}/testcases/vPing/CI/libraries/vPing_ssh.py \
@@ -145,6 +148,9 @@ function run_test(){
;;
"bgpvpn")
info "Running BGPVPN Tempest test case..."
+ pushd ${repos_dir}/bgpvpn/
+ pip install --no-deps -e .
+ popd
tempest_dir=$(ls -t /home/opnfv/.rally/tempest/ |grep for-deploy |tail -1)
if [[ $tempest_dir == "" ]]; then
echo "Make sure tempest was running before"
@@ -152,15 +158,14 @@ function run_test(){
fi
tempest_dir=/home/opnfv/.rally/tempest/$tempest_dir
pushd $tempest_dir
- . .venv/bin/activate
- pip install --no-deps -e ~/repos/bgpvpn/.
mkdir -p /etc/tempest/
cp tempest.conf /etc/tempest/
echo "[service_available]
bgpvpn = True" >> /etc/tempest/tempest.conf
- ./run_tempest.sh -- networking_bgpvpn_tempest
+ ./run_tempest.sh -t -N -- networking_bgpvpn_tempest
rm -rf /etc/tempest/tempest.conf
popd
+ clean_openstack
;;
"onos")
info "Running ONOS test case..."
@@ -198,9 +203,6 @@ while [[ $# > 0 ]]
exit 0
shift
;;
- -o|--offline)
- offline=true
- ;;
-r|--report)
report="-r"
;;
@@ -228,7 +230,7 @@ if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]] &&\
[[ -f $tests_file ]]; then
arr_test=($(cat $tests_file))
else
- arr_test=(vping_ssh tempest vims rally)
+ arr_test=(healthcheck vping_ssh vping_userdata tempest vims rally)
fi
BASEDIR=`dirname $0`