Skip to contentSkip to conversation

libyang: Backport 3.7.8 from meta-openembedded master branch

PATCH New Ryan Eatmon 1 participant 1 message Mar 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libyang: Backport 3.7.8 from meta-openembedded master branch

This is a backport of the libyang_3.7.8.bb recipe and related files from the meta-openembedded master branch without any changes. [1]

In order to move to newer versions of the sysrepo recieps, this version of libyang is required.

[1] https://git.openembedded.org/meta-openembedded/commit/?id=d9b91513488916ef843d04377eb6841590ca047c

---
 ...ntext-skip-test-case-test_searchdirs.patch | 29 ++++++++++++
 .../sysrepo/libyang/run-ptest                 | 18 ++++++++
 .../recipes-extended/sysrepo/libyang_3.7.8.bb | 45 +++++++++++++++++++
 3 files changed, 92 insertions(+)
 create mode 100644 meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch
 create mode 100644 meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest
 create mode 100644 meta-arago-extras/recipes-extended/sysrepo/libyang_3.7.8.bb
meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch new file +29 -0
new file mode 100644
index 00000000..3c6aee92
@@ -0,0 +1,29 @@
+From 5de24e1b39c09adb0c5bf4bb4228bd1bb935542a Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Wed, 22 Mar 2023 16:03:56 +0800
+Subject: [PATCH] test_context: skip test case test_searchdirs
+
+Skip test case test_searchdirs as it searchs the source code directory.
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ tests/utests/basic/test_context.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/tests/utests/basic/test_context.c b/tests/utests/basic/test_context.c
+index cfba1d30f..8c3bb7ad6 100644
+--- a/tests/utests/basic/test_context.c
++++ b/tests/utests/basic/test_context.c
+@@ -1061,7 +1061,6 @@ int
+ main(void)
+ {
+     const struct CMUnitTest tests[] = {
+-        UTEST(test_searchdirs),
+         UTEST(test_options),
+         UTEST(test_models),
+         UTEST(test_imports),
+-- 
+2.25.1
+
meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest new file +18 -0
new file mode 100644
index 00000000..c507afb2
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# cd into right directory
+ptestdir=$(dirname "$(readlink -f "$0")")
+cd "$ptestdir"/tests || exit
+
+tests=$(find * -type f -name 'utest_*')
+
+for f in $tests
+do
+    if test -x ./"$f"; then
+        if ./"$f" > ./"$f".out 2> ./"$f".err; then
+            echo "PASS: $f"
+        else
+            echo "FAIL: $f"
+        fi
+    fi
+done
meta-arago-extras/recipes-extended/sysrepo/libyang_3.7.8.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.17.1