summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'qt4-target-depends'Brad King2013-01-073-0/+45
|\ | | | | | | | | 57a67bf Qt4: Add module dependencies to the IMPORTED targets
| * Qt4: Add module dependencies to the IMPORTED targetsStephen Kelly2013-01-073-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This means for example, that consumers can use: target_link_libraries(foo ${QT_QTGUI_LIBRARIES}) instead of also needing to specify all 'public' dependencies: target_link_libraries(foo ${QT_QTGUI_LIBRARIES} ${QT_QTCORE_LIBRARIES} ) when using the IMPORTED targets. Also populate the IMPORTED_LINK_DEPENDENT_LIBRARIES property so CMake can help the linker find shared library dependencies.
* | Merge topic 'fix-test-warnings'Brad King2013-01-031-1/+1
|\ \ | | | | | | | | | | | | b6346f2 Tests: Fix warning about unused variable
| * | Tests: Fix warning about unused variableStephen Kelly2013-01-031-1/+1
| |/ | | | | | | | | | | | | | | | | Resolve this warning: ".../Tests/CMakeCommands/target_link_libraries/depB.cpp", line 8: warning: variable "a" was declared but never referenced DepA a; ^
* | Merge topic 'include-dirs-debugging'Brad King2013-01-0313-13/+113
|\ \ | | | | | | | | | | | | | | | | | | 0941d62 Add a way to print the origins of used include directories. 18a3195 Keep track of INCLUDE_DIRECTORIES as a vector of structs. 76ea420 Use cmsys::auto_ptr to manage cmCompiledGeneratorExpressions
| * | Add a way to print the origins of used include directories.Stephen Kelly2013-01-034-0/+82
| | |
| * | Keep track of INCLUDE_DIRECTORIES as a vector of structs.Stephen Kelly2013-01-039-13/+31
| |/ | | | | | | | | The struct can keep track of where the include came from, which gives us proper backtraces.
* | Merge topic 'fix-12904-avoid-overflow'Brad King2013-01-033-0/+101
|\ \ | | | | | | | | | | | | | | | e378ba5 Add CTestLimitDashJ test (#12904) 3247806 CTest: Prevent creation of unbounded number of tests in ctest (#12904)
| * | Add CTestLimitDashJ test (#12904)David Cole2013-01-033-0/+101
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test that verifies that when ctest -j 4 is called, at most, 4 tests are executed at any one time. The test works by running the same script as each of 100 tests. And then setting up test properties for DEPENDS, RUN_SERIAL, PROCESSORS and COST in order to get the tests to run in a semi-deterministic ordering, even in parallel. The script writes a file, sleeps for a bit, and then deletes the file. In the meantime, it counts files that currently exist, and emits output that triggers a test failure if the count of files is ever greater than 4. Prior to the commit that fixed bug #12904, this would result in a failed test because the output of some of the tests would indicate that more than 4 tests were running simultaneously. Now that this issue is resolved, this test will help guarantee that it stays resolved moving forward.
* | Make targets depend on the link interface of their dependees.Stephen Kelly2013-01-034-1/+25
|/
* Merge topic 'skip-variable-re-expansion'David Cole2012-12-118-0/+63
|\ | | | | | | | | 711b63f Add policy CMP0019 to skip include/link variable re-expansion
| * Add policy CMP0019 to skip include/link variable re-expansionBrad King2012-12-078-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically CMake has always expanded ${} variable references in the values given to include_directories(), link_directories(), and link_libraries(). This has been unnecessary since general ${} evaluation syntax was added to the language a LONG time ago, but has remained for compatibility with VERY early CMake versions. For a long time the re-expansion was a lightweight operation because it was only processed once at the directory level and the fast-path of cmMakefile::ExpandVariablesInString was usually taken because values did not have any '$' in them. Then commit d899eb71 (Call ExpandVariablesInString for each target's INCLUDE_DIRECTORIES, 2012-02-22) made the operation a bit heavier because the expansion is now needed on a per-target basis. In the future we will support generator expressions in INCLUDE_DIRECTORIES with $<> syntax, so the fast-path in cmMakefile::ExpandVariablesInString will no longer be taken and re-expansion will be very expensive. Add policy CMP0019 to skip the re-expansion altogether in NEW behavior. In OLD behavior perform the expansion but improve the fast-path heuristic to match ${} but not $<>. If the policy is not set then warn if expansion actually does anything. We expect this to be encountered very rarely in practice.
* | CMake: Stylistic changes and documentation tweaksDavid Cole2012-12-051-2/+0
| | | | | | | | ...for the contributed file and string TIMESTAMP sub-commands.
* | CMake: Add TIMESTAMP subcommand to string and file commandsNils Gladitz2012-12-0517-0/+99
| |
* | Merge topic 'fix-11575-add-wix-support-to-cpack'David Cole2012-12-057-0/+182
|\ \ | | | | | | | | | | | | | | | | | | | | | a74bd47 CPack: Fix dashboard errors and warnings (#11575) ad0f735 CPack: Fix dashboard warnings (#11575) 0729ad4 CPack: Fix dashboard errors (#11575) 85baac1 CPack: Add a WiX Generator (#11575)
| * | CPack: Add a WiX Generator (#11575)Nils Gladitz2012-12-037-0/+182
| |/ | | | | | | | | | | | | | | | | | | This new CPack generator produces an *.msi installer file. Requires having the WiX Toolset installed in order to work properly. Download the WiX Toolset installer "WiX36.exe" here: http://wix.codeplex.com/releases/view/93929
* | Merge topic 'fix-cpack-tests'Brad King2012-11-303-15/+7
|\ \ | | | | | | | | | | | | 587b7b6 Tests: Use the right path to CPack value for running CPack tests
| * | Tests: Use the right path to CPack value for running CPack testsDavid Cole2012-11-293-15/+7
| |/ | | | | | | | | | | | | | | | | These tests were not running properly on Visual Studio or Xcode dashboards before this commit because of the "Debug" or "Release" sub-directory. The scripts already have CMAKE_CPACK_COMMAND since the correct CMake executable is used to run the scripts, so just use that, rather than passing down an incorrect path to the CPack executable.
* | Merge topic 'fix-watcom-test-timeout'Brad King2012-11-301-1/+1
|\ \ | | | | | | | | | | | | 2238505 Watcom: Avoid prompt from wmake about dll with no exports...
| * | Watcom: Avoid prompt from wmake about dll with no exports...David Cole2012-11-281-1/+1
| | | | | | | | | | | | | | | ...by simply building a STATIC lib for the test, instead of a SHARED one. Fixes test timeout on the Watcom dashboards.
* | | Merge topic 'multiarch-include'Brad King2012-11-304-0/+32
|\ \ \ | |_|/ |/| | | | | | | | | | | da1d9ba Test find_path multiarch support (#13742) b96f6fc Teach find_(path|file) about Linux multiarch (#13742)
| * | Test find_path multiarch support (#13742)Brad King2012-11-264-0/+32
| | |
* | | Merge topic 'generator-expression-fixes'Brad King2012-11-274-0/+24
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | b581be0 Genex: Don't segfault on $<FOO,> 07749e3 Genex: Ensure that $<0:...> has a parameter. ee96dc7 Genex: Extract a method to parse parameters.
| * | Genex: Don't segfault on $<FOO,>Stephen Kelly2012-11-272-0/+10
| | | | | | | | | | | | | | | | | | Treat the comma as part of the identifier here. It will later not resolve to a generator expression and the user gets a proper error message.
| * | Genex: Ensure that $<0:...> has a parameter.Stephen Kelly2012-11-274-0/+14
| |/
* | NMake: Add a test to demonstrate EmptyDepends issue (#13392)David Cole2012-11-212-0/+17
|/
* Merge topic 'per-config-EXCLUDE_FROM_DEFAULT_BUILD' into vs-global-sectionsBrad King2012-11-165-0/+92
|\ | | | | | | | | Conflicts: Source/cmGlobalVisualStudio7Generator.h
| * Serialize tests for EXCLUDE_FROM_DEFAULT_BUILDBrad King2012-11-131-0/+7
| | | | | | | | | | The tests share a single build directory and so should not run in parallel. While at it, add the build dir to the test_clean target.
| * Add tests for EXCLUDE_FROM_DEFAULT_BUILDPetr Kmoch2012-11-135-0/+85
| | | | | | | | | | Add tests for EXCLUDE_FROM_DEFAULT_BUILD and its per-configuration variants.
* | Add tests for VS_SOLUTION_GLOBAL_SECTIONSPetr Kmoch2012-11-1618-0/+120
| | | | | | | | | | Add tests for correct appliation of directory properties VS_SOLUTION_GLOBAL_SECTIONS_*
* | Merge topic 'only-git-fetch-when-necessary'Brad King2012-11-135-0/+229
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a41d3a4 ExternalProjectUpdateTest: Only support Git 1.6.5 and greater. de760c1 ExternalProject: Verify when a fetch occurs during update test. 0a34433 ExternalProject: Make sure the ExternalProjectUpdate setup is available. 9b66c8f ExternalProject: Always do a git fetch for a remote ref. 2619f4d ExternalProject: Add tests for UPDATE_COMMAND. 378aa12 ExternalProject: Do smoke tests for Git Tutorial builds. d075829 ExternalProject: Only run 'git fetch' when required.
| * | ExternalProjectUpdateTest: Only support Git 1.6.5 and greater.Matt McCormick2012-11-131-0/+18
| | |
| * | ExternalProject: Verify when a fetch occurs during update test.Matt McCormick2012-11-131-10/+26
| | | | | | | | | | | | | | | | | | | | | The performance feature of only performing a git fetch when needed during the ExternalProject update step is verified during the test. A fetch is identified by removing the FETCH_HEAD file and checking for its reincarnation.
| * | ExternalProject: Make sure the ExternalProjectUpdate setup is available.Matt McCormick2012-11-132-3/+19
| | | | | | | | | | | | | | | This prepares the numberous tests that occur in the ExternalProjectUpdate test. The tests were passing previously because a fresh build was not performed.
| * | ExternalProject: Always do a git fetch for a remote ref.Matt McCormick2012-11-131-1/+3
| | | | | | | | | | | | | | | Remote git refs always require a git fetch, because the remote may move around where the ref points.
| * | ExternalProject: Add tests for UPDATE_COMMAND.Matt McCormick2012-11-134-0/+166
| | | | | | | | | | | | | | | | | | Tests are added for UPDATE_COMMAND to ensure it is working properly. Testing infrastructure is added along with tests for Git, but tests for other version control systems could easily be added in the future.
| * | ExternalProject: Do smoke tests for Git Tutorial builds.Matt McCormick2012-11-031-0/+11
| | |
* | | Merge topic 'link-depends-no-shared'Brad King2012-11-135-0/+73
|\ \ \ | | | | | | | | | | | | | | | | | | | | 306796e Teach BuildDepends test to cover LINK_DEPENDS_NO_SHARED ed97631 Optionally skip link dependencies on shared library files
| * | | Teach BuildDepends test to cover LINK_DEPENDS_NO_SHAREDBrad King2012-11-095-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build a shared library and an executable linking to it inside the inner test. Set LINK_DEPENDS_NO_SHARED on the executable. Add a custom target to compare the output file times. Verify that on the first build the executable is newer than the library. Then modify a library source file. Verify that on the second build the library is newer because the executable did not have a dependency to re-link.
* | | | Merge topic 'deprecate-load_command'Brad King2012-11-135-0/+14
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | d2d4398 load_command: Deprecate and document pending removal
| * | | load_command: Deprecate and document pending removalBrad King2012-11-075-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command works only when building projects using the same architecture as the running CMake binary. Since it was introduced CMake has learned macro() and function() to add commands, and the execute_process() command to launch advanced external computations. Add a RunCMake.load_command test to verify the warning appears.
* | | | Merge topic 'FixImplicitDepends2'Brad King2012-11-062-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 05f162c AddCustomCommand: Handle multiple IMPLICIT_DEPENDS files (#10048) c66f03a cmDepends: No dependency-vector erasure in CheckDependencies e74ff7c cmDepends: allow multiple dependees per depender ecc77d0 cmDependsC: fix indentation 3e7d97d cmDependsC: remove code duplication b4e8f49 cmDependsC: remove unused member variable
| * | | | AddCustomCommand: Handle multiple IMPLICIT_DEPENDS files (#10048)Alex Neundorf2012-11-062-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code handling IMPLICIT_DEPENDS was only able to track a single file, the latest file replaced earlier files in the list. The documentation now mentions that the language has to be prefixed to every file and the test now uses two implicit dependencies, where only the second is modified to trigger re-running of the custom command. Alex Inspired-by: Michael Wild <themiwi@users.sourceforge.net>
* | | | | Merge topic 'start-contributing-irc-session'Brad King2012-11-0622-40/+187
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 828d4f5 Add several get_property() tests 82106e3 GetProperty test: move doc property tests into main process 56125a3 list: add tests for CMP0007 behavior 48ed48f Add test to secure the file(GLOB empty) behavior. c2a6cb6 file: remove dead code 07251a8 Consolidate list() argument count testing 1b078c3 Add tests for list() invalid arguments f560977 Add tests for list() argument count d211e5d CMakeTests: allow to call the check_cmake_test macro with a given file
| * | | | | Add several get_property() testsPetr Kmoch2012-11-021-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | Add tests for some get_property() uses not covered by existing tests.
| * | | | | GetProperty test: move doc property tests into main processRolf Eike Beer2012-11-022-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They will not raise an error in the normal case so we do not need to run them in their own process.
| * | | | | list: add tests for CMP0007 behaviorRolf Eike Beer2012-11-022-0/+20
| | | | | |
| * | | | | Add test to secure the file(GLOB empty) behavior.Amine Chadly2012-11-021-0/+5
| | | | | |
| * | | | | file: remove dead codeAmine Chadly2012-11-023-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The file command requires at least two arguments, so guarding the GLOB and MAKE_DIRECTORY command is not necessary. Changed it for an assert to keep the protection.
| * | | | | Consolidate list() argument count testingPetr Kmoch2012-11-022-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | Move test for list() argument count >= 2 to InitialPass().