Commit 28d00776 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51649 from mml/sh-test

Automatic merge from submit-queue (batch tested with PRs 49971, 51357, 51616, 51649, 51372) Add some initial shell parsing tests. These just test to see if there is a bash syntax error in these shell libraries. For #51642 ```release-note NONE ```
parents 7d49e7bb 02716875
...@@ -46,3 +46,31 @@ pkg_tar( ...@@ -46,3 +46,31 @@ pkg_tar(
"//cluster/saltbase:salt-manifests", "//cluster/saltbase:salt-manifests",
], ],
) )
# These tests just verify that bash can interpret the file.
sh_test(
name = "common_test",
srcs = ["common.sh"],
data = [
":all-srcs",
],
deps = ["//hack/lib"],
)
sh_test(
name = "clientbin_test",
srcs = ["clientbin.sh"],
data = [
":all-srcs",
],
deps = ["//hack/lib"],
)
sh_test(
name = "kube-util_test",
srcs = ["kube-util.sh"],
data = [
":all-srcs",
],
deps = ["//hack/lib"],
)
File mode changed from 100644 to 100755
...@@ -22,7 +22,7 @@ set -o pipefail ...@@ -22,7 +22,7 @@ set -o pipefail
KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd) KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
DEFAULT_KUBECONFIG="${HOME}/.kube/config" DEFAULT_KUBECONFIG="${HOME:-.}/.kube/config"
source "${KUBE_ROOT}/hack/lib/util.sh" source "${KUBE_ROOT}/hack/lib/util.sh"
source "${KUBE_ROOT}/cluster/lib/logging.sh" source "${KUBE_ROOT}/cluster/lib/logging.sh"
......
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment