Signed-off-by: Zang Ruochen <[email protected]>
---
 .../python/python3-pytoml/run-ptest               |  3 +++
 .../python/python3-pytoml_0.1.21.bb               | 15 ++++++++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytoml/run-ptest

diff --git a/meta-python/recipes-devtools/python/python3-pytoml/run-ptest 
b/meta-python/recipes-devtools/python/python3-pytoml/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytoml/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
diff --git a/meta-python/recipes-devtools/python/python3-pytoml_0.1.21.bb 
b/meta-python/recipes-devtools/python/python3-pytoml_0.1.21.bb
index f8c759a7d..b09005ec9 100644
--- a/meta-python/recipes-devtools/python/python3-pytoml_0.1.21.bb
+++ b/meta-python/recipes-devtools/python/python3-pytoml_0.1.21.bb
@@ -7,6 +7,19 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=cfff423699bdaef24331933ac4f56078"
 SRC_URI[md5sum] = "e59dd36a559dd2a876e4c149c69e947b"
 SRC_URI[sha256sum] = 
"8eecf7c8d0adcff3b375b09fe403407aa9b645c499e5ab8cac670ac4a35f61e7"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
 
 BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+       ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+       install -d ${D}${PTEST_PATH}/test
+       cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
+}
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83867): 
https://lists.openembedded.org/g/openembedded-devel/message/83867
Mute This Topic: https://lists.openembedded.org/mt/72935603/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to