Message ID | 20240724160832.2384962-3-ross.burton@arm.com |
---|---|
State | Accepted, archived |
Commit | 5beb30cdf389490aa00f63a1c377680deb747bbc |
Headers | show |
Series | [1/4] ptest-packagelists: sort entries | expand |
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information: --- Testing patch /home/patchtest/share/mboxes/3-4-python3-cffi-enable-ptest.patch FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence) PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore) PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence) PASS: test author valid (test_mbox.TestMbox.test_author_valid) PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned) PASS: test max line length (test_metadata.TestMetadata.test_max_line_length) PASS: test mbox format (test_mbox.TestMbox.test_mbox_format) PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade) PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format) PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length) PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list) SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint) SKIP: pretest src uri left files: Patch cannot be merged (test_metadata.TestMetadata.pretest_src_uri_left_files) SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format) SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence) SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format) SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format) SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence) SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence) SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint) SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head) SKIP: test src uri left files: Patch cannot be merged (test_metadata.TestMetadata.test_src_uri_left_files) SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence) --- Please address the issues identified and submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 08a8d612048..3dc1a2e88f1 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -115,6 +115,7 @@ PTESTS_SLOW = "\ parted \ perl \ python3 \ + python3-cffi \ python3-click \ python3-cryptography \ 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 00000000000..24ee6f2156c --- /dev/null +++ b/meta/recipes-devtools/python/python3-cffi/run-ptest @@ -0,0 +1,7 @@ +#!/bin/sh + +# test_passing_large_list often causes an OOM, skip for now + +# test_version verifies that versions match across the source tree, ignore +# as we don't have a source tree +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 dfe32c604bd..e740ef45be6 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" SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" -inherit pypi python_setuptools_build_meta +SRC_URI += "file://run-ptest" + +inherit pypi python_setuptools_build_meta ptest + +do_install_ptest() { + cp -r ${S}/testing ${D}${PTEST_PATH} + # These two files from the source tree are needed by the tests + install -D -m644 ${S}/src/c/parse_c_type.c ${D}${PTEST_PATH}/src/c/parse_c_type.c + install -D -m644 ${S}/src/cffi/parse_c_type.h ${D}${PTEST_PATH}/src/cffi/parse_c_type.h +} RDEPENDS:${PN} = " \ python3-ctypes \ python3-io \ python3-pycparser \ + python3-setuptools \ python3-shell \ " +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ + python3-dev \ + gcc-symlinks \ + g++-symlinks \ +" + +INSANE_SKIP:${PN}-ptest = "dev-deps" + BBCLASSEXTEND = "native nativesdk"
Signed-off-by: Ross Burton <ross.burton@arm.com> --- .../distro/include/ptest-packagelists.inc | 1 + .../python/python3-cffi/run-ptest | 7 ++++++ .../python/python3-cffi_1.16.0.bb | 22 ++++++++++++++++++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/python/python3-cffi/run-ptest