summaryrefslogtreecommitdiffstats
path: root/jjb/kvmfornfv/kvmfornfv-test.sh
blob: 06377ac4f7eff75df44c9a9810b91036151cb0ff (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
#!/bin/bash
##########################################################
##This script includes executing cyclictest scripts.
##########################################################
#The latest build packages are stored in build_output

ls -al $WORKSPACE/build_output

if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then
    JOB_TYPE=${BASH_REMATCH[0]}
else
    echo "Unable to determine job type!"
    exit 1
fi

# do stuff differently based on the job type
case "$JOB_TYPE" in
    verify|daily)
        #start the test
        cd $WORKSPACE
        ./ci/test_kvmfornfv.sh $JOB_TYPE
        ;;
    *)
        echo "Test is not enabled for $JOB_TYPE jobs"
        exit 1
esac