diff options
| -rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-cffi/run-ptest | 7 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-cffi_1.16.0.bb | 22 |
3 files changed, 29 insertions, 1 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 4025883cca..f1c6c1b6f4 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
| @@ -114,6 +114,7 @@ PTESTS_SLOW = "\ | |||
| 114 | parted \ | 114 | parted \ |
| 115 | perl \ | 115 | perl \ |
| 116 | python3 \ | 116 | python3 \ |
| 117 | python3-cffi \ | ||
| 117 | python3-click \ | 118 | python3-click \ |
| 118 | python3-cryptography \ | 119 | python3-cryptography \ |
| 119 | python3-xmltodict \ | 120 | python3-xmltodict \ |
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 | ||
| 7 | pytest --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 | ||
| 7 | SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" | 7 | SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" |
| 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 -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 | ||
| 11 | RDEPENDS:${PN} = " \ | 20 | RDEPENDS:${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 | ||
| 28 | RDEPENDS:${PN}-ptest += " \ | ||
| 29 | python3-pytest \ | ||
| 30 | python3-unittest-automake-output \ | ||
| 31 | python3-dev \ | ||
| 32 | gcc-symlinks \ | ||
| 33 | g++-symlinks \ | ||
| 34 | " | ||
| 35 | |||
| 36 | INSANE_SKIP:${PN}-ptest = "dev-deps" | ||
| 37 | |||
| 18 | BBCLASSEXTEND = "native nativesdk" | 38 | BBCLASSEXTEND = "native nativesdk" |
