forked from etcd-io/etcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·41 lines (29 loc) · 804 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
#!/bin/sh -e
. ./build
go test -i ./etcd
go test -v ./etcd -race
go test -i ./http
go test -v ./http -race
go test -i ./store
go test -v ./store -race
go test -i ./server
go test -v ./server -race
go test -i ./config
go test -v ./config -race
go test -i ./server/v1/tests
go test -v ./server/v1/tests -race
go test -i ./server/v2/tests
go test -v ./server/v2/tests -race
# Mod is deprecated temporarily.
# go test -i ./mod/lock/v2/tests
# go test -v ./mod/lock/v2/tests
go test -i ./pkg/btrfs
go test -v ./pkg/btrfs
go test -i ./tests/functional
ETCD_BIN_PATH=$(pwd)/bin/etcd go test -v ./tests/functional -race
fmtRes=`gofmt -l $GOFMTPATH`
if [ "$fmtRes" != "" ]; then
echo "Failed to pass golang format checking."
echo "Please gofmt modified go files, or run './build --fmt'."
exit 1
fi