Commit Graph

10 Commits

Author SHA1 Message Date
Tobias Hunger
7bdf007c86 Adapt to removal of ToolChain::type()
QtC change: e6d1141e1e

Change-Id: I50c0861dc6a864e54170b21de94a4106921e5a71
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-07-14 17:41:46 +03:00
Nikolai Kosjar
3529df2e6e Fix license header
Change-Id: I017092613cdec7c00736442c10ca80b3c74f0189
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-06-26 10:24:06 +03:00
Nikolai Kosjar
bd3195ec6b Adapt to upstream API change in AnalyzerManager
Change-Id: Ibc1748db410d99d2b1d58ca3af535c629b0593f0
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
2015-06-23 10:54:24 +03:00
Nikolai Kosjar
fef80b8fe6 Tests: Minor refactorings and TemporaryCopiedDir check
Change-Id: Ia509e2d7229fadca06791f537c462924c32b8add
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-05-18 14:59:57 +03:00
Christian Kandeler
59e01e2a89 Unit tests: Explicitly check for success from runner.
We will otherwise miss runner failures for any file that does not
contribute to the diagnostics count.
Note: The tool can also fail during the building stage, but in this case
we will get notified by the signal spy timing out.

Change-Id: Ia9aa797d658b1752e3da6e08a652ee55868955ba
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-05-05 11:42:45 +03:00
Nikolai Kosjar
11a7e71687 Add qt-widgets-app unit test
Change-Id: I502075f79d4abf6bd5c0d2080b2f543116499ace
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-04-16 11:59:36 +03:00
Nikolai Kosjar
f8dc9c4418 Fix typo in unit tests
Change-Id: I2e44d2174878211e5dfabc39c80488e5a1848943
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-04-13 19:05:55 +03:00
Daniel Teske
4495ab283c Fix compile after Analyzer changes
Change-Id: I3870488ff2052465508c23d429dcb2d25a249857
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
2015-02-19 15:53:25 +02:00
André Pönitz
93685b97ef Compile fix after recent Analyzer core changes
Change-Id: I100e75c526ff8609849526c3317a6d0a1658176b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-02-19 10:14:28 +02:00
Christian Kandeler
2946364ce6 Add unit tests.
These test the complete workflow as the user experiences it when
clicking "Start".
Intended usage:
    (1) Run sdktool to set up a kit with the toolchain you want
        to test against (using a temporary directory).
        The tests assume exactly one Kit to be present.
    (2) Start Creator with a matching settings path and
        "-load ClangStaticAnalyzer -test ClangStaticAnalyzer".
    (3) Repeat until all toolchains have been tested.
The initial implementation tests one trivial source file
with both qbs and qmake.

Change-Id: I810f23e2990a789a4dd9f1dd16335fbcf5c5f39f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-02-09 16:48:26 +02:00