diff options
| author | alperak <alperyasinak1@gmail.com> | 2024-10-11 16:04:40 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-10-11 07:52:23 -0700 |
| commit | 196bb0a40d604f438f9a725a60479dd86bda69a6 (patch) | |
| tree | abd51f7ecf98299ead5077a4110c9e39dfbb6fd2 /meta-python/recipes-devtools/python | |
| parent | 9cbe55d4652d8c6d80f968152dd231df39d0c164 (diff) | |
| download | meta-openembedded-196bb0a40d604f438f9a725a60479dd86bda69a6.tar.gz | |
python3-portion: enable ptest
- Tested on qemux86-64 and qemuarm64
- Added ptest into PTESTS_FAST_META_PYTHON
Ptest result:
=============
qemux86-64:
Testsuite summary
TOTAL: 205
PASS: 205
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 27
END: /usr/lib/python3-portion/ptest
2024-10-11T12:13
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 205
PASS: 205
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 25
END: /usr/lib/python3-portion/ptest
2024-10-11T12:18
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-portion/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-portion_2.5.0.bb | 22 |
2 files changed, 22 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python3-portion/run-ptest b/meta-python/recipes-devtools/python/python3-portion/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-portion/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-portion_2.5.0.bb b/meta-python/recipes-devtools/python/python3-portion_2.5.0.bb index f4e5d2036e..269473e933 100644 --- a/meta-python/recipes-devtools/python/python3-portion_2.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-portion_2.5.0.bb | |||
| @@ -5,12 +5,28 @@ SECTION = "devel/python" | |||
| 5 | LICENSE = "LGPL-3.0-only" | 5 | LICENSE = "LGPL-3.0-only" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3000208d539ec061b899bce1d9ce9404" |
| 7 | 7 | ||
| 8 | inherit pypi python_setuptools_build_meta | 8 | inherit pypi python_setuptools_build_meta ptest |
| 9 | 9 | ||
| 10 | SRC_URI[sha256sum] = "80ae7bab71f4844e3eb33c57954d76a3bd4cb351039b6e260e779325aeb4a487" | 10 | SRC_URI[sha256sum] = "80ae7bab71f4844e3eb33c57954d76a3bd4cb351039b6e260e779325aeb4a487" |
| 11 | 11 | ||
| 12 | RDEPENDS:${PN} = "\ | 12 | SRC_URI += " \ |
| 13 | python3-sortedcontainers \ | 13 | file://run-ptest \ |
| 14 | " | 14 | " |
| 15 | 15 | ||
| 16 | RDEPENDS:${PN} += "\ | ||
| 17 | python3-sortedcontainers \ | ||
| 18 | " | ||
| 19 | |||
| 20 | RDEPENDS:${PN}-ptest += " \ | ||
| 21 | python3-pytest \ | ||
| 22 | python3-unittest-automake-output \ | ||
| 23 | " | ||
| 24 | |||
| 25 | do_install_ptest() { | ||
| 26 | install -d ${D}${PTEST_PATH}/tests | ||
| 27 | # This file tests README.md and deleted as redundant. | ||
| 28 | rm -f ${S}/tests/test_doc.py | ||
| 29 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 30 | } | ||
| 31 | |||
| 16 | BBCLASSEXTEND = "native" | 32 | BBCLASSEXTEND = "native" |
