diff options
| author | wlq1212 <liqing.wu@daocloud.io> | 2023-08-16 13:38:19 +0800 |
|---|---|---|
| committer | liqing.wu <liqing.wu@daoclod.io> | 2023-08-23 11:02:11 +0800 |
| commit | f7cfbe3cd3c08b9c3693cbc65c3d3d6a567da4a5 (patch) | |
| tree | dd0708e89c49761abf800dd91456924c57c1770e /tests/scripts | |
| parent | Merge pull request #4953 from Shelley-BaoYue/update-ke-image (diff) | |
| download | kubeedge-f7cfbe3cd3c08b9c3693cbc65c3d3d6a567da4a5.tar.gz | |
Add e2e compatibility test
Signed-off-by: wlq1212 <liqing.wu@daoclod.io>
Diffstat (limited to 'tests/scripts')
| -rwxr-xr-x | tests/scripts/execute.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/scripts/execute.sh b/tests/scripts/execute.sh index 22ada0940..811448272 100755 --- a/tests/scripts/execute.sh +++ b/tests/scripts/execute.sh @@ -23,6 +23,8 @@ curpath=$PWD echo $PWD GOPATH=${GOPATH:-$(go env GOPATH)} +KIND_IMAGE=${1:-"kindest/node:v1.24.0"} +compilemodule=$2 which ginkgo &> /dev/null || ( go install github.com/onsi/ginkgo/ginkgo@latest @@ -39,9 +41,9 @@ sudo rm -rf ${curpath}/tests/e2e/e2e.test sudo rm -rf ${curpath}/tests/e2e_keadm/e2e_keadm.test # Specify the module name to compile in below command -bash -x ${curpath}/tests/scripts/compile.sh $1 +bash -x ${curpath}/tests/scripts/compile.sh ${compilemodule} -ENABLE_DAEMON=true bash -x ${curpath}/hack/local-up-kubeedge.sh || { +ENABLE_DAEMON=true bash -x ${curpath}/hack/local-up-kubeedge.sh ${KIND_IMAGE}|| { echo "failed to start cluster !!!" exit 1 } @@ -52,4 +54,4 @@ export GINKGO_TESTING_RESULT=0 trap cleanup EXIT -bash -x ${curpath}/tests/scripts/fast_test.sh $1 +bash -x ${curpath}/tests/scripts/fast_test.sh ${compilemodule} |
