Patchwork [2/2] bluez5: Rename tests package to testtools

login
register
mail settings
Submitter Mihai Prica
Date Sept. 6, 2013, 2:49 p.m.
Message ID <f8bc81b6558ad3b4e6c81403916ca1bfa42b236b.1378477619.git.mihai.prica@intel.com>
Download mbox | patch
Permalink /patch/57561/
State Accepted
Commit ea8494350fc8affa8c8a890e4ba1ba4b70a4ff56
Headers show

Comments

Mihai Prica - Sept. 6, 2013, 2:49 p.m.
Bluez5 ships some tools that can be used to test its
functionality.

The installation can be tested using "make check" and
this should be included in a ptest package.

[YB #5028]

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
---
 meta/recipes-connectivity/bluez5/bluez5.inc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Saul Wold - Sept. 6, 2013, 6:14 p.m.
On 09/06/2013 07:49 AM, Mihai Prica wrote:
> Bluez5 ships some tools that can be used to test its
> functionality.
>
> The installation can be tested using "make check" and
> this should be included in a ptest package.
>
> [YB #5028]
>
> Signed-off-by: Mihai Prica <mihai.prica@intel.com>
> ---
>   meta/recipes-connectivity/bluez5/bluez5.inc |    6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
> index e2b7169..e5cb9e8 100644
> --- a/meta/recipes-connectivity/bluez5/bluez5.inc
> +++ b/meta/recipes-connectivity/bluez5/bluez5.inc
> @@ -55,7 +55,7 @@ do_install_append() {
>   }
>
>   ALLOW_EMPTY_libasound-module-bluez = "1"
> -PACKAGES =+ "libasound-module-bluez ${PN}-test ${PN}-obex"
> +PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
>
>   FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
>   FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
> @@ -70,7 +70,7 @@ FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \
>                      "
>   SYSTEMD_SERVICE_${PN}-obex = "obex.service"
>
> -FILES_${PN}-test = "${libdir}/bluez/test/*"
> +FILES_${PN}-testtools = "${libdir}/bluez/test/*"
>
Are all the files located in test related to the testtools or are some 
of them related to ptest?

Sau!

>   FILES_${PN}-dbg += "\
>     ${libdir}/${BPN}/bluetooth/.debug \
> @@ -79,4 +79,6 @@ FILES_${PN}-dbg += "\
>     */udev/.debug \
>     "
>
> +RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject"
> +
>   SYSTEMD_SERVICE_${PN} = "bluetooth.service"
>

Patch

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index e2b7169..e5cb9e8 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -55,7 +55,7 @@  do_install_append() {
 }
 
 ALLOW_EMPTY_libasound-module-bluez = "1"
-PACKAGES =+ "libasound-module-bluez ${PN}-test ${PN}-obex"
+PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
 
 FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
 FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
@@ -70,7 +70,7 @@  FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \
                    "
 SYSTEMD_SERVICE_${PN}-obex = "obex.service"
 
-FILES_${PN}-test = "${libdir}/bluez/test/*"
+FILES_${PN}-testtools = "${libdir}/bluez/test/*"
 
 FILES_${PN}-dbg += "\
   ${libdir}/${BPN}/bluetooth/.debug \
@@ -79,4 +79,6 @@  FILES_${PN}-dbg += "\
   */udev/.debug \
   "
 
+RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject"
+
 SYSTEMD_SERVICE_${PN} = "bluetooth.service"