mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
libexif: add ptest support
adds ptest support for libexif Ptest was executed on a core-image-minimal: root@qemux86-64:~# ptest-runner libexif START: ptest-runner 2023-07-12T15:45 BEGIN: /usr/lib/libexif/ptest [...] i==================== All 13 tests passed (1 test was not run) ==================== [...] DURATION: 35 END: /usr/lib/libexif/ptest 2023-07-12T15:45 STOP: ptest-runner TOTAL: 1 FAIL: 0 (From OE-Core rev: 4e2340dfecdfbe22b07161e89de4e25d466820bb) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
524a49f5de
commit
c610b8dcd9
@@ -75,6 +75,7 @@ PTESTS_FAST = "\
|
|||||||
slang \
|
slang \
|
||||||
wayland \
|
wayland \
|
||||||
zlib \
|
zlib \
|
||||||
|
libexif \
|
||||||
"
|
"
|
||||||
PTESTS_FAST:append:libc-glibc = " glibc-tests"
|
PTESTS_FAST:append:libc-glibc = " glibc-tests"
|
||||||
PTESTS_PROBLEMS:remove:libc-glibc = "glibc-tests"
|
PTESTS_PROBLEMS:remove:libc-glibc = "glibc-tests"
|
||||||
|
|||||||
+26
@@ -0,0 +1,26 @@
|
|||||||
|
From 1ee7217c8ae724d793f9a9876c3608057a2ccbf8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Julien Stephan <jstephan@baylibre.com>
|
||||||
|
Date: Tue, 11 Jul 2023 16:07:54 +0200
|
||||||
|
Subject: [PATCH] Add serial-tests config needed by ptest
|
||||||
|
|
||||||
|
Add serial-tests support, ptest needs it.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe specific]
|
||||||
|
|
||||||
|
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
|
||||||
|
---
|
||||||
|
configure.ac | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index cd48047..5413907 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -16,6 +16,7 @@ AM_INIT_AUTOMAKE([
|
||||||
|
dist-zip
|
||||||
|
check-news
|
||||||
|
subdir-objects
|
||||||
|
+ serial-tests
|
||||||
|
])
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
make -o Makefile runtest-TESTS
|
||||||
@@ -11,12 +11,40 @@ def version_underscore(v):
|
|||||||
return "_".join(v.split("."))
|
return "_".join(v.split("."))
|
||||||
|
|
||||||
SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/libexif-${PV}.tar.bz2 \
|
SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/libexif-${PV}.tar.bz2 \
|
||||||
|
file://0001-Add-serial-tests-config-needed-by-ptest.patch \
|
||||||
|
file://run-ptest \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "d47564c433b733d83b6704c70477e0a4067811d184ec565258ac563d8223f6ae"
|
SRC_URI[sha256sum] = "d47564c433b733d83b6704c70477e0a4067811d184ec565258ac563d8223f6ae"
|
||||||
|
|
||||||
inherit autotools gettext github-releases
|
inherit autotools gettext github-releases ptest
|
||||||
|
|
||||||
EXTRA_OECONF += "--disable-docs"
|
EXTRA_OECONF += "--disable-docs"
|
||||||
|
|
||||||
|
do_compile_ptest() {
|
||||||
|
oe_runmake -C test buildtest-TESTS
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_ptest() {
|
||||||
|
install ${B}/test/test*[!\.o] ${D}${PTEST_PATH}
|
||||||
|
for f in ${D}${PTEST_PATH}/test*; do
|
||||||
|
sed -i "s/\(LD_LIBRARY_PATH=\).*\(:\$LD_LIBRARY_PATH\)\"/\1.\2/" $f
|
||||||
|
done
|
||||||
|
|
||||||
|
install ${B}/test/Makefile ${D}${PTEST_PATH}
|
||||||
|
sed -i -e "/^srcdir/c srcdir = \$\{PWD\}" ${D}${PTEST_PATH}/Makefile
|
||||||
|
|
||||||
|
install -d ${D}${PTEST_PATH}/nls
|
||||||
|
install ${B}/test/nls/*[!\.o] ${D}${PTEST_PATH}/nls
|
||||||
|
install -d ${D}${PTEST_PATH}/.libs
|
||||||
|
install ${B}/test/.libs/* ${D}${PTEST_PATH}/.libs
|
||||||
|
|
||||||
|
install ${S}/test/*.sh ${D}${PTEST_PATH}
|
||||||
|
|
||||||
|
install -d ${D}${PTEST_PATH}/testdata
|
||||||
|
install ${S}/test/testdata/* ${D}${PTEST_PATH}/testdata
|
||||||
|
}
|
||||||
|
|
||||||
|
RDEPENDS:${PN}-ptest += "make bash"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|||||||
Reference in New Issue
Block a user