summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-BuildDepends-sleep'Brad King2014-05-202-8/+1
|\ | | | | | | | | e4114ee9 Tests/BuildDepends: Make 3-second delay more robust
| * Tests/BuildDepends: Make 3-second delay more robustBrad King2014-05-192-8/+1
| | | | | | | | | | Use "cmake -E sleep 3" instead of execute_process with a TIMEOUT of 3. This avoids using a busy loop or depending on a timeout to kill it.
* | Merge topic 'compile-features-C-language'Brad King2014-05-2033-17/+258
|\ \ | |/ |/| | | | | e0890d03 Features: Extend concept to C language.
| * Features: Extend concept to C language.Stephen Kelly2014-05-1433-17/+258
| | | | | | | | | | | | | | | | | | | | | | Add properties and variables corresponding to CXX equivalents. Add features for c_function_prototypes (C90), c_restrict (C99), c_variadic_macros (C99) and c_static_assert (C11). This feature set can be extended later. Add a <PREFIX>_RESTRICT symbol define to WriteCompilerDetectionHeader to conditionally represent the c_restrict feature.
* | CMP0022: Fix link language propagation in NEW behaviorBrad King2014-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The languages used in compiling STATIC libraries need to be propagated to dependents regardless of the settings of INTERFACE_LINK_LIBRARIES or CMP0022. They are independent of the libraries in the link interface. Prior to commit v2.8.12~192^2~2 (Introduce the INTERFACE_LINK_LIBRARIES property, 2013-06-04) the cmTarget::ComputeLinkInterface code path for "explicitLibraries" could never be taken for STATIC libraries, so the logic to propagate languages existed only in the non-explicitLibraries code path. After that commit, INTERFACE_LINK_LIBRARIES could be set for STATIC libraries to cause the "explicitLibraries" code path to be taken. The commit also left the old non-explicitLibraries code path conditional on CMP0022 not being set to NEW. Thus link language propagation was left missing from two cases by that commit. The explicitLibraries code path was fixed to propagate languages by commit v2.8.12~149^2~1 (cmTarget: Fix iface libraries and languages for static libraries, 2013-07-26). However, the non-explicitLibraries case was never taught to propagate languages when CMP0022 is set to NEW. Fix that now. Factor the logic to propagate link languages out of the link interface libraries conditions so that it always occurs. Update Tests/Fortran to set CMP0022 to NEW to test this case (because the test passes only if link language propagation works).
* | Merge topic 'xcode-file-type'Brad King2014-05-169-0/+24
|\ \ | | | | | | | | | | | | | | | a339ea65 Xcode: Add source file property to control file type (#14854) ae80cb9f Xcode: Refactor internal source file type selection
| * | Xcode: Add source file property to control file type (#14854)Brad King2014-05-159-0/+24
| |/ | | | | | | | | | | | | | | | | Add source file properties to control Xcode file type attributes: XCODE_EXPLICIT_FILE_TYPE => explicitFileType XCODE_LAST_KNOWN_FILE_TYPE => lastKnownFileType Add a RunCMake.XcodeProject test to verify generated project content.
* | Merge topic 'fix_mumps_coverage'Brad King2014-05-167-1895/+108
|\ \ | |/ |/| | | | | 9ad07fbe CTest: Fix MUMPS coverage parsing and test
| * CTest: Fix MUMPS coverage parsing and testJoseph Snyder2014-05-167-1895/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the MUMPS coverage parser: * Account for tabs after entry points * Stop double incrementing lines that have explicit calls to the 0 line * If a line has been previously marked as non executable, but then contains a count, increment it an extra one to push it back into the executable code set. Add a custom routine and corresponding coverage files in the test case. This file is smaller and has cmcov/mcov files that have data for only that routine.
* | Merge topic 'WriteCompilerDetectionHeader-module'Brad King2014-05-1436-0/+274
|\ \ | | | | | | | | | | | | 62a4a67d Add the WriteCompilerDetectionHeader module.
| * | Add the WriteCompilerDetectionHeader module.Stephen Kelly2014-05-1436-0/+274
| | | | | | | | | | | | | | | | | | | | | | | | Provide a function to write a portable header to detect compiler features. Generate a preprocessor #error for unknown compilers and compiler versions whose features are not yet recorded. This error condition might be relaxed in the future, but for now it is useful for verification of expectations.
* | | Merge topic 'package-disable-registry'Brad King2014-05-122-3/+40
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ba387cb8 Help: Add notes for topic 'package-disable-registry' be8ae960 Allow the Package Registry to be disabled (#14849) d09fda5d Tests: Improve FindPackageTest for in-source builds ac24a1c0 Tests: Improve FindPackageTest exported package version
| * | | Allow the Package Registry to be disabled (#14849)Daniele E. Domenichelli2014-05-121-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a project is packaged for redistribution the local package registries should not be updated or consulted. They are for developers. Add variables to disable use of package registries globally: * CMAKE_EXPORT_NO_PACKAGE_REGISTRY that disables the export(PACKAGE) command * CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY that disables the User Package Registry in all the find_package calls. * CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY that disables the System Package Registry in all the find_package calls. Update documentation and unit tests.
| * | | Tests: Improve FindPackageTest for in-source buildsBrad King2014-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | Use a different directory name for the Exporter build tree so that it is out-of-source even when the main test is in-source.
| * | | Tests: Improve FindPackageTest exported package versionBrad King2014-05-122-2/+9
| | | | | | | | | | | | | | | | | | | | Add a random version component so that the test is unlikely to conflict with other tests of the same CMake version on the same machine.
* | | | Merge topic 'minor-cleanups'Brad King2014-05-124-13/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bc9a8bba Makefile: Undef FEATURE_STRING iteration define after use. eb638c75 Tests: Make CompileFeatures feature list lang-specific. e2f09aff CMakeConfigurableFile: Remove excess newline. 5109b042 Features: Fix GNU 4.8.1 version test. 6a9fdbeb Test: Parameterize the language in the CompileFeature test. f5bf9d43 Tests: Make CompileFeature tests use highest standard known.
| * | | | Tests: Make CompileFeatures feature list lang-specific.Stephen Kelly2014-05-102-4/+4
| | | | |
| * | | | Test: Parameterize the language in the CompileFeature test.Stephen Kelly2014-05-091-19/+23
| | | | |
| * | | | Tests: Make CompileFeature tests use highest standard known.Stephen Kelly2014-05-092-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the use of check_cxx_source_compiles which is now just getting in the way. Blacklist the cxx_alignof feature in the test with GNU 4.7. The test file compiles, but it is documented as available first in GNU 4.8.
* | | | | cmTarget: Evaluate CMP0026 and CMP0051 in calling contextBrad King2014-05-096-1/+41
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These policies should be checked at the call site that tries to access the LOCATION or SOURCES property, not the directory scope containing the target. Thread the caller context through cmTarget::GetProperty to use for checking the policy setting and emitting a diagnostic with proper backtrace. Extend the RunCMake.CMP0026 and RunCMake.CMP0051 tests with cross-directory cases.
* | | | EVIS: Add tests for syntax corner cases and CMP0053Ben Boeckel2014-05-08108-14/+692
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Include tests for: - @ expansion during normal execution - various characters in variable names for comparison between the new and the old parser - corner cases in the parsers - correct messages when behavior is different
* | | Merge topic 'GNU-4.7-features'Brad King2014-05-081-7/+18
|\ \ \ | | | | | | | | | | | | | | | | 9cbc63e4 Features: Record for GNU 4.7.
| * | | Features: Record for GNU 4.7.Stephen Kelly2014-05-071-7/+18
| |/ / | | | | | | | | | | | | Update the CompileFeatures test to verify that unsupported features do not work.
* | | Merge topic 'ctest-bad-generator'Brad King2014-05-084-0/+42
|\ \ \ | | | | | | | | | | | | | | | | 54111286 ctest_build: Do not crash on bad generator name
| * | | ctest_build: Do not crash on bad generator nameBrad King2014-05-074-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If creation of the global generator fails, return early with an error message instead of trying to use the generator and crashing. Add a CTestTestBadGenerator test to cover this case. Reported-by: Mathieu Malaterre <malat@debian.org> Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747306
* | | | Merge topic 'minor-cleanups'Brad King2014-05-084-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 47795421 Fix whitespace in docs. aa283b6b Features: Fix test for GNU 4.8.1. bbfd4cd4 Features: Include the language of the compiler in error messages.
| * | | | Features: Include the language of the compiler in error messages.Stephen Kelly2014-05-074-4/+4
| | | | |
* | | | | Merge topic 'hp-cpp98-tests'Brad King2014-05-085-1/+58
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b0f277db HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards
| * | | | | HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwardsRolf Eike Beer2014-04-255-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old versions of aCC need a special compiler flag to get full C++98 template support as e.g. CMake itself or the Complex and ComplexOneConfig tests need. The same versions need a special flag to get a proper C++ library, too.
* | | | | | Merge topic 'decay-language-version'Brad King2014-05-0828-2/+107
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 205215fb cmTarget: Add CXX_STANDARD_REQUIRED to control decay. 1df2116b Features: Decay language flag if requested is not available. c4f4dac2 Project: Fix exit-on-error with compile feature tests. 5bb7ce72 Project: Use nullary form of main for compile feature tests. 64254e7a Project: Remove extern from static string in feature tests. 0d9c99bf Help: Fix order of help entries. dc7639bd Tests: Fix name of cache variable.
| * | | | | | cmTarget: Add CXX_STANDARD_REQUIRED to control decay.Stephen Kelly2014-05-0727-0/+105
| | |/ / / / | |/| | | |
| * | | | | Tests: Fix name of cache variable.Stephen Kelly2014-05-071-2/+2
| | |_|/ / | |/| | |
* | | | | Merge topic 'no-assert-missing-objlib'Brad King2014-05-074-0/+27
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | d648c476 cmTarget: Don't assert on object libraries for configure-time location.
| * | | | cmTarget: Don't assert on object libraries for configure-time location.Stephen Kelly2014-05-064-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit b8af2011 (cmTarget: Fix listing of source files at configure-time., 2014-04-13) refactored a GetObjectLibrariesCMP0026 method out of GetLanguages. In flight, a conditional use of a target if available was changed to an assert-available. This code is only used to read the LOCATION property at configure time, when the link information is incomplete, and not all targets are defined, so the assert is inappropriate, even though it can lead to incorrect information being generated. CMP0026 warns about the potentially incorrect information anyway.
* | | | | Merge topic 'CMAKE_CXX_KNOWN_FEATURES-global-property'Brad King2014-05-061-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3fdfa5d3 Features: Make CMAKE_CXX_KNOWN_FEATURES a property.
| * | | | | Features: Make CMAKE_CXX_KNOWN_FEATURES a property.Stephen Kelly2014-05-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a 'built-in' variable it imposes a cost on all variable lookups and it is expected to be rarely used.
* | | | | | Merge topic 'dont-rewrite-moc-parameter-file'Brad King2014-05-062-25/+48
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | 17c31b8b Qt4: Extend the Qt4Targets test to cover dir and target moc parameters. 6a5bd7f0 Qt4: write moc parameter file only when content has changed
| * | | | | Qt4: Extend the Qt4Targets test to cover dir and target moc parameters.Stephen Kelly2014-05-062-25/+48
| | |_|_|/ | |/| | |
* | | | | Merge topic 'file-generate-if-different'Brad King2014-05-014-0/+34
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 42e1cd13 file(GENERATE): Only write the file if content is different.
| * | | | | file(GENERATE): Only write the file if content is different.Stephen Kelly2014-04-304-0/+34
| |/ / / / | | | | | | | | | | | | | | | No policy is used to control this behavior for now.
* | | | | Merge topic 'cxx98-features'Brad King2014-04-302-0/+19
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | a36b957f Features: Add cxx_template_template_parameters.
| * | | | Features: Add cxx_template_template_parameters.Stephen Kelly2014-04-162-0/+19
| | |/ / | |/| | | | | | | | | | | | | | Extend the existing feature infrastructure as needed to support both C++11 and C++98 features.
* | | | Merge topic 'feature-absence-hard-error'Brad King2014-04-2112-8/+57
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d0b1cca Features: FATAL_ERROR on compilers with no recorded features. 447fbb3f Tests: Execute compile features tests unconditionally. 597bb72e Tests: Run RunCMake.target_compile_features unconditionally.
| * | | | Features: FATAL_ERROR on compilers with no recorded features.Stephen Kelly2014-04-178-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users of the new target_compile_features command are expected to check the existence of the CMAKE_CXX_COMPILE_FEATURES variable before attempting to use it to require features.
| * | | | Tests: Execute compile features tests unconditionally.Stephen Kelly2014-04-173-5/+19
| | | | | | | | | | | | | | | | | | | | Conditionally create a dummy test if there are no known features.
| * | | | Tests: Run RunCMake.target_compile_features unconditionally.Stephen Kelly2014-04-161-3/+1
| |/ / / | | | | | | | | | | | | | | | | It is so far testing only cases which are fatal regardless of recorded features.
* | | | Merge topic 'ExternalData-missing-not-fatal'Brad King2014-04-2113-10/+67
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | ccd29b9a ExternalData: Warn on missing file instead of failing
| * | | | ExternalData: Warn on missing file instead of failingBrad King2014-04-1713-10/+67
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the primary source tree path named by a DATA{} reference does not exist, produce an AUTHOR_WARNING instead of a FATAL_ERROR. This is useful when writing a new DATA{} reference to a test reference output that has not been created yet. This way the developer can run the test, manually verify the output, and then copy it into place to provide the reference and eliminate the warning. If the named source tree path is expected to be a file but exists as a directory, we still need to produce a FATAL_ERROR.
* | | | CMP0052: Make the warning message more informative.Stephen Kelly2014-04-172-0/+10
| | | | | | | | | | | | | | | | | | | | Print the reason for the offending entry in the INTERFACE_INCLUDE_DIRECTORIES.
* | | | CMP0052: Test that include dirs in install locations cause no warnings.Stephen Kelly2014-04-174-0/+14
|/ / /