summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Change license for tests fileLucie Gérard2024-04-042-2/+2
| | | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I6c16797a88702de06726a78511f71a62a5c91e13 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Correct build system file license under exampleLucie Gérard2024-03-191-1/+1
| | | | | | | | | | | | | According to QUIP-18 [1] all files under examples should be licensed LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 6.7.0 Task-number: QTBUG-121787 Change-Id: Ia2e8f62af64a384196a9b0c02ac5b2fbf5404a8b Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Add car-configurator demoMahmoud Badri2023-11-241-1/+2
| | | | | | | Fixes: QDS-10742 Change-Id: I3d9caf71039a9830595c97e7d944739beb81ab23 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Replace foreach with range-for in tst_qqmlparserShawn Rutledge2023-09-201-6/+3
| | | | | | | Amends 5fbb714cc12ced4e36d7af70e883a68ad54817ac Change-Id: I1d64202ab1bab5e037ceaa6f571e18b2472fee1c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Remove Gui requirement form qqmlparser testEdward Welbourne2023-09-121-1/+0
| | | | | | | | It doesn't need it. Task-number: QTBUG-79353 Change-Id: I81f50c0baf4b30bb54c9e01d4afce50084efc169 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Examples test: Brush upFriedemann Kleint2023-08-252-80/+76
| | | | | | | | | Introduce string literals, range-based for and streamline code. Pick-to: 6.6 6.5 Change-Id: I7b057e9e07c59dc50c8cfe47969d1bbe83a6188c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Examples test: Clean up CMakeLists.txtFriedemann Kleint2023-08-222-29/+1
| | | | | | | Pick-to: 6.6 6.5 Change-Id: I22037de62041351d6aecbae86643f8e8f39b0361 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Mark the module as free of Q_FOREACH, except where it isn'tMarc Mutz2023-08-172-0/+4
| | | | | | | | | | | | | | | | | | | | | | The density of Q_FOREACH uses is moderate here, but too high for this author, unfamiliar with this code, to tackle in a short amount of time. But they're concentrated in just a few TUs, so pick a different strategy: Mark the whole module with QT_NO_FOREACH, to prevent new uses from creeping in, and whitelist the affected TUs by #undef'ing QT_NO_FOREACH locally, at the top of each file. For TUs that are part of a larger executable, this requires these files to be compiled separately, so add them to NO_PCH_SOURCES (which implies NO_UNITY_BUILD_SOURCES, too). NB: there are none such TUs in this module. Created QTBUG-115830 to keep track of this. Task-number: QTBUG-115830 Change-Id: I68c9394c04af68cab46480153a5601828565461a Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Make qtdoc tests standalone projectsAlexandru Croitor2023-07-052-0/+12
| | | | | | | | | | | | | | | | Add the boilerplate standalone test prelude to each test, so that they can be opened with an IDE without the qt-cmake-standalone-test script, but directly with qt-cmake or cmake. Boilerplate was added using the following scripts: https://git.qt.io/alcroito/cmake_refactor Manual adjustments were made where the code was inserted in the wrong location. Task-number: QTBUG-93020 Change-Id: I7365aaefb8c6325c39219b2e359367602b3d47d7 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Add FX & Material showroom demoMahmoud Badri2023-06-191-0/+1
| | | | | | | Fixes: QTBUG-113477 Pick-to: 6.5.2 Change-Id: I2cdd68027224516b6e6ddacad99d06b6a4dc1ba0 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Remove PhotoViewer exampleKimmo Leppälä2023-05-161-1/+0
| | | | | | | Fixes: QTBUG-113593 Change-Id: Idafd79a140067fac9c9f27440f4f43453e2e2ddf Pick-to: 6.5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move robotarm example from quick3d to qtdocKimmo Leppälä2023-05-091-0/+1
| | | | | | Pick-to: 6.5 Change-Id: Iac113bc7ed773f291ef09ebe144e1de1e0e58136 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Use versioned CMake targets for Qt modulesKai Köhne2023-05-023-10/+10
| | | | | | | | | | | Use e.g. Qt6::Core instead of Qt::Core. This is better matching the find_package(Qt6 ...) call, and also avoids issues that the versionless targets have. Pick-to: 6.5 Task-number: QTBUG-113277 Change-Id: I9bc7963d8524ef2ab061e32aef428711646247a7 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Fix the broken test after the retirement of qt_parse_all_argumentsAmir Masoud Abdol2023-01-202-2/+2
| | | | | | | | | | As we are now processing the arguments with cmake_parse_arguments(PARSE_ARGV, we don't need to pass the escape characters anymore. Task-number: QTBUG-99238 Change-Id: I04c38ec742906dfbe542714c6c91f2712a5e6fb9 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Port from container::count() and length() to size()Marc Mutz2022-10-052-4/+4
| | | | | | | | | | | | | | | | | | | This is a semantic patch using ClangTidyTransformator as in qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8: auto QtContainerClass = expr(hasType(namedDecl(hasAnyName(<classes>)))).bind(o) makeRule(cxxMemberCallExpr(on(QtContainerClass), callee(cxxMethodDecl(hasAnyName({"count", "length"), parameterCountIs(0))))), changeTo(cat(access(o, cat("size"), "()"))), cat("use 'size()' instead of 'count()/length()'")) a.k.a qt-port-to-std-compatible-api with config Scope: 'Container', with the extended set of container classes recognized. Change-Id: Iead0ad46548d86af9677f3bab4e500e6a458f0e7 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Qt Quick UI for the RESTful Address BookKonrad Kujawa2022-09-071-0/+1
| | | | | | | | | | Add UI and client side extension for the RESTful Address Book example Fixes: QTBUG-105199 Pick-to: 6.4 Change-Id: I01c5e2ac44838f01ccbb73d5b6e1d1e578c67618 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-236-6/+6
| | | | | | | Task-number: QTBUG-105718 Change-Id: Iec124e0bceb4335370674a222970cd9c1b90763f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* CMake: Don't use PUBLIC_LIBRARIES for tests and test helpersAlexandru Croitor2022-07-282-2/+2
| | | | | Change-Id: Ia61d65045cfce37185715600878c8bf53668a37a Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-076-0/+18
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I9499ba4c20f610ffe8af0fc3e29e6581247f2c40 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-072-54/+4
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Android: Skip tst_examples::sgexamples until it uses resources properlyAssam Boudjelthia2022-05-201-0/+3
| | | | | | | | | | | | The tests tst_examples::sgexamples is expecting the examples to be present on local filesystem, some changes are needed to have this work on Android. Pick-to: 6.2 6.3 Task-number: QTBUG-88846 Task-number: QTBUG-103597 Change-Id: Ida1cb185204626908f5f13da8cfec3a55740d22b Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
* Remove qmake project filesJoerg Bornemann2021-04-308-69/+0
| | | | | | | Task-number: QTBUG-88742 Change-Id: Ib6ac2245f9f7788b684433b6a260331835dcdab2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add override keyword in tests to silence compiler warningsVolker Hilsheimer2021-03-251-3/+3
| | | | | | Pick-to: 6.1 Change-Id: I1a1d0390ddbb2549d636987dd155fcb90a2687db Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* tests: Do not use versioned QML importKai Koehne2020-12-021-1/+1
| | | | | | | Pick-to: 6.0 Task-number: QTBUG-89033 Change-Id: I10b5b53c74a7535c624d36f53f96e4648d12d6bc Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* CMake: Regenerate projects to use new qt_internal_ APIAlexandru Croitor2020-10-073-6/+6
| | | | | | | | Modify special case locations to use the new API as well. Task-number: QTBUG-86815 Change-Id: Ibd1d0f4069be8e247b607e86cf31ffa57f542bd9 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* CMake: Regenerate projects before API changeAlexandru Croitor2020-10-011-0/+2
| | | | | | | Task-number: QTBUG-86815 Change-Id: Id8da24b8a26f0263324a8fed5fd9cedbfa3ee11a Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix compile warning: QLibraryInfo::path instead of locationVolker Hilsheimer2020-09-261-2/+2
| | | | | Change-Id: Ic1ad96c94f74000931ad4dc80d55db71f2850bfc Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Update dependencies on 'dev' in qt/qtdocLiang Qi2020-06-261-7/+7
| | | | | | | | Also fix tst_qqmlparser, see qtdeclarative 1b10ce6a08 and 59410dd2f5. Change-Id: I2cf686907fbaf5c54b92ebb49f5458bdcf257672 Reviewed-by: Liang Qi <liang.qi@qt.io>
* examples: Rename setPersistentOpenGLContextLiang Qi2020-06-111-1/+1
| | | | | | | Align with qtdeclarative 6f4fdce07fa2e75e09dcc90a76ea6d741fb58e74. Change-Id: I177e060c0f1a17ff807e4baeda673ebbf017c719 Reviewed-by: Liang Qi <liang.qi@qt.io>
* Fix naming clash for qqmlparserMårten Nordheim2020-06-092-2/+25
| | | | | | | Clashes with qqmlparser test in qtdeclarative Change-Id: Iaf3dc0259e6e7d8542cb30792c8208e9e66cda77 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Port the build setup to CMakeVenugopal Shivashankar2020-05-046-0/+78
| | | | | | Fixes: QTBUG-83910 Change-Id: If0ebd9d0b528cd84ffe92955b7d1c4d580d397fb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove qmlmin from testsSimon Hausmann2020-01-303-183/+0
| | | | | | | | qmlmin was removed from declarative in commit 4527d87e8f24e99658020900d9eb114d86d4dc82. Change-Id: I0b39189aa75162e5f5fad5e900031a6726ec0f0d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Handle recursion depth errors when parsing JavaScriptLiang Qi2019-03-201-0/+5
| | | | | | | Implementations of QQmlJS::AST::Visitor are required to do so. Change-Id: I47d55d25d7c4dd3f826b3cd24a29fc4287d113c8 Reviewed-by: Liang Qi <liang.qi@qt.io>
* Duplicate tests that use examples from qtdeclarativePaul Wicking2018-07-1611-0/+786
Moving examples from qtdeclarative to qtdoc broke tests that operate on the example sources. This patch duplicates those tests and the documentation snippets that serve as test data to reestablish test coverage. Task-number: QTBUG-69383 Change-Id: I31fd1729f794081a11844be9c27ed4f9a8a5ce73 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>