setup script/test to run individual package tests
This commit is contained in:
parent
4de874320d
commit
19966b6da8
@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
script/test && script/integration_tests
|
script/test
|
||||||
|
@ -1 +0,0 @@
|
|||||||
GOPATH="`pwd`/.vendor" go test ./integration
|
|
17
script/test
17
script/test
@ -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 ./...
|
|
||||||
|
Loading…
Reference in New Issue
Block a user