diff options
| author | Mihaela Sendrea <mihaela.sendrea@enea.com> | 2014-03-18 11:34:11 +0100 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-19 10:58:11 -0400 |
| commit | 6d55bc2aa805243853398e38e23010a6faafef7d (patch) | |
| tree | 7978a882a6efe4f5e6298950717f1166fc629069 /recipes-extended/libvirt/libvirt_1.2.1.bb | |
| parent | 7550a05bb02699fe337c3a637489275ca1ffb9df (diff) | |
| download | meta-virtualization-6d55bc2aa805243853398e38e23010a6faafef7d.tar.gz | |
libvirt: Add ptest support
Install libvirt test suite and run it as ptest.
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/libvirt/libvirt_1.2.1.bb')
| -rw-r--r-- | recipes-extended/libvirt/libvirt_1.2.1.bb | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/recipes-extended/libvirt/libvirt_1.2.1.bb b/recipes-extended/libvirt/libvirt_1.2.1.bb index 4c9cf36f..e2c0f99d 100644 --- a/recipes-extended/libvirt/libvirt_1.2.1.bb +++ b/recipes-extended/libvirt/libvirt_1.2.1.bb | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | DESCRIPTION = "A toolkit to interact with the virtualization capabilities of recent versions of Linux." | 1 | DESCRIPTION = "A toolkit to interact with the virtualization capabilities of recent versions of Linux." |
| 2 | HOMEPAGE = "http://libvirt.org" | 2 | HOMEPAGE = "http://libvirt.org" |
| 3 | LICENSE = "LGPLv2.1+" | 3 | LICENSE = "LGPLv2.1+" |
| 4 | LICENSE_${PN}-ptest = "GPLv2+ & LGPLv2.1" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 5 | file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c" | 6 | file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c" |
| 6 | SECTION = "console/tools" | 7 | SECTION = "console/tools" |
| @@ -13,6 +14,8 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux | |||
| 13 | # | 14 | # |
| 14 | RDEPENDS_${PN} = "gettext-runtime" | 15 | RDEPENDS_${PN} = "gettext-runtime" |
| 15 | 16 | ||
| 17 | RDEPENDS_${PN}-ptest += "make gawk" | ||
| 18 | |||
| 16 | RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd" | 19 | RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd" |
| 17 | RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode" | 20 | RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode" |
| 18 | RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode" | 21 | RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode" |
| @@ -22,13 +25,16 @@ RCONFLICTS_${PN}_libvirtd = "connman" | |||
| 22 | 25 | ||
| 23 | SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \ | 26 | SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \ |
| 24 | file://tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch \ | 27 | file://tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch \ |
| 25 | file://libvirtd.sh \ | 28 | file://libvirtd.sh \ |
| 26 | file://libvirtd.conf" | 29 | file://libvirtd.conf \ |
| 30 | file://runptest.patch \ | ||
| 31 | file://run-ptest \ | ||
| 32 | " | ||
| 27 | 33 | ||
| 28 | SRC_URI[libvirt.md5sum] = "cce374220f67895afb6331bd2ddedbfd" | 34 | SRC_URI[libvirt.md5sum] = "cce374220f67895afb6331bd2ddedbfd" |
| 29 | SRC_URI[libvirt.sha256sum] = "bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898" | 35 | SRC_URI[libvirt.sha256sum] = "bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898" |
| 30 | 36 | ||
| 31 | inherit autotools gettext update-rc.d pkgconfig | 37 | inherit autotools gettext update-rc.d pkgconfig ptest |
| 32 | 38 | ||
| 33 | CACHED_CONFIGUREVARS += "\ | 39 | CACHED_CONFIGUREVARS += "\ |
| 34 | ac_cv_path_XMLLINT=/usr/bin/xmllint \ | 40 | ac_cv_path_XMLLINT=/usr/bin/xmllint \ |
| @@ -105,6 +111,23 @@ INITSCRIPT_PACKAGES = "${PN}-libvirtd" | |||
| 105 | INITSCRIPT_NAME_${PN}-libvirtd = "libvirtd" | 111 | INITSCRIPT_NAME_${PN}-libvirtd = "libvirtd" |
| 106 | INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" | 112 | INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" |
| 107 | 113 | ||
| 114 | PRIVATE_LIBS_${PN}-ptest = " \ | ||
| 115 | libvirt-lxc.so.0 \ | ||
| 116 | libvirt.so.0 \ | ||
| 117 | libvirt-qemu.so.0 \ | ||
| 118 | lockd.so \ | ||
| 119 | libvirt_driver_secret.so \ | ||
| 120 | libvirt_driver_nodedev.so \ | ||
| 121 | libvirt_driver_vbox.so \ | ||
| 122 | libvirt_driver_interface.so \ | ||
| 123 | libvirt_driver_uml.so \ | ||
| 124 | libvirt_driver_network.so \ | ||
| 125 | libvirt_driver_nwfilter.so \ | ||
| 126 | libvirt_driver_qemu.so \ | ||
| 127 | libvirt_driver_storage.so \ | ||
| 128 | libvirt_driver_lxc.so \ | ||
| 129 | " | ||
| 130 | |||
| 108 | # xen-minimal config | 131 | # xen-minimal config |
| 109 | #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd" | 132 | #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd" |
| 110 | 133 | ||
| @@ -176,6 +199,16 @@ do_install_append() { | |||
| 176 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt | 199 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt |
| 177 | } | 200 | } |
| 178 | 201 | ||
| 202 | EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH}" | ||
| 203 | |||
| 204 | do_compile_ptest() { | ||
| 205 | oe_runmake -C tests buildtest-TESTS | ||
| 206 | } | ||
| 207 | |||
| 208 | do_install_ptest() { | ||
| 209 | oe_runmake -C tests install-ptest | ||
| 210 | } | ||
| 211 | |||
| 179 | pkg_postinst_libvirt() { | 212 | pkg_postinst_libvirt() { |
| 180 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then | 213 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then |
| 181 | /etc/init.d/populate-volatile.sh update | 214 | /etc/init.d/populate-volatile.sh update |
