mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-12-14 14:15:22 +01:00
aardvark-dns: Add ptest support
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
e14985f0e3
commit
451f296f9a
|
|
@ -1,6 +1,30 @@
|
||||||
|
inherit ptest
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
# Cargo installs the binary to bin so move it to where podman expects it
|
# Cargo installs the binary to bin so move it to where podman expects it
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
install -d ${D}${libexecdir}/podman/
|
install -d ${D}${libexecdir}/podman/
|
||||||
mv ${D}${bindir}/* ${D}${libexecdir}/podman/
|
mv ${D}${bindir}/* ${D}${libexecdir}/podman/
|
||||||
rm -rf ${D}${bindir}/
|
rm -rf ${D}${bindir}/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
do_install_ptest () {
|
||||||
|
cp -r ${S}/test ${D}${PTEST_PATH}
|
||||||
|
}
|
||||||
|
|
||||||
|
RDEPENDS:${PN}-ptest += " \
|
||||||
|
bats \
|
||||||
|
bash \
|
||||||
|
coreutils \
|
||||||
|
jq \
|
||||||
|
iproute2 \
|
||||||
|
slirp4netns \
|
||||||
|
dbus-daemon-proxy \
|
||||||
|
util-linux-unshare \
|
||||||
|
bind-utils \
|
||||||
|
ipcalc \
|
||||||
|
"
|
||||||
|
|
|
||||||
3
recipes-containers/aardvark-dns/files/run-ptest
Normal file
3
recipes-containers/aardvark-dns/files/run-ptest
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NETAVARK=/usr/libexec/podman/netavark AARDVARK=/usr/libexec/podman/aardvark-dns bats ./test/
|
||||||
Loading…
Reference in New Issue
Block a user