python3-flexparser: enable ptest and add missing runtime dependencies
PATCH 1/1 python3-flexparser: enable ptest and add missing runtime dependencies
* Ptest and library example tested on qemux86-64 and qemuarm64
* Add ptest into PTESTS_FAST_META_PYTHON
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 59
PASS: 59
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 12
END: /usr/lib/python3-flexparser/ptest
2024-04-11T11:06
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 59
PASS: 59
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 11
END: /usr/lib/python3-flexparser/ptest
2024-04-11T11:09
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-flexparser/run-ptest | 3 +++ .../python/python3-flexparser_0.3.bb | 22 ++++++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-flexparser/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -20,6 +20,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-dominate \ python3-execnet \ python3-flexcache \ + python3-flexparser \ python3-freezegun \ python3-geojson \ python3-google-auth-oauthlib \
meta-python/recipes-devtools/python/python3-flexparser/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-flexparser_0.3.bb +21 -1
@@ -6,6 +6,26 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=32f547dac365c355d2cdbcd7ebea9144" DEPENDS += "python3-setuptools-scm-native" SRC_URI[sha256sum] = "692e7524d9e14b2b1231b772b091d7d6296951deb383f5a67bfbd0ecb0b9fa9a" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest PYPI_PACKAGE = "flexparser" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/testsuite + cp -rf ${S}/flexparser/testsuite/* ${D}${PTEST_PATH}/testsuite/ +} + +RDEPENDS:${PN} += " \ + python3-compression \ + python3-email \ + python3-logging \ +"
Signature · 1 line
2.25.1
thanks for doing this.
Quoted 113 lines · Alper Ak
* Ptest and library example tested on qemux86-64 and qemuarm64
* Add ptest into
PTESTS_FAST_META_PYTHONPtest result:
=============qemux86-64:
Testsuite summary
TOTAL: 59
PASS: 59
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 12
END:/usr/lib/python3-flexparser/ptest
2024-04-11T11:06
STOP: ptest-runner
TOTAL: 1 FAIL: 0qemuarm64:
Testsuite summary
TOTAL: 59
PASS: 59
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 11
END:/usr/lib/python3-flexparser/ptest
2024-04-11T11:09
STOP: ptest-runner
TOTAL: 1 FAIL: 0Signed-off-by alperak <[email protected]>--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-flexparser/run-ptest | 3 +++ .../python/python3-flexparser_0.3.bb | 22 ++++++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-flexparser/run-ptestmeta-python/conf/include/ptest-packagelists-meta-python.inc +1
-0@@ -20,6 +20,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-dominate \ python3-execnet \ python3-flexcache \ + python3-flexparser \ python3-freezegun \ python3-geojson \ python3-google-auth-oauthlib \meta-python/recipes-devtools/python/python3-flexparser/run-ptest new file +3
-0@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automakemeta-python/recipes-devtools/python/python3-flexparser_0.3.bb +21
-2@@ -6,6 +6,26 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=32f547dac365c355d2cdbcd7ebea9144" DEPENDS += "python3-setuptools-scm-native" SRC_URI[sha256sum] = "692e7524d9e14b2b1231b772b091d7d6296951deb383f5a67bfbd0ecb0b9fa9a" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest PYPI_PACKAGE = "flexparser" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/testsuite + cp -rf ${S}/flexparser/testsuite/* ${D}${PTEST_PATH}/testsuite/ +} + +RDEPENDS:${PN} += " \ + python3-compression \ + python3-email \ + python3-logging \ +" --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109919): https://lists.openembedded.org/g/openembedded-devel/message/109919
Mute This Topic: https://lists.openembedded.org/mt/105460442/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
You're welcome, I'm glad I could help! :)
Khem Raj <[email protected]>, 11 Nis 2024 Per, 20:29 tarihinde şunu yazdı:
Quoted 127 lines
thanks for doing this.
Quoted 40 lines · Alper Ak
* Ptest and library example tested on qemux86-64 and qemuarm64
* Add ptest into
PTESTS_FAST_META_PYTHONPtest result:
=============qemux86-64:
Testsuite summary
TOTAL: 59
PASS: 59
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 12
END:/usr/lib/python3-flexparser/ptest
2024-04-11T11:06
STOP: ptest-runner
TOTAL: 1 FAIL: 0qemuarm64:
Testsuite summary
TOTAL: 59
PASS: 59
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 11
END:/usr/lib/python3-flexparser/ptest
2024-04-11T11:09
STOP: ptest-runner
TOTAL: 1 FAIL: 0Quoted 7 lines
Signed-off-by alperak <[email protected]>--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-flexparser/run-ptest | 3 +++ .../python/python3-flexparser_0.3.bb | 22 ++++++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644meta-python/recipes-devtools/python/python3-flexparser/run-ptest
Review
Quoted 2 lines
(quoted diff) +0
-0b/meta-python/conf/include/ptest-packagelists-meta-python.inc
Quoted 11 lines
index
acb09aaca..6bd48156d100644meta-python/conf/include/ptest-packagelists-meta-python.inc +1
-0@@ -20,6 +20,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-dominate \ python3-execnet \ python3-flexcache \ + python3-flexparser \ python3-freezegun \ python3-geojson \ python3-google-auth-oauthlib \Quoted 1 line
diff --git
a/meta-python/recipes-devtools/python/python3-flexparser/run-ptest b/meta-python/recipes-devtools/python/python3-flexparser/run-ptest
Review
Quoted 9 lines
new file mode 100644
index 000000000..8d2017d39meta-python/recipes-devtools/python/python3-flexparser/run-ptest new file +3
-0@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake(quoted diff) +0
-0python3-flexparser_0.3.bb b/meta-python/recipes-devtools/python/ python3-flexparser_0.3.bb
meta-python/recipes-devtools/python/python3-flexparser_0.3.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index
fb94235f0..e45175f5a100644meta-python/recipes-devtools/python/python3-flexparser_0.3.bb +0
-0@@ -6,6 +6,26 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=32f547dac365c355d2cdbcd7ebea9144"
meta-python/recipes-devtools/python/python3-flexparser_0.3.bb LIC_FILES_CHKSUM = · line 7
Quoted 2 lines
meta-python/recipes-devtools/python/python3-flexparser_0.3.bb +0
-0DEPENDS += "python3-setuptools-scm-native" SRC_URI[sha256sum] ="
692e7524d9e14b2b1231b772b091d7d6296951deb383f5a67bfbd0ecb0b9fa9a"Quoted 29 lines
meta-python/recipes-devtools/python/python3-flexparser_0.3.bb +21
-2-inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest PYPI_PACKAGE = "flexparser" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/testsuite + cp -rf ${S}/flexparser/testsuite/* ${D}${PTEST_PATH}/testsuite/ +} + +RDEPENDS:${PN} += " \ + python3-compression \ + python3-email \ + python3-logging \ +" --2.25.1
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#109919):https://lists.openembedded.org/g/openembedded-devel/message/109919
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/105460442/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-