git-lfs/script/test

20 lines
497 B
Plaintext
Raw Normal View History

#!/bin/sh
#/ Usage: script/test # run all tests
#/ script/test <subdir> # run just a package's tests
2013-10-04 13:48:57 +00:00
script/fmt
2014-04-16 21:11:52 +00:00
script/bootstrap
2015-01-30 19:08:47 +00:00
export LOCALSRCDIR=`pwd`/.vendor/src/github.com/hawser/git-hawser
2014-06-03 15:39:37 +00:00
mkdir -p `dirname $LOCALSRCDIR`
rm -f $LOCALSRCDIR
ln -s `pwd` $LOCALSRCDIR
2014-08-16 17:26:31 +00:00
GOPATH="`pwd`/.vendor"
SUITE="./${1:-"..."}"
if [ $# -gt 0 ]; then
shift
fi
PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE -i "$@"
PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE "$@"