summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * SquishTests: More Python3 adaptionChristian Stenger2023-03-293-3/+3
| | | | | | | | | | Change-Id: I95488e2b5661c8790cb73246947af58de2a1899b Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * SquishTests: More expected build issuesChristian Stenger2023-03-291-2/+16
| | | | | | | | | | | | | | | | | | | | Expect build issues if the kit does not support the minimum cpp standard needed by the project. Additionally exclude the kit explicitly if the compiler is too old to understand the needed minimum cpp standard. Change-Id: I0cf0ad17b2cd68ba990d3360a8628ddd7fe507bd Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * Squish: Allow build to fail for runAndCloseApp()Christian Stenger2023-03-293-13/+28
| | | | | | | | | | | | | | | | | | Allows to mark current configuration to fail when we trigger a run with implicit build. Change-Id: I5738c49e62bca876c0aeba28af5f8315303620a2 Reviewed-by: Robert Löhning <robert.loehning@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Merge remote-tracking branch 'origin/qds/dev'Tim Jenssen2023-03-3026-767/+2027
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/filepath.cpp src/plugins/qmldesigner/qmldesignerexternaldependencies.cpp src/plugins/qmlprojectmanager/cmakegen/generatecmakelists.cpp tests/unit/unittest/CMakeLists.txt Change-Id: I017a6075db41a5233487ac855ffe23de2b2bb0ee
| * \ Merge remote-tracking branch 'origin/10.0' into qds/devTim Jenssen2023-03-2913-19/+53
| |\ \ | | |/ | | | | | | Change-Id: Idd5eac05f3506387e5f1884e22cc2c902032bbe1
| * | Merge remote-tracking branch 'origin/10.0' into qds/devTim Jenßen2023-03-26675-1779/+5913
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | bigger conflicts resolved at: src/plugins/qmldesigner/CMakeLists.txt src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: I08e2a109d8e37cbd77225129854e9e633725bfc7
| * | | QmlDesigner: Project Storage Watcher updates only some directoriesMarco Bubke2023-03-211-8/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates only the entries for the given source context (directory) ids and skips everything else. It is enabling partial updates for directories in a project. [&, &ids = ids] the strange capture clause steams from a C++ issue. Tak-number: QDS-9456 Change-Id: Id3abcd39ac429ba4483124f334d50c2999f5e6a8 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * | | UnitTests: Simplify project storage watcherMarco Bubke2023-03-211-129/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the real path cache. It makes the test some 100ms slower because the database has to be created for every test but makes the test simpler. Renames some variables too for better readability. Task-number: QDS-9456 Change-Id: I3246a1859eae7b26b9e13a9d88d3c717748de43e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * | | QmlDesigner: Project storage watcher watches unchanged filesMarco Bubke2023-03-211-10/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Qml documents and Qmltypes files cannot added or removed if the project data is parsed. So the can simply been added to the watched files. Task-number: QDS-9178 Change-Id: Iaa30425241ac7ad3c2434b9c6c5955e894ec6049 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * | | Sqlite: Improve database openingMarco Bubke2023-03-151-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9074cda4d9da12a061f094ca72fa156d89ca0f87 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | QmlDesigner: Improve readabilty of tests for project storage updaterMarco Bubke2023-03-151-291/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QDS-9382 Change-Id: I9aac10b7e7782847bae23b09e64fbe569ce2c40a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * | | QmlDesigner: Update directories without qmldir to project storageMarco Bubke2023-03-091-42/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are qml directories without a qmldir. To identify them we use the directory source id instead of the qmldir source id. Task-number: QDS-9345 Change-Id: I1356ad332c091b64cbdad389a3ac505133716634 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * | | QmlDesigner: Use directory source id for project dataMarco Bubke2023-03-091-120/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are qml directories without a qmldir. To identify them we use the directory source id instead of the qmldir source id. Task-number: QDS-9345 Change-Id: I4ed4596a21576e6bbd18c5117753669ef8a68a28 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| * | | QmlDsigner: Add entries to path watcher for initial runMarco Bubke2023-03-092-18/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there are no cached data all importatnt files should be now being watched. Task-number: QDS-9178 Change-Id: I0c9093e41e6a2d4f3a5aa3d62aba1fd41e047da4 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
| * | | QmlDesigner: Add image for broken previewMarco Bubke2023-02-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QDS-9048 Change-Id: Ic2ce8bf4d51f72c3ddae588709820728fc7c76b5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * | | QmlDesigner: Fix test for project updaterMarco Bubke2023-02-281-39/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests got broken by the directory support. Change-Id: I2a0de46a7f7f84328440ee785329d915049cb7f3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * | | QmlDesigner: Don't inline what methodMarco Bubke2023-02-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This works around the type_info::hash_code macOS bug and leads to smaller code size because the RTTI will be not anymore injected in all TUs. Task-number: QDS-9266 Change-Id: I3defe3dc11b4b76f5c60b08c103a3a39ee92f367 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | Sqlite: Inject RTTI into TUMarco Bubke2023-02-281-22/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We had problems on macOS with the catching of exceptions because the has type_info::hash_code was different. This is probably a bug because RTTI code is injected for an inline class. To work around that problem we implemented the virtual what method for every exception. Task-number: QDS-9266 Change-Id: I79052c8b70adead412d1940b17195151fb19ebb9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
| * | | UnitTests: Make test fore robustMarco Bubke2023-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6e92f242f759a89a11c77d862b5158c86b2b7a5a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * | | UnitTests: Disable warning for self assign overloadedMarco Bubke2023-02-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to test it so we cannot fix the code. Change-Id: Ieb0517e539ae60c275069b790ca32380d39a59f0 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | UnitTests: Disable self move warningsMarco Bubke2023-02-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to test self move, so we cannot avoid the warning. Change-Id: Id785690d40cfc5299e65c9f0e69abe6e336ba9ff Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | Sqlite: Add pathExists functionMarco Bubke2023-02-222-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'pathExists' function can be registered to the database connection and is then callable in Sql. Task-number: QDS-9217 Change-Id: I21afc5cd38765854daa0b1058cc5e8946b551924 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
| * | | Sqlite: Add progress handlerMarco Bubke2023-02-221-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sqlite::ProgressHandler handler{ [] { return Sqlite::Progress::Continue; }, 1000, database}; is setting up a progress handler for this scope. If the handler is destructed it will automatically reset the handler on the database. The handler is active for the whole database connection. Task-number: QDS-9216 Change-Id: I59831f40d32c062eefdfb0c4dfbf3045058e1fd2 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
| * | | UnitTests: Disable warnings as errorsVikas Pachdha2023-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib58799510258973638f25ec4d52ce62710c26f54 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
| * | | QmlDesigner: Integrate ProjectStoragePathWatcherMarco Bubke2023-02-202-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QDS-9170 Change-Id: Iedbb07e41232beeb73cd12c89f892eec7968d084 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
| * | | UnitTests: Fail on warningsMarco Bubke2023-02-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QDS-9135 Change-Id: I798b1143c68e68bcd53144f5e6d01864ae0ce73b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | Googletests: Bump to 1.13Marco Bubke2023-02-201-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8b54611e404e5313269fc3436ce995bf0d09d35d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | QmlDesigner: Add extension support in qmltypesparserMarco Bubke2023-02-161-3/+49
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QDS-7384 Change-Id: I3f84f361360bd085d0ee78f32d808151e32a2436 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | QmlDesigner: Use Qt6_VERSION instead of Qt5_VERSIONMarco Bubke2023-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I346f5d256468696076299f964022c0a2ec2d190d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * | | QmlDesigner: Add direct dependency on QmlDomPrivateMarco Bubke2023-02-071-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It adds an indirect dipendency to QmlCompilerPrivate too. We stick to Qt 6.5 because the private API changed. Task-number: QDS-9049 Change-Id: Icb0b406fc47759763384e167c0cabbffc1c9e186 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | QmlDesigner: Fix missing adaptionMarco Bubke2023-02-072-93/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I307c9f236ee8ebd36d62b3fe9b0d4bbaea5699e8 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | QmlDesigner: Add midSize image to cacheMarco Bubke2023-01-2612-112/+646
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is now a mid size image in the image cache. It's logical size is 150x150, so it is 300x300 for HighDPI. Task-number: QDS-8918 Change-Id: I6586b2e82b9e74737f46b67c441201ad4964fca0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| * | | QmlDesigner: refactor get qmlpuppet pathTim Jenssen2023-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If1e61bb24acf97215bb11987b0d68ed28ffacaff Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| * | | QmlDesigner: Don't abort if any image is not nullMarco Bubke2023-01-251-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far we expected that both images are null or not null. But sometimes you only want to save one image type in the collector. This will try to generate the image cache entry again if you try to get a null image so be careful. Task-number: QDS-8917 Change-Id: I765f5b82589f52e439513a11926314ad2d99a928 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * | | Merge remote-tracking branch 'origin/9.0' into qds/devTim Jenssen2023-01-1012-37/+32
| |\ \ \ | | | | | | | | | | | | | | | Change-Id: Ic60cb293d07e7e25716adfbaa2f35e9d25ca148b
* | \ \ \ Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-03-2915-23/+55
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs src/plugins/remotelinux/genericlinuxdeviceconfigurationwidget.cpp src/tools/perfparser Change-Id: Ie5643100e0eb00e0933359dce320169b876f5634
| * | | | SquishTests: Fix checking for build issuesChristian Stenger2023-03-281-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not count code model issues as build issues when checking for them. Fixes tst_build_new_project on the Linux machines which fail for unknown reasons. Change-Id: I2cd77b0208019fc902742197c0def6d3811cfced Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * | | | SquishTests: Fix accessing build dir line edit on WinChristian Stenger2023-03-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The respective line edit is hidden inside the collapsed details, so ensure we have expanded details instead. Change-Id: Ib6f6fab9f06c3250a71baf95a853d770bfa9b221 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * | | | SquishTests: Adapt to dark themeChristian Stenger2023-03-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the OS QC may be started with dark theming. As we use the color of the buttons on the welcome page to decide whether a button is active or not we need to adapt the expected colors to cover dark theming as well. Change-Id: I844b1e2cf4b44ce9501a4ef4a850331ca9983e3c Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * | | | SquishTests: Some Python3 adaptionChristian Stenger2023-03-2710-16/+16
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Makes some tests succeed and lets a couple of tests get further on macOS. Change-Id: I9a3f124c094e67f51748ddae47d00897fe5259d5 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * | | Utils: Improve DeviceShell error handlingMarcus Tillmanns2023-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case mktemp or mkfifo fails, the device shell script would incorrectly print both success and failure messages. Also cleaning State enum, removing unnecessary values. Fixes possible crash if creation of master process fails. Fixes: QTCREATORBUG-28928 Change-Id: I75fef54dc791b2b0a403bab19dab6813b62643ac Reviewed-by: hjk <hjk@qt.io>
| * | | auto-setup: Add support for conan 2.0Cristian Adam2023-03-171-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTCREATORBUG-28865 Change-Id: Ifb801a458b4b18de218dee6604f0555cab13ec75 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | | | Fix include styleJarek Kobus2023-03-242-4/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I64cb77f8d39dac35821fe96d735bc5dda35738e7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | | Utils: Store Device::osType in settingsMarcus Tillmanns2023-03-231-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I41348be752598b7a8d1f1979764e7111cccc95a9 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | | Utils: Test QtcProcess default environmentMarcus Tillmanns2023-03-211-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I62f56bd070ec531462ad3dd4e39cf6708115c7ba Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | | | FilePath: Remove overloads for async tasks that don't take contextJarek Kobus2023-03-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing mandatory context object clearly suggests a special care should be taken for assuring the passed function may still run when the task finishes in the future. Fix FileStreamManager so that it deletes the streamer even when context object was deleted in meantime. Fix 2 usages of asyncCopy so that we pass a context object now. Side note: passing nullptr as a context object is still possible and should work, but it's not recommended. Change-Id: I464438db42ed9292c2f89ecb9d5dde7c78f77640 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | | | Tests: Add another environment testChristian Stenger2023-03-171-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test appending and prepending PATH. Change-Id: If2ff84b24a8f961af0a3bb64ed77aaf37fe247fd Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | | | Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-03-164-118/+143
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: Ie591b7130b33a042509e56701384f8ff4d9cb7f8
| * | | CMakePM: Add include presets supportCristian Adam2023-03-143-117/+142
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTCREATORBUG-28894 Change-Id: I9359cb85c230f2db02f08427af9832f168a32c41 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
| * | | Debugger: Fix manual plugin testRobert Löhning2023-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The location of the dll doesn't depend on the application's current directory but its binary's location. This caused the manual test to turn false positive when running from Creator, because on Windows, the binaries are placed in a subdirectory named "debug" or "release", respectively. Change-Id: Ie5115fbacd30ad0ef85bc258d405ae3ac42f8ece Reviewed-by: hjk <hjk@qt.io>