112 Commits

Author SHA1 Message Date
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
Sebastian Holtermann
3a4db8617e Autogen: Tests: Add test for STATIC_LIBRARY cycles 2017-10-27 09:37:15 -04:00
Sebastian Holtermann
084ace47b6 Autogen: Tests: Update AUTOMOC_MACRO_NAMES test 2017-09-28 09:21:44 +02:00
Sebastian Holtermann
932656527b Autogen: Tests: Add <SUBDIR>/ui_view.h AUTOUIC includes to sameName test 2017-09-21 09:58:24 +02:00
Sebastian Holtermann
4eb7d81791 Autogen: Tests: Add <SUBDIR>/item.moc includes to sameName test 2017-09-21 09:58:23 +02:00
Sebastian Holtermann
2be0acb71e Autogen: Tests: Add AUTOGEN_TARGET_DEPENDS test to mocDepends tests 2017-09-07 18:03:14 +02:00
Sebastian Holtermann
13bb716f04 Autogen: Fix and extend SKIP_AUTOMOC test 2017-08-22 19:10:31 +02:00
Sebastian Holtermann
05891d8f77 Autogen: Add test for AUTOMOC_MACRO_NAMES 2017-08-18 12:32:34 +02:00
Brad King
6c5e03d6d4 Merge branch 'backport-autogen-autouic-lookup' into autogen-autouic-lookup 2017-08-15 13:23:11 -04:00
Sebastian Holtermann
fb5db079a7 Autogen: Extend AUTOUIC search paths test 2017-08-15 13:22:18 +02:00
Sebastian Holtermann
15ef27286a Autogen: Add test for OBJECT libraries 2017-08-10 23:15:48 +02:00
Sebastian Holtermann
3a4840e039 Autogen: Make test per-config include directory compatible 2017-08-05 11:21:44 +02:00
Sebastian Holtermann
a3a62fcc3c Autogen: Add AUTOMOC test for target dependencies forwarding
Adds an AUTOMOC test that tests if dependencies from add_dependencies()
of an ORIGIN target are forwarded to the ORIGIN_autogen target.

Also fixes the AUTOMOC test that tests if dependencies from
target_link_libraries() of an ORIGIN target are forwarded to the
ORIGIN_autogen target. The test now fails in the ORIGIN_autogen build
if SimpleLib wasn't built before.
2017-08-01 15:18:46 +02:00
Sebastian Holtermann
0e434fcf04 Autogen: Move repeated tests to new QtAutogenRerun test
By moving QtAutogen tests that run repeatedly to a new QtAutogenRerun
test, the `ctest -R Qt[45]Autogen -j4` call runs approximately 25%
faster.
2017-07-21 17:03:40 +02:00
Sebastian Holtermann
f5ccef1751 Autogen: Extended mocInclude tests
The extended tests cover more AUTOMOC use cases.
2017-07-20 16:55:11 +02:00
Sebastian Holtermann
dca5df16c5 Autogen: Process GENERATED files. Add CMP0071.
This lets AUTOMOC and AUTOUIC process GENERATED files which
used to be ignored before.
A new policy CMP0071 ensures that the old behavior of ignoring
GENERATED files is enabled when the CMake compatibility version
CMAKE_MINIMUM_REQUIRED is < 3.10.

Closes #16186
2017-07-18 18:11:31 +02:00
Brad King
41be8a739e Merge topic 'autogen-no-generated-files'
9a34e95a Autogen: Skip generated files for compatibility with CMake 3.8

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1033
2017-07-10 10:22:00 -04:00
Brad King
9a34e95a41 Autogen: Skip generated files for compatibility with CMake 3.8
The change in commit v3.9.0-rc1~464^2~8 (Autogen: Add AUTOMOC/UIC
support for generated source files, 2017-03-02) changes behavior of
existing projects that may not expect `AUTOGEN` on generated files and
do not yet set `SKIP_AUTOGEN` on them.  Disable the behavior change for
now to fix the regression for CMake 3.9.  We can restore it later with a
policy.

In order to keep the implementation and tests working, add an
undocumented property we can use in the tests to enable the behavior
before the policy is introduced.

Fixes: #17031
Issue: #16186
2017-07-07 10:12:15 -04:00
Sebastian Holtermann
50b3837c64 Autogen: Q_OBJECT behind brace test 2017-06-20 10:49:00 +02:00
Sebastian Holtermann
7f68ad6612 Autogen: Tests: Disable some tests on non ASCII build paths 2017-06-13 16:51:33 +02:00
Sebastian Holtermann
38e3fc4bdd Autogen: Tests fix for utf8 paths 2017-06-12 21:54:45 +02:00
Brad King
f34f7815e3 Tests: Fix Qt5Autogen test on Xcode
Fix the `mocPlugin` project to provide `mocPlugin.xcodeproj` instead of
`Project.xcodeproj` so that the `try_compile` project name matches.
Also search in the `Debug` subdirectory of the `try_compile` build tree
for the resulting binaries, to work with multi-config generators.
2017-05-30 10:09:37 -04:00
Sebastian Holtermann
35e8a6de86 Autogen: Tests: More rigorous rcc rebuild tests
Closes: #16103
2017-03-23 16:51:34 +01:00
Sebastian Holtermann
ef3c319b97 Autogen: Test: Add mocDepends test 2017-03-06 22:01:04 +01:00
Sebastian Holtermann
7f9baf5790 Autogen: Test: Add generated qrc file to rccDepends test 2017-03-06 22:01:04 +01:00
Sebastian Holtermann
81656b9210 Autogen: Test: Add generated file to moc rerun test 2017-03-06 22:01:03 +01:00
Sebastian Holtermann
d9a7ef80aa Autogen: Test: Add timestamp comparison to moc rerun test 2017-03-06 22:01:03 +01:00