CI integration for KVMforNFV.
[kvmfornfv.git] / ci / envs / cyclictest.sh
1 #!/bin/bash
2
3 ###########################################################
4 ## Invoking this script from ubuntu docker container runs
5 ## cyclictest through yardstick
6 ###########################################################
7
8 pod_config='/opt/pod.yaml'
9 cyclictest_context_file='/opt/cyclictest-node-context.yaml'
10
11 if [ ! -f ${pod_config} ] ; then
12     echo "file ${pod_config} not found"
13     exit 1
14 fi
15
16 if [ ! -f ${cyclictest_context_file} ] ; then
17     echo "file ${cyclictest_context_file} not found"
18     exit 1
19 fi
20
21 #setting up of image for launching guest vm.
22 sudo ssh root@10.2.117.23 "cp /root/images/guest1.qcow2 /root/"
23
24 #Running cyclictest through yardstick
25 yardstick -d task start ${cyclictest_context_file}
26 chmod 777 /tmp/yardstick.out
27 cat /tmp/yardstick.out  > /opt/yardstick.out