forked from aws/porting-advisor-for-graviton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·40 lines (33 loc) · 908 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·40 lines (33 loc) · 908 Bytes
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
#!/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
if hash docker
then
echo "🐋 Running container tests"
./container-test.sh
if [ $? -ne 0 ]; then
echo "**ERROR**: error generating jar for Graviton Ready Java tool" && exit 1
fi
fi