summaryrefslogtreecommitdiff
path: root/hack/lib/golang.sh
diff options
context:
space:
mode:
authorJan Unterbrink <jan.unterbrink@subpath.de>2020-03-15 14:12:50 +0100
committerJan Unterbrink <jan.unterbrink@subpath.de>2020-03-16 08:07:50 +0100
commitb83cb4a4dc4d10b3951b115419c7ad556da89bf2 (patch)
tree0bb0a056be5c58ed67d0fa75643fc88d4c160125 /hack/lib/golang.sh
parenttest of kubernetes minor version (diff)
downloadkubeedge-b83cb4a4dc4d10b3951b115419c7ad556da89bf2.tar.gz
enable test in keadm
Diffstat (limited to 'hack/lib/golang.sh')
-rw-r--r--hack/lib/golang.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
index 7626aa1b2..b12aa7421 100644
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -369,6 +369,13 @@ kubeedge::golang::get_cloud_test_dirs() {
)
}
+kubeedge::golang::get_keadm_test_dirs() {
+ cd ${KUBEEDGE_ROOT}
+ findDirs=$(find -L ./keadm \
+ -name '*_test.go' -print | xargs -0n1 dirname | uniq)
+ echo "${findDirs}"
+}
+
kubeedge::golang::get_edge_test_dirs() {
(
local findDirs
@@ -382,15 +389,18 @@ kubeedge::golang::get_edge_test_dirs() {
read -ra KUBEEDGE_CLOUD_TESTCASES <<< "$(kubeedge::golang::get_cloud_test_dirs)"
read -ra KUBEEDGE_EDGE_TESTCASES <<< "$(kubeedge::golang::get_edge_test_dirs)"
+read -ra KUBEEDGE_KEADM_TESTCASES <<< "$(kubeedge::golang::get_keadm_test_dirs)"
readonly KUBEEDGE_ALL_TESTCASES=(
${KUBEEDGE_CLOUD_TESTCASES[@]}
${KUBEEDGE_EDGE_TESTCASES[@]}
+ ${KUBEEDGE_KEADM_TESTCASES[@]}
)
ALL_COMPONENTS_AND_GETTESTDIRS_FUNCTIONS=(
cloud::::kubeedge::golang::get_cloud_test_dirs
edge::::kubeedge::golang::get_edge_test_dirs
+ keadm::::kubeedge::golang::get_keadm_test_dirs
)
kubeedge::golang::get_testdirs_by_component() {