summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>2020-04-11 22:17:08 +0800
committerKhem Raj <raj.khem@gmail.com>2020-04-10 23:49:16 -0700
commitc24e343f711ee9c1766cfb04457e6fd3278ba7d5 (patch)
tree971334b1a8653eaadf1e70ee65a4315b8be5d314 /meta-python
parente4e5fa1b92b29489b8392ea46c100230ae9a2304 (diff)
downloadmeta-openembedded-c24e343f711ee9c1766cfb04457e6fd3278ba7d5.tar.gz
python3-pyasn1-modules: Enable ptest
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python-pyasn1-modules.inc15
-rw-r--r--meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest3
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-pyasn1-modules.inc b/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
index fcb140ac3..ce9791993 100644
--- a/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
+++ b/meta-python/recipes-devtools/python/python-pyasn1-modules.inc
@@ -9,8 +9,21 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a14482d15c2249de3b6f0e8a47e021fd"
9SRC_URI[md5sum] = "18c77d56abeef631d94f95ff2d652859" 9SRC_URI[md5sum] = "18c77d56abeef631d94f95ff2d652859"
10SRC_URI[sha256sum] = "0c35a52e00b672f832e5846826f1fb7507907f7d52fba6faa9e3c4cbe874fe4b" 10SRC_URI[sha256sum] = "0c35a52e00b672f832e5846826f1fb7507907f7d52fba6faa9e3c4cbe874fe4b"
11 11
12inherit pypi 12inherit pypi ptest
13 13
14RDEPENDS_${PN} = "${PYTHON_PN}-pyasn1" 14RDEPENDS_${PN} = "${PYTHON_PN}-pyasn1"
15 15
16BBCLASSEXTEND = "native nativesdk" 16BBCLASSEXTEND = "native nativesdk"
17
18SRC_URI += " \
19 file://run-ptest \
20"
21
22RDEPENDS_${PN}-ptest += " \
23 ${PYTHON_PN}-pytest \
24"
25
26do_install_ptest() {
27 install -d ${D}${PTEST_PATH}/tests
28 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
29}
diff --git a/meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest b/meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyasn1-modules/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest