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