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:16:52 +00:00
|
|
|
mkdir -p `pwd`/.vendor/src/github.com/github
|
|
|
|
rm -f `pwd`/.vendor/src/github.com/github/git-media
|
|
|
|
ln -s `pwd` `pwd`/.vendor/src/github.com/github/git-media
|
|
|
|
|
|
|
|
GOPATH="`pwd`/.vendor" go test $target -i
|
|
|
|
GOPATH="`pwd`/.vendor" go test $target
|
|
|
|
|
|
|
|
rm -f `pwd`/.vendor/src/github.com/github/git-media
|