Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ExternalData: Preserve escaped semicolons during argument expansion | Brad King | 2013-03-12 | 2 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CMake language implicitly flattens lists so a ";" in a list element must be escaped with a backslash. List expansion removes backslashes escaping semicolons to leave raw semicolons in the values. Teach ExternalData_Add_Test and ExternalData_Expand_Arguments to re-escape semicolons found in list elements so the resulting argument lists work as if constructed directly by the set() command. For example: ExternalData_Add_Test(Data NAME test1 COMMAND ... "a\\;b") ExternalData_Expand_Arguments(Data args2 "c\\;d") add_test(NAME test2 COMMAND ... ${args2}) should be equivalent to set(args1 "a\\;b") add_test(NAME test1 COMMAND ... ${args1}) set(args2 "c\\;d") add_test(NAME test2 COMMAND ... ${args2}) which is equivalent to add_test(NAME test1 COMMAND ... "a;b") add_test(NAME test2 COMMAND ... "c;d") Note that it is not possible to make ExternalData_Add_Test act exactly like add_test when quoted arguments contain semicolons because the CMake language flattens lists when constructing function ARGN values. This re-escape approach at least allows test arguments to have semicolons. While at it, teach ExternalData APIs to not transform "DATA{...;...}" arguments because the contained semicolons are non-sensical. Suggested-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> | ||||
* | ExternalData: Test content link with a space in its name | Brad King | 2013-02-22 | 3 | -0/+12 |
| | | | | | | Extend the Module.ExternalData test to cover a DATA{} reference whose name contains a space. Skip the case when the native build tool does not support spaces. | ||||
* | Fix Module.ExternalData test on Cygwin | Brad King | 2013-02-04 | 1 | -1/+5 |
| | | | | | In ExternalData_URL_TEMPLATES add a leading slash to the path after file:// only if the path does not already start with one. | ||||
* | ExternalData: Collapse ../ components in DATA{} paths | Brad King | 2013-01-30 | 3 | -3/+8 |
| | | | | | Relative path components need to be normalized out even if they appear in the middle of a caller-supplied string. | ||||
* | ExternalData: Add support for SHA 1 and 2 hash algorithms | Brad King | 2013-01-30 | 13 | -0/+18 |
| | | | | | Update the Module.ExternalData and RunCMake.ExternalData tests to cover some of them. | ||||
* | ExternalData: Allow DATA{} syntax to reference directories | Brad King | 2013-01-30 | 5 | -0/+10 |
| | | | | | | | Use a trailing slash to reference a directory. Require that a list of associated files be specified to select from within the directory. One may simply use DATA{Dir/,REGEX:.*} to reference all files but get a directory passed on the command line. | ||||
* | ExternalData: Allow ()-groups in series match regex | Brad King | 2013-01-30 | 1 | -1/+1 |
| | | | | | | | Refactor use of the ExternalData_SERIES_MATCH value to avoid assuming that it has no ()-groups that interfere with group indexing. Extend the Module.ExternalData test to cover this case. | ||||
* | ExternalData: Add tests covering interfaces and errors | Brad King | 2013-01-30 | 60 | -0/+184 |
| | | | | | | | | Add a Module.ExternalData test to verify data retrieval and test argument DATA{} references. Add a RunCMake.ExternalData test to verify error handling and automatic transformation of a raw data to a content link and staged object. | ||||
* | CheckTypeSize: add a test for size of struct members | Rolf Eike Beer | 2012-08-14 | 4 | -2/+68 |
| | |||||
* | CheckCXXCompilerFlag test: make it a CMakeOnly test | Rolf Eike Beer | 2012-01-30 | 1 | -74/+0 |
| | |||||
* | GenerateExportHeader test: add newlines before end of file | Rolf Eike Beer | 2012-01-17 | 5 | -5/+5 |
| | |||||
* | Build each library only once instead of once for each test. | Stephen Kelly | 2011-10-09 | 4 | -5/+58 |
| | |||||
* | Remove unused define. | Stephen Kelly | 2011-10-09 | 1 | -8/+0 |
| | |||||
* | Add some more unit tests. | Stephen Kelly | 2011-09-02 | 10 | -0/+114 |
| | |||||
* | Fix Compiler id variable name. | Stephen Kelly | 2011-08-24 | 1 | -1/+1 |
| | |||||
* | Disable the tests for Watcom. | Stephen Kelly | 2011-08-24 | 1 | -0/+15 |
| | | | | They are timing out and showing up on the dashboard. | ||||
* | Quote paths in case there is a space in one of them. | Stephen Kelly | 2011-08-24 | 1 | -3/+3 |
| | |||||
* | Possibly fix test on HPUX. | Stephen Kelly | 2011-08-23 | 1 | -1/+1 |
| | |||||
* | Fix up the regex command for Intel. | Stephen Kelly | 2011-08-18 | 1 | -1/+1 |
| | |||||
* | Add some settings for non-truncation of test output. | Stephen Kelly | 2011-08-17 | 1 | -0/+3 |
| | |||||
* | Hopefully add version extraction for Intel. | Stephen Kelly | 2011-08-17 | 1 | -0/+6 |
| | |||||
* | Fix the version extraction regex for clang. | Stephen Kelly | 2011-08-17 | 1 | -1/+1 |
| | |||||
* | Test the correct cxx variable. | Stephen Kelly | 2011-08-17 | 1 | -1/+1 |
| | |||||
* | Comment the test assertion for now | Stephen Kelly | 2011-08-17 | 1 | -1/+1 |
| | | | | At least until I know which gcc versions do not pass. | ||||
* | Exclude win32 from hidden visibility checks. | Stephen Kelly | 2011-08-17 | 1 | -1/+3 |
| | |||||
* | Start testing expected values for compiler flags. | Stephen Kelly | 2011-08-17 | 1 | -0/+63 |
| | | | | | Should help catch unhandled flag warnings so far not handled by check_cxx_compiler_flag FAIL_REGEXen. | ||||
* | Disable testing of deprecated macros. | Stephen Kelly | 2011-08-14 | 3 | -19/+19 |
| | | | | | It is not possible to test for it sanely across multiple ancient compilers supported by cmake. | ||||
* | Try to error on deprecated on Intel and SunCC. | Stephen Kelly | 2011-08-13 | 1 | -7/+23 |
| | |||||
* | Perform the -Werror test only once. | Stephen Kelly | 2011-08-13 | 1 | -3/+6 |
| | | | | This way, the output of the test should be visible on CDash. | ||||
* | Add some messaging output to make remaining issues findable. | Stephen Kelly | 2011-08-12 | 1 | -0/+4 |
| | |||||
* | Test -Werror instead of enabling it per compiler. | Stephen Kelly | 2011-08-12 | 1 | -1/+3 |
| | | | | Maybe the Intel compiler supports it too. | ||||
* | Expect the tests to pass if hidden visibilty is not enabled. | Stephen Kelly | 2011-08-12 | 2 | -9/+27 |
| | |||||
* | Don't change the expected build result based on the platform. | Stephen Kelly | 2011-08-11 | 1 | -5/+1 |
| | | | | Hopefully the compiler feature tests will cover those cases. | ||||
* | Test for compiler features, instead of for specific platforms. | Stephen Kelly | 2011-08-11 | 1 | -2/+2 |
| | |||||
* | Split the deprecated available check from setting macro values. | Stephen Kelly | 2011-08-11 | 3 | -3/+3 |
| | |||||
* | Don't export methods on already exported classes. | Stephen Kelly | 2011-08-11 | 3 | -10/+1 |
| | | | | This is always a mistake. | ||||
* | Remember to surround the other deprecated test in the Borland check. | Stephen Kelly | 2011-08-10 | 1 | -1/+4 |
| | |||||
* | Export deprecated free methods too. | Stephen Kelly | 2011-08-10 | 2 | -2/+2 |
| | | | | That way they can be linked to even after being deprecated. | ||||
* | Another attempt at fixing Borland. | Stephen Kelly | 2011-08-10 | 3 | -4/+15 |
| | | | | | Apparently it still needs to be exported, but only declspec(deprecated) does not work. | ||||
* | Use the correct project name compiletest not compilefail | Stephen Kelly | 2011-08-10 | 1 | -1/+1 |
| | | | | Should fix windows VS solution based builds. | ||||
* | Only set the COMPILER_HAS_HIDDEN_VISIBILITY if GCC >= 4.2 | Stephen Kelly | 2011-08-10 | 1 | -16/+1 |
| | | | | | | Hearsay has it that before that version it didn't work properly. Hopefully this will fix more dashboard builds. | ||||
* | Set the CMAKE_RUNTIME_OUTPUT_DIRECTORY for windows builds. | Stephen Kelly | 2011-08-10 | 1 | -0/+4 |
| | |||||
* | Only run the failure tests with gcc >= 4.2 | Stephen Kelly | 2011-08-10 | 1 | -1/+16 |
| | |||||
* | Fix typo and tests failing as a result. | Stephen Kelly | 2011-08-10 | 1 | -1/+1 |
| | |||||
* | Fix tests with clang. | Stephen Kelly | 2011-08-10 | 1 | -4/+5 |
| | |||||
* | Test expected no-op instead of aborting the build. | Stephen Kelly | 2011-08-10 | 1 | -7/+4 |
| | | | | Aborting causes make clean to fail if the executable is not created. | ||||
* | Short-circuit the tests on unsupported compilers. | Stephen Kelly | 2011-08-10 | 1 | -0/+6 |
| | |||||
* | Add a newline at the end of the file. | Stephen Kelly | 2011-08-09 | 1 | -1/+1 |
| | | | | Hopefully fix the test execution reported on CDash. | ||||
* | Add a newline at the end of the file. | Stephen Kelly | 2011-08-08 | 1 | -1/+1 |
| | | | | Hopefully fix the test execution reported on CDash. | ||||
* | Handle the case where the user changes the DEFINE_SYMBOL property. | Stephen Kelly | 2011-08-08 | 5 | -0/+37 |
| | | | | This eases porting of KDE code. |