Update tests

This commit is contained in:
Brendan Burns
2014-06-09 07:16:43 -07:00
parent 0b6702e80b
commit 9010ef954c
4 changed files with 191 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ find_test_dirs() {
-wholename './third_party' \
-o -wholename './release' \
-o -wholename './target' \
-o -wholename '*/third_party/*' \
-o -wholename '*/output/*' \
\) -prune \
\) -name '*_test.go' -print0 | xargs -0n1 dirname | sort -u
)
@@ -35,6 +37,12 @@ find_test_dirs() {
cd "${KUBE_TARGET}"
if [ "$1" != "" ]; then
go test -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1"
exit 0
fi
for package in $(find_test_dirs); do
go test -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}"
done