summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-cffi/run-ptest7
-rw-r--r--meta/recipes-devtools/python/python3-cffi_1.16.0.bb22
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-cffi/run-ptest b/meta/recipes-devtools/python/python3-cffi/run-ptest
new file mode 100644
index 0000000000..24ee6f2156
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cffi/run-ptest
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3# test_passing_large_list often causes an OOM, skip for now
4
5# test_version verifies that versions match across the source tree, ignore
6# as we don't have a source tree
7pytest --automake -k 'not test_passing_large_list and not test_version'
diff --git a/meta/recipes-devtools/python/python3-cffi_1.16.0.bb b/meta/recipes-devtools/python/python3-cffi_1.16.0.bb
index dfe32c604b..e740ef45be 100644
--- a/meta/recipes-devtools/python/python3-cffi_1.16.0.bb
+++ b/meta/recipes-devtools/python/python3-cffi_1.16.0.bb
@@ -6,13 +6,33 @@ DEPENDS += "libffi python3-pycparser"
6 6
7SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" 7SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0"
8 8
9inherit pypi python_setuptools_build_meta 9SRC_URI += "file://run-ptest"
10
11inherit pypi python_setuptools_build_meta ptest
12
13do_install_ptest() {
14 cp -r ${S}/testing ${D}${PTEST_PATH}
15 # These two files from the source tree are needed by the tests
16 install -D -m644 ${S}/src/c/parse_c_type.c ${D}${PTEST_PATH}/src/c/parse_c_type.c
17 install -D -m644 ${S}/src/cffi/parse_c_type.h ${D}${PTEST_PATH}/src/cffi/parse_c_type.h
18}
10 19
11RDEPENDS:${PN} = " \ 20RDEPENDS:${PN} = " \
12 python3-ctypes \ 21 python3-ctypes \
13 python3-io \ 22 python3-io \
14 python3-pycparser \ 23 python3-pycparser \
24 python3-setuptools \
15 python3-shell \ 25 python3-shell \
16" 26"
17 27
28RDEPENDS:${PN}-ptest += " \
29 python3-pytest \
30 python3-unittest-automake-output \
31 python3-dev \
32 gcc-symlinks \
33 g++-symlinks \
34"
35
36INSANE_SKIP:${PN}-ptest = "dev-deps"
37
18BBCLASSEXTEND = "native nativesdk" 38BBCLASSEXTEND = "native nativesdk"