summaryrefslogtreecommitdiffstats
path: root/ci/test_kvmfornfv.sh
blob: 858aaf3947f5b5a07435e9575323e7964fe07250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

############################################################
## 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

#Creating a docker image with yardstick installed and launching ubuntu docker to run yardstick cyclic testcase
runCyclicTest