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