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 #Running cyclictest through yardstick
22 yardstick task start ${cyclictest_context_file}
23 mv /tmp/yardstick.out  /opt/