summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Merge remote-tracking branch 'origin/10.0'"The Qt Project2023-05-174-17/+27
|\
| * Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-05-174-17/+27
| |\ | | | | | | | | | | | | | | | | | | Conflicts: coin/instructions/build.yaml Change-Id: I697b0107e75c6259989247de2180437d7987ff37
| | * SquishTests: Update tst_create_proj_wizardRobert Löhning2023-05-152-6/+13
| | | | | | | | | | | | | | | | | | Change-Id: Id17f5d1a68da7fe7c9f45dc5b62ab3fe1039f753 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| | * SquishTests: Make suite_tools Python3 compatibleRobert Löhning2023-05-152-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | Except for tst_designer_edit which needs a bigger update. Change-Id: I8300a9491ec34b4d8deeed39f02fc59281cc20c9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * SquishTests: Fix using invalid paste IDsRobert Löhning2023-05-151-3/+3
| | | | | | | | | | | | | | | Change-Id: Ibc48506ff1632cbfe8d662cd00ed057af7d16a6a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Tests: Build text tests with Qbs as wellChristian Stenger2023-05-172-1/+2
|/ / | | | | | | | | | | | | Amends 1a98dda5c417e892cadbedb656829cf2ba4d1d0a. Change-Id: If563437141ac75bb2b72a9d550d1fb507a89e63c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Utils: add Position::fromCursor with testsDavid Schulz2023-05-171-0/+34
| | | | | | | | | | | | Change-Id: I1cd989eaf7e75bc04f171989f9f9fe932402abef Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Fix Qbs buildChristian Stenger2023-05-173-3/+0
| | | | | | | | | | | | | | | | | | Amends f84199f8b70bb03b66a0dbac3ff4dcdb56094d20 and reverts 796cfceb3a27337e2f613624a8c223761fdd44b8. Change-Id: I7eb686c012bd99cddf36aa16219e3f33de2b15b2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Tests: Add a test to feed shells via stdinhjk2023-05-171-0/+16
| | | | | | | | | | | | | | Change-Id: I7e19537d0a3015aeb329849758cc92da17a67606 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Tests: Fix Qbs buildChristian Stenger2023-05-173-0/+3
| | | | | | | | | | | | | | Amends f84199f8b70bb03b66a0dbac3ff4dcdb56094d20. Change-Id: I6a233aca13f9908451748c20c1804fa2851043aa Reviewed-by: hjk <hjk@qt.io>
* | Solutions: Long live Solutions!Jarek Kobus2023-05-1712-44/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Short live Tasking in Solutions! Add src/libs/solutions/README.md with the motivation and hints. Move TaskTree and Barrier from Utils into Tasking object lib, the first solution in Solutions project. Tasking: Some more work is still required for adapting auto and manual tests. Currently they use Async task, which stayed in Utils. For Qt purposed we most probably need to have a clone of Async task inside the Tasking namespace that is more Qt-like (no Utils::FutureSynchronizer, no priority field, global QThreadPool instead of a custom one for Creator). Change-Id: I5d10a2d68170ffa467d8c299be5995b9aa4f8f77 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Utils: add tests for Position::fromPositionInDocumentDavid Schulz2023-05-161-0/+28
| | | | | | | | | | | | | | Change-Id: I2b530cf62a4defe0292c51834b1e5093a7d5e55f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Utils: remove duplicated testDavid Schulz2023-05-161-4/+0
| | | | | | | | | | Change-Id: I0391feb848af09295afd9d3e84e25337023c24b6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Utils: add tests for Position::fromFileNameDavid Schulz2023-05-162-27/+96
| | | | | | | | | | Change-Id: I321b91567e47e08883c7b991cd24d02bb8a9b9c6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Utils: fix Text::Range length and remove midDavid Schulz2023-05-124-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those functions are based on the assumption that the passed text starts at the begin position, which was good enough for search results, but if used in other parts of the codebase it might give unwanted results. Calculate the length of the range now as expected and subtract the beginning lines. In order to still got the correct results for the text result texts modify the result range to always start at the first line before calculating the length of the range. Also add tests for the modified functionality Change-Id: I7ccd75b642dda6dd4f738877cbe3543d46c03652 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | TaskTree: Prepare for de-utils-ization - part 2Jarek Kobus2023-05-123-6/+7
| | | | | | | | | | | | | | | | | | Move TaskTree into Tasking namespace. Move Tasking namespace out of Utils namespace. Change-Id: Ib4c1d7f54f1808517e54768dfa27209c33517b61 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | Utils: replace LineColumn with Text::PositionDavid Schulz2023-05-112-7/+0
| | | | | | | | | | | | | | Change-Id: Ia69547374efec7412717cbed1eb4162162a89d39 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-05-113-6/+7
|\ \ | |/ | | | | Change-Id: I98e5e1ad43103984b490c65cdeed84b7414303b3
| * SquishTests: Improve version detection for importsRobert Löhning2023-05-091-4/+4
| | | | | | | | | | | | Change-Id: If38aa92c22c3390859f738ad5bfa5bacf47302ec Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * SquishTests: Fix formatting of exception messageRobert Löhning2023-05-091-1/+1
| | | | | | | | | | | | | | Amends 8d03220017bf7e5c7be51fc36acb56fbde9e3e13 Change-Id: I05266fe6152a8ac2601890e8dcf32fc68d0989d3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * SquishTests: Some more Python3 adaptionRobert Löhning2023-05-091-1/+1
| | | | | | | | | | | | Change-Id: Iee0fd4107c3423d72a1dc51b0087837e4de46537 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * SquishTests: Log used Python versionRobert Löhning2023-05-081-0/+1
| | | | | | | | | | Change-Id: I60cb928382840f34800af6a8ee1ed7f084acfb93 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Utils: Make column of LineColumn consistently 0-basedDavid Schulz2023-05-111-2/+2
| | | | | | | | | | | | Change-Id: I4ab153d1c55653936efbcdc13ac04463185930e0 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Utils: Improve FilePath::sortMarcus Tillmanns2023-05-101-0/+52
| | | | | | | | | | | | | | Remove the conversion to/from QString for sorting. Change-Id: I89921328b6d9e952c802d41998495bd2ffbb9f99 Reviewed-by: hjk <hjk@qt.io>
* | Tasking::Tree: Rename Tree into TaskTreeTaskJarek Kobus2023-05-101-1/+1
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: I70073bcb44a712c427c8c5aea42c48dbc30eebe0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | Process: Rename QtcProcessPrivate -> ProcessPrivateJarek Kobus2023-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | Rename the logging category for Process. Fix inline comments accordingly. Adapt warning/debug messages accordingly. Change-Id: I2b1f0f558701def3afa3c1b04adf629833dba9e7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | LayoutBuilder: Rename Id to IDhjk2023-05-101-1/+1
| | | | | | | | | | | | | | | | | | The Id was only used in the demo. "ID" is Not exactly canonical naming, but this clashes often with Utils::Id, so mis-spell until we settle on a proper name. Change-Id: I6fdf806c41abf224f7422ec6c9263db3eb357190 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | FileSearch: Get rid of FileSearchResultJarek Kobus2023-05-094-70/+61
| | | | | | | | | | | | | | | | | | Use SearchResultItem instead. This change should reduce the remaining freeze described in a9eb732ce6763e22badd92fc8523cebe84b09a84 even more. Change-Id: I102b82ed5677360ccd9e425dd0bdd941d87116f0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Fix environment auto testhjk2023-05-081-1/+1
| | | | | | | | | | | | | | Amends 1e1befd9eb6. Change-Id: Iecd06ee06081057208a2b3387d618142dc74d0bd Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | qmljsreformatter: don't default foreach type to "in"Semih Yavuz2023-05-081-0/+9
| | | | | | | | | | | | Fixes: QTCREATORBUG-29123 Change-Id: I4d3a611c359946c4483388cbf18a0b6f16d0a8d6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | Merge "Merge remote-tracking branch 'origin/10.0' into temp"The Qt Project2023-05-088-19/+19
|\ \
| * \ Merge remote-tracking branch 'origin/10.0' into tempEike Ziller2023-05-088-19/+19
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: I877666cf9c209c5b0a1365aeb81d9cb13144a993
| | * SquishTests: Don't test.verify state of checkbox in getBuildIssuesRobert Löhning2023-05-052-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - It generates a ridiculously large number of test results in comparison to what's actually tested - In tst_memberoperator, it is used in waitFor(). Thus, it depends on timing and the number of test results varies from one execution to another Change-Id: I7d4ad8f87590b4fc2dda51e9eda703961c7acd9e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * SquishTests: Improve log messages of exceptionsRobert Löhning2023-05-058-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | ...and make them more similar to Squish's own "Error" messages. Change-Id: If5df701d4fa01fc1c1aea94cc9778a6a5dccc44e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Layouting: Avoid a lambda in the demohjk2023-05-082-2/+2
|/ / | | | | | | | | Change-Id: Ic11936fd2a6da2153a52e39249d49d174ffb8466 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Utils: Move SearchResultItem/Color into UtilsJarek Kobus2023-05-081-2/+2
| | | | | | | | | | | | | | | | | | It's going to be reused inside FileSearch. Change-Id: I8993d7158ff31c311c2283d32bc43465a8946a52 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Proliferate pathListSeparator()Alessandro Portale2023-05-051-1/+1
| | | | | | | | | | | | Change-Id: I546107af6a88ad5901659a0a64485e4ebca3a164 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* | Layouting: Introduce Ids for Itemshjk2023-05-051-9/+17
| | | | | | | | | | | | | | | | | | Intenally just wrapping a 'bindTo' result, but less trigger potential for pointer related peladophobia Change-Id: I25171a2675fb0474ce97c04552ac1cf5ffd6ee56 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Layouting: Add demohjk2023-05-054-0/+77
| | | | | | | | | | | | | | | | Currently almost the same as the comparison example, but planeed to grow. Change-Id: Id129266a1b5b12438e2fb643ee114e6d816581f6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Tests: Rename tst_AsyncTask -> tst_AsyncJarek Kobus2023-05-057-23/+23
| | | | | | | | | | | | | | Follows 187a7640def4f137762547d82638c7f169f2cfe4 Change-Id: I58e6afbc0cbdea37c405b11e133d794a91f09fc6 Reviewed-by: hjk <hjk@qt.io>
* | Tests: Rename tst_QtcProcess -> tst_ProcessJarek Kobus2023-05-0510-63/+61
| | | | | | | | | | | | | | Follows 470c95c94be58905bc3202d3b58175add5f576fa Change-Id: Ie26b5677d28e645ab27aeebf5976b5507385716a Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-05-059-36/+41
|\ \ | |/ | | | | Change-Id: I7a3925ad8e4f97461b64a70217102ed900430253
| * Fix qbs build for QML testChristian Kandeler2023-05-021-1/+0
| | | | | | | | | | Change-Id: I8df3988f574cc94c8bb441a54a1b861913029dfa Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * SquishTests: Further Python3 adaptionRobert Löhning2023-05-024-4/+10
| | | | | | | | | | | | | | Fixing tests in suite_editors Change-Id: I4e5e1adc2c4e6606232d76a794aff7a7144d5c9e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * SquishTests: Remove workarounds for closed issuesRobert Loehning2023-04-262-6/+1
| | | | | | | | | | Change-Id: If5f62b0f9013223643f016ce4e04932cca53397c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * SquishTests: Make workaround permanent for Creator 10Robert Löhning2023-04-261-8/+6
| | | | | | | | | | | | | | | | | | The bug is fixed in master branch only. Task-number: QTCREATORBUG-28985 Change-Id: I5b1648e89a2ae61ce651ce6d2061fea58559d145 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * SquishTests: Update tst_CSUP06Robert Löhning2023-04-261-17/+24
| | | | | | | | | | | | Change-Id: Icbe7cae9b282dd125de46f8ba8bd265b9aa1054d Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Remove unused includes of QFutureInterfaceJarek Kobus2023-05-042-2/+0
| | | | | | | | | | | | Change-Id: I70f5e842801b628c7f9ad4d433334ce04d4e648e Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-046-6/+6
| | | | | | | | | | | | | | | | Follows QtcProcess -> Process rename. Change-Id: I97235a9a40cb7fd52944515b7ab878d96528f919 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Utils: Rename QtcProcess -> ProcessJarek Kobus2023-05-046-39/+39
| | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>