X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Ftest_kvmfornfv.sh;h=858aaf3947f5b5a07435e9575323e7964fe07250;hb=refs%2Fchanges%2F83%2F22183%2F1;hp=70961d74893e67a92348b5dde9b05e6ac4c4cf67;hpb=1f0befb721c82e39c4839a552b3933f417317e00;p=kvmfornfv.git diff --git a/ci/test_kvmfornfv.sh b/ci/test_kvmfornfv.sh index 70961d748..858aaf394 100755 --- a/ci/test_kvmfornfv.sh +++ b/ci/test_kvmfornfv.sh @@ -1,12 +1,33 @@ #!/bin/bash -############################################################# -## !!! The original test_kvmfornfv.sh is removed because it -## break the verification process!!! -############################################################# -## This script will launch ubuntu docker container -## runs cyclictest through yardstick -## and verifies the test results. ############################################################ +## This script is an interface to trigger the +## cyclicTestTrigger.sh for test type like patch verification, +## daily testing. +## Releng will trigger this script by passing test type like +## verify/daily as an argument +############################################################ + +test_type=$1 + +if [ ${test_type} == "verify" ];then + HOST_IP="10.2.117.23" + test_time=600000 # 10m +elif [ ${test_type} == "daily" ];then + HOST_IP="10.2.117.25" + test_time=7200000 #2h +elif [ ${test_type} == "merge" ];then + echo "Test is not enabled for ${test_type}" + exit 0 +fi + +source $WORKSPACE/ci/cyclicTestTrigger.sh $HOST_IP $test_time $test_type + +#Update cyclictest-node-context.yaml with test_time and pod.yaml with IP +updateYaml + +#Cleaning up the test environment before running cyclictest through yardstick. +env_clean -echo "Hello world" +#Creating a docker image with yardstick installed and launching ubuntu docker to run yardstick cyclic testcase +runCyclicTest