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
a6f5dddc
Commit
a6f5dddc
authored
Jul 05, 2018
by
David Eads
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move test-cmd guts to separate sig-cli maintained directory
parent
6e08dd22
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
10 deletions
+47
-10
BUILD
hack/make-rules/BUILD
+1
-9
test-cmd.sh
hack/make-rules/test-cmd.sh
+1
-1
BUILD
test/BUILD
+1
-0
BUILD
test/cmd/BUILD
+40
-0
OWNERS
test/cmd/OWNERS
+4
-0
legacy-script.sh
test/cmd/legacy-script.sh
+0
-0
No files found.
hack/make-rules/BUILD
View file @
a6f5dddc
...
...
@@ -20,8 +20,8 @@ sh_binary(
name = "test-cmd",
srcs = ["test-cmd.sh"],
deps = [
":test-cmd-util",
"//hack/lib",
"//test/cmd:all-srcs",
],
)
...
...
@@ -89,14 +89,6 @@ sh_binary(
],
)
sh_library(
name = "test-cmd-util",
srcs = [
"test-cmd-util.sh",
],
data = ["//pkg/kubectl/validation:testdata/v1/validPod.yaml"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
...
...
hack/make-rules/test-cmd.sh
View file @
a6f5dddc
...
...
@@ -24,7 +24,7 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/test.sh"
source
"
${
KUBE_ROOT
}
/
hack/make-rules/test-cmd-util
.sh"
source
"
${
KUBE_ROOT
}
/
test/cmd/legacy-script
.sh"
function
run_kube_apiserver
()
{
kube::log::status
"Building kube-apiserver"
...
...
test/BUILD
View file @
a6f5dddc
...
...
@@ -11,6 +11,7 @@ filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//test/cmd:all-srcs",
"//test/conformance:all-srcs",
"//test/e2e:all-srcs",
"//test/e2e_kubeadm:all-srcs",
...
...
test/cmd/BUILD
0 → 100644
View file @
a6f5dddc
# Scripts runnable from make, e.g.
#
# cd $GOPATH/src/k8s.io/kubernetes
# make test-e2e-node
#
# The sh_binary rules below exist only to validate
# dependencies; if a shell dependency is accidentally
# deleted, a presubmit BUILD will fail.
#
# If the scripts sourced their dependencies from
# $RUNFILES (rather than $BASH_SOURCE/../.. or
# whatever), then bazel build hack/... would install
# runnable, hermetically sealed shell "binaries".
# E.g. the following command would work:
#
# ./bazel-bin/hack/make-rules/test-e2e-node
#
# TODO(#47064): Should be a sh_test instead of sh_binary
sh_library(
name = "legacy-script",
srcs = [
"legacy-script.sh",
],
data = ["//pkg/kubectl/validation:testdata/v1/validPod.yaml"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
test/cmd/OWNERS
0 → 100644
View file @
a6f5dddc
approvers:
- sig-cli-maintainers
reviewers:
- sig-cli
hack/make-rules/test-cmd-util
.sh
→
test/cmd/legacy-script
.sh
View file @
a6f5dddc
File moved
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