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

diff --git a/meta-python/recipes-devtools/python/python3-msgpack/run-ptest 
b/meta-python/recipes-devtools/python/python3-msgpack/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-msgpack/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
diff --git a/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb 
b/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb
index 7cfaf1c51..6d7e7a0dc 100644
--- a/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb
+++ b/meta-python/recipes-devtools/python/python3-msgpack_0.6.2.bb
@@ -3,7 +3,7 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=cd9523181d9d4fbf7ffca52eaa2a5751"
 
 PYPI_PACKAGE = "msgpack"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
 
 SRC_URI[md5sum] = "ba46fdee995565f40e332bd7eea882f1"
 SRC_URI[sha256sum] = 
"ea3c2f859346fcd55fc46e96885301d9c2f7a36d453f5d8f2967840efa1e1830"
@@ -13,3 +13,16 @@ RDEPENDS_${PN}_class-target += "\
 "
 
 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 (#84010): 
https://lists.openembedded.org/g/openembedded-devel/message/84010
Mute This Topic: https://lists.openembedded.org/mt/73164566/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to