138 Commits

Author SHA1 Message Date
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
Sebastian Holtermann
f11321efd1 Autogen: Tests: Separate UicSkipSource test 2017-12-13 13:48:28 +01:00
Sebastian Holtermann
0af9da29e4 Autogen: Tests: Separate MocSkipSource test 2017-12-13 13:48:28 +01:00
Sebastian Holtermann
f658bdaa7c Autogen: Tests: Separate RccOffMocLibrary test 2017-12-13 13:48:28 +01:00
Sebastian Holtermann
f00e6c7c70 Autogen: Tests: Separate RccOnly and RccEmpty tests 2017-12-13 13:48:28 +01:00
Sebastian Holtermann
6273b83549 Autogen: Tests: Separate uicOnly test 2017-12-13 13:48:27 +01:00
Sebastian Holtermann
0b8597a86e Autogen: Tests: Separate mocOnly and mocOnlyOpts tests 2017-12-13 13:48:27 +01:00
Sebastian Holtermann
227a7974f4 Autogen: Tests: Add basic scripts for separate tests 2017-12-13 13:48:27 +01:00
Sebastian Holtermann
e4ccc68429 Autogen: Tests: Add test for MacOS frameworks 2017-12-07 09:05:58 -05:00
Sebastian Holtermann
d3caf941e4 Autogen: Tests: Set AUTOMOC_MOC_OPTIONS in a simple test 2017-10-31 14:55:49 +01:00