Skip to content

Commit dc9e946

Browse files
committed
hack: Add krunkit integration test
This is the same way that we test vfkit. This test is not running in the CI. Issues: - Need to install and configure vment-helper (requires root).
1 parent 0185ff0 commit dc9e946

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

hack/jenkins/common.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ case "${DRIVER}" in
145145
vfkit)
146146
echo "vfkit: $(vfkit --version)"
147147
;;
148+
krunkit)
149+
echo "krunkit: $(krunkit --version)"
150+
;;
148151
esac
149152

150153
echo ""
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Copyright 2024 The Kubernetes Authors All rights reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
18+
# This script runs the integration tests on an OSX machine for the Hyperkit Driver
19+
20+
# The script expects the following env variables:
21+
# MINIKUBE_LOCATION: GIT_COMMIT from upstream build.
22+
# COMMIT: Actual commit ID from upstream build
23+
# EXTRA_BUILD_ARGS (optional): Extra args to be passed into the minikube integrations tests
24+
# access_token: The GitHub API access token. Injected by the Jenkins credential provider.
25+
26+
27+
set -ex
28+
29+
ARCH="arm64"
30+
OS="darwin"
31+
DRIVER="krunkit"
32+
JOB_NAME="Krunkit_macOS"
33+
EXTRA_TEST_ARGS=""
34+
EXTERNAL="yes"
35+
36+
brew tap slp/krunkit
37+
brew install krunkit
38+
39+
source common.sh

0 commit comments

Comments
 (0)