Add kubernetes-test.tar.gz

Add test artifacts to the build. This lets you do:

tar -xzf kubernetes.tar.gz
tar -xzf kubernetes-test.tar.gz
cd kubernetes
go run ./hack/e2e.go -up -test -down

without having a git checkout.
This commit is contained in:
Zach Loafman
2014-12-17 11:41:47 -08:00
parent 7c66ebe2e0
commit d3aed6c9cd
4 changed files with 39 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ esac
locations=(
"${KUBE_ROOT}/_output/dockerized/bin/${host_os}/${host_arch}/e2e"
"${KUBE_ROOT}/_output/local/bin/${host_os}/${host_arch}/e2e"
"${KUBE_ROOT}/platforms/${host_os}/${host_arch}/e2e"
)
e2e=$( (ls -t "${locations[@]}" 2>/dev/null || true) | head -1 )

View File

@@ -48,6 +48,15 @@ readonly KUBE_TEST_TARGETS=(
cmd/integration
)
readonly KUBE_TEST_BINARIES=("${KUBE_TEST_TARGETS[@]##*/}")
readonly KUBE_TEST_BINARIES_WIN=("${KUBE_TEST_BINARIES[@]/%/.exe}")
readonly KUBE_TEST_PORTABLE=(
api/examples/pod.json
cmd/e2e/pod.json
contrib/for-tests/network-tester/rc.json
contrib/for-tests/network-tester/service.json
hack/e2e.go
hack/e2e-suite
)
# If we update this we need to also update the set of golang compilers we build
# in 'build/build-image/Dockerfile'