From: Randy MacLeod <Randy.MacLeod@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [meta-python][kirkstone][PATCH 5/6] python3-pillow: add ptest support
Date: Tue, 31 Jan 2023 15:08:50 -0800 [thread overview]
Message-ID: <20230131230851.2785067-5-Randy.MacLeod@windriver.com> (raw)
In-Reply-To: <20230131230851.2785067-1-Randy.MacLeod@windriver.com>
Add initial pillow ptest support.
The ptest result is:
====== 3600 passed 324 skipped, 2 xfailed, 1 xpassed in 62.41s (0:01:02) ======
for qemux86-64 with 2 GB RAM.
The skipped tests as summarized with:
# ptest-runner python3-pillow | tee log
# grep SKIPP log | cut -d"(" -f2- | cut -d")" -f1 | cut -d" " -f1 | sort | uniq -c| sort -n | tail -4
12 webp
13 Tk
14 Qt
84 raqm
Webp was explicityly disabled in 2018 in:
6cb4e90fc python3-pillow: add 5.4.1
I didn't test Tk or Qt and there isn't yet a recipe for libraqm:
https://github.com/HOST-Oman/libraqm
a library that encapsulates the logic for complex text layout.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
.../python/python3-pillow/run-ptest | 3 +++
.../python/python3-pillow_9.4.0.bb | 22 ++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-pillow/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-pillow/run-ptest b/meta-python/recipes-devtools/python/python3-pillow/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pillow/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb b/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb
index 403a987d1..68c81029c 100644
--- a/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pillow_9.4.0.bb
@@ -8,10 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bc416d18f294943285560364be7cbec1"
SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \
file://0001-support-cross-compiling.patch \
file://0001-explicitly-set-compile-options.patch \
+ file://run-ptest \
"
SRCREV ?= "82541b6dec8452cb612067fcebba1c5a1a2bfdc8"
-inherit setuptools3
+inherit setuptools3 ptest
PIP_INSTALL_PACKAGE = "Pillow"
PIP_INSTALL_DIST_PATH = "${S}/dist"
@@ -31,12 +32,31 @@ RDEPENDS:${PN} += " \
${PYTHON_PN}-numbers \
"
+RDEPENDS:${PN}-ptest += " \
+ bash \
+ ghostscript \
+ jpeg-tools \
+ libwebp \
+ ${PYTHON_PN}-core \
+ ${PYTHON_PN}-image \
+ ${PYTHON_PN}-mmap \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-pytest-timeout \
+ ${PYTHON_PN}-resource \
+ tk \
+"
+
CVE_PRODUCT = "pillow"
S = "${WORKDIR}/git"
RPROVIDES:${PN} += "python3-imaging"
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/Tests
+ cp -rf ${S}/Tests ${D}${PTEST_PATH}/
+}
+
BBCLASSEXTEND = "native"
SRCREV = "a5bbab1c1e63b439de191ef2040173713b26d2da"
--
2.39.0
next prev parent reply other threads:[~2023-01-31 23:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 23:08 [meta-python][kirkstone][PATCH 1/6] python3-pillow: upgrade 9.0.1 -> 9.1.1 Randy MacLeod
2023-01-31 23:08 ` [meta-python][kirkstone][PATCH 2/6] python3-pillow: upgrade 9.1.1 -> 9.2.0 Randy MacLeod
2023-01-31 23:08 ` [meta-python][kirkstone][PATCH 3/6] python3-pillow: upgrade 9.2.0 -> 9.3.0 Randy MacLeod
2023-02-01 13:35 ` [oe] " akuster808
2023-02-03 18:37 ` Randy MacLeod
2023-02-04 17:45 ` akuster808
2023-02-04 19:45 ` Randy MacLeod
2023-02-06 17:15 ` akuster808
2023-01-31 23:08 ` [meta-python][kirkstone][PATCH 4/6] python3-pillow: upgrade 9.3.0 -> 9.4.0 Randy MacLeod
2023-01-31 23:08 ` Randy MacLeod [this message]
2023-01-31 23:08 ` [meta-python][kirkstone][PATCH 6/6] python3-pillow: Add distutils, unixadmin for ptest Randy MacLeod
2023-02-06 17:19 ` [oe] " akuster808
2023-02-06 18:40 ` Randy MacLeod
[not found] ` <173F8777BB97215C.30239@lists.openembedded.org>
2023-01-31 23:15 ` [oe] [meta-python][kirkstone][PATCH 4/6] python3-pillow: upgrade 9.3.0 -> 9.4.0 Randy MacLeod
2023-02-01 13:17 ` [oe] [meta-python][kirkstone][PATCH 1/6] python3-pillow: upgrade 9.0.1 -> 9.1.1 akuster808
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230131230851.2785067-5-Randy.MacLeod@windriver.com \
--to=randy.macleod@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.