Signed-off-by: Zheng Ruoqin <[email protected]>
---
.../python/python3-jsmin/run-ptest | 3 +++
.../recipes-devtools/python/python3-jsmin_2.2.2.bb | 14 +++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-jsmin/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-jsmin/run-ptest
b/meta-python/recipes-devtools/python/python3-jsmin/run-ptest
new file mode 100644
index 000000000..cbcfffda5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-jsmin/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+python3 test.py
diff --git a/meta-python/recipes-devtools/python/python3-jsmin_2.2.2.bb
b/meta-python/recipes-devtools/python/python3-jsmin_2.2.2.bb
index ab657e6f0..9b7a82408 100644
--- a/meta-python/recipes-devtools/python/python3-jsmin_2.2.2.bb
+++ b/meta-python/recipes-devtools/python/python3-jsmin_2.2.2.bb
@@ -4,8 +4,20 @@ SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3a3301ce2ad647e172f4a1016c67324d"
-inherit setuptools3 pypi
+inherit setuptools3 pypi ptest
SRC_URI[md5sum] = "00e7a3179a4591aab2ee707b3214e2fd"
SRC_URI[sha256sum] =
"b6df99b2cd1c75d9d342e4335b535789b8da9107ec748212706ef7bbe5c2553b"
BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ cp -f ${S}/jsmin/test.py ${D}${PTEST_PATH}/
+}
--
2.20.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#84020):
https://lists.openembedded.org/g/openembedded-devel/message/84020
Mute This Topic: https://lists.openembedded.org/mt/73166934/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-