@@ -49,7 +49,10 @@ FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*.so"
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '', d)}"
-RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-mockup"
+RRECOMMENDS:${PN}-ptest += " \
+ kernel-module-gpio-mockup \
+ ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-unittest', '', d)} \
+"
PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}"
The python test suite uses the unittest module. It's not built by default in minimal images, so we need to add it RRECOMMENDS explicitly. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> --- meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)