aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-ptyprocess.inc
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-04-11 08:42:02 +0800
committerKhem Raj <raj.khem@gmail.com>2020-04-10 17:48:38 -0700
commit00f298cf46954447b30b24c8e65d4625c16ce626 (patch)
tree344b6a4856897488bfea7302a408f72a1f0c9502 /meta-python/recipes-devtools/python/python-ptyprocess.inc
parent8a078a9d619f68a6563eba72823fe7398a295dd6 (diff)
downloadmeta-openembedded-contrib-00f298cf46954447b30b24c8e65d4625c16ce626.tar.gz
python3-ptyprocess: 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-ptyprocess.inc')
-rw-r--r--meta-python/recipes-devtools/python/python-ptyprocess.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-ptyprocess.inc b/meta-python/recipes-devtools/python/python-ptyprocess.inc
index 49cc5a4321..0cc9114754 100644
--- a/meta-python/recipes-devtools/python/python-ptyprocess.inc
+++ b/meta-python/recipes-devtools/python/python-ptyprocess.inc
@@ -18,3 +18,21 @@ RDEPENDS_${PN} = "\
"
BBCLASSEXTEND = "native nativesdk"
+
+inherit ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-fcntl \
+ ${PYTHON_PN}-terminal \
+ ${PYTHON_PN}-resource \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}