-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.sh
executable file
·46 lines (39 loc) · 1.02 KB
/
test.sh
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
#!/bin/bash
# Runs unit tests, generates the binary and then runs it against sample projects
# run unit tests
echo "🐍 Setup virtual environment"
./setup-environment.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: failed to initialize Python Virtual Environment" && exit 1
fi
# run unit tests
echo "🔬 Running unit tests"
./unit-test.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: unit tests failed" && exit 1
fi
# build project
echo "⚒️ Building project"
./build.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: failed to build project" && exit 1
fi
echo "🧪 Running integration tests"
./integration-test.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: integration tests failed" && exit 1
fi
# run load tests
echo "⏳ Running load tests"
./load_test.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: load tests failed" && exit 1
fi
if hash docker
then
echo "🐋 Running container tests"
./container-test.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: error generating jar for Ampere Ready Java tool" && exit 1
fi
fi