forked from transformation/utatuav-interop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·76 lines (55 loc) · 1.35 KB
/
test.sh
File metadata and controls
executable file
·76 lines (55 loc) · 1.35 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# Server
cd /interop/server/
echo "Testing server..."
source venv/bin/activate
python manage.py test
server=$?
deactivate
echo -e "\n=====================================================================\n"
# Client
cd /interop/client/
echo "Testing Python 2 client..."
source venv2/bin/activate
nosetests interop
py2client=$?
deactivate
echo -e "\n=====================================================================\n"
echo "Testing Python 3 client..."
source venv3/bin/activate
nosetests interop
py3client=$?
deactivate
echo -e "\n=====================================================================\n"
# Frontend
cd /interop/server/auvsi_suas/static/auvsi_suas
echo "Testing JavaScript Frontend..."
./test_with_phantomjs.sh
frontend=$?
echo -e "\n=====================================================================\n"
exit_code=0
if [[ ${server} == "0" ]]; then
echo "Server PASSED"
else
echo "Server FAILED"
exit_code=1
fi
if [[ ${py2client} == "0" ]]; then
echo "Python 2 client PASSED"
else
echo "Python 2 client FAILED"
exit_code=1
fi
if [[ ${py3client} == "0" ]]; then
echo "Python 3 client PASSED"
else
echo "Python 3 client FAILED"
exit_code=1
fi
if [[ ${frontend} == "0" ]]; then
echo "JavaScript Frontend PASSED"
else
echo "JavaScript Frontend FAILED"
exit_code=1
fi
exit ${exit_code}