diff options
| author | alperak <alperyasinak1@gmail.com> | 2024-03-04 19:37:20 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-03-04 08:56:51 -0800 |
| commit | a808e15d6b706580a19f5d0454293606beeb80e6 (patch) | |
| tree | ba041aa321aa92d6de7374aec380733241a67adf | |
| parent | ba6b8de1526dfaf624d06c4e2683781ca7675b8c (diff) | |
| download | meta-openembedded-a808e15d6b706580a19f5d0454293606beeb80e6.tar.gz | |
python3-wrapt: add ptest
* Tested on qemux86_64 and qemuarm64
* Add ptest into PTESTS_FAST_META_PYTHON
Ptest result:
qemux86-64:
Testsuite summary
TOTAL: 438
PASS: 438
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 17
END: /usr/lib/python3-wrapt/ptest
2024-03-04T16:09
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 438
PASS: 438
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 17
END: /usr/lib/python3-wrapt/ptest
2024-03-04T16:18
STOP: ptest-runner
TOTAL: 1 FAIL: 0
Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 19 insertions, 1 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 958eaef0be..abbff8d065 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc | |||
| @@ -65,6 +65,7 @@ PTESTS_FAST_META_PYTHON = "\ | |||
| 65 | python3-u-msgpack-python \ | 65 | python3-u-msgpack-python \ |
| 66 | python3-unidiff \ | 66 | python3-unidiff \ |
| 67 | python3-uritemplate \ | 67 | python3-uritemplate \ |
| 68 | python3-wrapt \ | ||
| 68 | python3-xlrd \ | 69 | python3-xlrd \ |
| 69 | python3-xmltodict \ | 70 | python3-xmltodict \ |
| 70 | python3-xxhash \ | 71 | python3-xxhash \ |
diff --git a/meta-python/recipes-devtools/python/python3-wrapt/run-ptest b/meta-python/recipes-devtools/python/python3-wrapt/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-wrapt/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb b/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb index 84c0528446..056323cd39 100644 --- a/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb +++ b/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb | |||
| @@ -6,7 +6,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7" | |||
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d" | 7 | SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d" |
| 8 | 8 | ||
| 9 | inherit pypi setuptools3 | 9 | inherit pypi setuptools3 ptest |
| 10 | |||
| 11 | SRC_URI += " \ | ||
| 12 | file://run-ptest \ | ||
| 13 | " | ||
| 14 | |||
| 15 | RDEPENDS:${PN}-ptest += " \ | ||
| 16 | python3-pytest \ | ||
| 17 | python3-unittest-automake-output \ | ||
| 18 | " | ||
| 19 | |||
| 20 | do_install_ptest() { | ||
| 21 | install -d ${D}${PTEST_PATH}/tests | ||
| 22 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 23 | } | ||
| 10 | 24 | ||
| 11 | RDEPENDS:${PN}:class-target += "\ | 25 | RDEPENDS:${PN}:class-target += "\ |
| 12 | python3-stringold \ | 26 | python3-stringold \ |
