From 00f298cf46954447b30b24c8e65d4625c16ce626 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Sat, 11 Apr 2020 08:42:02 +0800 Subject: python3-ptyprocess: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- .../recipes-devtools/python/python-ptyprocess.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-ptyprocess.inc') 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/ +} -- cgit v1.2.3-54-g00ecf