15 lines
412 B
Bash
Executable File
15 lines
412 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#/ Usage: script/test # run all non-vendored tests
|
|
#/ script/test <subdir> # run just a package's tests
|
|
|
|
script/fmt
|
|
if [ $# -gt 0 ]; then
|
|
GO15VENDOREXPERIMENT=1 go test "./$1"
|
|
else
|
|
GO15VENDOREXPERIMENT=1 go test \
|
|
$(go list ./... \
|
|
| grep -v "github.com/olekukonko/ts" \
|
|
| grep -v "github.com/technoweenie/go-contentaddressable" \
|
|
)
|
|
fi
|