git-lfs/script/test
2015-01-30 14:08:47 -05:00

17 lines
454 B
Bash
Executable File

#!/bin/sh
#/ Usage: script/test # run all tests
#/ script/test <subdir> # run just a package's tests
script/fmt
script/bootstrap
export LOCALSRCDIR=`pwd`/.vendor/src/github.com/hawser/git-hawser
mkdir -p `dirname $LOCALSRCDIR`
rm -f $LOCALSRCDIR
ln -s `pwd` $LOCALSRCDIR
GOPATH="`pwd`/.vendor"
SUITE="./${1:-"..."}"
PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE -i
PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE