libopenmtp: fix ptests
PATCH 1/3 libopenmtp: fix ptests
Install missing test data file.
Signed-off-by Gyorgy Sarvari <[email protected]>
--- .../conf/include/ptest-packagelists-meta-multimedia.inc | 2 +- .../recipes-multimedia/libopenmpt/libopenmpt_0.7.10.bb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -1
@@ -7,11 +7,11 @@ # ptests which take less than ~30s each PTESTS_FAST_META_MULTIMEDIA = "\ + libopenmpt\ " PTESTS_SLOW_META_MULTIMEDIA = "\ " PTESTS_PROBLEMS_META_MULTIMEDIA = "\ - libopenmpt \ "
meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.7.10.bb +1 -0
@@ -58,6 +58,7 @@ do_install_ptest() { install -m 0644 ${S}/test/test.mptm ${D}${PTEST_PATH}/test install -m 0644 ${S}/test/test.s3m ${D}${PTEST_PATH}/test install -m 0644 ${S}/test/test.xm ${D}${PTEST_PATH}/test + install -m 0644 ${S}/test/test.mod ${D}${PTEST_PATH}/test install -d ${D}${PTEST_PATH}/libopenmpt install -m 0644 ${S}/libopenmpt/libopenmpt_version.mk ${D}${PTEST_PATH}/libopenmpt
PATCH 2/3 python3-pyasyncore: fix ptests
The tests are using only Python's unittest module, not pytest - so adapt the run-ptest script to invoke unittest instead pytest.
Signed-off-by Gyorgy Sarvari <[email protected]>
--- .../conf/include/ptest-packagelists-meta-python.inc | 2 +- .../recipes-devtools/python/python3-pyasyncore/run-ptest | 9 +++++++++ .../recipes-devtools/python/python3-pyasyncore_1.0.4.bb | 7 ++++++- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -1
@@ -69,6 +69,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-ptyprocess \ python3-py-cpuinfo \ python3-pyasn1-modules \ + python3-pyasyncore \ python3-pyroute2 \ python3-pyserial \ python3-pytest-mock \
@@ -128,5 +129,4 @@ PTESTS_SLOW_META_PYTHON = "\ " PTESTS_PROBLEMS_META_PYTHON = "\ - python3-pyasyncore \ "
meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest new file +9 -0
@@ -0,0 +1,9 @@ +#!/bin/sh + +cd $(dirname $0)/tests + +# Failing cases are not transformed, only passing and skipped ones. +# Unitttest will output a summary at the end for each failing testcase, +# starting each line with "FAIL: " followed by the testcase name. + +python3 -m unittest -v 2>&1 | sed -e 's/\(test_[^ ]*\).*ok$/PASS: \1/' -e 's/\(test_[^ ]*\).*skipped.*/SKIP: \1/'
meta-python/recipes-devtools/python/python3-pyasyncore_1.0.4.bb +6 -1
@@ -3,11 +3,16 @@ HOMEPAGE = "https://github.com/simonrob/pyasyncore" LICENSE = "Python-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=d5605fc335ce1bab614032468d0a1e00" -inherit pypi setuptools3 ptest-python-pytest +inherit pypi setuptools3 ptest +SRC_URI += "file://run-ptest" SRC_URI[sha256sum] = "2c7a8b9b750ba6260f1e5a061456d61320a80579c6a43d42183417da89c7d5d6" RDEPENDS:${PN} += "python3-core python3-io" RDEPENDS:${PN}-ptest += "python3-tests" +do_install_ptest:append(){ + cp -r ${S}/tests ${D}${PTEST_PATH} +} + BBCLASSEXTEND = "native nativesdk"
PATCH 3/3 libxml-libxml-perl: skip recipe
In reply to Gyorgy SarvariThe application should not be used in its current state:
it is not compatible with the current version of libxml[1].
Due to this, skip it for now - if it will be maintained again, it can be re-enabled.
[1]: https://github.com/shlomif/perl-XML-LibXML/issues/84
Signed-off-by Gyorgy Sarvari <[email protected]>
--- .../recipes-core/packagegroups/packagegroup-meta-perl.bb | 1 - meta-perl/recipes-perl/libxml/libxml-libxml-perl_2.0134.bb | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-)
meta-perl/recipes-core/packagegroups/packagegroup-meta-perl.bb +0 -1
@@ -58,7 +58,6 @@ RDEPENDS:packagegroup-meta-perl = "\ libtext-diff-perl \ libtext-charwidth-perl \ libtext-wrapi18n-perl \ - libxml-libxml-perl \ libxml-filter-buffertext-perl \ libxml-sax-writer-perl \ libextutils-config-perl \
meta-perl/recipes-perl/libxml/libxml-libxml-perl_2.0134.bb +5 -0
@@ -70,3 +70,8 @@ do_install_ptest() { cp -r ${B}/test ${D}${PTEST_PATH} chown -R root:root ${D}${PTEST_PATH} } + +# See issues: +# https://github.com/shlomif/perl-XML-LibXML/issues/84 - libxml incompatibility +# https://github.com/shlomif/perl-XML-LibXML/issues/91 - looking for new maintainer +SKIP_RECIPE[libxml-libxml-perl] ?= "Not compatible with latest libxml"