From: Shilong Jiao <[email protected]> Add ptest support for lcms to enable automated testing of the color management engine functionality.
Tested on qemux86-64 and qemuarm64: - All 79 test cases passed - Duration: ~163 seconds Signed-off-by: Shilong Jiao <[email protected]> --- meta-oe/recipes-support/lcms/lcms/run-ptest | 4 ++++ meta-oe/recipes-support/lcms/lcms_2.18.bb | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 meta-oe/recipes-support/lcms/lcms/run-ptest diff --git a/meta-oe/recipes-support/lcms/lcms/run-ptest b/meta-oe/recipes-support/lcms/lcms/run-ptest new file mode 100755 index 0000000000..20d954c193 --- /dev/null +++ b/meta-oe/recipes-support/lcms/lcms/run-ptest @@ -0,0 +1,4 @@ +#!/bin/sh + +cd $(dirname $0) +./testcms 2>&1 | awk '/^Checking/{test=substr($0,10); sub(/ \.\.\.$/,"",test); getline; print (/FAIL!/ ? "FAIL: " : "PASS: ") test}' diff --git a/meta-oe/recipes-support/lcms/lcms_2.18.bb b/meta-oe/recipes-support/lcms/lcms_2.18.bb index 1ff3b3908f..72cca1843f 100644 --- a/meta-oe/recipes-support/lcms/lcms_2.18.bb +++ b/meta-oe/recipes-support/lcms/lcms_2.18.bb @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e9ce323c4b71c943a785db90142b228a" SRC_URI = "${SOURCEFORGE_MIRROR}/lcms/lcms2-${PV}.tar.gz \ file://CVE-2026-41254_1.patch \ file://CVE-2026-41254_2.patch \ + file://run-ptest \ " SRC_URI[sha256sum] = "ee67be3566f459362c1ee094fde2c159d33fa0390aa4ed5f5af676f9e5004347" @@ -15,6 +16,18 @@ BBCLASSEXTEND = "native nativesdk" S = "${UNPACKDIR}/lcms2-${PV}" -inherit autotools sourceforge-releases +inherit autotools sourceforge-releases ptest + +do_compile_ptest() { + oe_runmake -C ${B}/testbed testcms +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH} + install -m 0755 ${B}/testbed/testcms ${D}${PTEST_PATH}/ + install -m 0644 ${S}/testbed/*.icc ${D}${PTEST_PATH}/ +} + +RDEPENDS:${PN}-ptest += "bash" CVE_PRODUCT += "littlecms:little_cms_color_engine" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#127196): https://lists.openembedded.org/g/openembedded-devel/message/127196 Mute This Topic: https://lists.openembedded.org/mt/119477424/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
