diff options
-rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 3 | ||||
-rw-r--r-- | meta/recipes-core/images/core-image-ptest.bb | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-numpy/run-ptest | 16 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-numpy_2.2.5.bb | 32 |
4 files changed, 36 insertions, 19 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index f3fdededf6..51b29cf17e 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
@@ -120,6 +120,7 @@ PTESTS_SLOW = "\ | |||
120 | python3-cffi \ | 120 | python3-cffi \ |
121 | python3-click \ | 121 | python3-click \ |
122 | python3-cryptography \ | 122 | python3-cryptography \ |
123 | python3-numpy \ | ||
123 | python3-xmltodict \ | 124 | python3-xmltodict \ |
124 | strace \ | 125 | strace \ |
125 | tar \ | 126 | tar \ |
@@ -143,7 +144,6 @@ PTESTS_SLOW:append:libc-musl = " libc-test" | |||
143 | # libpam \ # Needs pam DISTRO_FEATURE | 144 | # libpam \ # Needs pam DISTRO_FEATURE |
144 | # mdadm \ # tests are flaky in AB. | 145 | # mdadm \ # tests are flaky in AB. |
145 | # numactl \ # qemu not (yet) configured for numa; all tests are skipped | 146 | # numactl \ # qemu not (yet) configured for numa; all tests are skipped |
146 | # python3-numpy \ # requires even more RAM and (possibly) disk space; multiple failures | ||
147 | 147 | ||
148 | PTESTS_PROBLEMS = "\ | 148 | PTESTS_PROBLEMS = "\ |
149 | ruby \ | 149 | ruby \ |
@@ -155,5 +155,4 @@ PTESTS_PROBLEMS = "\ | |||
155 | mdadm \ | 155 | mdadm \ |
156 | numactl \ | 156 | numactl \ |
157 | python3-license-expression \ | 157 | python3-license-expression \ |
158 | python3-numpy \ | ||
159 | " | 158 | " |
diff --git a/meta/recipes-core/images/core-image-ptest.bb b/meta/recipes-core/images/core-image-ptest.bb index a0ff8d9528..73270d1067 100644 --- a/meta/recipes-core/images/core-image-ptest.bb +++ b/meta/recipes-core/images/core-image-ptest.bb | |||
@@ -27,11 +27,15 @@ IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-lttng-tools = "1524288" | |||
27 | # tar-ptest in particular needs more space | 27 | # tar-ptest in particular needs more space |
28 | IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-tar = "1524288" | 28 | IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-tar = "1524288" |
29 | 29 | ||
30 | # python3-numpy-ptest requires a lot of extra space | ||
31 | IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-python3-numpy = "3048576" | ||
32 | |||
30 | # ptests need more memory than standard to avoid the OOM killer | 33 | # ptests need more memory than standard to avoid the OOM killer |
31 | QB_MEM = "-m 1024" | 34 | QB_MEM = "-m 1024" |
32 | QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096" | 35 | QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096" |
33 | QB_MEM:virtclass-mcextend-python3 = "-m 2048" | 36 | QB_MEM:virtclass-mcextend-python3 = "-m 2048" |
34 | QB_MEM:virtclass-mcextend-python3-cryptography = "-m 5100" | 37 | QB_MEM:virtclass-mcextend-python3-cryptography = "-m 5100" |
38 | QB_MEM:virtclass-mcextend-python3-numpy = "-m 4096" | ||
35 | QB_MEM:virtclass-mcextend-tcl = "-m 5100" | 39 | QB_MEM:virtclass-mcextend-tcl = "-m 5100" |
36 | 40 | ||
37 | TEST_SUITES = "ping ssh parselogs ptest" | 41 | TEST_SUITES = "ping ssh parselogs ptest" |
diff --git a/meta/recipes-devtools/python/python3-numpy/run-ptest b/meta/recipes-devtools/python/python3-numpy/run-ptest index 9a1c72aeb1..6e76dffc59 100644 --- a/meta/recipes-devtools/python/python3-numpy/run-ptest +++ b/meta/recipes-devtools/python/python3-numpy/run-ptest | |||
@@ -1,5 +1,15 @@ | |||
1 | #!/usr/bin/env python3 | 1 | #!/bin/sh |
2 | 2 | ||
3 | import numpy | 3 | # By default, numpy will use /tmp as the root path for temporary files used |
4 | numpy.test(label='full', verbose=2) | 4 | # during tests, but if this is a tmpfs it may fill up quickly and cause many of |
5 | # the tests to report "no space left on device" errors. Create a custom | ||
6 | # directory for these and point pytest at it so we can take advantage of the | ||
7 | # storage provided in the rootfs. | ||
8 | export PYTEST_DEBUG_TEMPROOT="/usr/lib/python3-numpy/ptest/tmp" | ||
9 | mkdir -p "$PYTEST_DEBUG_TEMPROOT" | ||
5 | 10 | ||
11 | # test_mem_policy fails if there's no C compiler present, but we don't want to | ||
12 | # include gcc as a ptest dependency, so skip that. test_big_arrays uses up a | ||
13 | # large amount of storage, so skip that too. | ||
14 | pytest --automake -m "not slow" -k "not test_mem_policy and not test_big_arrays" /usr/lib/python3.*/site-packages/numpy | ||
15 | rm -rf "$PYTEST_DEBUG_TEMPROOT" | ||
diff --git a/meta/recipes-devtools/python/python3-numpy_2.2.5.bb b/meta/recipes-devtools/python/python3-numpy_2.2.5.bb index c6a37c0a85..f963e15b83 100644 --- a/meta/recipes-devtools/python/python3-numpy_2.2.5.bb +++ b/meta/recipes-devtools/python/python3-numpy_2.2.5.bb | |||
@@ -41,32 +41,36 @@ FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/_core/lib/*.a \ | |||
41 | " | 41 | " |
42 | 42 | ||
43 | # install what is needed for numpy.test() | 43 | # install what is needed for numpy.test() |
44 | RDEPENDS:${PN} = "python3-unittest \ | 44 | RDEPENDS:${PN} = "\ |
45 | python3-compression \ | ||
46 | python3-ctypes \ | ||
47 | python3-datetime \ | ||
45 | python3-difflib \ | 48 | python3-difflib \ |
46 | python3-pprint \ | ||
47 | python3-pickle \ | ||
48 | python3-shell \ | ||
49 | python3-doctest \ | 49 | python3-doctest \ |
50 | python3-datetime \ | 50 | python3-email \ |
51 | python3-json \ | ||
51 | python3-misc \ | 52 | python3-misc \ |
52 | python3-mmap \ | 53 | python3-mmap \ |
54 | python3-multiprocessing \ | ||
53 | python3-netclient \ | 55 | python3-netclient \ |
54 | python3-numbers \ | 56 | python3-numbers \ |
55 | python3-pydoc \ | 57 | python3-pickle \ |
56 | python3-pkgutil \ | 58 | python3-pkgutil \ |
57 | python3-email \ | 59 | python3-pprint \ |
58 | python3-compression \ | 60 | python3-pydoc \ |
59 | python3-ctypes \ | 61 | python3-shell \ |
60 | python3-threading \ | 62 | python3-threading \ |
61 | python3-multiprocessing \ | 63 | python3-unittest \ |
62 | python3-json \ | ||
63 | " | 64 | " |
64 | RDEPENDS:${PN}-ptest += "python3-pytest \ | 65 | RDEPENDS:${PN}-ptest += "\ |
66 | ldd \ | ||
67 | meson \ | ||
65 | python3-hypothesis \ | 68 | python3-hypothesis \ |
66 | python3-sortedcontainers \ | 69 | python3-pytest \ |
67 | python3-resource \ | 70 | python3-resource \ |
71 | python3-sortedcontainers \ | ||
68 | python3-typing-extensions \ | 72 | python3-typing-extensions \ |
69 | ldd \ | 73 | python3-unittest-automake-output \ |
70 | " | 74 | " |
71 | 75 | ||
72 | BBCLASSEXTEND = "native nativesdk" | 76 | BBCLASSEXTEND = "native nativesdk" |