summaryrefslogtreecommitdiffstats
path: root/src/testlib/qttestglobal.h
Commit message (Collapse)AuthorAgeFilesLines
* Do not generate the deprecated 'QtTest/qtest_global.h'Alexey Edelev2023-08-241-4/+0
| | | | | | Task-number: QTBUG-115029 Change-Id: I2c0e7979b22c2381049a170f977202d0cd594e4b Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Introduce the qt_deprecates pragmaAlexey Edelev2022-09-061-0/+4
| | | | | | | | | | | | | | The qt_deprecates pragma indicates that the file passed as argument is deprecated and supposed to be replaced by the file where the pragma is defined. Syncqt procedure generates the file passed as argument automatically with the deprecation warning. After the deprecation period the pragma should be removed and the deprecated file will not be included to the Qt installation too. The pragma is only handled by the cpp version of syncqt cpp and supposed to replace the 'deprecatedheaders' record in sync.profiles. Change-Id: Ibe69423a5de67f58907a3edbc5961f5ab63944de Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add QCOMPARE_{EQ,NE,LT,LE,GT,GE}()Ivan Solovev2022-06-031-0/+9
| | | | | | | | | | | | | | | | | | | | | [ChangeLog][QTestLib] Add QCOMPARE_{EQ,NE,LT,LE,GT,GE}() macros. These new macros behave similarly to QVERIFY(a op b), where 'op' is ==, !=, <, <=, >, >= respectively, but print a formatted error message with argument values in case of failure. The formatting is done lazily, which means that the strings will be generated only when the comparison fails. Also add a new test for tst_selftest and generate expected output for it. Fixes: QTBUG-98873 Task-number: QTBUG-98874 Change-Id: Ic8074798901d7a469b1f58d5cd28bbf49a3da1db Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-161-38/+2
| | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Migrate to autogenerated cpp exportsAlexey Edelev2021-06-251-10/+1
| | | | | | | | | Replace the hardcoded cpp exports with a generated one where it's applicable. Task-number: QTBUG-90492 Change-Id: Idc160b594987b2c765e75bd669aae851b4366282 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Testlib: Add a feature for the item model testerUlf Hermann2018-03-211-0/+1
| | | | | | | | It depends on QAbstractItemModel, so we need to switch it off if itemmodel is unavailable. Change-Id: I97246767a5e387b7a2cee90c34125a8411ef1c4e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Testlib: Rename qtest_global.h to qttestglobal.hUlf Hermann2018-03-211-0/+74
This follows the naming convention for global headers and causes qttestglobal.h to be added to the top of the generated QtTest header. It is necessary to have it there when other headers depend on features defined in configure.json. [ChangeLog][QtTest] The qtest_global.h header is now deprecated. Include qttestglobal.h instead. Change-Id: Iaed639d4e13dd99cee6387fce9d15d6e55b0b1e8 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>