aardvark-dns: Add ptest support

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Vasileios Anagnostopoulos 2022-10-17 13:11:22 +02:00 committed by Bruce Ashfield
parent e14985f0e3
commit 451f296f9a
2 changed files with 27 additions and 0 deletions

View File

@ -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
do_install:append() {
install -d ${D}${libexecdir}/podman/
mv ${D}${bindir}/* ${D}${libexecdir}/podman/
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 \
"

View File

@ -0,0 +1,3 @@
#!/bin/bash
NETAVARK=/usr/libexec/podman/netavark AARDVARK=/usr/libexec/podman/aardvark-dns bats ./test/