Running Tests

Matthew Suozzo ms4249 at columbia.edu
Wed Apr 15 18:20:16 UTC 2015


Thanks for the response.

Solved. Was a permissions issue with the test executables. Ran them as su
so the normal user's environment (where QT_PLUGIN_PATH was) didn't get
included.

There was also an issue where the sessions of failed test runs caused
subsequent runs to fail trying to restore from the existing default. Easy
fix by removing the offending sessions but this might not be desired
behavior.

Thanks again for the help.
--Matthew Suozzo

On Wed, Apr 15, 2015 at 3:54 AM, Kevin Funk <kfunk at kde.org> wrote:

> On Tuesday, April 14, 2015 20:58:48 Matthew Suozzo wrote:
> > Hello,
> >
> > I'm a student working on KDevelop under the supervision of Alex Dymo. I
> > have been working on the kdev-clang plugin in KDevelop 5 on his
> suggestion
> > and have been having trouble running tests.
> >
> > PROBLEM (I think):
> >
> > Test executables (QTests) do not load QT_PLUGIN_PATH
> >
> > INFO:
> >
> > I believe I've isolated the problem to QTest not loading QT_PLUGIN_PATH
> (or
> > any other bash environment variables) and consequently failing to locate
> > and load plugins. As one might imagine, this causes many tests to fail.
> > Would anyone happen to know of a misconfiguration that could cause this?
> >
> > To clarify, KDevelop itself works fine. The environment variables
> correctly
> > appear in QProcessEnvironment::systemEnvironment when in the actual
> > KDevelop IDE but not in the kdev-clang or kdevplatform tests.
>
> That sounds odd. If KDevelop works fine, then the tests should find
> plugins just
> fine, too.
>
> Please double-check to have everything from:
>   https://community.kde.org/Frameworks/Building#Runtime_setup
>
> If it still doesn't work, try to post some debug output from a test run.
>
> Greets,
> Kevin
>
> > ENVIRONMENT:
> >
> > kdevelop, kdevplatform, and kdev-clang at master
> > Kubuntu 14.10 (plasma 5) 64-bit
> > Image run in VirtualBox
> >
> >
> > Any help would be greatly appreciated. I'm unfamiliar with this process
> and
> > don't know what information I should provide to help this process along.
> > Any assistance in framing or clarifying my problem would also be
> > appreciated.
> >
> > --Matthew Suozzo
>
> --
> Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150415/0c58d3ec/attachment-0001.html>


More information about the KDevelop-devel mailing list