Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some initial shell parsing tests. #51649

Merged
merged 2 commits into from Sep 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions cluster/BUILD
Expand Up @@ -46,3 +46,31 @@ pkg_tar(
"//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"],
)
Empty file modified cluster/clientbin.sh 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion cluster/common.sh
Expand Up @@ -22,7 +22,7 @@ set -o pipefail

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}/cluster/lib/logging.sh"
Expand Down
Empty file modified cluster/kube-util.sh 100644 → 100755
Empty file.