From 74d7259a33f0d094556405239106e637db9ff71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Tue, 9 Dec 2025 09:54:12 +0100 Subject: [PATCH] support/testing: add basic runtime test for libldns/drill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a simple test ensuring that - libldns is correctly built and installed - drill is correctly built and installed - drill is able to execute on the target Reviewed-by: Thomas Petazzoni Signed-off-by: Alexis Lothoré Signed-off-by: Julien Olivain --- support/testing/tests/package/test_libldns.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 support/testing/tests/package/test_libldns.py diff --git a/support/testing/tests/package/test_libldns.py b/support/testing/tests/package/test_libldns.py new file mode 100644 index 0000000000..6c1a4da3f2 --- /dev/null +++ b/support/testing/tests/package/test_libldns.py @@ -0,0 +1,21 @@ +import infra.basetest +import os + + +class TestLibLdns(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_LIBLDNS=y + BR2_PACKAGE_LIBLDNS_DRILL=y + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def test_run(self): + cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-initrd", cpio_file]) + self.emulator.login() + + self.assertRunOk("drill -v")