Commit Graph

147 Commits

Author SHA1 Message Date
Sebastian Holtermann 58f04b6ecf Autogen: Add ManySources test
The QtAutogen/ManySources test generates a number of source, header, .ui and
.qrc files that get AUTOMOC, AUTOUIC and AUTORCC processed.  This stresses the
concurrency framework in `cmQtAutoMocUic` and should reveal any issues
with that.
2019-04-15 16:07:14 +02:00
Brad King 06dab0f0e5 Tests: Fix Qt*Autogen.GlobalAutogenTarget to use matching generator
Build the GAT project with the same generator as the rest of the test.
This was accidentally left out of commit 8c8731b422 (Autogen: Add test
for CMAKE_GLOBAL_AUTOGEN/RCC_TARGET, 2018-11-11, v3.14.0-rc1~396^2~2).
2019-04-10 10:01:19 -04:00
Sebastian Holtermann 91344e7a46 Autogen: Fix RerunMocPlugin test for Ninja generator 2019-02-15 10:56:55 +01:00
Sebastian Holtermann a40864ae53 Autogen: Refactor RerunRccDepends test with fixed timestamp comparison
This refactors and simplifies the QtAutogen.RerunRccDepends test.
Repetitive task are packed into macros.
By using version strings to store file timestamps, timestamp comparison
becomes more reliable.  Test status and error messages are improved.
2019-02-13 23:01:46 +01:00
Sebastian Holtermann 724359489e Autogen: Refactor RerunRccConfigChange test
This refactors and simplifies the QtAutogen.RerunRccConfigChange test.
Repetitive task are packed into macros.
Test status and error messages are improved.
2019-02-13 22:54:32 +01:00
Sebastian Holtermann 6ed4ae4bad Autogen: Refactor RerunMocBasic test with fixed timestamp comparison
This refactors and simplifies the QtAutogen.RerunMocBasic test.
Repetitive task are packed into macros.
By using version strings to store file timestamps, timestamp comparison
becomes more reliable.  Test status and error messages are improved.
2019-02-13 22:54:32 +01:00
Sebastian Holtermann fedbd16f35 Autogen: Refactor RerunMocPlugin test with fixed timestamp comparison
This refactors and simplifies the QtAutogen.RerunMocPlugin test.
Repetitive task are packed into macros.
By using version strings to store file timestamps, timestamp comparison
becomes more reliable.  Test status and error messages are improved.
2019-02-13 22:49:20 +01:00
Sebastian Holtermann 1f802295f2 Autogen: Extend the SameName test with same name but different extension files 2019-02-05 15:51:53 +01:00
Sebastian Holtermann 03dbb62d31 Autogen: Reenable passing compiler implicit include directories to moc
Since commit 5990ecb741 (Compute implicit include directories from
compiler output, 2018-12-07) we now have compiler implicit include
directory computation for gcc and clang.  It should be safe now to pass
these to `moc`.  This patch re-enables passing the compiler implicit
include directories to `moc`, which was disabled due to issue #18669.

Fixes: #18041
Issue: #18669
2019-01-28 08:41:37 -05:00
Sebastian Holtermann 4be7f38d57 Autogen: Revert passing compiler implicit includes to moc
Passing an incomplete list of compiler include directories causes
a regression in the KIO project (and probably others). We need to
disable it until the complete list is available (see #16291).

Fixes: #18669
Issue: #18041
2018-12-07 08:01:02 -05:00
Sebastian Holtermann 0814d74548 Autogen: Add QtAutogen.UicNoGui test
Adds a Qt core only test that has ``AUTOUIC`` enabled
targets that don't link against QtXWidgets or Qt at all.
2018-11-28 13:06:05 +01:00
Sebastian Holtermann 2ef640819f Autogen: Tests: Differentiate between Qt core and Qt gui tests
Some AUTOGEN tests require the Qt core libraries only and
some require the Qt gui libraries to function.
This replaces the AutogenTest.cmake script with two specific
AutogenCoreTest.cmake and AutogenGuiTest.cmake scripts that
are included on demand.
2018-11-28 12:51:19 +01:00
Sebastian Holtermann e0c26406aa Autogen: Sort tests 2018-11-14 19:21:03 +01:00
Sebastian Holtermann 83bbfb1d53 Autogen: Add a definitions test to the MocOnly test 2018-11-14 19:21:03 +01:00
Sebastian Holtermann 8c8731b422 Autogen: Add test for CMAKE_GLOBAL_AUTOGEN/RCC_TARGET 2018-11-11 14:29:38 +01:00
Sebastian Holtermann 336893d9eb Autogen: Separate AUTOGEN_TARGET_DEPENDS tests into own tests suite
The tests for AUTOGEN_TARGET_DEPENDS were part of the
AutogenOriginDependsOn tests suite.  This separates them
into an own AutogenTargetDepends tests suite.
2018-11-05 14:03:01 +01:00
Sebastian Holtermann 846043dd35 Autogen: Rename MocDepends test to AutogenOriginDependsOn 2018-11-03 12:14:40 +01:00
Sebastian Holtermann b71a9598a4 Autogen: Add test for AUTOGEN_ORIGIN_DEPENDS=OFF 2018-11-03 12:14:40 +01:00
luz.paz 6b4c5a0365 Fix misc. typos
Found via `codespell -q 3 -I ../cmake-whitelist.txt --skip="./Utilities"`
where the whitelist consists of

```
aci
ans
behaviour
buil
convertor
dum
earch
ect
emmited
emmitted
helpfull
iff
isnt
ith
lowercased
mose
nd
nknown
nto
objext
ot
pathes
pevents
splitted
substract
superceded
supercedes
te
tim
todays
uint
upto
whitespaces
```
2018-10-03 15:32:46 -04:00
Sebastian Holtermann 52676e3794 Autogen: Tests: Use non inverting Qt version tests 2018-08-09 15:44:11 +02:00
Sebastian Holtermann e7fb85d00d Autogen: Check if we can run the MocOsMacros test
The MocOsMacros test requires moc to support moc_predefs.h
on some platforms (e.g. Mac). moc supports moc_predefs.h
inclusion since Qt 5.8, therefore run the MocOsMacros only if
Qt >= 5.8 and if CMAKE_CXX_COMPILER_PREDEFINES_COMMAND is
defined.

Fixes #18245
2018-08-07 16:33:27 +02:00
Sebastian Holtermann 7bb70054e4 Autogen: Add test for Q_OS_ macros 2018-07-30 09:46:03 +02:00
Sebastian Holtermann aa7d8a092c Autogen: Enable CMAKE_AUTOGEN_VERBOSE in all tests 2018-06-21 19:16:40 +02:00
Kitware Robot d7204e649e Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`.  Use `clang-format` version 6.0.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.
2018-06-01 09:53:42 -04:00
Sebastian Holtermann 5852acffa4 Autogen: Add AUTORCC configuration change test 2018-05-30 17:45:01 +02:00
Sebastian Holtermann 3715d0fbcf Tests: Add QtAutogen test for a low cmake_minimum_required version 2018-05-16 09:11:45 +02:00
Craig Scott 8e841a473f Cleanup: Fix typos and grammar in docs and code
No functional changes, just docs, comments and error messages.
2018-04-23 07:48:03 +10:00
Shane Parris e78e24f68c Replaces execute_process calls to touch files with file(TOUCH) calls 2018-02-15 10:54:38 -05:00
Sebastian Holtermann b4e6911bf5 Autogen: Tests: Extend AUTOUIC include patterns test 2018-01-19 19:21:12 +01:00
Sebastian Holtermann ff91a5d54b Autogen: Tests: Extend AUTOMOC include patterns test 2018-01-18 18:38:45 +01:00
Sebastian Holtermann 6f4b661383 Autogen: Tests: Add AUTOGEN_PARALLEL tests 2018-01-17 17:23:49 +01:00
Sebastian Holtermann 488baaf0d6 Autogen: Tests: Fix MocInclude test(s) 2018-01-17 17:23:49 +01:00
Brad King f7f34a46e6 Merge topic 'use_generator_is_multi_config'
3c413e2a GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Modules
c267ea1c GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Tests

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1627
2018-01-08 11:14:16 -05:00
Luz Paz 3ab7bf8285 Various typo fixes
Some are user-facing. Others are source comments.
2018-01-04 06:52:01 +11:00
Craig Scott c267ea1c3e GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Tests 2017-12-30 09:35:56 +11:00
Sebastian Holtermann 540d08f485 Autogen: Tests: Move QtAutoUicInterface test to QtAutogen/UicInterface 2017-12-13 13:50:19 +01:00
Sebastian Holtermann b1504f9f97 Autogen: Tests: Separate RerunRccDepends test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann e9fcd1545f Autogen: Tests: Separate RerunMocPlugin test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann 54b4ff2aee Autogen: Tests: Separate RerunMocBasic test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann 4988746e76 Autogen: Tests: Separate Complex test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann 6ce6fd426e Autogen: Tests: Separate StaticLibraryCycle test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann 45b6776ab3 Autogen: Tests: Separate SameName test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann d7868687c8 Autogen: Tests: Separate MacOsFW test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann b8ef28ae1f Autogen: Tests: Separate ObjectLibrary test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann 0b6ad59ea6 Autogen: Tests: Separate UicInclude test 2017-12-13 13:50:18 +01:00
Sebastian Holtermann a2c4e3489d Autogen: Tests: Separate MocCMP0071 test 2017-12-13 13:50:17 +01:00
Sebastian Holtermann cc66d35651 Autogen: Tests: Separate MocInclude test 2017-12-13 13:50:17 +01:00
Sebastian Holtermann 7971202b3c Autogen: Tests: Separate MocDepends test 2017-12-13 13:48:28 +01:00
Sebastian Holtermann fb7e52ca3d Autogen: Tests: Separate MocMacroName test 2017-12-13 13:48:28 +01:00
Sebastian Holtermann 5cab8c307c Autogen: Tests: Separate RccSkipSource test 2017-12-13 13:48:28 +01:00