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