summaryrefslogtreecommitdiffstats
path: root/jjb/kvmfornfv/kvmfornfv-test.sh
blob: b31d61cce94b94dcf5a14bd6cb75f901e3ec967c (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
27
28
29
30
31
32
33
#!/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

echo $TEST_NAME

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