summaryrefslogtreecommitdiffstats
path: root/ci/envs/cyclictest.sh
diff options
context:
space:
mode:
authorswatisharma <swatix.sharma@intel.com>2016-08-09 19:43:46 +0530
committerswatisharma <swatix.sharma@intel.com>2016-08-10 16:33:44 +0530
commit0d6af5dda5ef996f7a32a4ef4af84a3a67bd96e0 (patch)
treeedd9e5ff02d61ed0f5adad49fd5a3007717a6d6d /ci/envs/cyclictest.sh
parent6ec128a4e6a1819881f8db6659d4024aac35ce38 (diff)
CI Integration for KVMforNFV
This patch contains scripts for running cyclictest through yardstick as part of CI integration for KVMforNFV. The scripts will be triggered to create a docker ubuntu container for running yardstick, configuring the host, launching a guest VM and executing cyclictest through yardstick. The verification process gets completed after running the cyclictest. Co-Authored-By: Gundarapu Reddy <reddyx.gundarapu@intel.com> Signed-off-by: Swati Sharma <swatix.sharma@intel.com>
Diffstat (limited to 'ci/envs/cyclictest.sh')
-rw-r--r--ci/envs/cyclictest.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/ci/envs/cyclictest.sh b/ci/envs/cyclictest.sh
new file mode 100644
index 000000000..e4dd9931f
--- /dev/null
+++ b/ci/envs/cyclictest.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+###########################################################
+## Invoking this script from ubuntu docker container runs
+## cyclictest through yardstick
+###########################################################
+
+pod_config='/opt/pod.yaml'
+cyclictest_context_file='/opt/cyclictest-node-context.yaml'
+
+if [ ! -f ${pod_config} ] ; then
+ echo "file ${pod_config} not found"
+ exit 1
+fi
+
+if [ ! -f ${cyclictest_context_file} ] ; then
+ echo "file ${cyclictest_context_file} not found"
+ exit 1
+fi
+
+#Running cyclictest through yardstick
+yardstick task start ${cyclictest_context_file}
+mv /tmp/yardstick.out /opt/