Skip to contentSkip to conversation

libvirt ptest support and update to version 1.2.2

PATCH In review Mihaela Sendrea 2 participants 4 messages Mar 18, 2014 – Mar 19, 2014

lore
Share & tools
lore
#0 lore raw

cover libvirt ptest support and update to version 1.2.2

Hi,

This patch series adds libvirt to ptest framework and updates to 1.2.2.
The testsuite summary for libvirt 1.2.2 looks similar to the one for libvirt 1.2.1 (8 new tests come with the new livbirt version).

Best regards,
Mihaela Sendrea.

Mihaela Sendrea (2):
libvirt: Add ptest support
libvirt: Update version to 1.2.2

 recipes-extended/libvirt/libvirt-python.inc        |   4 +-
 recipes-extended/libvirt/libvirt/run-ptest         |   3 +
 recipes-extended/libvirt/libvirt/runptest.patch    | 112 +++++++++++++++++++++
 .../libvirt/{libvirt_1.2.1.bb => libvirt_1.2.2.bb} |  43 +++++++-
 4 files changed, 155 insertions(+), 7 deletions(-)
 create mode 100644 recipes-extended/libvirt/libvirt/run-ptest
 create mode 100644 recipes-extended/libvirt/libvirt/runptest.patch
 rename recipes-extended/libvirt/{libvirt_1.2.1.bb => libvirt_1.2.2.bb} (87%)
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH 1/2 libvirt: Add ptest support

Install libvirt test suite and run it as ptest.

---
 recipes-extended/libvirt/libvirt/run-ptest      |   3 +
 recipes-extended/libvirt/libvirt/runptest.patch | 112 ++++++++++++++++++++++++
 recipes-extended/libvirt/libvirt_1.2.1.bb       |  39 ++++++++-
 3 files changed, 151 insertions(+), 3 deletions(-)
 create mode 100644 recipes-extended/libvirt/libvirt/run-ptest
 create mode 100644 recipes-extended/libvirt/libvirt/runptest.patch
recipes-extended/libvirt/libvirt/run-ptest new file +3 -0
new file mode 100644
index 0000000..a434b18
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+make -C tests -k check-TESTS
recipes-extended/libvirt/libvirt/runptest.patch new file +112 -0

112 lines not on this page · raw message

recipes-extended/libvirt/libvirt_1.2.1.bb +36 -3
index 4c9cf36..e2c0f99 100644
@@ -1,6 +1,7 @@
 DESCRIPTION = "A toolkit to interact with the virtualization capabilities of recent versions of Linux." 
 HOMEPAGE = "http://libvirt.org"
 LICENSE = "LGPLv2.1+"
+LICENSE_${PN}-ptest = "GPLv2+ & LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
 SECTION = "console/tools"
@@ -13,6 +14,8 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux
 #
 RDEPENDS_${PN} = "gettext-runtime"
 
+RDEPENDS_${PN}-ptest += "make gawk"
+
 RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd"
 RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
 RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
@@ -22,13 +25,16 @@ RCONFLICTS_${PN}_libvirtd = "connman"
 
 SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \
            file://tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch \
-	   file://libvirtd.sh \
-	   file://libvirtd.conf"
+           file://libvirtd.sh \
+           file://libvirtd.conf \
+           file://runptest.patch \
+           file://run-ptest \
+          "
 
 SRC_URI[libvirt.md5sum] = "cce374220f67895afb6331bd2ddedbfd"
 SRC_URI[libvirt.sha256sum] = "bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898"
 
-inherit autotools gettext update-rc.d pkgconfig
+inherit autotools gettext update-rc.d pkgconfig ptest
 
 CACHED_CONFIGUREVARS += "\
 ac_cv_path_XMLLINT=/usr/bin/xmllint \
@@ -105,6 +111,23 @@ INITSCRIPT_PACKAGES = "${PN}-libvirtd"
 INITSCRIPT_NAME_${PN}-libvirtd = "libvirtd"
 INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72"
 
+PRIVATE_LIBS_${PN}-ptest = " \
+	libvirt-lxc.so.0 \
+	libvirt.so.0 \
+	libvirt-qemu.so.0 \
+	lockd.so \
+	libvirt_driver_secret.so \
+	libvirt_driver_nodedev.so \
+	libvirt_driver_vbox.so \
+	libvirt_driver_interface.so \
+	libvirt_driver_uml.so \
+	libvirt_driver_network.so \
+	libvirt_driver_nwfilter.so \
+	libvirt_driver_qemu.so \
+	libvirt_driver_storage.so \
+	libvirt_driver_lxc.so \
+    "
+
 # xen-minimal config
 #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd"
 
