summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Squish: Don't change suffix .qrc when testing renamingRobert Loehning2019-12-181-2/+2
| | | | | | | | ...since it's not expected to work anyway. Task-number: QTCREATORBUG-23167 Change-Id: I165dbcbc206372475a8d9128b1888b38b9f82367 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix compiler detectionChristian Stenger2019-12-041-5/+3
| | | | | | | | | Find clang and clang++ in more than one location. If they could be found in more than a single path provided inside PATH we expected only the first occurrence. Change-Id: Ibcd7b7b6dff1153fd4b52b055c0fb2a0c5d9d7fc Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Remove outdated checkChristian Stenger2019-12-031-5/+0
| | | | | | | Parsing nowadays starts only after selecting a kit. Change-Id: I2beced906073f3041e9dcb021ac6ef5f03f144a5 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Update tst_rename_fileRobert Loehning2019-11-201-0/+4
| | | | | Change-Id: I1b7e8ef7c112e01ed2403c348234a482b050cf49 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Swap BREAK and unused() in most dumper testhjk2019-11-201-530/+908
| | | | | | | To avoid optimizing. Change-Id: I43b39746811a822a0b5677920f9dc2f149291bc0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update expected tool tipsChristian Stenger2019-11-151-4/+5
| | | | | Change-Id: Ibde199b8f88448c9f0e7b235f7ede57735718201 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Re-enable testing Qt Quick 2 Extension Plugin wizardChristian Stenger2019-11-152-4/+3
| | | | | | | | This effectively reverts commit 4f2f86b5bfd45e0bc9fc690d0ec7b7880eac7f36. Additionally fixes the expected kits for this template. Change-Id: Ie90f113894d331fa4023b8c58f30da5c4886c76d Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Fix expected ui elements and page orderChristian Stenger2019-11-151-7/+5
| | | | | | | | | | The wizard had been transformed to use the JsonWizard nowadays. Order of wizard pages has slightly changed to be consistent with the rest of the wizards. Change-Id: I841349d3b20dbc03a56a3dc4d15f717d0d21acdb Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Stabilize selectBuildConfig(...)Robert Loehning2019-11-152-7/+11
| | | | | Change-Id: Iba111e8cbbe652dd488b4dc91c58b92f53eccba3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix test for welcome pageChristian Stenger2019-11-121-1/+1
| | | | | | | Amends cf3772ca77e4687ee0d7d183a17f6cc9cea28dbc. Change-Id: I3b98f4493db130f062982a5a8b39e334d5b6b49f Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Adapt to changed uiChristian Stenger2019-11-121-4/+4
| | | | | Change-Id: Icf371af4de7aadbcab5cdf53a8095b26a7150aba Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Update testing ProjectWelcomePageRobert Loehning2019-11-053-9/+8
| | | | | | | Used by tst_session_handling and tst_WELP02. Change-Id: I28bdececac39719372834c373f82ac9e99beb613 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Simplify RPATHs for qmake buildEike Ziller2019-11-045-8/+2
| | | | | | | | | | | | | | Use central rpath.pri for setting RPATHs and qttestrpath.pri for tests. Simplify install names of plugins and libraries on macOS to be just @rpath/libName, which follows convention better and makes setting up RPATHs easier. Preparation for moving tools one directory level down on macOS, to be able to add a qt.conf for the tools generically. Task-number: QTCREATORBUG-23120 Change-Id: I16625d48904abd3a7f4c2ad7bbba5916cdc400cd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Squish: Update QmlJSEditorWidgetRobert Loehning2019-10-301-1/+1
| | | | | Change-Id: I783849086d59d51d51dfbc560e3d6c8e298ccd71 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Remove outdated commentRobert Loehning2019-10-291-1/+0
| | | | | Change-Id: I4aeee19ada28ad536994d3b6ec164429b3fc90c4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Skip testing Qt Quick 2 Extension Plugin wizardRobert Loehning2019-10-291-1/+2
| | | | | | | We're not doing anything in it anyway. Change-Id: I5d790d98c8952e6167bfe241af5490cf18622890 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Unittest: Fix warningChristian Stenger2019-10-251-1/+1
| | | | | Change-Id: Ie78646d82786ad8836f289ba53382dad2d51d3f5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Squish: Adapt verification of kitsChristian Stenger2019-10-242-3/+3
| | | | | | | | | Kits are nowadays displayed if configured, but disabled if they do not fit for the respective project. Change-Id: If04a20afde2fc1ada643e45d5eea33e6ace7a4f1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Clang: Ensure that platform codegen flags get also filteredNikolai Kosjar2019-10-221-2/+2
| | | | | | | | | | | | Leave the function addExtraCodeModelFlags() around as it's used by ClangPchManager::ProjectUpdater::toolChainArguments(). This allows us to filter out excess target arguments in a follow-up change. Change-Id: I742d713dd1ca6c391ba77c52555dcf4e94cc2ff9 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Squish: Update expected label textRobert Loehning2019-10-211-1/+1
| | | | | Change-Id: If17465530ca06f5d4d1ae06db1f8175ecdd92fd1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Adapt handling for project creationChristian Stenger2019-10-212-0/+12
| | | | | | | | Some templates got an additional page for handling translations. Change-Id: I420e4f1bd8be5a30056220abd73b3f9da44d5047 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Port setMargins to setContentsMarginsLaurent Montel2019-10-161-2/+2
| | | | | Change-Id: Ie6b3f3e4dddbbf4bcc7ea7561ec348ff2c666907 Reviewed-by: hjk <hjk@qt.io>
* Dumper: Remove old workaroundChristian Stenger2019-10-151-2/+0
| | | | | | | | | This part had been added for lldb provided by Xcode 8. Even LLDB 3.10 is rather old, so probably no more necessary. Change-Id: I823ee15869cc60cb8504fa6969758b5f7c3a74ab Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Clang: Simplify include paths in testsNikolai Kosjar2019-10-112-233/+149
| | | | | | | | | | | | | * The paths on Linux are always "canonicalized" by GccToolChain::gccHeaderPaths(). Therefore, canonicalize the paths in the tests, soo. * Introduce some helper functions to shorten the code. * Do not break the strings literal paths as this complicates comparing them. Change-Id: I0fc8acde0e455a7974baae0d9fdffd3a4060ff74 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Put clang's resource dir after /usr/local/includeNikolai Kosjar2019-10-112-3/+3
| | | | | | | | | | ...also on Linux. That's what clang invoked from the command line does. Change-Id: I59c48d11fab3b944bb42ca7bb4cd9093a735df60 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Avoid consuming gcc internal include pathsNikolai Kosjar2019-10-111-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given the (default) include paths of GCC, e.g. /usr/include/c++/7 /usr/include/x86_64-linux-gnu/c++/7 /usr/include/c++/7/backward /usr/lib/gcc/x86_64-linux-gnu/7/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed /usr/include/x86_64-linux-gnu /usr/include discard gcc-internal paths like /usr/lib/gcc/x86_64-linux-gnu/7/include as they are not relevant for clang and even confuse it with regard to #include_next. Paths below the gcc install dir are considered as gcc-internal. The install dir is queried with $ gcc -print-search-dirs Some GCC distributions, like MinGW, ship the standard library headers in the install dir. Ensure to not discard these. Fixes: QTCREATORBUG-22898 Change-Id: Ia85258fb01b72ad073e71390e003fe8268e3b01f Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CMake: Fix build with Clang 9Orgad Shaneh2019-10-101-1/+1
| | | | | | Change-Id: Idf82175de1670259abd27df54b2c776e943a11e8 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Retain ".pragma library" when reformatting JavaScript filesUlf Hermann2019-10-101-0/+3
| | | | | | | | | | For ".pragma library" there is a special flag in QmlJS::Directives. We just need to actually set the flag and query it when re-emitting the code. Change-Id: Ia3455fda18aba3219b02ecf092bb28987a6ccef5 Fixes: QTCREATORBUG-22326 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlJS: Fix build of tst_check.cppNikolai Kosjar2019-10-071-1/+1
| | | | | | | | | | | | tst_check.cpp:151:36: error: reference to 'Type' is ambiguous In file included from src/libs/qmljs/qmljscheck.h:30:0, src/libs/qmljs/qmljsstaticanalysismessage.h:42:6: note: candidates are: enum QmlJS::StaticAnalysis::Type src/libs/qmljs/parser/qmljsast_p.h:347:46: note: class QmlJS::AST::Type Change-Id: I2f2af3e19fc0cbb7cef359c28d5f5d1505778882 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Merge remote-tracking branch 'origin/4.10' into 4.11Eike Ziller2019-10-041-2/+8
|\ | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/projectnodes.h Change-Id: Ibd255105a01c53a1f81a1ec7b30495dfef1877a9
| * Squish: Workaround bad focus issue when using Squishv4.10.1Christian Stenger2019-10-021-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | When interacting with the file dialog QC seems to lose its focus and never gets it completely back. This in turn makes lots of short cuts useless and (context) menu entries disappear or being disabled. Avoid this by explicitly closing the popup of the line edit if there is one. Change-Id: I79f86b3133d2d0780d73d75e15416d59f35dfa1e Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Merge remote-tracking branch 'origin/4.10' into 4.11Eike Ziller2019-10-0210-10/+19
|\ \ | |/ | | | | | | | | | | Conflicts: src/plugins/projectexplorer/projectnodes.h Change-Id: I10a749cca38c2d0929cf4d2b74ab089e14b6157b
| * Squish: Stabilize tests that rely on a parsed projectChristian Stenger2019-10-0110-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | As more and more progress bars might be present for different purposes and we are not able to easily distinguish them we need to use a more reliable way to wait for the end of parsing a project. Add a respective function and use the new approach where this appears to be appropriate or necessary. Change-Id: I20e2b9b0efd4785f8f0b1ddbc8496be111628669 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Squish: Update UI tour handlingChristian Stenger2019-10-012-3/+2
| | | | | | | | | | | | | | | | | | | | The UI tour is no more offered as modal messagebox but a small banner frame on the bottom. Close this the same way we closed the messagebox to avoid interfering tests. Change-Id: I40ab675330aa8c40efe5bbd386d2d6bd051ccb4d Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Merge remote-tracking branch 'origin/4.10'Eike Ziller2019-09-231-0/+35
|\ \ | |/ | | | | Change-Id: I4a22cdf4d7d5aab2083d5f9f7baaa38e510f83fd
| * Debugger: Show FORTRAN stringshjk2019-09-231-0/+35
| | | | | | | | | | | | Fixes: QTCREATORBUG-22976 Change-Id: Ib435b2692301fe2e2d3378623e99bbcf16e27e46 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CMake Build: Use shared precompile headersCristian Adam2019-09-192-3/+1
| | | | | | | | | | | | | | | | This will make the build directory size smaller, as only two pch files will be generated. Not one for every target. Change-Id: I3eec91e7536eab1c62bff8843f075f0ef7b5fff6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Merge remote-tracking branch 'origin/4.10'Eike Ziller2019-09-171-1/+1
|\ \ | |/ | | | | Change-Id: I887fbf79ebfdf2af2719cb0d8aa56ab3dcb08fab
| * Tests: Fix expectation for parent of COM portChristian Stenger2019-09-121-1/+1
| | | | | | | | | | | | | | Keep expected path in line with result when using QFileInfo. Change-Id: I8d323212d1627b81de01582c368a4e9ffbba734c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | LanguageClient: more FileName to FilePath renamingDavid Schulz2019-09-171-3/+3
| | | | | | | | | | | | Change-Id: I803211d462b442b6881a02e870d2cd816675e0d9 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.10'Eike Ziller2019-09-121-0/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/projectexplorer/gcctoolchain.cpp src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp Change-Id: Iffdf48e782a734107ea170ebb3812e997cea0e7b
| * Debugger: add dumper for std::initializer_listDavid Schulz2019-09-091-0/+27
| | | | | | | | | | Change-Id: I223182cecf1f04dbc9908dc993a8800c1633c48b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppTools: Move ProjectUpdateInfo to ProjectExplorerEike Ziller2019-09-121-1/+1
| | | | | | | | | | | | | | Used for updating project parts, so move it near RawProjectPart. Change-Id: I77aeffbdbfb3d2ec0de600f61dcf7fbb7a355a98 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | CppTools: Move RawProjectPart to ProjectExplorerEike Ziller2019-09-111-1/+1
| | | | | | | | | | | | | | | | Doesn't have any dependencies into CppTools anymore, therefore moving it reduces the dependencies of the project managers to CppTools as well. Change-Id: Ibe728abe59eb88a8877943dca1f48a85163e27ac Reviewed-by: hjk <hjk@qt.io>
* | CMake Build: Use same Qt compiler defines for testsCristian Adam2019-09-1013-40/+43
| | | | | | | | | | | | | | Source code needed adjustments though. Change-Id: I78b4610a6bb895a385c7c30a6c92c97a276b89dd Reviewed-by: hjk <hjk@qt.io>
* | CppTools: Move QtVersion and BuildTargetTypeEike Ziller2019-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | QtVersion to utils/cpplanguage_details.h which already contains similar flags. BuildTargetType to ProjectExplorer, next to BuildTargetInfo (but not in the same header to not pull that in everywhere). Removes dependency on ProjectPart from RawProjectPart. Change-Id: I5791065e4266f20c2657ee4b1b594df04b238a1c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | CMake build: Build fix for tst_debugger_simplifytypesCristian Adam2019-09-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | simplifytype.cpp is included also in tst_debugger_dumpers, which has a GUI pch. Because CMake has global internal file structures, simplifytype.cpp will get the PCH flags from tst_debugger_dumpers, which will be reused in tst_debugger_simplifytypes. This patch makes sure the PCH from tst_debugger_dumpers has all the dependencies in tst_debugger_simplifytypes Change-Id: I715cb551f2f75a619b21999ea521976470068c3f Reviewed-by: hjk <hjk@qt.io>
* | ClangTools: Support loading exported diagnosticsNikolai Kosjar2019-09-0317-1/+523
| | | | | | | | | | | | | | | | | | | | Add a new toolbar button to load diagnostics exported with $ clang-tidy -export-fixes=/path/to/file $ clazy-standalone -export-fixes=/path/to/file (master version) Change-Id: I8316fe0706a18222e68220ef4fbfdc7ae8d09804 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Import YAML-Parser yaml-cppNikolai Kosjar2019-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Version: tags/yaml-cpp-0.6.2 License: MIT yaml-cpp requires c++11 and since yaml-cpp 0.6 there is no dependency on boost anymore. A YAML parser is needed for the ClangTools plugin to parse exported diagnostics from clang-tidy/clazy: $ clang-tidy -export-fixes=/tmp/tidy.yaml source.cpp The imported source is stripped of unneeded files as documented with src/libs/3rdparty/yaml-cpp/patches/0001-yaml-cpp-Strip-unneeded-sources.patch (generated with "git format-patch -D") Change-Id: Ib0a521b5aff4b1cd058eb480bfb99fde4b320dc7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | UnitTests: Add return value to mock functionMarco Bubke2019-08-271-1/+1
| | | | | | | | | | | | | | | | Otherwise we try to get access a negative index. The real implementation will never return a negative value, so the shouldn't the mock function. Change-Id: I369e168bd18530b39fa5e2a622a716b30b8b344c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>