summaryrefslogtreecommitdiffstats
path: root/ci/test_kvmfornfv.sh
blob: e9f520059c06a762acd4b2baeacdd8fdaafa1120 (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
34
35
36
37
38
39
40
41
42
43
44
45
#!/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
else
   echo "Incorrect test type ${test_type}"
   exit 1
fi

source $WORKSPACE/ci/cyclicTestTrigger.sh $HOST_IP $test_time $test_type

#calculating and verifying sha512sum of the guestimage.
if ! verifyGuestImage;then
   exit 1
fi

#Update kvmfornfv_cyclictest_idle_idle.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
if runCyclicTest;then
   exit 0
else
   exit 1
fi