Browse Source

tests(test.sh) open race option

Xiang Li 11 years ago
parent
commit
dce461dbd7
1 changed files with 7 additions and 7 deletions
  1. 7 7
      test.sh

+ 7 - 7
test.sh

@@ -3,28 +3,28 @@
 . ./build
 
 go test -i ./http
-go test -v ./http
+go test -v ./http -race
 
 go test -i ./store
-go test -v ./store
+go test -v ./store -race
 
 go test -i ./server
-go test -v ./server
+go test -v ./server -race
 
 go test -i ./config
-go test -v ./config
+go test -v ./config -race
 
 go test -i ./server/v1/tests
-go test -v ./server/v1/tests
+go test -v ./server/v1/tests -race
 
 go test -i ./server/v2/tests
-go test -v ./server/v2/tests
+go test -v ./server/v2/tests -race
 
 go test -i ./mod/lock/v2/tests
 go test -v ./mod/lock/v2/tests
 
 go test -i ./tests/functional
-ETCD_BIN_PATH=$(pwd)/bin/etcd go test -v ./tests/functional
+ETCD_BIN_PATH=$(pwd)/bin/etcd go test -v ./tests/functional -race
 
 fmtRes=`gofmt -l $GOFMTPATH`
 if [ "$fmtRes" != "" ]; then