Signed-off-by: Zheng Ruoqin <[email protected]>
---
.../python/python-pyasn1-modules.inc | 15 ++++++++++++++-
.../python/python3-pyasn1-modules/run-ptest | 3 +++
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644
meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest
diff --git a/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
b/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
index fcb140ac3..ce9791993 100644
--- a/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
+++ b/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
@@ -9,8 +9,21 @@ LIC_FILES_CHKSUM =
"file://LICENSE.txt;md5=a14482d15c2249de3b6f0e8a47e021fd"
SRC_URI[md5sum] = "18c77d56abeef631d94f95ff2d652859"
SRC_URI[sha256sum] =
"0c35a52e00b672f832e5846826f1fb7507907f7d52fba6faa9e3c4cbe874fe4b"
-inherit pypi
+inherit pypi ptest
RDEPENDS_${PN} = "${PYTHON_PN}-pyasn1"
BBCLASSEXTEND = "native nativesdk"
+
+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/
+}
diff --git
a/meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest
b/meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
--
2.20.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#83871):
https://lists.openembedded.org/g/openembedded-devel/message/83871
Mute This Topic: https://lists.openembedded.org/mt/72939396/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-