2015-07-30 02:37:31 +00:00
|
|
|
#!/usr/bin/env bash
|
2014-05-31 01:23:11 +00:00
|
|
|
#/ Usage: script/test # run all tests
|
|
|
|
#/ script/test <subdir> # run just a package's tests
|
|
|
|
|
2013-10-04 13:48:57 +00:00
|
|
|
script/fmt
|
2016-05-17 12:00:32 +00:00
|
|
|
suite="./${1:-"api"} ./${1:-"lfs"} ./${1:-"git"}"
|
2015-02-07 17:23:49 +00:00
|
|
|
if [ $# -gt 0 ]; then
|
|
|
|
shift
|
|
|
|
fi
|
2016-02-23 16:51:12 +00:00
|
|
|
GO15VENDOREXPERIMENT=0 go test $suite "$@"
|