@@ -176,6 +199,16 @@ do_install_append() {
 	     >> ${D}${sysconfdir}/default/volatiles/99_libvirt
 }
 
+EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH}"
+
+do_compile_ptest() {
+	oe_runmake -C tests buildtest-TESTS
+}
+
+do_install_ptest() {
+	oe_runmake -C tests install-ptest
+}
+
 pkg_postinst_libvirt() {
         if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
                 /etc/init.d/populate-volatile.sh update
Signature · 1 line
1.8.5.3
#2 lore raw

PATCH 2/2 libvirt: Update version to 1.2.2

In reply to Mihaela Sendrea
---
 recipes-extended/libvirt/libvirt-python.inc                     | 4 ++--
 recipes-extended/libvirt/{libvirt_1.2.1.bb => libvirt_1.2.2.bb} | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
 rename recipes-extended/libvirt/{libvirt_1.2.1.bb => libvirt_1.2.2.bb} (98%)
recipes-extended/libvirt/libvirt-python.inc +2 -2
index 2144a56..195a9de 100644
@@ -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] = "e1effd6007b2ebd5d024c6c3838456fb"
-SRC_URI[libvirt_python.sha256sum] = "bce558606b157d0717ee7bd6537d85dd4c0321c59b4235c967db7a3aad80e246"
+SRC_URI[libvirt_python.md5sum] = "cd3b75c0eb64e933f0b648fbdca6e868"
+SRC_URI[libvirt_python.sha256sum] = "94d79d662b6010f6c688b8856b2d95077736d48ffa35feed5a339d7fafbf8c39"
 
 export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
 export LIBVIRT_CFLAGS = "-I${S}/include"
recipes-extended/libvirt/libvirt_1.2.2.bb renamed from recipes-extended/libvirt/libvirt_1.2.1.bb +2 -2
similarity index 98%
rename from recipes-extended/libvirt/libvirt_1.2.1.bb
rename to recipes-extended/libvirt/libvirt_1.2.2.bb
index e2c0f99..0cd6b99 100644
@@ -31,8 +31,8 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \
            file://run-ptest \
           "
 
-SRC_URI[libvirt.md5sum] = "cce374220f67895afb6331bd2ddedbfd"
-SRC_URI[libvirt.sha256sum] = "bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898"
+SRC_URI[libvirt.md5sum] = "592958ad1ddce7574d8cb0a31e635acd"
+SRC_URI[libvirt.sha256sum] = "a48377e307c5c21b67e43db99af909a23c33aff8cbbaa3361fd389eb047cbbc3"
 
 inherit autotools gettext update-rc.d pkgconfig ptest
 
Signature · 1 line
1.8.5.3
#3 lore raw
In reply to Mihaela Sendrea
Quoted 4 lines · Mihaela Sendrea

Hi,

This patch series adds libvirt to ptest framework and updates to 1.2.2.
The testsuite summary for libvirt 1.2.2 looks similar to the one for libvirt 1.2.1 (8 new tests come with the new livbirt version).

This looks good to me. I threw the two other uprev patches to 1.2.2 out and took your series, since it comes with testing information :)

Thanks for the update.

Bruce

Quoted 25 lines

Best regards,
Mihaela Sendrea.

Mihaela Sendrea (2):
libvirt: Add ptest support
libvirt: Update version to 1.2.2

 recipes-extended/libvirt/libvirt-python.inc        |   4 +-
 recipes-extended/libvirt/libvirt/run-ptest         |   3 +
 recipes-extended/libvirt/libvirt/runptest.patch    | 112 +++++++++++++++++++++
 .../libvirt/{libvirt_1.2.1.bb => libvirt_1.2.2.bb} |  43 +++++++-
 4 files changed, 155 insertions(+), 7 deletions(-)
 create mode 100644 recipes-extended/libvirt/libvirt/run-ptest
 create mode 100644 recipes-extended/libvirt/libvirt/runptest.patch
 rename recipes-extended/libvirt/{libvirt_1.2.1.bb => libvirt_1.2.2.bb} (87%)

--
1.8.5.3

--
_______________________________________________
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"