summaryrefslogtreecommitdiffstats
path: root/recipes-containers/cri-o/cri-o_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/cri-o/cri-o_git.bb')
-rw-r--r--recipes-containers/cri-o/cri-o_git.bb33
1 files changed, 31 insertions, 2 deletions
diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb
index efc86fbe..f04c4feb 100644
--- a/recipes-containers/cri-o/cri-o_git.bb
+++ b/recipes-containers/cri-o/cri-o_git.bb
@@ -17,7 +17,9 @@ At a high level, we expect the scope of cri-o to be restricted to the following
17SRCREV_cri-o = "20c06a19cb395445620c31730c0f1a0a1922eaae" 17SRCREV_cri-o = "20c06a19cb395445620c31730c0f1a0a1922eaae"
18SRC_URI = "\ 18SRC_URI = "\
19 git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.31;name=cri-o;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ 19 git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.31;name=cri-o;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \
20 file://0001-Add-trimpath-to-build-nri.test.patch \
20 file://crio.conf \ 21 file://crio.conf \
22 file://run-ptest \
21 " 23 "
22 24
23# Apache-2.0 for docker 25# Apache-2.0 for docker
@@ -28,7 +30,7 @@ GO_IMPORT = "import"
28 30
29PV = "1.31.0+git${SRCREV_cri-o}" 31PV = "1.31.0+git${SRCREV_cri-o}"
30 32
31inherit features_check 33inherit features_check ptest
32REQUIRED_DISTRO_FEATURES ?= "seccomp" 34REQUIRED_DISTRO_FEATURES ?= "seccomp"
33 35
34DEPENDS = " \ 36DEPENDS = " \
@@ -69,6 +71,13 @@ do_compile() {
69 oe_runmake binaries 71 oe_runmake binaries
70} 72}
71 73
74do_compile_ptest() {
75 set +e
76
77 cd ${S}/src/import
78
79 oe_runmake test-binaries
80}
72SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" 81SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
73SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}" 82SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}"
74SYSTEMD_AUTO_ENABLE:${PN} = "enable" 83SYSTEMD_AUTO_ENABLE:${PN} = "enable"
@@ -100,6 +109,12 @@ do_install() {
100 install -d ${D}${localstatedir}/lib/crio 109 install -d ${D}${localstatedir}/lib/crio
101} 110}
102 111
112do_install_ptest() {
113 install -d ${D}${PTEST_PATH}/test
114 install -d ${D}${PTEST_PATH}/bin
115 cp -rf ${S}/src/import/test ${D}${PTEST_PATH}
116 cp -rf ${S}/src/import/bin ${D}${PTEST_PATH}
117}
103FILES:${PN}-config = "${sysconfdir}/crio/config/*" 118FILES:${PN}-config = "${sysconfdir}/crio/config/*"
104FILES:${PN} += "${systemd_unitdir}/system/*" 119FILES:${PN} += "${systemd_unitdir}/system/*"
105FILES:${PN} += "/usr/local/bin/*" 120FILES:${PN} += "/usr/local/bin/*"
@@ -109,7 +124,21 @@ FILES:${PN} += "/usr/share/containers/oci/hooks.d"
109ALLOW_EMPTY:${PN} = "1" 124ALLOW_EMPTY:${PN} = "1"
110 125
111INSANE_SKIP:${PN} += "ldflags already-stripped textrel" 126INSANE_SKIP:${PN} += "ldflags already-stripped textrel"
127INSANE_SKIP:${PN}-ptest += "textrel"
112 128
113deltask compile_ptest_base 129RDEPENDS:${PN}-ptest += " \
130 bash \
131 bats \
132 cni \
133 crictl \
134 coreutils \
135 dbus-daemon-proxy \
136 iproute2 \
137 util-linux-unshare \
138 jq \
139 slirp4netns \
140 parallel \
141 podman \
142"
114 143
115COMPATIBLE_HOST = "^(?!(qemu)?mips).*" 144COMPATIBLE_HOST = "^(?!(qemu)?mips).*"