Bug 300000 - Rocs fails tests
Summary: Rocs fails tests
Status: RESOLVED FIXED
Alias: None
Product: Rocs
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Cord-Landwehr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 13:40 UTC by stupor_scurvy343
Modified: 2012-05-23 21:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
strace output from ctest (118.43 KB, text/plain)
2012-05-15 12:09 UTC, stupor_scurvy343
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stupor_scurvy343 2012-05-14 13:40:40 UTC
5 of 6 tests fail.

Reproducible: Always

Steps to Reproduce:
1. cmake . -DKDE4_BUILD_TESTS=true
2. make -j5
3. ctest
Actual Results:  
    Start 1: TestGraphStructure
1/6 Test #1: TestGraphStructure ...............***Exception: Other  1.08 sec
    Start 2: TestDataStructure
2/6 Test #2: TestDataStructure ................***Exception: SegFault  1.09 sec
    Start 3: TestDynamicProperties
3/6 Test #3: TestDynamicProperties ............***Failed    1.09 sec
    Start 4: TestIncludeManager
4/6 Test #4: TestIncludeManager ...............   Passed    0.06 sec
    Start 5: TestLoadSave
5/6 Test #5: TestLoadSave .....................***Exception: SegFault  1.09 sec
    Start 6: TestPlugins
6/6 Test #6: TestPlugins ......................***Failed    1.08 sec


Expected Results:  
All tests pass.
Comment 1 Andreas Cord-Landwehr 2012-05-14 13:56:05 UTC
It seems that the tests do not find Rocs' data structure plugins.
Please set the KDEDIRS variable to the target install directory for Rocs and run kbuildsycoca4. Then test again. Kbuildsycoca4 must contain at least the following lines (otherwise the mandatory plugins are not found):

kbuildsycoca4(3177) KBuildSycoca::createEntry: modified: "rocs_GraphStructure.desktop" in services
kbuildsycoca4(3177) KBuildSycoca::createEntry: modified: "rocs_ListStructure.desktop" in services

You can set the KDEDIR and run kbuildsycoca4 with the following script:
---- <snip> ----
#!/bin/bash
export KDEDIRS=$KDEDIRS:<path-to-rocs-install>l
kbuildsycoca4
---- <snap> ----

Greetings,
   Andreas
Comment 2 stupor_scurvy343 2012-05-15 12:09:27 UTC
Created attachment 71105 [details]
strace output from ctest

(In reply to comment #1)
> It seems that the tests do not find Rocs' data structure plugins.
I agree, however strace (output attached) seems to indicate that the plugins are indeed found.

> Please set the KDEDIRS variable to the target install directory for Rocs and
> run kbuildsycoca4. Then test again. Kbuildsycoca4 must contain at least the
> following lines (otherwise the mandatory plugins are not found):
> 
> kbuildsycoca4(3177) KBuildSycoca::createEntry: modified:
> "rocs_GraphStructure.desktop" in services
> kbuildsycoca4(3177) KBuildSycoca::createEntry: modified:
> "rocs_ListStructure.desktop" in services
strace confirms that these files are being read, however I do not receive these messages.
Comment 3 Andreas Cord-Landwehr 2012-05-15 12:34:55 UTC
That is an indicator that the corresponding desktop files are still not found. You actually need to get rocs_GraphStructure.desktop and others found in kbuildsycoca4 output or in strace output.

Please try the following
1. make
2. make install
3. export KDEDIRS=$KDEDIRS:<your path to install directory>
4. kbuildsycoca4

For step 3 ensure that that path contains the subdirectory "share/kde4/services/" containing the desktop files.

Greetings,
   Andreas

PS: btw. I assume that you are using GIT-master.
Comment 4 stupor_scurvy343 2012-05-15 17:25:30 UTC
That works great, thank-you!

Is it possible to make this this setup automatic, so ctest 'just works'?
Comment 5 Andreas Cord-Landwehr 2012-05-15 19:56:41 UTC
Not sure if it will be possible for KDE SC 4.9, but planned for 4.10.

Greetings,
   Andreas
Comment 6 Nicolás Alvarez 2012-05-23 21:59:12 UTC
Congratulations for the bug number!