* [meta-networking][scarthgap][PATCH] unbound: Add ptest for unbound
@ 2024-07-01 15:49 semc.2042
2024-10-21 13:11 ` rajmohan r
0 siblings, 1 reply; 4+ messages in thread
From: semc.2042 @ 2024-07-01 15:49 UTC (permalink / raw)
To: openembedded-devel, semc.2042; +Cc: ranjitsinh.rathod
Adapt the compile 'test' phony target from Makefile and deploy as
ptest for unbound.
All test are successful on a trial and took around >10min and <12min.
Duration of ptest execution was 626 seconds on an average.
Signed-off-by: rajmohan r <semc.2042@gmail.com>
---
.../recipes-support/unbound/unbound/run-ptest | 17 +++++++++++++
.../recipes-support/unbound/unbound_1.19.3.bb | 24 +++++++++++++++++--
2 files changed, 39 insertions(+), 2 deletions(-)
create mode 100644 meta-networking/recipes-support/unbound/unbound/run-ptest
diff --git a/meta-networking/recipes-support/unbound/unbound/run-ptest b/meta-networking/recipes-support/unbound/unbound/run-ptest
new file mode 100644
index 000000000..38a3ee792
--- /dev/null
+++ b/meta-networking/recipes-support/unbound/unbound/run-ptest
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+cd tests || exit 1
+retVal=0
+./unittest
+./testbound -s
+for x in ./testdata/*.rpl; do
+ output=$(./testbound -p $x -o -vvvvv 2>&1)
+ if test $? -eq 0; then
+ echo "$x : Pass"
+ else
+ echo "$output"
+ echo "$x :Fail"
+ retVal=1
+ fi
+done
+exit $retVal
diff --git a/meta-networking/recipes-support/unbound/unbound_1.19.3.bb b/meta-networking/recipes-support/unbound/unbound_1.19.3.bb
index ffdc78e9d..87fe15335 100644
--- a/meta-networking/recipes-support/unbound/unbound_1.19.3.bb
+++ b/meta-networking/recipes-support/unbound/unbound_1.19.3.bb
@@ -9,10 +9,13 @@ SECTION = "net"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06"
-SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=branch-1.19.3"
+SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=branch-1.19.3
+ file://run-ptest \
+ "
+
SRCREV = "48b6c60a24e9a5d6d369a7a37c9fe2a767f26abd"
-inherit autotools pkgconfig systemd update-rc.d
+inherit autotools pkgconfig systemd update-rc.d ptest
DEPENDS = "openssl libtool-native bison-native expat"
RDEPENDS:${PN} = "bash openssl-bin daemonize"
@@ -32,6 +35,10 @@ do_configure:append() {
sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h
}
+do_compile:append() {
+ oe_runmake tests
+}
+
do_install:append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system
@@ -40,6 +47,19 @@ do_install:append() {
install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound
}
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ install -d ${D}${PTEST_PATH}/tests/testdata
+
+ install -m 0544 ${B}/unittest ${D}${PTEST_PATH}/tests/
+ install -m 0644 ${S}/testdata/test_signatures* ${D}${PTEST_PATH}/tests/
+ install -m 0644 ${S}/testdata/test_sigs* ${D}${PTEST_PATH}/tests/
+ install -m 0644 ${S}/testdata/test_ds* ${D}${PTEST_PATH}/tests/
+ install -m 0644 ${S}/testdata/test_nsec3_hash* ${D}${PTEST_PATH}/tests/
+ install -m 0544 ${B}/testbound ${D}${PTEST_PATH}/tests/
+ install -m 0644 ${S}/testdata/*.rpl ${D}/${PTEST_PATH}/tests/testdata/
+}
+
SYSTEMD_SERVICE:${PN} = "${BPN}.service"
INITSCRIPT_NAME = "unbound"
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-networking][scarthgap][PATCH] unbound: Add ptest for unbound
2024-07-01 15:49 [meta-networking][scarthgap][PATCH] unbound: Add ptest for unbound semc.2042
@ 2024-10-21 13:11 ` rajmohan r
2024-11-27 2:55 ` rajmohan r
0 siblings, 1 reply; 4+ messages in thread
From: rajmohan r @ 2024-10-21 13:11 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 39 bytes --]
Hi
Could you please take this patch.
[-- Attachment #2: Type: text/html, Size: 80 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][scarthgap][PATCH] unbound: Add ptest for unbound
2024-10-21 13:11 ` rajmohan r
@ 2024-11-27 2:55 ` rajmohan r
2024-12-02 12:05 ` rajmohan r
0 siblings, 1 reply; 4+ messages in thread
From: rajmohan r @ 2024-11-27 2:55 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 105 bytes --]
Hi
Could you please review the above patch for consideration to scarthgap branch.
Thank you
rajmohan
[-- Attachment #2: Type: text/html, Size: 149 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][scarthgap][PATCH] unbound: Add ptest for unbound
2024-11-27 2:55 ` rajmohan r
@ 2024-12-02 12:05 ` rajmohan r
0 siblings, 0 replies; 4+ messages in thread
From: rajmohan r @ 2024-12-02 12:05 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
Hi
unbound-ptest is accepted in master branch of meta-openembedded as given below.
https://git.openembedded.org/meta-openembedded/commit/meta-networking/recipes-support/unbound?id=d8f21b1dc87408aa86336970e4cb9a9a36a0950b
Could you please review the above patch file for consideration in scarthgap branch.
Thank you
rajmohan
[-- Attachment #2: Type: text/html, Size: 598 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-02 12:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 15:49 [meta-networking][scarthgap][PATCH] unbound: Add ptest for unbound semc.2042
2024-10-21 13:11 ` rajmohan r
2024-11-27 2:55 ` rajmohan r
2024-12-02 12:05 ` rajmohan r
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.