diff options
author | Lei Maohui <leimaohui@fujitsu.com> | 2025-04-18 09:34:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-24 11:47:23 +0100 |
commit | a3a10a15c4bfaa1faa77c1895e22ec4a1e1fa456 (patch) | |
tree | a28ef5ca194b857c75a9b955b6778a8654f41695 | |
parent | 4ac36e4b0806cad0306a364a23074bc9107aac1b (diff) | |
download | poky-a3a10a15c4bfaa1faa77c1895e22ec4a1e1fa456.tar.gz |
python3-hypothesis: Update to use the new ptest-python-pytest class
(From OE-Core rev: e68ad590f9c0b4bcba94ad571553d81e2a7c6f50)
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python3-hypothesis/run-ptest | 10 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb | 16 |
2 files changed, 6 insertions, 20 deletions
diff --git a/meta/recipes-devtools/python/python3-hypothesis/run-ptest b/meta/recipes-devtools/python/python3-hypothesis/run-ptest deleted file mode 100644 index 54f6e7930f..0000000000 --- a/meta/recipes-devtools/python/python3-hypothesis/run-ptest +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Upstream "fast" tests take about 5 minutes and currently do not run cleanly | ||
4 | # (tests/cover and tests/pytest) | ||
5 | # https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python/tests | ||
6 | # https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/scripts/basic-test.sh#L18 | ||
7 | # | ||
8 | # Instead we run two test suites imported from examples/ | ||
9 | |||
10 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb b/meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb index 0542a9d188..d7656dc1d8 100644 --- a/meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb +++ b/meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb | |||
@@ -4,11 +4,11 @@ LICENSE = "MPL-2.0" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c" |
5 | 5 | ||
6 | PYPI_PACKAGE = "hypothesis" | 6 | PYPI_PACKAGE = "hypothesis" |
7 | PTEST_PYTEST_DIR ?= "examples" | ||
7 | 8 | ||
8 | inherit pypi python_setuptools_build_meta ptest | 9 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
9 | 10 | ||
10 | SRC_URI += " \ | 11 | SRC_URI += " \ |
11 | file://run-ptest \ | ||
12 | file://test_binary_search.py \ | 12 | file://test_binary_search.py \ |
13 | file://test_rle.py \ | 13 | file://test_rle.py \ |
14 | " | 14 | " |
@@ -27,14 +27,10 @@ RDEPENDS:${PN} += " \ | |||
27 | python3-zoneinfo \ | 27 | python3-zoneinfo \ |
28 | " | 28 | " |
29 | 29 | ||
30 | RDEPENDS:${PN}-ptest += " \ | 30 | do_install_ptest:append() { |
31 | python3-unittest-automake-output \ | 31 | install -d ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR} |
32 | " | 32 | install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/ |
33 | 33 | install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/ | |
34 | do_install_ptest() { | ||
35 | install -d ${D}${PTEST_PATH}/examples | ||
36 | install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/ | ||
37 | install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/ | ||
38 | } | 34 | } |
39 | 35 | ||
40 | BBCLASSEXTEND = "native nativesdk" | 36 | BBCLASSEXTEND = "native nativesdk" |