Skip to content

Commit 5ba59cc

Browse files
authored
Enable Tinycore Functest image multiarch (#3628)
Changeup some bazel code to be able to build the tinycore image needed for some functional tests for arm and s390x Signed-off-by: Thomas-David Griedel [email protected] Signed-off-by: Thomas-David Griedel [email protected]
1 parent b8621d0 commit 5ba59cc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ container_bundle(
9696
"$(container_prefix)/cdi-func-test-file-host-init:$(container_tag)": "//tools/cdi-func-test-file-host-init:cdi-func-test-file-host-init-image",
9797
"$(container_prefix)/cdi-func-test-file-host-http:$(container_tag)": "//tools/cdi-func-test-file-host-init:cdi-func-test-file-host-http-image",
9898
"$(container_prefix)/cdi-func-test-registry-init:$(container_tag)": "//tools/cdi-func-test-registry-init:cdi-func-test-registry-init-image",
99+
"$(container_prefix)/cdi-func-test-tinycore:$(container_tag)": "//tests:cdi-func-test-tinycore",
99100
"$(container_prefix)/cdi-func-test-registry-populate:$(container_tag)": "//tools/cdi-func-test-registry-init:cdi-func-test-registry-populate-image",
100101
"$(container_prefix)/cdi-func-test-registry:$(container_tag)": "//tools/cdi-func-test-registry-init:cdi-func-test-registry-image",
101102
"$(container_prefix)/vcenter-simulator:$(container_tag)": "//tools/vddk-test:vcenter-simulator",

tests/BUILD.bazel

+5
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ pkg_tar(
141141

142142
container_image(
143143
name = "cdi-func-test-tinycore",
144+
architecture = select({
145+
"@io_bazel_rules_go//go/platform:linux_s390x": "s390x",
146+
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
147+
"//conditions:default": "amd64",
148+
}),
144149
env = {
145150
"TEST_KUBEVIRT_IO_TEST": "testvalue",
146151
"TEST_KUBEVIRT_IO_EXISTING": "somethingelse",

0 commit comments

Comments
 (0)