2014-05-31 01:23:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#/ Usage: script/test # run all tests
|
|
|
|
#/ script/test <subdir> # run just a package's tests
|
|
|
|
|
|
|
|
target="./..."
|
|
|
|
|
|
|
|
if [[ "$#" != "0" ]]; then
|
|
|
|
target="./$@"
|
|
|
|
fi
|
|
|
|
|
2013-10-04 13:48:57 +00:00
|
|
|
script/fmt
|
2014-04-16 21:11:52 +00:00
|
|
|
script/bootstrap
|
|
|
|
|
2014-06-03 15:11:31 +00:00
|
|
|
GOPATH="$GOPATH:`pwd`/.vendor" go test $target -i
|
|
|
|
GOPATH="$GOPATH:`pwd`/.vendor" go test $target
|