Bug 459321 - Tests fail when building statically
Summary: Tests fail when building statically
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kitemmodels
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-18 11:45 UTC by Dawid Wróbel
Modified: 2022-10-18 10:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Wróbel 2022-09-18 11:45:42 UTC
SUMMARY
When building statically, the some of the tests fail. See https://invent.kde.org/frameworks/kitemmodels/-/jobs/483666 for reference. 

STEPS TO REPRODUCE
1. Build with -DBUILD_SHARED_LIBS=off
2. run tests

OBSERVED RESULT
Tests fail

EXPECTED RESULT
Should pass successfully.
Comment 1 Dawid Wróbel 2022-09-18 14:55:15 UTC
Not that the  "qt.qpa.screen: Failed to parse EDID data for output "screen" edid data:  """ error is not specific to kitemmodels — other frameworks which use qt.qpa.screen in their tests also fail when built statically.
Comment 2 Dawid Wróbel 2022-09-18 16:27:21 UTC
(In reply to Dawid Wróbel from comment #1)
> Not that the  "qt.qpa.screen: Failed to parse EDID data for output "screen"
> edid data:  """ error is not specific to kitemmodels — other frameworks
> which use qt.qpa.screen in their tests also fail when built statically.

Actually, I just realized that that's not even a bug, it's just appears in the log because of the messages are verbose for any failed test.

The underlying issue, i.e. tests failing, still stands, though.
Comment 3 Bug Janitor Service 2022-10-16 18:55:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kitemmodels/-/merge_requests/47
Comment 4 Alexander Lohnau 2022-10-18 10:14:26 UTC
Git commit e8dce5e5eb33472196d3bd6a884f13ae90f70069 by Alexander Lohnau.
Committed on 16/10/2022 at 18:54.
Pushed by alex into branch 'master'.

Fix ksortfilterproxymodel_qml test for static builds

We need to import the plugin in order for Qt to find the QML module.

M  +4    -0    autotests/CMakeLists.txt
M  +5    -0    autotests/ksortfilterproxymodel_qml.cpp

https://invent.kde.org/frameworks/kitemmodels/commit/e8dce5e5eb33472196d3bd6a884f13ae90f70069