aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-serpent.inc
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-03-30 13:55:49 +0800
committerKhem Raj <raj.khem@gmail.com>2020-03-30 11:44:47 -0700
commit0b5e3ef98a60b777cc7b4f831f5be6ee5a5113f1 (patch)
tree391f6ad133380f66f1fbc709051eeba7e3a2cfa4 /meta-python/recipes-devtools/python/python-serpent.inc
parentcdcf5357de9b5721eb48aaecba74f3bcc6d6b084 (diff)
downloadmeta-openembedded-0b5e3ef98a60b777cc7b4f831f5be6ee5a5113f1.tar.gz
python3-serpent: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-serpent.inc')
-rw-r--r--meta-python/recipes-devtools/python/python-serpent.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-serpent.inc b/meta-python/recipes-devtools/python/python-serpent.inc
index 1a3aac07fe..676ea39de3 100644
--- a/meta-python/recipes-devtools/python/python-serpent.inc
+++ b/meta-python/recipes-devtools/python/python-serpent.inc
@@ -5,7 +5,21 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;md5=5cd70632b6cdb96df9ddaf6a4ce619e6"
SRC_URI[md5sum] = "15ef8b67c76a6d19bac9c16731a1e62a"
SRC_URI[sha256sum] = "f306336ca09aa38e526f3b03cab58eb7e45af09981267233167bcf3bfd6436ab"
-inherit pypi
+inherit pypi ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-pytz \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
RDEPENDS_${PN} += "\
${PYTHON_PN}-netclient \