test.sh 370 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. set -e
  3. if [ -z "$PKG" ]; then
  4. PKG="./store ./server ./server/v2/tests ./mod/lock/v2/tests"
  5. fi
  6. # Get GOPATH, etc from build
  7. . ./build
  8. # use right GOPATH
  9. export GOPATH="${PWD}"
  10. # Unit tests
  11. for i in $PKG
  12. do
  13. go test -i $i
  14. go test -v $i
  15. done
  16. # Functional tests
  17. go test -i ./tests/functional
  18. ETCD_BIN_PATH=$(pwd)/etcd go test -v ./tests/functional