summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/src/test/generate-and-run-tests.sh
blob: 4b534c8f289cbc207b3782e5d98a092df3258571 (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
#!/bin/bash -e


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

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


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

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


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

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

# Clean up this damn file
# TODO: figure out why this is being written and clean it up.
rm kube-manager-test.yaml