summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod-1.x/0001-bindings-cxx-disable-tests.patch33
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod-1.x/run-ptest2
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod.inc4
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb2
-rw-r--r--meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb1
5 files changed, 37 insertions, 5 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-1.x/0001-bindings-cxx-disable-tests.patch b/meta-oe/recipes-support/libgpiod/libgpiod-1.x/0001-bindings-cxx-disable-tests.patch
new file mode 100644
index 0000000000..0b850ba138
--- /dev/null
+++ b/meta-oe/recipes-support/libgpiod/libgpiod-1.x/0001-bindings-cxx-disable-tests.patch
@@ -0,0 +1,33 @@
1From 8293f0b8a329beed542f5c8a2efa4641759fccf4 Mon Sep 17 00:00:00 2001
2From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
3Date: Tue, 11 Jun 2024 10:34:14 +0200
4Subject: [PATCH] bindings: cxx: disable tests
5
6Meta-openembedded is moving to catch2 v3 which will make the C++ tests
7incompatible with the testing library. As this is an older version of
8the project, just disable C++ tests entirely.
9
10Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
11---
12Upstream-Status: Inappropriate [upstream continues to use Catch2 v2]
13
14 bindings/cxx/Makefile.am | 6 ------
15 1 file changed, 6 deletions(-)
16
17diff --git a/bindings/cxx/Makefile.am b/bindings/cxx/Makefile.am
18index 5c40ceb..d901836 100644
19--- a/bindings/cxx/Makefile.am
20+++ b/bindings/cxx/Makefile.am
21@@ -19,9 +19,3 @@ pkgconfigdir = $(libdir)/pkgconfig
22 pkgconfig_DATA = libgpiodcxx.pc
23
24 SUBDIRS = . examples
25-
26-if WITH_TESTS
27-
28-SUBDIRS += tests
29-
30-endif
31--
322.40.1
33
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-1.x/run-ptest b/meta-oe/recipes-support/libgpiod/libgpiod-1.x/run-ptest
index 61b9b69fc6..a56c2bb685 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod-1.x/run-ptest
+++ b/meta-oe/recipes-support/libgpiod/libgpiod-1.x/run-ptest
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3testbins="gpiod-test gpio-tools-test gpiod-cxx-test gpiod_py_test.py" 3testbins="gpiod-test gpio-tools-test gpiod_py_test.py"
4 4
5ptestdir=$(dirname "$(readlink -f "$0")") 5ptestdir=$(dirname "$(readlink -f "$0")")
6cd $ptestdir/tests 6cd $ptestdir/tests
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc
index dc1fb4fe92..7b68f77d20 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod.inc
+++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc
@@ -52,9 +52,5 @@ do_install_ptest() {
52 for tool in ${FILES:${PN}-tools}; do 52 for tool in ${FILES:${PN}-tools}; do
53 install ${B}/tools/.libs/$(basename $tool) ${D}${PTEST_PATH}/tests/ 53 install ${B}/tools/.libs/$(basename $tool) ${D}${PTEST_PATH}/tests/
54 done 54 done
55
56 if ${@bb.utils.contains('PACKAGECONFIG', 'cxx', 'true', 'false', d)}; then
57 install -m 0755 ${B}/bindings/cxx/tests/.libs/gpiod-cxx-test ${D}${PTEST_PATH}/tests/
58 fi
59} 55}
60 56
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb
index 74b49a57bc..0795839492 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb
@@ -3,6 +3,8 @@ require libgpiod.inc
3LICENSE = "LGPL-2.1-or-later" 3LICENSE = "LGPL-2.1-or-later"
4LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" 4LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
5 5
6SRC_URI += "file://0001-bindings-cxx-disable-tests.patch"
7
6SRC_URI[sha256sum] = "ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619daa72bc" 8SRC_URI[sha256sum] = "ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619daa72bc"
7 9
8FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-1.x:" 10FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-1.x:"
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb b/meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb
index 6e4fbd2a3b..137461880b 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.1.2.bb
@@ -26,6 +26,7 @@ RDEPENDS:${PN}-ptest += " \
26RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim kernel-module-configfs" 26RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim kernel-module-configfs"
27 27
28do_install_ptest:append() { 28do_install_ptest:append() {
29 install -m 0755 ${B}/bindings/cxx/tests/.libs/gpiod-cxx-test ${D}${PTEST_PATH}/tests/
29 install -m 0755 ${S}/tools/gpio-tools-test.bash ${D}${PTEST_PATH}/tests/ 30 install -m 0755 ${S}/tools/gpio-tools-test.bash ${D}${PTEST_PATH}/tests/
30 install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h 31 install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h
31} 32}