python3-prettytable: Enable ptest
PATCH 1/1 python3-prettytable: Enable ptest
Signed-off-by Zang Ruochen <[email protected]>
--- .../recipes-devtools/python/python-prettytable.inc | 13 +++++++++++++ .../python/python3-prettytable/run-ptest | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-prettytable/run-ptest
meta-python/recipes-devtools/python/python-prettytable.inc +13 -0
@@ -23,3 +23,16 @@ UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/" UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)" BBCLASSEXTEND = "native nativesdk" +inherit ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + cp -f ${S}/prettytable_test.py ${D}${PTEST_PATH}/ +}
meta-python/recipes-devtools/python/python3-prettytable/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest
Signature · 1 line
2.20.1
PATCH 1/1 python3-ptyprocess: Enable ptest
Signed-off-by Zang Ruochen <[email protected]>
--- .../python/python-ptyprocess.inc | 18 ++++++++++++++++++ .../python/python3-ptyprocess/run-ptest | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest
meta-python/recipes-devtools/python/python-ptyprocess.inc +18 -0
@@ -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/ +}
meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest
Signature · 1 line
2.20.1
PATCH 1/1 python3-pytoml: Enable ptest
In reply to zangrcSigned-off-by Zang Ruochen <[email protected]>
--- .../python/python3-pytoml/run-ptest | 3 +++ .../python/python3-pytoml_0.1.21.bb | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-pytoml/run-ptest
meta-python/recipes-devtools/python/python3-pytoml/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest
meta-python/recipes-devtools/python/python3-pytoml_0.1.21.bb +14 -1
@@ -7,6 +7,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cfff423699bdaef24331933ac4f56078" SRC_URI[md5sum] = "e59dd36a559dd2a876e4c149c69e947b" SRC_URI[sha256sum] = "8eecf7c8d0adcff3b375b09fe403407aa9b645c499e5ab8cac670ac4a35f61e7" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +}
Signature · 1 line
2.20.1
PATCH 1/1 python3-pyroute2: Enable ptest
In reply to zangrcSigned-off-by Zang Ruochen <[email protected]>
--- .../python/python3-pyroute2/run-ptest | 3 +++ .../python/python3-pyroute2_0.5.11.bb | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
meta-python/recipes-devtools/python/python3-pyroute2/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest
meta-python/recipes-devtools/python/python3-pyroute2_0.5.11.bb +15 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ SRC_URI[md5sum] = "7005db01604663fc2ecc089925980e05" SRC_URI[sha256sum] = "05e959f1a89d715158b91fe83b67946a4441e5e098cc225f4df78a3765ac4af2" -inherit setuptools3 pypi +inherit setuptools3 pypi ptest RDEPENDS_${PN} += " \ ${PYTHON_PN}-ctypes \
@@ -21,3 +21,17 @@ RDEPENDS_${PN} += " \ ${PYTHON_PN}-shell \ ${PYTHON_PN}-unixadmin \ " + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-fcntl \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +}
Signature · 1 line
2.20.1
PATCH 1/1 python3-pyserial: Enable ptest
In reply to zangrcSigned-off-by Zang Ruochen <[email protected]>
--- .../python/python3-pyserial/run-ptest | 3 +++ .../python/python3-pyserial_3.4.bb | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-pyserial/run-ptest
meta-python/recipes-devtools/python/python3-pyserial/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest
meta-python/recipes-devtools/python/python3-pyserial_3.4.bb +14 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d476d94926db6e0008a5b3860d1f5c0d" SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b" SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest do_install_append() { rm -f ${D}${bindir}/miniterm.py
@@ -47,3 +47,16 @@ RDEPENDS_${PN} = "\ " BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +}
Signature · 1 line
2.20.1