Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
da7d5d1a
Commit
da7d5d1a
authored
Dec 17, 2014
by
Joe Beda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3007 from zmerlynn/testtar
Add kubernetes-test.tar.gz
parents
7c66ebe2
d3aed6c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
1 deletion
+39
-1
common.sh
build/common.sh
+26
-0
e2e.go
cmd/e2e/e2e.go
+3
-1
goe2e.sh
hack/e2e-suite/goe2e.sh
+1
-0
golang.sh
hack/lib/golang.sh
+9
-0
No files found.
build/common.sh
View file @
da7d5d1a
...
...
@@ -503,6 +503,7 @@ function kube::release::package_tarballs() {
kube::release::package_client_tarballs
kube::release::package_server_tarballs
kube::release::package_salt_tarball
kube::release::package_test_tarball
kube::release::package_full_tarball
}
...
...
@@ -582,6 +583,31 @@ function kube::release::package_salt_tarball() {
kube::release::create_tarball
"
${
package_name
}
"
"
${
release_stage
}
/.."
}
# This is the stuff you need to run tests from the binary distribution.
function
kube::release::package_test_tarball
()
{
echo
"+++ Building tarball: test"
local
release_stage
=
"
${
RELEASE_STAGE
}
/test/kubernetes"
rm
-rf
"
${
release_stage
}
"
mkdir
-p
"
${
release_stage
}
"
local
platform
for
platform
in
"
${
KUBE_CLIENT_PLATFORMS
[@]
}
"
;
do
local
test_bins
=(
"
${
KUBE_TEST_BINARIES
[@]
}
"
)
if
[[
"
${
platform
%/*
}
"
==
"windows"
]]
;
then
test_bins
=(
"
${
KUBE_TEST_BINARIES_WIN
[@]
}
"
)
fi
mkdir
-p
"
${
release_stage
}
/platforms/
${
platform
}
"
cp
"
${
test_bins
[@]/#/
${
LOCAL_OUTPUT_BINPATH
}
/
${
platform
}
/
}
"
\
"
${
release_stage
}
/platforms/
${
platform
}
"
done
cp
-R
--parents
${
KUBE_TEST_PORTABLE
[@]
}
${
release_stage
}
local
package_name
=
"
${
RELEASE_DIR
}
/kubernetes-test.tar.gz"
kube::release::create_tarball
"
${
package_name
}
"
"
${
release_stage
}
/.."
}
# This is all the stuff you need to run/install kubernetes. This includes:
# - precompiled binaries for client
# - Cluster spin up/down scripts and configs for various cloud providers
...
...
cmd/e2e/e2e.go
View file @
da7d5d1a
...
...
@@ -56,7 +56,9 @@ func waitForPodRunning(c *client.Client, id string) {
}
}
// assetPath returns a path to the requested file; safe on all OSes.
// assetPath returns a path to the requested file; safe on all
// OSes. NOTE: If you use an asset in this test, you MUST add it to
// the KUBE_TEST_PORTABLE array in hack/lib/golang.sh.
func
assetPath
(
pathElements
...
string
)
string
{
return
filepath
.
Join
(
*
repoRoot
,
filepath
.
Join
(
pathElements
...
))
}
...
...
hack/e2e-suite/goe2e.sh
View file @
da7d5d1a
...
...
@@ -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
)
...
...
hack/lib/golang.sh
View file @
da7d5d1a
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment