qt5base-lts/tests/auto/tools/qmakelib
Alexander Volkov 8a3e8856e5 qmake: Add test functions for comparing version numbers
qmake really lacks version comparing functions:
users either use ugly constructions to compare versions
by components, such as
greaterThan(QT_CLANG_MAJOR_VERSION, 3)|greaterThan(QT_CLANG_MINOR_VERSION, 4):
or even incorrectly compare versions as strings:
!lessThan(apple_clang_ver, "5.1")|!lessThan(reg_clang_ver, "3.4"):

Add test functions versionAtLeast and versionAtMost which use
QVersionNumber to compare version numbers by components.

Change-Id: I65e6b3c296d0301d544b7e38bf3d44f8d555c7fc
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2017-03-20 21:56:01 +00:00
..
testdata qmake: let discard_from() discard function definitions as well 2016-11-15 22:44:23 +00:00
.gitignore add test for the qmake library 2015-02-25 13:54:33 +00:00
evaltest.cpp qmake: Add test functions for comparing version numbers 2017-03-20 21:56:01 +00:00
parsertest.cpp qmake: introduce magic bypassNesting() scope 2016-12-13 18:56:20 +00:00
qmakelib.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
tst_qmakelib.cpp Updated license headers 2016-01-21 18:55:18 +00:00
tst_qmakelib.h Updated license headers 2016-01-21 18:55:18 +00:00