<div dir="ltr">So the problem is that dbus-test has a libdbus-1.so.3 and if it is built after dbus then it wins the race for &quot;who provides libdbus.so&quot;.  Obviously this isn&#39;t right, I&#39;m testing a fix now using PRIVATE_LIBS and want to file a bug to fix this behviour in 2.6.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 February 2018 at 14:54, Maxin B. John <span dir="ltr">&lt;<a href="mailto:maxin.john@intel.com" target="_blank">maxin.john@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">Hi,<br>
<div><div class="h5"><br>
On Tue, Feb 27, 2018 at 12:19:26PM -0800, Juro Bystricky wrote:<br>
&gt; The result of running dbus-test-ptest was a series of<br>
&gt; various segfaults, interpreted as FAILs. This was a direct consequence<br>
&gt; of the test suite loading the installed shared library libdbus-1.so, not the<br>
&gt; one built along the test suite.<br>
&gt;<br>
&gt; While we normally want to test against the installed libraries, we cannot<br>
&gt; do this in this case as the test suite expects a library that is configured/compiled<br>
&gt; differently from the installed one. We could configure the installed library<br>
&gt; identically as the test suite expects, (and there should be no issues), however<br>
&gt; this is not desirable for performance reasons.<br>
&gt;<br>
&gt; Hence we need to use the library built along with the test suite.<br>
&gt; Of course, running the test suite against its own library does not<br>
&gt; test the installed library, however they are both built from the same<br>
&gt; sources so that can give us some kind of indication.<br>
&gt;<br>
&gt; The following changes were made:<br>
&gt;<br>
&gt; 1. Configure the test library as close as possible to the installed one,<br>
&gt;    with some additional configuration options that are needed for testing.<br>
&gt;    (Use <a href="http://dbus_1.12.2.bb" rel="noreferrer" target="_blank">dbus_1.12.2.bb</a> recipe as a template)<br>
&gt; 2. Include the shared libraries in the package, use LD_LIBRARY_PATH during<br>
&gt;    testing to load them instead of the installed ones.<br>
&gt; 3. Add a few more tests. (There are still some additional tests built that<br>
&gt;    are not used, but they would have to be special-cased).<br>
&gt; 4. When evaluating the test results, differentiate between &quot;FAIL&quot; and &quot;SKIP&quot;<br>
&gt;<br>
&gt; [YOCTO #10841]<br>
&gt; [YOCTO #12277]<br>
&gt;<br>
&gt; Signed-off-by: Juro Bystricky &lt;<a href="mailto:juro.bystricky@intel.com">juro.bystricky@intel.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/recipes-core/dbus/<a href="http://dbus-test_1.12.2.bb" rel="noreferrer" target="_blank">dbus-<wbr>test_1.12.2.bb</a> | 30 ++++++++++++++++++++++++++----<br>
&gt;  meta/recipes-core/dbus/dbus/<wbr>run-ptest      | 20 +++++++++++++++++---<br>
&gt;  2 files changed, 43 insertions(+), 7 deletions(-)<br>
<br>
</div></div>Probably due to this change, dbus ptest related sanity tests fails here:<br>
<br>
<a href="https://autobuilder.yocto.io/builders/nightly-deb-non-deb/builds/813/steps/Running%20Sanity%20Tests/logs/stdio" rel="noreferrer" target="_blank">https://autobuilder.yocto.io/<wbr>builders/nightly-deb-non-deb/<wbr>builds/813/steps/Running%<wbr>20Sanity%20Tests/logs/stdio</a><br>
<br>
<br>
NOTE:  ... ok<br>
| NOTE: ==============================<wbr>==============================<wbr>==========<br>
| NOTE: FAIL: test_ptestrunner (ptest.PtestRunnerTest)<br>
| NOTE: ------------------------------<wbr>------------------------------<wbr>----------<br>
| NOTE: Traceback (most recent call last):<br>
|   File &quot;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-deb-non-deb/build/<wbr>meta/lib/oeqa/core/decorator/_<wbr>_init__.py&quot;, line 32, in wrapped_f<br>
|     return func(*args, **kwargs)<br>
|   File &quot;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-deb-non-deb/build/<wbr>meta/lib/oeqa/core/decorator/_<wbr>_init__.py&quot;, line 32, in wrapped_f<br>
|     return func(*args, **kwargs)<br>
|   File &quot;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-deb-non-deb/build/<wbr>meta/lib/oeqa/core/decorator/_<wbr>_init__.py&quot;, line 32, in wrapped_f<br>
|     return func(*args, **kwargs)<br>
|   File &quot;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-deb-non-deb/build/<wbr>meta/lib/oeqa/runtime/cases/<wbr>ptest.py&quot;, line 93, in test_ptestrunner<br>
|     self.assertFalse(failed_tests, msg = &quot;Failed ptests: %s&quot; %(str(failed_tests)))<br>
| AssertionError: {&#39;dbus-test&#39;: [&#39; test/test-bus&#39;, &#39; test/test-dbus-daemon&#39;, &#39; test/test-names&#39;]} is not false : Failed ptests: {&#39;dbus-test&#39;: [&#39; test/test-bus&#39;, &#39; test/test-dbus-daemon&#39;, &#39; test/test-names&#39;]}<br>
<br>
<br>
Best Regards,<br>
Maxin<br>
<div class="HOEnZb"><div class="h5">--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></div></blockquote></div><br></div>