* Re: [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest
2020-07-16 19:43 [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest zangrc
@ 2020-07-16 18:04 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-semver: " zangrc
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Trevor Gamblin @ 2020-07-16 18:04 UTC (permalink / raw)
To: zangrc, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2191 bytes --]
On 7/16/20 3:43 PM, zangrc wrote:
> Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
> .../python/python3-requests-file/run-ptest | 3 +++
> .../python/python3-requests-file_1.5.1.bb | 15 ++++++++++++++-
> 2 files changed, 17 insertions(+), 1 deletion(-)
> create mode 100644 meta-python/recipes-devtools/python/python3-requests-file/run-ptest
>
> diff --git a/meta-python/recipes-devtools/python/python3-requests-file/run-ptest b/meta-python/recipes-devtools/python/python3-requests-file/run-ptest
> new file mode 100644
> index 0000000000..b63c4de0d9
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-requests-file/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb b/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb
> index 1c8bba40dd..88915b8fb4 100644
> --- a/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb
> +++ b/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb
> @@ -6,7 +6,20 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=9cc728d6087e43796227b0a31422de6b"
> SRC_URI[md5sum] = "c96daf6b0c56687556e8a52748fd896c"
> SRC_URI[sha256sum] = "07d74208d3389d01c38ab89ef403af0cfec63957d53a0081d8eca738d0247d8e"
>
> -inherit pypi setuptools3
> +inherit pypi setuptools3 ptest
> +
> +SRC_URI += " \
> + file://run-ptest \
> +"
> +
> +RDEPENDS_${PN}-ptest += " \
> + ${PYTHON_PN}-pytest \
> +"
> +
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/tests
> + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> +}
>
> RDEPENDS_${PN} += " \
> python3-requests \
>
>
[-- Attachment #2: Type: text/html, Size: 3434 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-python] [PATCH] python3-semver: Enable ptest
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-semver: " zangrc
@ 2020-07-16 18:05 ` Trevor Gamblin
0 siblings, 0 replies; 10+ messages in thread
From: Trevor Gamblin @ 2020-07-16 18:05 UTC (permalink / raw)
To: zangrc, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2119 bytes --]
On 7/16/20 3:43 PM, zangrc wrote:
> Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
> .../python/python3-semver/run-ptest | 3 +++
> .../python/python3-semver_2.10.2.bb | 14 +++++++++++++-
> 2 files changed, 16 insertions(+), 1 deletion(-)
> create mode 100644 meta-python/recipes-devtools/python/python3-semver/run-ptest
>
> diff --git a/meta-python/recipes-devtools/python/python3-semver/run-ptest b/meta-python/recipes-devtools/python/python3-semver/run-ptest
> new file mode 100644
> index 0000000000..43c03b594b
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-semver/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO test_semver.py --disable-warnings| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb b/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb
> index b41ef5ddc7..71cb1acec3 100644
> --- a/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb
> +++ b/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb
> @@ -7,6 +7,18 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665
> SRC_URI[md5sum] = "3e11ae9782121e8ffe9f8a8b763a8cb5"
> SRC_URI[sha256sum] = "c0a4a9d1e45557297a722ee9bac3de2ec2ea79016b6ffcaca609b0bc62cf4276"
>
> -inherit pypi setuptools3
> +inherit pypi setuptools3 ptest
>
> BBCLASSEXTEND = "native nativesdk"
> +
> +SRC_URI += " \
> + file://run-ptest \
> +"
> +
> +RDEPENDS_${PN}-ptest += " \
> + ${PYTHON_PN}-pytest \
> +"
> +
> +do_install_ptest() {
> + cp -f ${S}/test_semver.py ${D}${PTEST_PATH}/
> +}
>
>
[-- Attachment #2: Type: text/html, Size: 3380 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-python] [PATCH] python3-smpplib: Enable ptest
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-smpplib: " zangrc
@ 2020-07-16 18:05 ` Trevor Gamblin
0 siblings, 0 replies; 10+ messages in thread
From: Trevor Gamblin @ 2020-07-16 18:05 UTC (permalink / raw)
To: zangrc, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2153 bytes --]
On 7/16/20 3:43 PM, zangrc wrote:
> Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
> .../python/python3-smpplib/run-ptest | 3 +++
> .../python/python3-smpplib_2.1.0.bb | 17 ++++++++++++++++-
> 2 files changed, 19 insertions(+), 1 deletion(-)
> create mode 100644 meta-python/recipes-devtools/python/python3-smpplib/run-ptest
>
> diff --git a/meta-python/recipes-devtools/python/python3-smpplib/run-ptest b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
> new file mode 100644
> index 0000000000..b63c4de0d9
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb b/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
> index 948af58aab..15b326bad4 100644
> --- a/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
> +++ b/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
> @@ -6,4 +6,19 @@ LIC_FILES_CHKSUM = "file://README.md;md5=56a03d0ce7e492d4b9487b8aae957efe"
> PYPI_PACKAGE = "smpplib"
> SRC_URI[sha256sum] = "df4139a279b35fbb42a58f2a254a9c6daf362b04a7f94e208dc120e0b8a3fd4b"
>
> -inherit pypi setuptools3
> +inherit pypi setuptools3 ptest
> +
> +SRC_URI += " \
> + file://run-ptest \
> +"
> +
> +RDEPENDS_${PN}-ptest += " \
> + ${PYTHON_PN}-pytest \
> + ${PYTHON_PN}-unittest \
> +"
> +
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/tests
> + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> + sed -i 's/mock/unittest.mock/g' ${D}${PTEST_PATH}/tests/*
> +}
>
>
[-- Attachment #2: Type: text/html, Size: 3410 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-python] [PATCH] python3-soupsieve: Enable ptest
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-soupsieve: " zangrc
@ 2020-07-16 18:05 ` Trevor Gamblin
0 siblings, 0 replies; 10+ messages in thread
From: Trevor Gamblin @ 2020-07-16 18:05 UTC (permalink / raw)
To: zangrc, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2188 bytes --]
On 7/16/20 3:43 PM, zangrc wrote:
> Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
> .../python/python3-soupsieve/run-ptest | 3 +++
> .../python/python3-soupsieve_2.0.1.bb | 16 +++++++++++++++-
> 2 files changed, 18 insertions(+), 1 deletion(-)
> create mode 100644 meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
>
> diff --git a/meta-python/recipes-devtools/python/python3-soupsieve/run-ptest b/meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
> new file mode 100644
> index 0000000000..b63c4de0d9
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb b/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb
> index aa087c9200..ae242af562 100644
> --- a/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb
> +++ b/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb
> @@ -7,6 +7,20 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5a6fd3b0c24fc5a041a3d1bbb22c81b5"
> SRC_URI[md5sum] = "62a7481c7dbf6d8cc21e4e3a79c72034"
> SRC_URI[sha256sum] = "a59dc181727e95d25f781f0eb4fd1825ff45590ec8ff49eadfd7f1a537cc0232"
>
> -inherit pypi setuptools3
> +inherit pypi setuptools3 ptest
> +
> +SRC_URI += " \
> + file://run-ptest \
> +"
> +
> +RDEPENDS_${PN}-ptest += " \
> + ${PYTHON_PN}-pytest \
> + ${PYTHON_PN}-beautifulsoup4 \
> +"
> +
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/tests
> + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> +}
>
> BBCLASSEXTEND = "native nativesdk"
>
>
[-- Attachment #2: Type: text/html, Size: 3444 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-python] [PATCH] python3-typeguard: Enable ptest
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-typeguard: " zangrc
@ 2020-07-16 18:06 ` Trevor Gamblin
0 siblings, 0 replies; 10+ messages in thread
From: Trevor Gamblin @ 2020-07-16 18:06 UTC (permalink / raw)
To: zangrc, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]
On 7/16/20 3:43 PM, zangrc wrote:
> Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
> .../python/python3-typeguard/run-ptest | 3 +++
> .../python/python3-typeguard_2.9.1.bb | 17 ++++++++++++++++-
> 2 files changed, 19 insertions(+), 1 deletion(-)
> create mode 100644 meta-python/recipes-devtools/python/python3-typeguard/run-ptest
>
> diff --git a/meta-python/recipes-devtools/python/python3-typeguard/run-ptest b/meta-python/recipes-devtools/python/python3-typeguard/run-ptest
> new file mode 100644
> index 0000000000..b63c4de0d9
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-typeguard/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb b/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb
> index a0167cf03b..3786ccb855 100644
> --- a/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb
> +++ b/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb
> @@ -6,7 +6,22 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53"
> SRC_URI[md5sum] = "411df8eefd76ffa014328a46342bdf38"
> SRC_URI[sha256sum] = "529ef3d88189cc457f4340388028412f71be8091c2c943465146d4170fb67288"
>
> -inherit pypi setuptools3
> +inherit pypi setuptools3 ptest
> +
> +SRC_URI += " \
> + file://run-ptest \
> +"
> +
> +RDEPENDS_${PN}-ptest += " \
> + ${PYTHON_PN}-pytest \
> + ${PYTHON_PN}-typing-extensions \
> + ${PYTHON_PN}-unixadmin \
> +"
> +
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/tests
> + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> +}
>
> DEPENDS += "\
> python3-distutils-extra-native \
>
>
[-- Attachment #2: Type: text/html, Size: 3500 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest
@ 2020-07-16 19:43 zangrc
2020-07-16 18:04 ` Trevor Gamblin
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: zangrc @ 2020-07-16 19:43 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
.../python/python3-requests-file/run-ptest | 3 +++
.../python/python3-requests-file_1.5.1.bb | 15 ++++++++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-requests-file/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-requests-file/run-ptest b/meta-python/recipes-devtools/python/python3-requests-file/run-ptest
new file mode 100644
index 0000000000..b63c4de0d9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-requests-file/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb b/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb
index 1c8bba40dd..88915b8fb4 100644
--- a/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb
+++ b/meta-python/recipes-devtools/python/python3-requests-file_1.5.1.bb
@@ -6,7 +6,20 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=9cc728d6087e43796227b0a31422de6b"
SRC_URI[md5sum] = "c96daf6b0c56687556e8a52748fd896c"
SRC_URI[sha256sum] = "07d74208d3389d01c38ab89ef403af0cfec63957d53a0081d8eca738d0247d8e"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
RDEPENDS_${PN} += " \
python3-requests \
--
2.25.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [oe] [meta-python] [PATCH] python3-semver: Enable ptest
2020-07-16 19:43 [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest zangrc
2020-07-16 18:04 ` Trevor Gamblin
@ 2020-07-16 19:43 ` zangrc
2020-07-16 18:05 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-smpplib: " zangrc
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: zangrc @ 2020-07-16 19:43 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
.../python/python3-semver/run-ptest | 3 +++
.../python/python3-semver_2.10.2.bb | 14 +++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-semver/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-semver/run-ptest b/meta-python/recipes-devtools/python/python3-semver/run-ptest
new file mode 100644
index 0000000000..43c03b594b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-semver/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO test_semver.py --disable-warnings| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb b/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb
index b41ef5ddc7..71cb1acec3 100644
--- a/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb
+++ b/meta-python/recipes-devtools/python/python3-semver_2.10.2.bb
@@ -7,6 +7,18 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665
SRC_URI[md5sum] = "3e11ae9782121e8ffe9f8a8b763a8cb5"
SRC_URI[sha256sum] = "c0a4a9d1e45557297a722ee9bac3de2ec2ea79016b6ffcaca609b0bc62cf4276"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ cp -f ${S}/test_semver.py ${D}${PTEST_PATH}/
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [oe] [meta-python] [PATCH] python3-smpplib: Enable ptest
2020-07-16 19:43 [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest zangrc
2020-07-16 18:04 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-semver: " zangrc
@ 2020-07-16 19:43 ` zangrc
2020-07-16 18:05 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-soupsieve: " zangrc
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-typeguard: " zangrc
4 siblings, 1 reply; 10+ messages in thread
From: zangrc @ 2020-07-16 19:43 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
.../python/python3-smpplib/run-ptest | 3 +++
.../python/python3-smpplib_2.1.0.bb | 17 ++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-smpplib/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-smpplib/run-ptest b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
new file mode 100644
index 0000000000..b63c4de0d9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb b/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
index 948af58aab..15b326bad4 100644
--- a/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-smpplib_2.1.0.bb
@@ -6,4 +6,19 @@ LIC_FILES_CHKSUM = "file://README.md;md5=56a03d0ce7e492d4b9487b8aae957efe"
PYPI_PACKAGE = "smpplib"
SRC_URI[sha256sum] = "df4139a279b35fbb42a58f2a254a9c6daf362b04a7f94e208dc120e0b8a3fd4b"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-unittest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+ sed -i 's/mock/unittest.mock/g' ${D}${PTEST_PATH}/tests/*
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [oe] [meta-python] [PATCH] python3-soupsieve: Enable ptest
2020-07-16 19:43 [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest zangrc
` (2 preceding siblings ...)
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-smpplib: " zangrc
@ 2020-07-16 19:43 ` zangrc
2020-07-16 18:05 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-typeguard: " zangrc
4 siblings, 1 reply; 10+ messages in thread
From: zangrc @ 2020-07-16 19:43 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
.../python/python3-soupsieve/run-ptest | 3 +++
.../python/python3-soupsieve_2.0.1.bb | 16 +++++++++++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-soupsieve/run-ptest b/meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
new file mode 100644
index 0000000000..b63c4de0d9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-soupsieve/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb b/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb
index aa087c9200..ae242af562 100644
--- a/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb
+++ b/meta-python/recipes-devtools/python/python3-soupsieve_2.0.1.bb
@@ -7,6 +7,20 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5a6fd3b0c24fc5a041a3d1bbb22c81b5"
SRC_URI[md5sum] = "62a7481c7dbf6d8cc21e4e3a79c72034"
SRC_URI[sha256sum] = "a59dc181727e95d25f781f0eb4fd1825ff45590ec8ff49eadfd7f1a537cc0232"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-beautifulsoup4 \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
BBCLASSEXTEND = "native nativesdk"
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [oe] [meta-python] [PATCH] python3-typeguard: Enable ptest
2020-07-16 19:43 [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest zangrc
` (3 preceding siblings ...)
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-soupsieve: " zangrc
@ 2020-07-16 19:43 ` zangrc
2020-07-16 18:06 ` Trevor Gamblin
4 siblings, 1 reply; 10+ messages in thread
From: zangrc @ 2020-07-16 19:43 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
---
.../python/python3-typeguard/run-ptest | 3 +++
.../python/python3-typeguard_2.9.1.bb | 17 ++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-typeguard/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-typeguard/run-ptest b/meta-python/recipes-devtools/python/python3-typeguard/run-ptest
new file mode 100644
index 0000000000..b63c4de0d9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-typeguard/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb b/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb
index a0167cf03b..3786ccb855 100644
--- a/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb
+++ b/meta-python/recipes-devtools/python/python3-typeguard_2.9.1.bb
@@ -6,7 +6,22 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53"
SRC_URI[md5sum] = "411df8eefd76ffa014328a46342bdf38"
SRC_URI[sha256sum] = "529ef3d88189cc457f4340388028412f71be8091c2c943465146d4170fb67288"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-typing-extensions \
+ ${PYTHON_PN}-unixadmin \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
DEPENDS += "\
python3-distutils-extra-native \
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-07-16 18:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 19:43 [oe] [meta-python] [PATCH] python3-requests-file: Enable ptest zangrc
2020-07-16 18:04 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-semver: " zangrc
2020-07-16 18:05 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-smpplib: " zangrc
2020-07-16 18:05 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-soupsieve: " zangrc
2020-07-16 18:05 ` Trevor Gamblin
2020-07-16 19:43 ` [oe] [meta-python] [PATCH] python3-typeguard: " zangrc
2020-07-16 18:06 ` Trevor Gamblin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.