Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376909 - kde-base/rocs-4.7.3 fails tests
Summary: kde-base/rocs-4.7.3 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard: fixed in 4.8.80
Keywords: InOverlay
Depends on:
Blocks: kde4tests
  Show dependency tree
 
Reported: 2011-07-29 11:52 UTC by Theo Chatzimichos (RETIRED)
Modified: 2012-07-13 20:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
full test log (LastTest.log,6.97 KB, text/plain)
2011-08-20 20:54 UTC, Andreas K. Hüttel
Details
rocs-testfix.patch (rocs-testfix.patch,24.42 KB, patch)
2012-03-28 03:23 UTC, Chris Reffett (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-07-29 11:52:34 UTC
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/rocs-4.7.0/work/rocs-4.7.0_build"
Test project /var/tmp/portage/kde-base/rocs-4.7.0/work/rocs-4.7.0_build
    Start 1: TestGraphs
1/4 Test #1: TestGraphs .......................***Exception: Other  1.15 sec
    Start 2: TestDynamicProperties
2/4 Test #2: TestDynamicProperties ............***Exception: Other  0.06 sec
    Start 3: TestIncludeManager
3/4 Test #3: TestIncludeManager ...............***Failed    0.02 sec
    Start 4: TestDataStructure
4/4 Test #4: TestDataStructure ................***Exception: Other  0.06 sec

0% tests passed, 4 tests failed out of 4

Total Test time (real) =   1.76 sec

The following tests FAILED:
          1 - TestGraphs (OTHER_FAULT)
          2 - TestDynamicProperties (OTHER_FAULT)
          3 - TestIncludeManager (Failed)
          4 - TestDataStructure (OTHER_FAULT)
Errors while running CTest
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-08-20 20:54:15 UTC
Created attachment 284065 [details]
full test log

Test log looks quite messy, i.e. tests are likely unmaintained. I particularly like this part:

   Loc: [/var/tmp/portage/kde-base/rocs-4.7.0/work/rocs-4.7.0/src/Tests/testGraph.cpp(341)]
FAIL!  : GraphTests::testQtScript() #########    Need to reimplemt this test case! ########

Restricted.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-12-10 21:53:25 UTC
Same in 4.7.3
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-01-15 16:47:46 UTC
gentoo64 rocs # ebuild rocs-4.7.3.ebuild clean test

Test project /mnt/gen2/tmpdir/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3_build
    Start 1: TestGraphs
1/4 Test #1: TestGraphs .......................***Failed    0.19 sec
    Start 2: TestDynamicProperties
2/4 Test #2: TestDynamicProperties ............***Exception: Other  0.08 sec
    Start 3: TestIncludeManager
3/4 Test #3: TestIncludeManager ...............***Failed    0.02 sec
    Start 4: TestDataStructure
4/4 Test #4: TestDataStructure ................***Exception: Other  0.06 sec

"
********* Start testing of GraphTests *********
Config: Using QTest library 4.7.4, Qt 4.7.4
QFile::remove: Empty or null file name
klauncher(24847) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
"

well what can I say?

"
PASS   : GraphTests::initTestCase()
PASS   : GraphTests::createSimpleGraph()
QDEBUG : GraphTests::manipulateSimpleGraph() QVariant(QString, "i")
FAIL!  : GraphTests::manipulateSimpleGraph() '_graphDocument->dataStructures().at(0)->data("b")->in_pointers().size() $
   Loc: [/mnt/gen2/tmpdir/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Tests/testGraph.cpp(151)]
"

Without establishing a dbus session first thing, I for one am not prepared to predict what could have been a result.

"
2/4 Testing: TestDynamicProperties
2/4 Test: TestDynamicProperties
"

"
klauncher(24858) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
"

eeeh,

"
PASS   : TestDynamicProperties::addNodeDynamicProperty()
FAIL!  : TestDynamicProperties::addEdgeDynamicProperty() 'e != 0' returned FALSE. (Pointer not created!)
   Loc: [/mnt/gen2/tmpdir/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Tests/TestDynamicProperties.cpp(60)]
"
and so forth.

Only test 3 does NOT attempt to plug into or invoke a dbus session.
Changing to /mnt/gen2/tmpdir/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3_build
and running ctest or make test yields the same disaster.

Perhaps consider contacting upstream and suggest don't bother.
I suspect but would not be able to prove that some entries in the data files are wrong, but 1st things first.  One fault at a time.
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2012-03-27 09:51:41 UTC
Tests still fail in 4.8.1

>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/rocs-4.8.1/work/rocs-4.8.1_build"
Test project /var/tmp/portage/kde-base/rocs-4.8.1/work/rocs-4.8.1_build
    Start 1: TestGraphs
1/4 Test #1: TestGraphs .......................***Exception: Other  1.51 sec
    Start 2: TestDynamicProperties
2/4 Test #2: TestDynamicProperties ............***Exception: Other  1.68 sec
    Start 3: TestIncludeManager
3/4 Test #3: TestIncludeManager ...............***Failed    0.40 sec
    Start 4: TestDataStructure
4/4 Test #4: TestDataStructure ................***Exception: Other  1.18 sec

0% tests passed, 4 tests failed out of 4

Total Test time (real) =   4.89 sec

The following tests FAILED:
          1 - TestGraphs (OTHER_FAULT)
          2 - TestDynamicProperties (OTHER_FAULT)
          3 - TestIncludeManager (Failed)
          4 - TestDataStructure (OTHER_FAULT)
Errors while running CTest
Comment 5 Chris Reffett (RETIRED) gentoo-dev Security 2012-03-28 03:23:15 UTC
Created attachment 306919 [details, diff]
rocs-testfix.patch

I've been poking at this further, and, well, I think the guy writing the tests wasn't paying attention or something. The tests are usable, but large sections of the code seem to have been copy-pasted without editing to fit, resulting in most of the errors. I've managed to patch the code to make tests 1 and 3 work fine, but the "Exception: Other" errors (which are segfaults) I'm still working on because they seem to be caused by a fundamental mis-handling of certain pointer types, and I'm working my way through the codebase to understand it. Oh, and Andreas: I fixed your favorite error by making that a QSKIP rather than a QFAIL. I've attached my work so far, though I was being a tad obsessive-compulsive in fixing a bunch of trailing spaces that don't really affect the code.
Comment 6 Michael Palimaka (kensington) gentoo-dev 2012-05-15 16:35:20 UTC
With a combination of upstream and ebuild changes, all but one tests now pass in -9999 (the one failure dbus-related).

Test project /var/tmp/portage/kde-base/rocs-9999/work/rocs-9999_build
    Start 1: TestGraphStructure
1/6 Test #1: TestGraphStructure ...............   Passed    0.18 sec
    Start 2: TestDataStructure
2/6 Test #2: TestDataStructure ................   Passed    0.17 sec
    Start 3: TestDynamicProperties
3/6 Test #3: TestDynamicProperties ............***Exception: Other  0.17 sec
    Start 4: TestIncludeManager
4/6 Test #4: TestIncludeManager ...............   Passed    0.03 sec
    Start 5: TestLoadSave
5/6 Test #5: TestLoadSave .....................   Passed    0.17 sec
    Start 6: TestPlugins
6/6 Test #6: TestPlugins ......................   Passed    0.16 sec
Comment 7 Michael Palimaka (kensington) gentoo-dev 2012-05-15 20:04:17 UTC
For the record, upstream has 'just works' tests planned for 4.10.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2012-05-20 18:25:42 UTC
Tests are working normally and I've therefore unrestricted them in -9999.
Comment 9 Johannes Huber (RETIRED) gentoo-dev 2012-07-13 20:04:13 UTC
Re-enabled tests will be moved to tree with 4.9.0

Test project /var/tmp/portage/kde-base/rocs-4.8.97/work/rocs-4.8.97_build
    Start 1: TestLinkedListStructure
1/8 Test #1: TestLinkedListStructure ..........   Passed    0.42 sec
    Start 2: TestGraphStructure
2/8 Test #2: TestGraphStructure ...............   Passed    0.20 sec
    Start 3: TestDataStructure
3/8 Test #3: TestDataStructure ................   Passed    0.18 sec
    Start 4: TestDynamicProperties
4/8 Test #4: TestDynamicProperties ............   Passed    0.17 sec
    Start 5: TestIncludeManager
5/8 Test #5: TestIncludeManager ...............   Passed    0.05 sec
    Start 6: TestLoadSave
6/8 Test #6: TestLoadSave .....................   Passed    0.15 sec
    Start 7: TestPlugins
7/8 Test #7: TestPlugins ......................   Passed    0.14 sec
    Start 8: TestScriptEngine
8/8 Test #8: TestScriptEngine .................   Passed    0.20 sec

100% tests passed, 0 tests failed out of 8

Total Test time (real) =   1.53 sec