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

diff --git a/meta-python/recipes-devtools/python/python-license-expression.inc 
b/meta-python/recipes-devtools/python/python-license-expression.inc
index 4c35e8dd7..add25810d 100644
--- a/meta-python/recipes-devtools/python/python-license-expression.inc
+++ b/meta-python/recipes-devtools/python/python-license-expression.inc
@@ -7,10 +7,23 @@ LIC_FILES_CHKSUM = 
"file://apache-2.0.LICENSE;md5=e23fadd6ceef8c618fc1c65191d846
 SRC_URI[md5sum] = "81477f779099f55071c6a7b88a29bb01"
 SRC_URI[sha256sum] = 
"8aaa455c5b97c4f2174090178b19792b2a1c620e80591aafd4e0a99b713f9e8d"
 
-inherit pypi
+inherit pypi ptest
 
 RDEPENDS_${PN} += "\
     ${PYTHON_PN}-booleanpy \
     "
 
 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-license-expression/run-ptest 
b/meta-python/recipes-devtools/python/python3-license-expression/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-license-expression/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
-- 
2.20.1



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

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

Reply via email to