Signed-off-by: Zang Ruochen <zangrc.f...@cn.fujitsu.com>
---
 .../python/python3-simpleeval/run-ptest            |  3 +++
 .../python/python3-simpleeval_0.9.10.bb            | 14 +++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 
meta-python/recipes-devtools/python/python3-simpleeval/run-ptest

diff --git a/meta-python/recipes-devtools/python/python3-simpleeval/run-ptest 
b/meta-python/recipes-devtools/python/python3-simpleeval/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-simpleeval/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
diff --git a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb 
b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
index 633347a93..1cacf9af2 100644
--- a/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
+++ b/meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
@@ -6,6 +6,18 @@ LIC_FILES_CHKSUM = 
"file://LICENCE;md5=dc9277482effe59b734b004cbcc1fee7"
 SRC_URI[md5sum] = "f175fc12d408487ca26fa3905e0a6691"
 SRC_URI[sha256sum] = 
"692055488c2864637f6c2edb5fa48175978a2a07318009e7cf03c9790ca17bea"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
 
 BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+       ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+       cp -f ${S}/test_simpleeval.py ${D}${PTEST_PATH}/
+}
-- 
2.20.1



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

View/Reply Online (#83570): 
https://lists.openembedded.org/g/openembedded-devel/message/83570
Mute This Topic: https://lists.openembedded.org/mt/72669047/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to