summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'autogen-fixes'Brad King2014-09-226-0/+139
|\ | | | | | | | | | | e3c97a19 QtAutogen: Process all ui files in a source file (#14981). b8877b1d QtAutogen: Add source files to target when only AUTORCC is used.
| * QtAutogen: Process all ui files in a source file (#14981).Stephen Kelly2014-09-185-0/+127
| | | | | | | | | | Use a vector to store a list of matched ui_ includes, instead of overwriting the previous match.
| * QtAutogen: Add source files to target when only AUTORCC is used.Stephen Kelly2014-09-172-0/+12
| | | | | | | | Add missing entry to if condition.
* | Tests: Fix CMP0054 warningsBrad King2014-09-168-11/+11
| | | | | | | | | | Hack the CMP0054 warning locally to be an error and run the test suite. Resolve CMP0054 in Tests/* code as appropriate for each case.
* | Merge topic 'vs-generator-platform'Brad King2014-09-1520-9/+68
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | be6a555d Tests: Test setting a generator platform in a toolchain file d506fee8 Tests: Use -A option to pass generator platform selection 11c9ddd6 ExternalProject: Use -A option to pass generator platform 29bd843e CTest: Use -A option to pass generator platform selection eb7d8156 cmake: Add -A option to specify a generator platform
| * | Tests: Test setting a generator platform in a toolchain fileBrad King2014-09-159-0/+50
| | | | | | | | | | | | | | | Teach the RunCMake.GeneratorPlatform test to cover setting CMAKE_GENERATOR_PLATFORM in a file loaded by CMAKE_TOOLCHAIN_FILE.
| * | Tests: Use -A option to pass generator platform selectionBrad King2014-09-157-8/+8
| | | | | | | | | | | | This is less verbose than defining CMAKE_GENERATOR_PLATFORM.
| * | cmake: Add -A option to specify a generator platformBrad King2014-09-155-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define the 'cmake -A' option to set CMAKE_GENERATOR_PLATFORM without having to spell out the whole variable name. We choose the name '-A' for "platform" because '-P' is already taken, and in the common use case the "platform" is actually an architecture (e.g. x64). Teach the RunCMake test infrastructure to use -A to pass the generator platform. Extend the RunCMake.GeneratorPlatform test with a case to verify that the -A option cannot be repeated.
* | | Merge topic 'if-sanity'Brad King2014-09-1527-1/+437
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 858d5a0b Fix if() checks of CMAKE_SYSTEM_NAME on Cygwin e177e7af FPHSA: Avoid if() dereferencing of quoted variable 425acc52 cmcurl: Use if(DEFINED) to simplify conditions cede5cbd libarchive: Avoid depending on if() to dereference a quoted variable 2d97178b FindGTK2: Avoid depending on if() to dereference a quoted variable 0b12815d Modules/Test*.cmake: Use if(DEFINED) to simplify conditions 188a1f23 If: Introduce policy CMP0054 - don't dereference quoted variables in if() b900c1cc If: Extract cmConditionEvaluator from if() implementation
| * | | Fix if() checks of CMAKE_SYSTEM_NAME on CygwinBrad King2014-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The CMAKE_SYSTEM_NAME is "CYGWIN", but we also define a variable named "CYGWIN" to "1". Avoid allowing if() to expand the "CYGWIN" string as a variable.
| * | | If: Introduce policy CMP0054 - don't dereference quoted variables in if()Nils Gladitz2014-09-1126-0/+436
| | | |
* | | | Merge topic 'vs-generator-platform'Brad King2014-09-1051-3/+114
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09c8ad99 enable_language: Initialize system-specific generator info only once 09ab207c Tests: Add generator platform support 6944997b ExternalProject: Propagate the generator platform 8d332091 CTest: Add options to set generator platform b97736a2 VS: Implement CMAKE_GENERATOR_PLATFORM for VS >= 8 0f1f1271 CMake: Add CMAKE_GENERATOR_PLATFORM option 4f7d0c42 Help: Document CMAKE_VS_PLATFORM_NAME variable 68d4280a VS: Refactor internal default platform name selection ad2a4776 cmGlobalVisualStudio10Generator: Re-order some methods 03b7b6cd cmGlobalGenerator: Call SetGeneratorToolset even for empty toolset
| * | | Tests: Add generator platform supportBrad King2014-09-1042-7/+68
| | | | | | | | | | | | | | | | | | | | Propagate CMAKE_GENERATOR_PLATFORM through the test hierarchy so that all tests can build with the selected generator platform, if any.
| * | | VS: Implement CMAKE_GENERATOR_PLATFORM for VS >= 8Brad King2014-09-053-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For VS generator names that do not specify the platform name, read CMAKE_GENERATOR_PLATFORM to get it. Extend the RunCMake.GeneratorPlatform test with a case covering use of the x64 platform when the test generator is a Visual Studio generator whose name does not specify a platform.
| * | | CMake: Add CMAKE_GENERATOR_PLATFORM optionBrad King2014-09-059-0/+35
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reject the option by default. It will be implemented on a per-generator basis. Pass the setting into try_compile project generation. Add cache entry CMAKE_GENERATOR_PLATFORM and associated variable documentation to hold the value persistently. Add a RunCMake.GeneratorPlatform test to cover basic use cases for the option. Verify that CMAKE_GENERATOR_PLATFORM is empty by default, and that it is rejected when the generator does not support a user setting.
* | | Merge topic 'use-consistent-regex-for-info-strings'Brad King2014-09-091-1/+1
|\ \ \ | |/ / |/| | | | | | | | 3e84e78c Use a more reliable regex for extracting binary INFO strings
| * | Use a more reliable regex for extracting binary INFO stringsChuck Atkins2014-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | A few different regular expressions were being used in various places to extract info strings from binaries. This uses a consistent regex amongst all of them now. This also fixes the broken ABI detection for Cray compilers.
* | | Merge topic 'wix-log-on-failure'Brad King2014-09-041-0/+4
|\ \ \ | |/ / |/| | | | | | | | 4952030c CPackWiX: Attach wix.log on test failure.
| * | CPackWiX: Attach wix.log on test failure.Nils Gladitz2014-09-021-0/+4
| | |
* | | Merge topic 'string-uuid'Brad King2014-09-0220-0/+79
|\ \ \ | | | | | | | | | | | | | | | | | | | | 87e476e8 Help: Add notes for topic 'string-uuid' 328e8694 StringUuid: Implement new string(UUID) sub-command.
| * | | StringUuid: Implement new string(UUID) sub-command.Nils Gladitz2014-08-2820-0/+79
| |/ /
* | | Merge topic 'vs-windows-apps'Brad King2014-09-0231-0/+1387
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 39fefde2 VS: Add test case for Windows Phone and Windows Store 89da8465 MSVC: Define 'WIN32' for Windows Store and Windows Phone ed7f085f Help: Add notes for topic 'vs-windows-apps' dd11ae8f VS: Do not compile C sources as WinRT (#15100) b8e40538 VS: Mark Windows Phone and Store targets as App Containers 0432f062 VS: Always ignore ole32 on Windows Phone 8.0 e6ff2f8b VS: Generate Windows Metadata for WinRT components ee48f4c7 VS: Generate Windows Phone and Windows Store projects as Unicode cb1aceed VS: Add VS_WINRT_COMPONENT property to enable CompileAsWinRT 401269e4 VS: Handle .pfx files explicitly in generator 23782171 VS: Handle AppxManifest sources explicitly in generator bc373c6d VS: Set Window Phone/Store app type in CMake-generated targets d89b2889 VS: Mark CMake-generated targets as Utility in .vcxproj files 03ad8f28 CMakeDetermineCompilerABI: Link with standard libraries on MSVC
| * | VS: Add test case for Windows Phone and Windows StoreGilles Khouzam2014-09-0231-0/+1387
| | | | | | | | | | | | | | | Add tests to build for each version of each system when the corresponding tools are available.
* | | Merge topic 'vs-masm'Brad King2014-08-225-0/+31
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cbd1d42b Help: Add notes for topic 'vs-masm' 0f8522a6 VS: Add MASM support to VS 8 and 9 (#8170, #14984) a43f4400 VS: Move internal MasmEnabled member up to VS 7 generator df3b007d VS: Add test for MASM support e8727449 VS: Populate MASM tool build settings in .vcxproj files 0271a5f9 VS: Manually fix MASM flag table entries 1d662e48 VS: Generate MASM flag tables from MSBuild tool files 4f6940df VS: Fix ASM_MASM support in VS >= 10 d7866c52 ASM_MASM: Fix selection of ml64 0374abdb ASM_MASM: Add preprocessor definitions to compile lines 5b0a46e1 ASM_MASM: Do not require compiler to be a full path 802dbe52 cmLocalVisualStudio7Generator: Rename local 'lang' var
| * | | VS: Add MASM support to VS 8 and 9 (#8170, #14984)Brad King2014-08-201-1/+4
| | | |
| * | | VS: Add test for MASM supportBrad King2014-08-205-0/+28
| | | | | | | | | | | | | | | | It is now expected to work with VS >= 10 and MSVC >= 13.1.
* | | | Merge topic 'fix-lexer-open-square'Brad King2014-08-192-2/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | 02b3cba9 cmListFileLexer: Fix lexing of single '[' character (#15092)
| * | | cmListFileLexer: Fix lexing of single '[' character (#15092)Brad King2014-08-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The lexer changes in commit v3.0.0-rc1~495^2 (Add Lua-style long brackets and long comments to CMake language, 2013-08-06) accidentally left out matching '[' as a single character in an unquoted argument. Add a lexer rule to match it and extend the RunCMake.Syntax test to cover this case.
* | | | Merge topic 'fix_mumps_file_parser'Brad King2014-08-184-58/+80
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 6d66e396 CTEST: Fix MUMPS file parser and update test
| * | | | CTEST: Fix MUMPS file parser and update testJoseph Snyder2014-08-154-58/+80
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current file parser for a MUMPS routine uses a period "." as the one of the signals that a line of MUMPS code is executable. This is not a correct assumption. Add the period to the list of characters that CTest will not consider the start of a line of code. Update the test routine to have an entry point with code to match the scenario mentioned above.
* | | | Merge topic 'ctest_update_status_only'Brad King2014-08-182-7/+58
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 653529ce CTest: Allow / to be in the build name, and be consistent with the build name 39b5df2f ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version
| * | | | ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the versionBill Hoffman2014-08-182-7/+58
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | This allows ctest_update to get the current version without actually changing the repository. This is useful when using Jenkins or an external project to update the source to a specific version, but you still want the current version to show up in CDash.
* | | | Merge topic 'add-CheckFortranSourceCompiles'Brad King2014-08-181-0/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 7386d0d6 Add CheckFortranSourceCompiles module (#14656)
| * | | | Add CheckFortranSourceCompiles module (#14656)Brad King2014-08-181-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy the CheckCSourceCompiles module and port it to Fortran. Extend the FortranOnly test to try using the new module. Suggested-by: Nicolas Bock <nicolasbock@gmail.com>
* | | | | Makefile: Handle '#' in COMPILE_OPTIONS (#15070)Brad King2014-08-122-0/+9
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the Makefile generators to escape '#' characters on the right hand side of variable assignments in flags.make. This is needed for flags like '-Wno-error=#warnings'. Otherwise the make tool treats them as comments and leaves them out of the _FLAGS variable value. Add a case to the CompileOptions test covering '#' in a COMPILE_OPTIONS value, at least on compilers where it is known to be supported.
* | | | Merge topic 'CMakePackageConfigHelpers-INSTALL_PREFIX'Brad King2014-08-111-0/+38
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 704830ae Help: Add notes for topic 'CMakePackageConfigHelpers-INSTALL_PREFIX' e3007c92 CMakePackageConfigHelpers: Add unit tests for INSTALL_PREFIX option d057bf85 CMakePackageConfigHelpers: Add INSTALL_PREFIX option f3dd116c CMakePackageConfigHelpers: restructure documentation and document commands 64eca30d CMakePackageConfigHelpers: Remove unused variable
| * | | | CMakePackageConfigHelpers: Add unit tests for INSTALL_PREFIX optionDaniele E. Domenichelli2014-08-111-0/+38
| | | | |
* | | | | Genex: Do not consider 'head' when evaluating build propertiesBrad King2014-08-062-0/+15
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When $<TARGET_PROPERTY> names a build property like COMPILE_DEFINITIONS but not the usage requirement (INTERFACE_) version of it, the value should be that used to build the target. It should not be influenced by a dependent 'head' target like usage requirements are. Extend the CompileDefinitions test with a case covering the corrected behavior. Reviewed-by: Stephen Kelly <steveire@gmail.com>
* | | | file: Add ENCODING option to file(STRINGS) command (#10519)Clinton Stimpson2014-08-062-0/+13
|/ / / | | | | | | | | | Support extraction of UTF-8 strings.
* | | Merge topic 'fix-CMP0049-extra-error'Brad King2014-07-314-0/+14
|\ \ \ | | | | | | | | | | | | | | | | b2282631 cmTarget: Do not mistake a preceding error for a CMP0049 failure
| * | | cmTarget: Do not mistake a preceding error for a CMP0049 failureBrad King2014-07-304-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After calls to ProcessSourceItemCMP0049, check for an empty return string to detect a failure instead of trusting GetErrorOccuredFlag. The latter could have been left from a preceding non-fatal error. Extend the RunCMake.Configure test to cover a case that exposed this problem.
* | | | Merge topic 'pdb-genex'Brad King2014-07-3111-0/+86
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | f86850ef Genex: Implement generator expressions for target PDB files. 028ad318 Genex: Simplify filesytem artifact code
| * | | Genex: Implement generator expressions for target PDB files.Nils Gladitz2014-07-3111-0/+86
| | | |
* | | | Handle more than one process with sanitizer errors.Bill Hoffman2014-07-241-0/+7
|/ / / | | | | | | | | | | | | | | | Since the Sanitizers write out one log file per process, a single test might have more than one log file. This commit allows ctest to read all of the log files found for a particual test.
* | | Merge topic 'fix_sanitizer_test_to_work_with_sanitizer'Brad King2014-07-233-2/+10
|\ \ \ | | | | | | | | | | | | | | | | f7d62cac Fix leak and address sanitizer tests to be able to run with real tools.
| * | | Fix leak and address sanitizer tests to be able to run with real tools.Bill Hoffman2014-07-223-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When running CMake under Leak or Address Sanitizer tools, the fake reporting would get picked up by the outer CMake and reported as leaks and address failures on the CMake dashboard. This commit makes sure the test only reports simulated errors when asked to.
* | | | Merge topic 'fix-complex-test-policies'Brad King2014-07-232-0/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | fb95f820 Tests: Set policies in 'complex' tests
| * | | | Tests: Set policies in 'complex' testsBrad King2014-07-222-0/+30
| |/ / / | | | | | | | | | | | | | | | | | | | | These tests cover the OLD behavior of some policies. Set them to OLD to avoid warnings in the test output. Leave a comment that explains why this is done here but not recommended in general.
* | | | Merge topic 'fix_guard_malloc_forbc'Brad King2014-07-221-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | 80ee17d8 Tests/CTestTestMemcheck: Tolerate malloc guard in BC output
| * | | Tests/CTestTestMemcheck: Tolerate malloc guard in BC outputBill Hoffman2014-07-221-1/+1
| | | |