libvirt: fixup ptest to prevent attempts to build tests on the target
PATCH 1/2 libvirt: fixup ptest to prevent attempts to build tests on the target
Oddly something seems to have changed since I did the uprev of libvirt to v4.3.0. Previously using the 'run-ptests' script would only run the tests and not attempt to build them first. In preparation for the uprev to v4.5.0 I attempted to run the tests and found that they would fail to run and instead the tests were attempting to be built. I suspect this change is caused by an uprev of autotools and the handling of the 'TESTS' built-in.
To prevent this we are explicitly using the '--with-test-suite' configure option and this return the previously observed behavior, where the tests are simply run and not built.
--- recipes-extended/libvirt/libvirt_4.3.0.bb | 1 + 1 file changed, 1 insertion(+)
recipes-extended/libvirt/libvirt_4.3.0.bb +1 -0
@@ -290,6 +290,7 @@ do_install_append() { EXTRA_OECONF += " \ --with-init-script=systemd \ + --with-test-suite \ " EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
Signature · 1 line
2.7.4
PATCH 2/2 libvirt: uprev to v4.5.0
Although v4.6.0 was just recently released we do not want to jump to it due to:
https://bugzilla.redhat.com/show_bug.cgi?id=1614569
Unfortunately the mess around the above defect basically renders that release useless. We will need to keep an eye for either a v4.7.0 or grab updates off of the 'v4.5-maint' over the coming weeks.
As usual I have tested using qemu and lxc usecases (define, boot and 'virsh console' onto a guest). The ptests results match those of v4.3.0:
======================================
Testsuite summary for libvirt 4.5.0
======================================
# TOTAL: 119
# PASS: 114
# SKIP: 0
# XFAIL: 0
# FAIL: 5
# XPASS: 0
# ERROR: 0
---
NOTE: I was seeing an odd behavior while testing that I don't believe was libvirt but rather related to other packages on the system. Basically libvirtd would fail to fully start until I would perform a 'find / -name "*sock*"' on the system. I was not seeing this originally and it only manifested after I pulled updates for other layers.
recipes-extended/libvirt/libvirt-python.inc | 4 ++--
recipes-extended/libvirt/{libvirt_4.3.0.bb => libvirt_4.5.0.bb} | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
rename recipes-extended/libvirt/{libvirt_4.3.0.bb => libvirt_4.5.0.bb} (98%)recipes-extended/libvirt/libvirt-python.inc +2 -2
@@ -18,8 +18,8 @@ FILES_${PN}-python = "${bindir}/* ${libdir}/* ${libdir}/${PYTHON_DIR}/*" SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python" SRC_URI += "file://libvirt_api_xml_path.patch;patchdir=../libvirt-python-${PV}" -SRC_URI[libvirt_python.md5sum] = "2ea5f1871358e6a5788b52c2e1a0b809" -SRC_URI[libvirt_python.sha256sum] = "efe384479a0bf74b1b83bba208887b263cc0061fd4f87759cf3067a403618ea9" +SRC_URI[libvirt_python.md5sum] = "0c1b66a8878d6436b036565060707f73" +SRC_URI[libvirt_python.sha256sum] = "ef35ed6bc24d76563b1ba9b068ef5a048016726dba62a9d057fe6dfbea6b0f60" export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml" export LIBVIRT_CFLAGS = "-I${S}/include"
recipes-extended/libvirt/libvirt_4.5.0.bb renamed from recipes-extended/libvirt/libvirt_4.3.0.bb +2 -2
@@ -37,8 +37,8 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \ file://configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch \ " -SRC_URI[libvirt.md5sum] = "946cfa2558401612c4fcbc934ef9077b" -SRC_URI[libvirt.sha256sum] = "a531e22c8b985ecb2d1223b913fd6ec0f1800e3ebe02351924274885db20c2b7" +SRC_URI[libvirt.md5sum] = "692b2d00907438ed08a68813d3177cd3" +SRC_URI[libvirt.sha256sum] = "e7e95edc0ca553046761ed55a8d01a06a3a3a4238bbeaedb3ba34680a277ab09" inherit autotools gettext update-rc.d pkgconfig ptest systemd
Signature · 1 line
2.7.4
merged
Bruce
Quoted 37 lines · Mark Asselstine
Oddly something seems to have changed since I did the uprev of libvirt to v4.3.0. Previously using the 'run-ptests' script would only run the tests and not attempt to build them first. In preparation for the uprev to v4.5.0 I attempted to run the tests and found that they would fail to run and instead the tests were attempting to be built. I suspect this change is caused by an uprev of autotools and the handling of the 'TESTS' built-in.
To prevent this we are explicitly using the '--with-test-suite' configure option and this return the previously observed behavior, where the tests are simply run and not built.
Signed-off-by Mark Asselstine <[email protected]>--- recipes-extended/libvirt/libvirt_4.3.0.bb | 1 + 1 file changed, 1 insertion(+)recipes-extended/libvirt/libvirt_4.3.0.bb +1
-1@@ -290,6 +290,7 @@ do_install_append() { EXTRA_OECONF += " \ --with-init-script=systemd \ + --with-test-suite \ " EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}" --2.7.4
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"