* [oe] [meta-python] [PATCH] python3-scrypt: Enable ptest
@ 2020-03-30 5:55 zangrc
0 siblings, 0 replies; only message in thread
From: zangrc @ 2020-03-30 5:55 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
.../recipes-devtools/python/python-scrypt.inc | 15 ++++++++++++++-
.../python/python3-scrypt/run-ptest | 2 ++
2 files changed, 16 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-scrypt/run-ptest
diff --git a/meta-python/recipes-devtools/python/python-scrypt.inc b/meta-python/recipes-devtools/python/python-scrypt.inc
index aff86a594..aa9d7b8d4 100644
--- a/meta-python/recipes-devtools/python/python-scrypt.inc
+++ b/meta-python/recipes-devtools/python/python-scrypt.inc
@@ -10,7 +10,20 @@ SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch"
SRC_URI[md5sum] = "ae8e3263aa31b040c1f9c7f1e1843a56"
SRC_URI[sha256sum] = "f8239b2d47fa1d40bc27efd231dc7083695d10c1c2ac51a99380360741e0362d"
-inherit pypi
+inherit pypi ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
RDEPENDS_${PN}_class-target += "\
"
diff --git a/meta-python/recipes-devtools/python/python3-scrypt/run-ptest b/meta-python/recipes-devtools/python/python3-scrypt/run-ptest
new file mode 100644
index 000000000..40c284799
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-scrypt/run-ptest
@@ -0,0 +1,2 @@
+#!/bin/sh
+pytest
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-30 5:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 5:55 [oe] [meta-python] [PATCH] python3-scrypt: Enable ptest zangrc
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.