summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktest_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* AutoTest: Further optimize TestCodeParser::scanForTests()Jarek Kobus2023-04-251-1/+1
| | | | | | | | | | | | | | | When loading a Qt project, after the Scanning For Tests finished, the scanForTests() blocks the main thread for about 3.5 seconds on the calls to parser->init(). Refactor the code so that it operates on QSet<FilePath> instead of QList<FilePaths>. This patch constraints the freeze to about 40 ms. Change-Id: I219b3e2abf2b7e5166eec08d83f4cdcb8e4a8098 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* AutoTest: Use Utils::FilePath for files and directoriesChristian Stenger2021-05-271-1/+4
| | | | | | | | Still some missing bits as some QString members had different meanings depending on their context. Change-Id: Ib48eab54498974a26bbd5123cbffeefee5f7e79c Reviewed-by: hjk <hjk@qt.io>
* Move Id from Core to UtilsEike Ziller2020-06-181-2/+0
| | | | | | | | | | | | | | | | And add a compatibility wrapper for Core::Id, so we don't have to rename all occurrences from Core::Id to Utils::Id. This allows us to use Id also in Utils, which makes it possible to e.g. move Core::InfoBar to Utils without work arounds. Change-Id: I5555d05b4e52f09d501dbfe5d91252a982a97c61 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* AutoTest: Use ITestFramework * instead of its id in some caseshjk2020-03-161-1/+4
| | | | | Change-Id: Ic327e31185247b6479c78af8bf8156f44bb4bdfb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Avoid concurrent access on static function membersChristian Stenger2016-11-081-43/+6
| | | | | | | | | | | First thread using the helper function initialized the list object another thread accesses it afterwards. This could be problematic under some circumstances. Issue was detected using Helgrind. Change-Id: I1520b1f7364742cb02630af1fd9d98960dec1f41 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix parsing for QuickTestsChristian Stenger2016-07-151-0/+34
| | | | | | | | | | | | | | | | If the scan for quick tests was triggered just by a change of a qml file (including indexing by the respective modelmanager) we might find tests that won't be able to execute. If we have already found quick tests we know their respective project files. If we cannot find the files to be scanned inside the already found ignore scan requests for such files. This patch is kind of a continuation of b570ee1b801da0906fdba9e0218e681b003a9857 (Fix initial parsing when loading session) Change-Id: Ic1228641f60abf127134acbd4232a0ddd30ef159 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Move test framework related code...Christian Stenger2016-06-011-0/+44
...into files and respective sub folders. Change-Id: Ic80d693bd73993a6e74b6d422349e47276e8cb6e Reviewed-by: David Schulz <david.schulz@theqtcompany.com>