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
|
|
|
|
|
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-06-03 15:16:52 +00:00
|
|
|
|
2014-08-16 17:26:31 +00:00
|
|
|
GOPATH="`pwd`/.vendor"
|
|
|
|
SUITE="./${1:-"..."}"
|
2014-10-01 14:49:14 +00:00
|
|
|
PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE -i
|
|
|
|
PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE
|