diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-07-23 15:51:37 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-24 22:51:40 +0100 |
| commit | 1a93f261d7812677ef0b6daaa651e0f0701c714d (patch) | |
| tree | 4c913d7fbe9854519e85be49b0f7df757c0f8430 /meta/recipes-devtools/python | |
| parent | 194e1cebe279452236f402952b5dde37717f2d56 (diff) | |
| download | poky-1a93f261d7812677ef0b6daaa651e0f0701c714d.tar.gz | |
python3-uritools: enable ptest
Install the test suite and run it in core-image-ptest-fast.
(From OE-Core rev: 579675d773f52c877e50aafc59b5571ac5d6a0ba)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3-uritools/run-ptest | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-uritools_4.0.2.bb | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-uritools/run-ptest b/meta/recipes-devtools/python/python3-uritools/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta/recipes-devtools/python/python3-uritools/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-uritools_4.0.2.bb b/meta/recipes-devtools/python/python3-uritools_4.0.2.bb index 08ebd07705..693d1974be 100644 --- a/meta/recipes-devtools/python/python3-uritools_4.0.2.bb +++ b/meta/recipes-devtools/python/python3-uritools_4.0.2.bb | |||
| @@ -6,6 +6,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1ec55353c80c662e4255f8889a0ca558" | |||
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "04df2b787d0eb76200e8319382a03562fbfe4741fd66c15506b08d3b8211d573" | 7 | SRC_URI[sha256sum] = "04df2b787d0eb76200e8319382a03562fbfe4741fd66c15506b08d3b8211d573" |
| 8 | 8 | ||
| 9 | inherit pypi python_setuptools_build_meta | 9 | SRC_URI += "file://run-ptest" |
| 10 | |||
| 11 | inherit pypi python_setuptools_build_meta ptest | ||
| 12 | |||
| 13 | do_install_ptest() { | ||
| 14 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/ | ||
| 15 | } | ||
| 16 | |||
| 17 | RDEPENDS:${PN}-ptest += " \ | ||
| 18 | python3-pytest \ | ||
| 19 | python3-unittest-automake-output \ | ||
| 20 | " | ||
| 10 | 21 | ||
| 11 | BBCLASSEXTEND = "native nativesdk" | 22 | BBCLASSEXTEND = "native nativesdk" |
