summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests/BuildDepends: Drop unneeded help for NinjaBrad King2014-11-141-5/+1
| | | | | The extra post-modification invocations of 'ninja' does not seem to be needed anymore for the BuildDepends test to pass.
* Add USES_TERMINAL option for custom commandsPeter Collingbourne2014-11-149-0/+37
| | | | | | Teach the add_custom_command and add_custom_target commands a new USES_TERMINAL option. Use it to tell the generator to give the command direct access to the terminal if possible.
* Tests: Test add_custom_command and add_custom_target error casesBrad King2014-11-1429-0/+85
| | | | | Add RunCMake.add_custom_command and RunCMake.add_custom_target tests to cover the error messages for these commands.
* Merge topic 'fix-config-dependent-tests'Brad King2014-11-141-3/+6
|\ | | | | | | | | 0854d45b Tests: Build config-dependent tests in the same config they run
| * Tests: Build config-dependent tests in the same config they runBrad King2014-11-131-3/+6
| | | | | | | | | | | | | | | | The CPackComponentsForAll-*, GeneratorExpression, and TestsWorkingDirectory tests all build binaries that they later need to run or package for the tested configuration. Tell the 'ctest --build-and-test' call to use the same configuration for driving the build process.
* | Merge topic 'file-GENERATE-source'Brad King2014-11-1314-0/+85
|\ \ | | | | | | | | | | | | | | | b80557c7 file(GENERATE): Evaluate early to allow generating source files 0019d54b Genex: Fix whitespace issue.
| * | file(GENERATE): Evaluate early to allow generating source filesStephen Kelly2014-11-1214-0/+85
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The evaluation files must be known before cmTargetTraceDependencies attempts to find them, but we must actually generate the files after cmTargetTraceDependencies, as that can add to target SOURCES. The limitation is that the generated output name must not depend on the SOURCES of a target if the generated file is used by that target. Mark the output files as GENERATED so that trace dependencies does not expect them to already exist in the filesystem. Move the invokation of ForceLinkerLanguage in the Generate logic to after the generated file names are known. ForceLinkerLanguage tries to determine the sources of a target (in order to determine an already-known language) and otherwise fails to get information about the generated file. Test that the output of file(GENERATE) can be used as a target source file and that accessing the target SOURCES in the name of the output file is an error. Accessing the TARGET_OBJECTS would be a similar error if it was legal to use that generator expression in this context. That is not currently possible and is a different error condition, so test the current error output as a reminder to change the expected output if that becomes possible in the future. Test that generated rule files resulting from cmTargetTraceDependencies appear in the SOURCES generated in the output file.
* | Merge topic 'ExternalProject_UPDATE_DISCONNECTED'Brad King2014-11-132-0/+108
|\ \ | |/ |/| | | | | | | | | | | 3c497f11 Help: Add notes for topic 'ExternalProject_UPDATE_DISCONNECTED' aba5cec6 ExternalProject: Add unit tests for UPDATE_DISCONNECTED 3f606fa7 ExternalProject: Add UPDATE_DISCONNECTED option c0b749cf ExternalProject: Always add a command to a step
| * ExternalProject: Add unit tests for UPDATE_DISCONNECTEDDaniele E. Domenichelli2014-11-062-0/+108
| |
* | Merge topic 'fix_link-line-dedup_regression'Brad King2014-11-115-0/+37
|\ \ | | | | | | | | | | | | 4db31095 Fix link line order when shared libraries are de-duplicated
| * | Fix link line order when shared libraries are de-duplicatedDaniele E. Domenichelli2014-11-105-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.1.0-rc1~227^2~1 (De-duplicate shared library targets in generated link lines, 2014-07-30) we de-duplicate shared library targets on the link line. However, some toolchains will fail linking if an executable is linking to a shared library that is not used directly and a static library that depends on the shared one. The linker may not keep the reference to the shared library the first time and then the symbols needed by the static library may not be found. Fix this by reversing the direction of the for loop that removes the duplicate shared libraries, in order to ensure that the last occurrence of the library is left instead of the first one. Extend Tests/Dependency with a case covering this behavior. Create an executable that links to a shared library and a static library but only needs the shared library as a dependency of the static library. Co-Author: Brad King <brad.king@kitware.com>
| * | Merge branch 'revert-definition-map-lookup' into releasev3.1.0-rc1Brad King2014-10-245-0/+266
| |\ \
* | \ \ Merge topic 'update-curl'Brad King2014-11-101-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c02c747b Tests: Update expected CTestTestFailedSubmit output a427ed0c curl: Skip sanity check that triggers Clang warning 17b24d55 curl: Disable warnings to avoid changing 3rd party code 4c3bd340 curl: Skip check for inet_pton on Windows 54cb23c6 curl: Restore installation of OpenSSL DLLs c50f0327 curl: Restore CURL_CA_BUNDLE option 681693c9 curl: Restore CMake-specific zlib selection code 10d80b68 curl: Restore CMake-specific test and install code 19593042 curl: Configure build to work within CMake cf54aebb curl: Fix curl.h inclusion of curlbuild.h from CMake sources c17e3207 curl: Use arch-aware CHECK_TYPE_SIZE results 1f7cb7e2 curl: Fix detection of headers with dependencies b18c9044 curl: Drop inclusion of .rc file for static lib 860f0a2d curl: Select file APIs on Windows 5a3b55ed curl: Do not use 'dl' on HP-UX 59242702 curl: Simplify if() conditions on check result variables ...
| * | | | Tests: Update expected CTestTestFailedSubmit outputBrad King2014-11-101-0/+1
| | | | | | | | | | | | | | | | | | | | Add another error message that curl now produces.
* | | | | Merge topic 'make-fortran-preprocessor-assembly-targets'Brad King2014-11-103-0/+38
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b6b37e30 Makefile: Add assembly and preprocessed targets for Fortran 0842b084 Makefile: Refactor checks for lang-specific targets and export compile cmds
| * | | | | Makefile: Add assembly and preprocessed targets for FortranTim Gallagher2014-11-103-0/+38
| | |_|_|/ | |/| | | | | | | | | | | | | Extend the FortranOnly test to cover "make <src>.i" targets.
* | | | | file(GENERATE): Use permissions of input file if present.Stephen Kelly2014-11-045-0/+28
|/ / / /
* | | | ExternalProject: Add unit testsDaniele E. Domenichelli2014-11-036-1/+89
| | | |
* | | | Merge topic 'fix-configure_file-COPYONLY'Brad King2014-11-033-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1531df2b configure_file: Warn about unknown arguments 4abbb140 Qt4: Fix configure_file call to use COPYONLY, not COPY_ONLY bd7ba8e2 KWSys: Fix configure_file call to use COPYONLY, not COPY_ONLY e9282782 Help: Fix configure_file call to use COPYONLY, not COPY_ONLY
| * | | | configure_file: Warn about unknown argumentsBrad King2014-10-313-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the RunCMake.configure_file test with a case covering possible common typos of the COPYONLY option. Reported-by: Iosif Neitzke <iosif.neitzke@gmail.com>
* | | | | Merge topic 'ExternalProject_CMAKE_CACHE_DEFAULT_ARGS'Brad King2014-10-3113-12/+117
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 609037f4 ExternalProject: Add unit tests for CMAKE_CACHE_DEFAULT_ARGS 98cdb658 ExternalProject: Add CMAKE_CACHE_DEFAULT_ARGS arguments 36cf8a1e Tests/Tutorial: Fix when USE_MYMATH is OFF
| * | | | | ExternalProject: Add unit tests for CMAKE_CACHE_DEFAULT_ARGSDaniele E. Domenichelli2014-10-316-0/+80
| | | | | |
| * | | | | ExternalProject: Add CMAKE_CACHE_DEFAULT_ARGS argumentsDaniele E. Domenichelli2014-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This argument allows to set default arguments that are written in the initial cache file, but that are not forced, and therefore allows the user to change these values later (CMAKE_ARGS and CMAKE_CACHE_ARGS always overwrite the values). Also add some documentation to explain the differences between these 3 arguments. Extend ExternalProjectLocal test to cover CMAKE_CACHE_DEFAULT_ARGS.
| * | | | | Tests/Tutorial: Fix when USE_MYMATH is OFFDaniele E. Domenichelli2014-10-316-12/+36
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unit tests for the square root of "-25" currently fail when USE_MYMATH is disabled. The "mysqrt" method in the tutorials, returns "0" for a negative value, while "sqrt" returns "NaN", and therefore the output is not accepted by the test. This patch checks if the number is negative and eventually returns "0" before calling "sqrt" or "mysqrt" to fix this issue. Printing a NaN might cause issues with the string catched by the tests on some platform. Therefore assume that "0" is correct and "fix" the USE_MYMATH=OFF version by checking if the number is negative and eventually returning "0" before calling "sqrt" or "mysqrt".
* | | | | Merge topic 'VERSION_no_sscanf'Brad King2014-10-311-6/+82
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef09df64 cmSystemTools: reimplement verson comparison without sscanf() 667560c8 extend the testing for version comparison
| * | | | | cmSystemTools: reimplement verson comparison without sscanf()Rolf Eike Beer2014-10-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This now has the advantage that it works with version strings with any number of components.
| * | | | | extend the testing for version comparisonRolf Eike Beer2014-10-291-6/+80
| |/ / / / | | | | | | | | | | | | | | | | | | | | This now checks also the negative outcome of the comparision operation, and adds a bunch more different cases.
* | | | | Merge topic 'wince-tests'Brad King2014-10-301-1/+52
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5bd29b88 Tests: Run Tutorial steps 1-4 as tests for Windows CE
| * | | | | Tests: Run Tutorial steps 1-4 as tests for Windows CEPascal Bach2014-10-291-1/+52
| | | | | |
* | | | | | Merge topic 'fix--D-command-line-parsing'Brad King2014-10-306-0/+15
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | aee7e4a0 cmCacheManager: parse -D flags more strictly 368e8de4 Tests: test -D parsing on the command line
| * | | | | cmCacheManager: parse -D flags more strictlyBen Boeckel2014-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of: -DCACHE_VARS=-DEXTERNAL_PROJECT_CMAKE_ARG:BOOL=TRUE the variable is parsed out as: CACHE_VARS=-DEXTERNAL_PROJECT_CMAKE_ARG because the parser allows '=' in the variable name. Disallow such a name on the command line.
| * | | | | Tests: test -D parsing on the command lineBen Boeckel2014-10-206-0/+15
| | |/ / / | |/| | |
* | | | | Merge topic 'add_javascript_coverage_parser'Brad King2014-10-295-0/+565
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 220e8134 CTest: Add Javascript coverage parser
| * | | | | CTest: Add Javascript coverage parserJoseph Snyder2014-10-295-0/+565
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a coverage parser for the Blanket.js library using the JSON output of the mocha.js test runner. Add a test for the new parser.
* | | | | | Merge topic 'compiler-include-encoding'Brad King2014-10-281-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | 197a026c Fix failing StringFileTest when using unicode characters.
| * | | | | Fix failing StringFileTest when using unicode characters.Clinton Stimpson2014-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some compilers (e.g. MSVC) can have a different encoding than the build tool. Changing the test to not use a full include path written to a header file by cmake.
* | | | | | Merge topic 'autorcc-depends'Brad King2014-10-275-0/+67
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6e1c359f QtAutogen: Regenerate qrc files if their input changes (#15074) a2995318 QtAutogen: Expand rccfiles into a vector early in the autogen process. 506151af QtAutogen: Extract a GetRccExecutable method.
| * | | | | QtAutogen: Regenerate qrc files if their input changes (#15074)Stephen Kelly2014-10-245-0/+67
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get dependencies from the output of ``rcc --list`` if using Qt 5. Otherwise process the file in the same way as the qt4_add_resources macro. This does not work for RCC files which are generated. The cmake_autogen build step is implemented as a PRE_BUILD step of the target currently if possible, rather than a standalone custom target. This is to keep the number of (synthesized) custom targets that appear in the UI low, but in some cases it is necessary to fall back to a full custom target. Fall back to a full custom target for the VS builds if autorcc is used.
* | | | | Merge topic 'revert-definition-map-lookup'Brad King2014-10-275-0/+266
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | | | | | d1b62185 Merge branch 'parent-scope-tests' into variable-pull-failure 5f414cef Revert "cmDefinitions: Don't store parent lookups" e0c0b1ac test: add a test for PARENT_SCOPE with multiple scopes 064c415d test: add test for PARENT_SCOPE behavior
| * | | Merge branch 'parent-scope-tests' into variable-pull-failureBen Boeckel2014-10-245-0/+266
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * parent-scope-tests: test: add a test for PARENT_SCOPE with multiple scopes test: add test for PARENT_SCOPE behavior Conflicts: Tests/RunCMake/set/RunCMakeTest.cmake
| | * | | test: add a test for PARENT_SCOPE with multiple scopesBen Boeckel2014-10-243-0/+249
| | | | | | | | | | | | | | | | | | | | See the comment in the test for what is being tested here.
| | * | | test: add test for PARENT_SCOPE behaviorBen Boeckel2014-10-243-0/+17
| | | | | | | | | | | | | | | | | | | | Test code courtesy of Alex Merry <alex.merry@kde.org>.
* | | | | Merge topic 'ExternalProject-no-cygwin-hg-on-windows'Brad King2014-10-221-0/+7
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | ad984b60 Tests/ExternalProject: Skip Windows hg tests with cygwin hg
| * | | | Tests/ExternalProject: Skip Windows hg tests with cygwin hgBrad King2014-10-221-0/+7
| | |_|/ | |/| | | | | | | | | | | | | | The cygwin hg client is a text file with a '#!/bin/python" line. This cannot run on Windows.
* | | | Merge topic 'cpack-rpm-component-descriptions'Brad King2014-10-222-1/+67
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 603ef7fd CPackRPM: Add component based packaging description and summary
| * | | | CPackRPM: Add component based packaging description and summaryDomen Vrankar2014-10-212-1/+67
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable per-component description and summary setting through CPACK_RPM_<component>_PACKAGE_DESCRIPTION, CPACK_COMPONENT_<compName>_DESCRIPTION and CPACK_RPM_<component>_PACKAGE_SUMMARY variables. Extend the CPackComponentsForAll test to cover these.
* | | | Merge topic 'cmake-cmp0054-warnings'Brad King2014-10-2111-20/+20
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 29c3edb8 Avoid if() quoted auto-dereference
| * | | | Avoid if() quoted auto-dereferenceBen Boeckel2014-10-2011-20/+20
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | When testing CMAKE_<LANG>_COMPILER_ID values, do not explicitly dereference or quote the variable. We want if() to auto-dereference the variable and not its value. Also replace MATCHES with STREQUAL where equivalent.
* | | | Merge topic 'ctest-delphi-coverage'Brad King2014-10-214-0/+217
|\ \ \ \ | |/ / / |/| | | | | | | | | | | 5c31c3e4 CTest: Add code coverage parser for Pascal/Delphi
| * | | CTest: Add code coverage parser for Pascal/DelphiJoseph Snyder2014-10-214-0/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a class to parse the HTML output of the Delphi-code-coverage tool http://code.google.com/p/delphi-code-coverage/ Add a test for the new parser.