summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-RunCMake-updates'Brad King2015-02-1059-61/+18
|\ | | | | | | | | | | | | c0d8e715 RunCMake: Allow specifying the stderr file for a test. 68d29f51 RunCMake: Allow specifying the directory to run tests in. 1c3918ff RunCMake: Remove unneeded files.
| * RunCMake: Allow specifying the stderr file for a test.Stephen Kelly2015-02-091-1/+4
| |
| * RunCMake: Allow specifying the directory to run tests in.Stephen Kelly2015-02-091-3/+14
| |
| * RunCMake: Remove unneeded files.Stephen Kelly2015-02-0957-57/+0
| | | | | | | | | | The default expectation of RunCMake tests is empty content, so there is no need to specify it.
* | Merge topic 'no-global-setlocale'Brad King2015-02-101-2/+0
|\ \ | | | | | | | | | | | | | | | | | | 0f870234 Merge branch 'backport-no-global-setlocale' into no-global-setlocale cd408d93 Add setlocale() calls around use of libarchive APIs (#14934, #15377) 87be2e14 Do not call setlocale() globally in CMake applications (#15377)
| * \ Merge branch 'backport-no-global-setlocale' into no-global-setlocaleBrad King2015-02-061-2/+0
| |\ \ | | |/ | |/| | | | Resolve conflict in Source/CMakeLists.txt by taking both changes.
| | * Do not call setlocale() globally in CMake applications (#15377)Brad King2015-02-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert the changes made by commit v3.1.0-rc1~406^2~1 (Encoding: Add setlocale() to applications, 2014-05-30) and commit v3.1.0-rc1~406^2 (Encoding: Change to only set LC_CTYPE, 2014-06-11), and other setlocale calls added later in their spirit. CMake has not been taught how to deal with non-C locales everywhere. We do not define any functionality for character conversions for non-ASCII strings. Another solution will be needed to address the original problem motivating addition of setlocale() calls.
* | | CheckFortranCompilerFlag: Add test caseBrad King2015-02-051-0/+7
|/ / | | | | | | Extend the FortranOnly test with a case covering this module.
* | Merge topic 'fix-C-standard-features'Brad King2015-02-055-0/+150
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | fb3487a9 Features: Fix C90 feature detection. 6027798a Features: Allow setting standard dialect below the default. 9d767810 Features: Populate CMAKE_<LANG>_STANDARD_DEFAULT only for supported compilers. 72537e44 Features: Add dialect compile flags only if default is known. 82c9d686 AppleClang: Remove redundant UNIX condition.
| * | Features: Fix C90 feature detection.Stephen Kelly2015-02-045-0/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug caused c_function_prototypes to not be recorded at configure time when compiling with -std=gnu99 or similar. In the case of feature recording, that was not a problem, because the logic in CMakeDetermineCompileFeatures.cmake currently assumes that a feature present for an earlier standard is present for a later standard. However, the detection strings are also used in WriteCompilerDetectionHeader, so the feature macro has been defined to '0' when using a later language dialect. Fix that by not checking the existence of the __STDC_VERSION__ macro at all when detecting C90 features.
* | | Merge topic 'CTestCoverageCollectGCOV-refinements'Brad King2015-02-043-0/+59
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 809a5a5e Help: Add notes for topic 'CTestCoverageCollectGCOV-refinements' 03c0812c CTestCoverageCollectGCOV: Fix handling of international characters 8caa4e72 CTestCoverageCollectGCOV: Add test case 5c828cc8 CTestCoverageCollectGCOV: Allow custom flags to gcov 30cb628e CTestCoverageCollectGCOV: Fix handling of large file counts
| * | | CTestCoverageCollectGCOV: Add test caseBill Hoffman2015-02-033-0/+59
| | | |
* | | | Merge topic 'rpm_multi_prefix'Brad King2015-02-038-9/+79
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | 3ec02547 CPackRPM: Allow multiple path relocation prefixes for one package
| * | | CPackRPM: Allow multiple path relocation prefixes for one packageDomen Vrankar2015-01-298-9/+79
| | | |
* | | | Features: Record for MSVC 2010-2015Robert Maynard2015-01-302-2/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, in WCDH add MSVC Compatibility for cxx_align{of,as}. Co-Author: Stephen Kelly <steveire@gmail.com> Co-Author: Brad King <brad.king@kitware.com>
* | | | Features: Define meaning for no language standard defaultBrad King2015-01-293-31/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define an empty string in CMAKE_<LANG>_STANDARD_DEFAULT to mean that the toolchain has no notion of lanuage standard levels. In this case the <LANG>_STANDARD[_REQUIRED] properties will have no effect. Update the RunCMake.CompileFeatures test to exclude the LinkImplementationFeatureCycle test when there is no standard default. It can never fail because no use of specific features will adjust the CXX_STANDARD level required for any target since the standard levels have no meaning in this case.
* | | | Merge topic 'xcode-revise-make-program'Brad King2015-01-291-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ab9fa54d Xcode: Switch to internal CMAKE_MAKE_PROGRAM lookup by generator (#15324) 11e2e6ca Xcode: Select make program at build time e4055a61 Xcode: Add internal API to find xcodebuild
| * | | | Xcode: Switch to internal CMAKE_MAKE_PROGRAM lookup by generator (#15324)Brad King2015-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "cmakexbuild" wrapper is not needed for Xcode 4 and above, and the path to it may change when CMake moves. Avoid storing a specific path to a build program in CMakeCache.txt and instead compute the value for CMAKE_MAKE_PROGRAM on demand. However, if a user does set the value explicitly then honor it. This does for Xcode what commit v3.0.0-rc1~260^2~4 (VS: Switch to internal CMAKE_MAKE_PROGRAM lookup by generators, 2013-11-15) did for Visual Studio generators.
* | | | | Merge topic 'vs-shader-flags'Brad King2015-01-293-0/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4775c901 VS: Add source file property to set extra hlsl shader flags
| * | | | | VS: Add source file property to set extra hlsl shader flagsRobert Goulet2015-01-283-0/+10
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Create a VS_SHADER_FLAGS source file property so that we can set all other Visual Studio .hlsl shader file compilation flags.
* | | | | Merge topic 'fix-OBJECT_DEPENDS-after-path-normalization'Brad King2015-01-293-0/+19
|\ \ \ \ \ | |_|/ / / |/| | | / | | |_|/ | |/| | 9259d778 Normalize OBJECT_DEPENDS paths to match custom commands (#15366)
| * | | Normalize OBJECT_DEPENDS paths to match custom commands (#15366)Brad King2015-01-283-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Custom command path normalization added in commit v3.1.0-rc1~471^2 (add_custom_command: Normalize OUTPUT and DEPENDS paths, 2014-05-28) broke use of OBJECT_DEPENDS to bring in custom commands because the latter paths were not normalized too. Normalize them and add a test case. Reported-by: Daniel v. Gerpen
| * | | Merge branch 'fix-LOCATION-with-TARGET_OBJECTS' into releaseBrad King2015-01-144-0/+20
| |\ \ \
| * \ \ \ Merge branch 'fix-autouic-regression' into releaseBrad King2015-01-122-0/+9
| |\ \ \ \
* | \ \ \ \ Merge topic 'shorten-test-paths'Brad King2015-01-289-30/+22
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70c50962 Tests: Shorten paths in ExternalProjectLocal 539c5c25 Tests: Shorten paths in RunCMake.CompileFeatures 494f6e8d Tests: Shorten paths in CompileDefinitions
| * | | | | Tests: Shorten paths in ExternalProjectLocalBrad King2015-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a shorter name for the external project base directory to allow longer CMake build tree directory names on Windows.
| * | | | | Tests: Shorten paths in RunCMake.CompileFeaturesBrad King2015-01-264-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shorten the NotAFeature_OriginDebug_target_compile_features case name to avoid creating really long paths that fail with some tools on Windows.
| * | | | | Tests: Shorten paths in CompileDefinitionsBrad King2015-01-254-27/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shorten the add_definitions command test directory and target names to avoid creating really long paths that fail with some tools on Windows. While at it, remove unnecessary project() command calls.
* | | | | | Merge topic 'file-strings-utf-16'Brad King2015-01-2713-0/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1f77a700 file: Teach STRINGS to support UTF-16 and UTF-32 encodings
| * | | | | | file: Teach STRINGS to support UTF-16 and UTF-32 encodingsJustin Borodinsky2015-01-2713-0/+29
| | | | | | |
* | | | | | | Merge topic 'test-features-enforce-expectation'Brad King2015-01-271-0/+15
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 67e76e82 Features: Fix test to reject missing expectation definitions 3046be77 Features: Emit a test failure if 'override' is present but not expected
| * | | | | | | Features: Fix test to reject missing expectation definitionsBrad King2015-01-261-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever feature support is added to a compiler, the CompileFeatures test needs to be updated to set expected availability of features. Add #error directives to ensure the test fails if expectations are not set. Suggested-by: Stephen Kelly <steveire@gmail.com>
| * | | | | | | Features: Emit a test failure if 'override' is present but not expectedStephen Kelly2015-01-261-0/+3
| | | | | | | |
* | | | | | | | Merge topic 'cmake-E-tar-files-from'Brad King2015-01-2714-0/+23
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 44fd71de cmake: Teach "-E tar" command a "--files-from=" option
| * | | | | | | | cmake: Teach "-E tar" command a "--files-from=" optionBrad King2015-01-2614-0/+23
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read file names from the lines of a specified file. Reject input lines starting in '-' to leave room for option parsing to be added later. Add just '--add-file=' now to allow files starting in '-' to be specified.
* | | | | | | | Merge topic 'test-rerun-cmake'Brad King2015-01-2714-0/+106
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f2dc8dc configure_file: Test that CMake re-runs on input change or output missing daf95a38 try_compile: Test that CMake re-runs on input change
| * | | | | | | | configure_file: Test that CMake re-runs on input change or output missingBrad King2015-01-276-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Makefile generators we expect that touching or modifying the input file of a configure_file, or removing its output, will cause CMake to re-run on the next build. Extend the RunCMake.configure_file test with a case covering this. Also check that CMake does not re-run if nothing has changed.
| * | | | | | | | try_compile: Test that CMake re-runs on input changeBrad King2015-01-278-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Makefile and Ninja generators we expect that touching the input source file for a try_compile will cause CMake to re-run on the next build. Extend the RunCMake.try_compile test with a case covering this. Also check that CMake does not re-run if nothing has changed.
* | | | | | | | | Merge topic 'tests-RunCMake-normalize-newlines'Brad King2015-01-271-0/+1
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | / / / / / / / | |/ / / / / / / |/| | | | | | | bf05938b Tests/RunCMake: Normalize newlines before checking actual output
| * | | | | | | Tests/RunCMake: Normalize newlines before checking actual outputBrad King2015-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We read the expected output with file(STRINGS) which converts CRLF newlines to LF. Do the same with the actual output before comparing.
* | | | | | | | Merge topic 'tests-RunCMake-make-program'Brad King2015-01-262-0/+4
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | 23bf98fc Tests/RunCMake: Honor CMAKE_MAKE_PROGRAM
| * | | | | | | Tests/RunCMake: Honor CMAKE_MAKE_PROGRAMBrad King2015-01-242-0/+4
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | If tests are using an explicit make program, pass it through to RunCMake tests so that any that actually do build use the expected tool.
* | | | | | | Merge topic 'try-run-link-libraries'Brad King2015-01-269-2/+50
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d0adcccb try_run: Add tests for LINK_LIBRARIES with mock libraries. 223c5cb7 try_run: Add test for bad link libraries. e2b1f058 try_run: Add support for LINK_LIBRARIES option.
| * | | | | | | try_run: Add tests for LINK_LIBRARIES with mock libraries.Matt McCormick2015-01-261-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the ExportImport test to try using an imported library with try_run.
| * | | | | | | try_run: Add test for bad link libraries.Matt McCormick2015-01-267-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based off the corresponding try_compile test.
| * | | | | | | try_run: Add support for LINK_LIBRARIES option.Matt McCormick2015-01-261-2/+2
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most functionality is already implemented in Source/cmCoreTryCompile.{h,cxx}. Document and improve argument parsing. This functionality is already being used by a number of modules, like CheckCSourceCompiles.cmake, but it is not documented.
* | | | | | | Merge topic 'INTERFACE_SYSTEM_INCLUDE_DIRECTORIES-update'Brad King2015-01-233-1/+23
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85857e6d Help: Clarify INTERFACE_SYSTEM_INCLUDE_DIRECTORIES documentation. ee38062b IncludeDirectories: Respect SYSTEM flag when using CONFIG genex.
| * | | | | | | IncludeDirectories: Respect SYSTEM flag when using CONFIG genex.Stephen Kelly2015-01-223-1/+23
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Update the Makefile and Ninja generators to use the config when requesting the include flags.
* | | | | | | Merge topic 'test-complex-remove-bad-indentation'Brad King2015-01-232-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 560b3e9f Tests: Remove incorrect indentation from Complex test comment
| * | | | | | | Tests: Remove incorrect indentation from Complex test commentBrad King2015-01-222-2/+2
| |/ / / / / /