Merge "Update documentation about disabling selinux"
[releng.git] / jjb / kvmfornfv / kvmfornfv-test.sh
1 #!/bin/bash
2 ##########################################################
3 ##This script includes executing cyclictest scripts.
4 ##########################################################
5 #The latest build packages are stored in build_output
6
7 ls -al $WORKSPACE/build_output
8
9 if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then
10     JOB_TYPE=${BASH_REMATCH[0]}
11 else
12     echo "Unable to determine job type!"
13     exit 1
14 fi
15
16 # do stuff differently based on the job type
17 case "$JOB_TYPE" in
18     verify|daily)
19         #start the test
20         cd $WORKSPACE
21         ./ci/test_kvmfornfv.sh $JOB_TYPE
22         ;;
23     *)
24         echo "Test is not enabled for $JOB_TYPE jobs"
25         exit 1
26 esac