<div class="gmail_quote">On Fri, Aug 17, 2012 at 4:44 PM, Radu Moisan <span dir="ltr">&lt;<a href="mailto:radu.moisan@intel.com" target="_blank">radu.moisan@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <br>
    <div>On 08/17/2012 04:02 PM, Andrei Gherzan
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>While compiling dbus with tests, dbus and dbus-glib are needed.
To compile dbus-glib, dbus is needed (obviously). The only solution
(to compile dbus with tests) is to create a new recipe where to
compile dbus with --enable-tests --enable-embedded-tests, skip write
to sysroot (noexec) and just package dbus-tests.
A bash wrapper to run all tests is included.

Signed-off-by: Andrei Gherzan <a href="mailto:andrei.gherzan@windriver.com" target="_blank">&lt;andrei.gherzan@windriver.com&gt;</a>
---
 meta/recipes-core/dbus/dbus-tests/run_test.sh |   22 +++++++++
 meta/recipes-core/dbus/<a href="http://dbus-tests_1.4.20.bb" target="_blank">dbus-tests_1.4.20.bb</a>   |   64 +++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 0 deletions(-)
 create mode 100755 meta/recipes-core/dbus/dbus-tests/run_test.sh
 create mode 100644 meta/recipes-core/dbus/<a href="http://dbus-tests_1.4.20.bb" target="_blank">dbus-tests_1.4.20.bb</a>

diff --git a/meta/recipes-core/dbus/dbus-tests/run_test.sh b/meta/recipes-core/dbus/dbus-tests/run_test.sh
new file mode 100755
index 0000000..90abad2
--- /dev/null
+++ b/meta/recipes-core/dbus/dbus-tests/run_test.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Tests location
+export DBUS_TEST_HOMEDIR=/usr/lib/dbus-tests
+# Tests data location
+export DBUS_TEST_DATA=${DBUS_TEST_HOMEDIR}/test/data
+
+TESTS=&quot; \
+        bus/bus-test \
+        bus/bus-test-system \
+        dbus/dbus-test \
+        bus/bus-test-launch-helper \
+        test/shell-test \
+        test/test-corrupt \
+        test/test-dbus-daemon \
+        test/test-loopback \
+        test/test-marshal \
+        test/test-relay \
+        test/test-syslog \
+        test/test-refs&quot;
+
+${DBUS_TEST_HOMEDIR}/test/dbus-test-runner ${DBUS_TEST_HOMEDIR} ${TESTS}
diff --git a/meta/recipes-core/dbus/<a href="http://dbus-tests_1.4.20.bb" target="_blank">dbus-tests_1.4.20.bb</a> b/meta/recipes-core/dbus/<a href="http://dbus-tests_1.4.20.bb" target="_blank">dbus-tests_1.4.20.bb</a>
new file mode 100644
index 0000000..0e7d272
--- /dev/null
+++ b/meta/recipes-core/dbus/<a href="http://dbus-tests_1.4.20.bb" target="_blank">dbus-tests_1.4.20.bb</a>
@@ -0,0 +1,64 @@
+FILESEXTRAPATHS_append := &quot;${THISDIR}/dbus-${PV}&quot;
+include recipes-core/dbus/dbus.inc
+
+PR = &quot;${INC_PR}.0&quot;
+
+SRC_URI[md5sum] = &quot;79eca2f2c1894ac347acce128314428b&quot;
+SRC_URI[sha256sum] = &quot;103bdcd261a13140730b5fa69f56a98ab5c89ba3f0116ea62fcfd639520d5aaf&quot;
+
+DEPENDS += &quot;python-pygobject-native python-dbus-native dbus-glib dbus&quot;
+RDEPENDS_${PN} = &quot;dbus-x11&quot;</pre>
    </blockquote></div></div>
    wouldn&#39;t <small><font face="Droid Sans Mono">RDEPENDS_${PN} =
        &quot;dbus&quot;</font></small> be a better choice since <small><font face="DejaVu Sans Mono">dbus-x11</font></small> is <small>RPROVIDED</small>
    only for compatibility reasons? <br><span class="HOEnZb"><font color="#888888">
    <br></font></span></div></blockquote><div> </div><div>Yes. Forgot about that. Thanks.</div><div>ag</div></div>