From: Jakub Ružička Date: Fri, 13 Jun 2025 10:58:06 +0000 (+0200) Subject: distro/tests: new python-libknot test X-Git-Tag: v3.5.0~62^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86b02c4ad816beb3e3ad10daa0f6267b8e40bcc5;p=thirdparty%2Fknot-dns.git distro/tests: new python-libknot test --- diff --git a/distro/pkg/deb/tests/control b/distro/pkg/deb/tests/control index e8b3dcbd78..76bc1181bf 100644 --- a/distro/pkg/deb/tests/control +++ b/distro/pkg/deb/tests/control @@ -11,3 +11,7 @@ Depends: knot, knot-dnsutils, knot-dnssecutils, + +Tests: python-libknot +Depends: + python3-libknot, diff --git a/distro/pkg/deb/tests/python-libknot b/distro/pkg/deb/tests/python-libknot new file mode 100755 index 0000000000..0df0c59342 --- /dev/null +++ b/distro/pkg/deb/tests/python-libknot @@ -0,0 +1,8 @@ +#!/usr/bin/env python3 + +import libknot.control +import libknot.dname +import libknot.probe + +dname = libknot.dname.KnotDname("knot-dns.cz") +print("%s: wire: %s size: %u" % (dname.str(), dname.wire(), dname.size())) diff --git a/distro/tests/extra/all/control b/distro/tests/extra/all/control index cef30243d2..8a97167b94 100644 --- a/distro/tests/extra/all/control +++ b/distro/tests/extra/all/control @@ -8,3 +8,5 @@ Depends: iputils Tests: authoritative-server Depends: findutils + +Tests: python-libknot diff --git a/distro/tests/python-libknot b/distro/tests/python-libknot new file mode 120000 index 0000000000..0d92e332d1 --- /dev/null +++ b/distro/tests/python-libknot @@ -0,0 +1 @@ +../pkg/deb/tests/python-libknot \ No newline at end of file