forked from livepeer/go-livepeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·68 lines (55 loc) · 991 Bytes
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env bash
#Test script to run all the tests for continuous integration
cd cmd/livepeer
go test -logtostderr=true -v
t1=$?
cd ../..
cd core
go test -logtostderr=true -v
t2=$?
# Be more strict with load balancer tests: run with race detector enabled
go test -logtostderr=true -run LB_ -race
t2_lb=$?
cd ..
cd server
go test -logtostderr=true -v
t3=$?
cd ..
cd monitor
go test -logtostderr=true -v
t4=$?
cd ..
cd eth
go test -logtostderr=true -v
t5=$?
cd ..
cd eth/watchers
go test -logtostderr=true -v
t6=$?
cd ../..
cd common
go test -logtostderr=true -v
t7=$?
cd ..
cd discovery
go test -logtostderr=true -v
t8=$?
cd ..
cd pm
go test -logtostderr=true -v
t9=$?
cd ..
cd drivers
go test -logtostderr=true -v
t10=$?
cd ..
./test_args.sh
t_args=$?
if (($t1!=0||$t2!=0||$t2_lb!=0||$t3!=0||$t4!=0||$t5!=0||$t6!=0||$t7!=0||$t8!=0||$t9!=0||$t10!=0||$t_args!=0))
then
printf "\n\nSome Tests Failed\n\n"
exit -1
else
printf "\n\nAll Tests Passed\n\n"
exit 0
fi