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
4e417b98
Commit
4e417b98
authored
Jan 05, 2015
by
Joe Beda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3206 from zmerlynn/jenkins_style_e2e
Add script to run e2e tests from binary deployment: e2e-from-release.sh
parents
83f1aa55
51afb97b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
e2e-from-release.sh
hack/e2e-from-release.sh
+65
-0
No files found.
hack/e2e-from-release.sh
0 → 100755
View file @
4e417b98
#!/bin/bash
# Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This script will build a kubernetes.tar.gz and
# kubernetes-test.tar.gz, unpack them in a separate directory and try
# to run e2es from there, as if it were a binary distribution separate
# from the git tree.
set
-o
errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
# Build a release
echo
echo
"... building release"
echo
"
${
KUBE_ROOT
}
/build/release.sh"
echo
echo
"... ensuring git e2e cluster is down"
echo
go run
"
${
KUBE_ROOT
}
/hack/e2e.go"
-v
-down
TEST_DEPLOY
=
"
${
KUBE_ROOT
}
/_output/test-deploy"
echo
echo
"... deploying kubernetes.tar.gz / kubernetes-test.tar.gz to
${
TEST_DEPLOY
}
"
echo
rm
-rf
${
TEST_DEPLOY
}
mkdir
-p
${
TEST_DEPLOY
}
tar
-C
"
${
TEST_DEPLOY
}
"
-xzf
_output/release-tars/kubernetes.tar.gz
tar
-C
"
${
TEST_DEPLOY
}
"
-xzf
_output/release-tars/kubernetes-test.tar.gz
# Nothing past here should touch the git checkout.
unset
KUBE_ROOT
cd
"
${
TEST_DEPLOY
}
/kubernetes"
echo
echo
"... running e2e tests from
${
TEST_DEPLOY
}
"
echo
go run ./hack/e2e.go
-v
-up
-test
-down
"
$*
"
||
(
status
=
$?
echo
echo
"... e2e tests failed from
${
TEST_DEPLOY
}
! To reproduce this command:"
echo
"... (cd '
${
TEST_DEPLOY
}
/kubernetes' && go run ./hack/e2e.go -v -up -test -down"
"
$*
"
")"
echo
exit
${
status
}
)
exit
0
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