diff options
| author | alperak <alperyasinak1@gmail.com> | 2024-04-11 14:23:18 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-04-11 23:32:36 -0700 |
| commit | ab62c819f3ae4364ae4201a3c7662a57e70d6bb3 (patch) | |
| tree | ffea19c6cafca71713b1ef7228d05426aad3d4fc /meta-python/recipes-devtools/python | |
| parent | 91731183b559069e3004f85aa4a66b7d93967ee2 (diff) | |
| download | meta-openembedded-ab62c819f3ae4364ae4201a3c7662a57e70d6bb3.tar.gz | |
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
Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-flexparser/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-flexparser_0.3.bb | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-flexparser/run-ptest b/meta-python/recipes-devtools/python/python3-flexparser/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-flexparser/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-flexparser_0.3.bb b/meta-python/recipes-devtools/python/python3-flexparser_0.3.bb index fb94235f05..e45175f5a5 100644 --- a/meta-python/recipes-devtools/python/python3-flexparser_0.3.bb +++ b/meta-python/recipes-devtools/python/python3-flexparser_0.3.bb | |||
| @@ -6,6 +6,26 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=32f547dac365c355d2cdbcd7ebea9144" | |||
| 6 | DEPENDS += "python3-setuptools-scm-native" | 6 | DEPENDS += "python3-setuptools-scm-native" |
| 7 | SRC_URI[sha256sum] = "692e7524d9e14b2b1231b772b091d7d6296951deb383f5a67bfbd0ecb0b9fa9a" | 7 | SRC_URI[sha256sum] = "692e7524d9e14b2b1231b772b091d7d6296951deb383f5a67bfbd0ecb0b9fa9a" |
| 8 | 8 | ||
| 9 | inherit pypi python_setuptools_build_meta | 9 | inherit pypi python_setuptools_build_meta ptest |
| 10 | 10 | ||
| 11 | PYPI_PACKAGE = "flexparser" | 11 | PYPI_PACKAGE = "flexparser" |
| 12 | |||
| 13 | SRC_URI += " \ | ||
| 14 | file://run-ptest \ | ||
| 15 | " | ||
| 16 | |||
| 17 | RDEPENDS:${PN}-ptest += " \ | ||
| 18 | python3-pytest \ | ||
| 19 | python3-unittest-automake-output \ | ||
| 20 | " | ||
| 21 | |||
| 22 | do_install_ptest() { | ||
| 23 | install -d ${D}${PTEST_PATH}/testsuite | ||
| 24 | cp -rf ${S}/flexparser/testsuite/* ${D}${PTEST_PATH}/testsuite/ | ||
| 25 | } | ||
| 26 | |||
| 27 | RDEPENDS:${PN} += " \ | ||
| 28 | python3-compression \ | ||
| 29 | python3-email \ | ||
| 30 | python3-logging \ | ||
| 31 | " | ||
