summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* 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().
| * | | | | Add tests for list() invalid argumentsPetr Kmoch2012-11-0210-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | Add tests for error reporting when list() arguments are invalid.
| * | | | | Add tests for list() argument countPetr Kmoch2012-11-026-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add test for error reporting when list() subcommands have wrong number of arguments.
| * | | | | CMakeTests: allow to call the check_cmake_test macro with a given fileRolf Eike Beer2012-11-021-24/+29
| |/ / / / | | | | | | | | | | | | | | | | | | | | This allows to generate a lot of simple files directly in the test tree instead of having them all checked in.
* | | | | Merge topic 'FindQt-MajorVersionSelection-test'Brad King2012-11-061-0/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 656afca FindQt: add to MajorVersionSelection test
| * | | | | FindQt: add to MajorVersionSelection testRolf Eike Beer2012-11-011-0/+1
| | |_|_|/ | |/| | |
* | | | | Merge topic 'fix-genex-CONFIG'Brad King2012-11-063-0/+10
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | 9be64f3 GenEx: Use case insensitive comparison for $<CONFIG:...>
| * | | | GenEx: Use case insensitive comparison for $<CONFIG:...>Stephen Kelly2012-11-053-0/+10
| | |_|/ | |/| | | | | | | | | | | | | | This fixes a regression introduced by commit f1eacf0e (cmGeneratorExpression: Re-write for multi-stage evaluation).
* | | | Merge topic 'test-major-version'David Cole2012-10-313-1/+69
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | d1f3bfe Tests: add MajorVersionSelection tests
| * | | | Tests: add MajorVersionSelection testsRolf Eike Beer2012-10-313-1/+69
| |/ / / | | | | | | | | | | | | | | | | | | | | For things where we may have 2 major versions of the same software installed in parallel (think of Qt and Python) make sure our version selection gets this right.
* | | | Merge topic 'generator-expression-bug-fixes'David Cole2012-10-316-0/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 4bacff7 GenEx: Test early determination of AND and OR
| * | | | GenEx: Test early determination of AND and ORStephen Kelly2012-10-206-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It should be possible for example to do this: "$<AND:${FOO},$<BOOL:${TGT}>,$<BOOL:$<TARGET_PROPERTY:${TGT},PROP>" such that it works simliarly to the C code: if (foo && tgt && tgt->prop()) { } The example of generator expression code is a little bit contrived as it could be written other ways with the same functionality. Nevertheless, as these cases already work and are intentional, test for them.
* | | | | Merge topic 'FindIcotool'David Cole2012-10-311-2/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 86a184d Add module FindIcotool
| * | | | | Add module FindIcotoolAleksey Avdeev2012-10-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module looks for icotool. Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
* | | | | | Merge topic 'find_library-NAMES_PER_DIR'David Cole2012-10-313-18/+31
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 66759ee find_library: Optionally consider all names in each directory 9cb68b1 find_library: Generalize helper macro in test case b64dd76 find_library: Simplify framework search logic 531c71b find_library: Refactor internal name iteration
| * | | | | find_library: Optionally consider all names in each directoryBrad King2012-09-253-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it. Add a NAMES_PER_DIR option to tell this command to consider one directory at a time and search for all names in it.
| * | | | | find_library: Generalize helper macro in test caseBrad King2012-09-251-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Tests/CMakeOnly/find_library/CMakeLists.txt generalize the test_find_library macro and move the lib64 substitution logic to a new test_find_library_subst macro.
* | | | | | Merge topic 'genex-validate-target-property-names'David Cole2012-10-232-0/+12
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e386992 GexEx: Validate Target names and property names differently. 95d590d GenEx: Create cmGeneratorTargets for imported targets. 0442104 GenEx: Add an accessor for imported targets in a makefile.
| * | | | | | GexEx: Validate Target names and property names differently.Stephen Kelly2012-10-222-0/+12
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | In the unit test, use the same IMPORTED_LOCATION trick that the ExportImport test uses.
* | | | | | SelectLibraryConfigurations: fix for release and debug libs being the sameRolf Eike Beer2012-10-211-0/+4
| | | | | |
* | | | | | SelectLibraryConfigurations: add testcaseRolf Eike Beer2012-10-212-0/+62
|/ / / / /
* | | | | Merge topic 'generator-expression-bug-fixes'David Cole2012-10-1712-0/+91
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 79edd00 GenEx: Fix reporting about not-found include directories and libraries. f7ef32b GenEx: Replace some failing tests with Borland and NMake makefiles. fd59b10 GenEx: Add some more asserts to verify code-sanity. 6dd2b36 GenEx: Break if there are no more commas in the container e7230c7 GenEx: Fix termination bugs in generator expression parser. 145a4af GenEx: Test the use of generator expressions to generate lists. e2d141d GenEx: Parse colon after arguments separator colon specially.
| * | | | | GenEx: Fix reporting about not-found include directories and libraries.Stephen Kelly2012-10-176-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression introduced in commit 290e92ad (Move GetIncludeDirectories to cmGeneratorTarget, 2012-09-16) which loops over cmGeneratorTargets before they get created, so the container is empty.