diff options
-rw-r--r-- | meta-python/recipes-devtools/python/python-ptyprocess.inc | 18 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest | 3 |
2 files changed, 21 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/ +} diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest b/meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest new file mode 100644 index 0000000000..27c9e59c82 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest |