summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/test/generate-and-run-tests.sh
blob: cd7571372a73b585e9149cea94a4bbaebc8f2191 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash -e


if [ $# -ne 1 ] ; then
    echo "Usage: $(basename $0) <master name>"
    exit 1
fi

MASTER=$1



# Put us in the same dir as the script.
cd $(dirname $0)


echo
echo "Running lib_utils generate-and-run-tests.sh"
echo "-------------------------------------------"
../../../lib_utils/src/test/generate-and-run-tests.sh


echo
echo "Running lib_openshift generate"
echo "------------------------------"
../generate.py


echo
echo "Running lib_openshift Unit Tests"
echo "----------------------------"
cd unit

for test in *.py; do
    echo
    echo "--------------------------------------------------------------------------------"
    echo
    echo "Running $test..."
    ./$test
done


echo
echo "Running lib_openshift Integration Tests"
echo "-----------------------------------"
cd ../integration

for test in *.yml; do
    echo
    echo "--------------------------------------------------------------------------------"
    echo
    echo "Running $test..."
    ./$test -vvv -e cli_master_test="$MASTER"
done