test.sh 635 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh -e
  2. . ./build
  3. fmtRes=`gofmt -l $GOFMTPATH`
  4. if [ "$fmtRes" != "" ]; then
  5. echo "Failed to pass golang format checking."
  6. echo "Please gofmt modified go files, or run './build --fmt'."
  7. exit 1
  8. fi
  9. go test -i ./http
  10. go test -v ./http
  11. go test -i ./store
  12. go test -v ./store
  13. go test -i ./server
  14. go test -v ./server
  15. go test -i ./config
  16. go test -v ./config
  17. go test -i ./server/v1/tests
  18. go test -v ./server/v1/tests
  19. go test -i ./server/v2/tests
  20. go test -v ./server/v2/tests
  21. go test -i ./mod/lock/v2/tests
  22. go test -v ./mod/lock/v2/tests
  23. go test -i ./tests/functional
  24. ETCD_BIN_PATH=$(pwd)/bin/etcd go test -v ./tests/functional