git-lfs/script/test

22 lines
500 B
Plaintext
Raw Normal View History

#!/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
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