setup script/test to run individual package tests

This commit is contained in:
Rick Olson 2014-05-30 19:23:11 -06:00
parent 4de874320d
commit 19966b6da8
3 changed files with 13 additions and 7 deletions

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
script/test && script/integration_tests script/test

@ -1 +0,0 @@
GOPATH="`pwd`/.vendor" go test ./integration

@ -1,8 +1,15 @@
#!/bin/sh
#/ Usage: script/test # run all tests
#/ script/test <subdir> # run just a package's tests
target="./..."
if [[ "$#" != "0" ]]; then
target="./$@"
fi
script/fmt script/fmt
script/bootstrap script/bootstrap
GOPATH="`pwd`/.vendor" \ GOPATH="`pwd`/.vendor" go test $target -i
go test ./... -i GOPATH="`pwd`/.vendor" go test $target
GOPATH="`pwd`/.vendor" \
go test ./...