summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Honor FOLDER on include_external_msproject targets (#11436)David Cole2010-11-101-0/+8
| | | | | | | Add FOLDER property usage to the VSExternalInclude test and inspect results manually to verify behavior. Thanks to Jens Auer for the bug report.
* Merge topic 'add-cse-contract-test'David Cole2010-11-096-2/+256
|\ | | | | | | | | | | | | | | | | f6f3ae5 Update tag in the Contracts/cse-snapshot test. 1e4fd5f Enable overriding contract test timeout values. c81ad34 Add a contract test for building the CSE. 942ace8 Fix contract test so it is not hard coded to the vtk542 test. fd343a1 Add a "Contract" test for VTK. The test downloads and builds VTK.
| * Update tag in the Contracts/cse-snapshot test.David Cole2010-10-281-2/+16
| | | | | | | | | | | | | | | | Also: - allow local variables 'repo' and 'tag' to be overridden by the optional LocalOverrides.cmake - print out STATUS messages to see the variable values in CMake configure output
| * Enable overriding contract test timeout values.David Cole2010-10-221-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a longer value as the default timeout (6 hours). For a per-contract-test timeout value, set ${project}_TEST_TIMEOUT in the project's RunTest.cmake file. To use a longer value for all non-specific contract tests, set a CMake cache variable named CMAKE_CONTRACT_TEST_TIMEOUT_DEFAULT. All timeout values are in seconds. Also, patch up last commit to defer evaluation of ENV{HOME} until EnforceConfig.cmake is included at ctest time. This allows Windows machines to have "\\" characters in the HOME environment variable if they want to.
| * Add a contract test for building the CSE.David Cole2010-10-084-1/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To activate the CSE contract test on a given Linux machine's CMake dashboard, put CMAKE_CONTRACT_PROJECTS:STRING=cse-snapshot in the CMake dashboard's initial cache. The chosen snapshot does not generate subproject dependency info right now. That code was in a previous revision in the CSE's svn repo that apparently has not been merged into the present cse git repository master branch. After that is fixed up in the cse repo, we can update the tag here so that the snapshot built here can run a sub-project based dashboard script. For now, it runs as one big build step, building 'all'.
| * Fix contract test so it is not hard coded to the vtk542 test.Bill Hoffman2010-09-212-1/+10
| |
| * Add a "Contract" test for VTK. The test downloads and builds VTK.Bill Hoffman2010-09-212-1/+40
| | | | | | | | | | | | | | | | The idea is that we can make sure that CMake is staying backwards compatible by testing projects against CMake as the changes are made in CMake. Because these tests will take a long time to run, they will not be enabled by default. Instead, they will be enabled by putting a cache variable into CMake.
* | Define LINK_DEPENDS target property (#11406)Brad King2010-11-053-0/+32
| | | | | | | | | | Custom Makefile link rules may need to depend on linker scripts. Define this property to allow user-specified link-time dependencies.
* | Merge topic 'getprerequisites-endless-path-appending'David Cole2010-10-281-4/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 48e80eb Fixes to GetPrerequisites for cygwin bee4802 Append the gp_tool path to the system PATH using native slashes. 8e550ba Remove unecessary TO_CMAKE_PATH for gp_cmd_dir. 1684198 Switch to CMAKE_PATH when doing PATH comparisons on Windows. be94c49 Fixed appending PATH to dumpbin tool from growing without bounds.
| * | Fixes to GetPrerequisites for cygwinDavid Partyka2010-10-271-4/+4
| | | | | | | | | | | | Fix IF(WIN32) guards check for cygwin. Fix checking if the depenency is in a system location to use cygwin style paths on cygwin. Also change GetPrerequisites to switch gp_tool to tools that are very unlikely to be found, ie. dumpbin on Apple and otool on Windows/Unix.
| * | Fixed appending PATH to dumpbin tool from growing without bounds.David Partyka2010-10-251-0/+14
| | | | | | | | | | | | IF(... MATCHES ...) used for comparing directories chokes especially in the case of C:\Program Files (x86)\<blah> because of regex pattern matching. Switched this to use STREQUAL in a loop instead.
* | | Avoid problem reading jni.h on Macs.David Cole2010-10-251-2/+10
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apple released an update recently in which there was a broken symlink for jni.h that pointed to a non-existent file. CMake had trouble configuring because it encountered an error trying to read jni.h. We avoid the problem here by introducing a variable CTEST_RUN_Java, which defaults to OFF on Macs, that indicates whether to even attempt finding java, reading jni.h and adding the "Java" CMake test. If you would like to test Java on a Mac where the jni.h symlink is not busted, feel free to pass in -DCTEST_RUN_Java:BOOL=ON when configuring CMake.
* | Merge topic 'AddCMAKE_CURRENT_LIST_DIR'David Cole2010-10-191-0/+4
|\ \ | | | | | | | | | | | | | | | | | | b011840 Use absolute path to FindPackageHandleStandardArgs.cmake everywhere 41e4f1a Add automatic variable CMAKE_CURRENT_LIST_DIR(dir of CMAKE_CURRENT_LIST_FILE) f9fc79c Remove trailing whitespace
| * | Add automatic variable CMAKE_CURRENT_LIST_DIR(dir of CMAKE_CURRENT_LIST_FILE)Alex Neundorf2010-09-281-0/+4
| | | | | | | | | | | | | | | | | | Comes with a simple test and docs. Alex
* | | Merge topic 'vs-project-groups'Brad King2010-10-051-0/+16
|\ \ \ | | | | | | | | | | | | | | | | fd3249e New USE_FOLDERS property OFF by default. (#3796)
| * | | New USE_FOLDERS property OFF by default. (#3796)David Cole2010-10-021-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Visual Studio Express editions do not support solution folders, so default behavior should be as if USE_FOLDERS global property is OFF. Also, allow folder names to be the same as target names: internally, use a prefix to distinguish folder GUIDs from target GUIDs. Add a target and folder with the same name in the ExternalProject test to exercise this code. For CMake itself, provide a new option CMAKE_USE_FOLDERS that defaults to ON so that Visual Studio users get a nicely organized CMake project. Express edition users will have to turn off the CMAKE_USE_FOLDERS option in order to build CMake in the VS Express IDE.
* | | | Merge topic 'dev/test-for-bug-11230'Brad King2010-10-054-0/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96a335f XCode generation should fail if lang isn't known d3a8943 Fix which string is checked for in the test 220c5dc Add test that CMake errors with empty libs
| * | | | Fix which string is checked for in the testBen Boeckel2010-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | GNU Makefiles have an extra line that Visual Studio doesn't output.
| * | | | Add test that CMake errors with empty libsBen Boeckel2010-09-304-0/+9
| | |/ / | |/| | | | | | | | | | | | | | When the library language cannot be determined, make sure CMake errors, not segfaults (bug #11230)
* | | | Add a new line to the end of the generated main.cxx for the hpux compiler.Bill Hoffman2010-09-291-1/+2
|/ / / | | | | | | | | | Some HPUX compilers give this error: Error 690: "/home/cport/Dashboards/My Tests/CMake-build/Tests/CheckCompilerRelatedVariables/main.cxx", line 1 # Nonempty source files must end with a newline that is not preceded by a backslash.
* | | Merge topic 'fix-9963'Brad King2010-09-211-6/+18
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | a798bb7 Avoid CustomCommand test failure on VS71 (#9963) 9b4ab06 Avoid CustomCommand test failure on VS71 (#9963) 9d2e648 No extra spaces in CustomCommand test (#9963) 269a4b8 Enable calling commands with : in argv[1] (#9963)
| * | Avoid CustomCommand test failure on VS71 (#9963)David Cole2010-09-201-1/+5
| | | | | | | | | | | | | | | | | | | | | Test still failing on dash1.kitware. Give up on testing the new arg on MSVC71. Test it with newer nmakes instead. All other dashboards are fine with -DPATH=c:/posix/path as the first arg, so keep it except when MSVC71 is true.
| * | Avoid CustomCommand test failure on VS71 (#9963)David Cole2010-09-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new first arg in the test is the critical one to prove that the new NMake specific code works. The additional colons in the middle of the arg stream work fine everywhere else, but not on dash1.kitware with Visual Studio 7.1. Just avoid the failure for now by removing the unnecessary new args from the test.
| * | No extra spaces in CustomCommand test (#9963)David Cole2010-09-122-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nightly dashboard showed that the following platforms had difficulties dealing with "bin dir" and/or "check command line" as directory and file names: AIX Borland 5.5, 5.6 and 5.8 IRIX NMake 6.0 OpenBSD VS 7.1 Watcom Re-visit later, after the release, to use spaces in the bin dir and in the target name where possible.
| * | Enable calling commands with : in argv[1] (#9963)David Cole2010-09-102-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The solution seems hackish, but it works: for NMake only, prepend a no-op command before each real command that begins with ". This is really a work-around for an NMake problem. When a command begins with ", nmake truncates the first argument to the command after the first : in that arg. It has a parsing problem. Workaround..., hackish..., but it should solve the issue for #9963 and its related friends. Also, modify the CustomCommand test to replicate the problem reported in issue #9963. Before the NMake specific code change, the test failed. Now, it passes. Ahhhhhh.
* | | Merge topic ↵Brad King2010-09-142-2/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'resolve/fix_target_name_with_dot_vs10/allow_upper_case_cpp_and_others' eccc7d5 Merge branch 'allow_upper_case_cpp_and_others' into resolve/fix_target_name_with_dot_vs10/allow_upper_case_cpp_and_others ed37fc3 VS2010: Set IntDir for utility and global targets. e79e412 VS2010: Honor PROJECT_LABEL target property (#10611) 530ade6 Fix targets with . in the name for VS 10 IDE.
| * \ \ Merge branch 'allow_upper_case_cpp_and_others' into ↵Brad King2010-09-142-1/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolve/fix_target_name_with_dot_vs10/allow_upper_case_cpp_and_others Conflicts: Tests/CxxOnly/CMakeLists.txt
| * | | | VS2010: Honor PROJECT_LABEL target property (#10611)David Cole2010-09-091-0/+8
| | | | |
| * | | | Fix targets with . in the name for VS 10 IDE.Bill Hoffman2010-09-061-2/+2
| | | | |
* | | | | Merge topic 'improve-missing-source-file-error'Brad King2010-09-142-0/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | a6b5ead Report missing source files with context of target
| * | | | | Report missing source files with context of targetBrad King2010-09-132-0/+6
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Previously we reported only the CMakeLists.txt file in the directory that adds the target.
* | | | | Use QUIET to avoid Java status messages.David Cole2010-09-091-1/+1
|/ / / / | | | | | | | | | | | | CMake devs mostly do not care when Java is found successfully.
* | | | Merge topic 'allow_upper_case_cpp_and_others'Brad King2010-09-083-1/+11
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | 7944e4e Allow testing of .CPP on WIN32 as it is a case insensitive OS and should work. ba0a890 Only test for .CPP on Microsoft compilers which will handle .CPP as c++. d26cd46 Only use .CPP .CXX and .C++ do not work by default with g+++. ced61f5 Let CMake recognize .CPP .CXX and .C++ as c++ files.
| * | | Allow testing of .CPP on WIN32 as it is a case insensitive OS and should work.Bill Hoffman2010-09-071-1/+1
| | | |
| * | | Only test for .CPP on Microsoft compilers which will handle .CPP as c++.Bill Hoffman2010-09-062-1/+8
| |/ /
| * | Only use .CPP .CXX and .C++ do not work by default with g+++.Bill Hoffman2010-09-024-6/+2
| | |
| * | Let CMake recognize .CPP .CXX and .C++ as c++ files.Bill Hoffman2010-09-025-1/+8
| | |
* | | Merge topic 'vs-project-groups'Brad King2010-09-081-0/+45
|\ \ \ | | |/ | |/| | | | | | | e6ac0aa Add FOLDER target property, for IDEs (#3796)
| * | Add FOLDER target property, for IDEs (#3796)David Cole2010-09-031-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This work was started from a patch by Thomas Schiffer. Thanks, Thomas! See the newly added documentation of the FOLDER target property for details. Also added global properties, USE_FOLDERS and PREDEFINED_TARGETS_FOLDER. See new docs here, too. By default, the FOLDER target property is used to organize targets into folders in IDEs that have support for such organization. This commit adds "solution folder" support to the Visual Studio generators. Currently works with versions 7 through 10. Also, use the new FOLDER property in the ExternalProject test and in the CMake project itself.
* | | Merge topic 'ctest-show-labels'Brad King2010-09-081-0/+5
|\ \ \ | |_|/ |/| | | | | | | | 32242af Added CTest command --print-labels
| * | Added CTest command --print-labelsZach Mullen2010-08-311-0/+5
| | | | | | | | | | | | | | | | | | This command allows a user to quickly see the list of all available test labels. The labels are also printed in verbose show only mode, alongside their corresponding tests.
* | | Merge topic 'intra-component-dependencies'Brad King2010-08-312-0/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | adb58d5 Honor strong intra-component target dependencies 681cf01 Distinguish "strong" and "weak" target dependency edges 7be2617 Split notion of node lists and edge lists
| * | Honor strong intra-component target dependenciesBrad King2010-08-252-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Strong dependencies (created by add_dependencies) must be honored when linearizing a strongly-connected component of the target dependency graph. The initial graph edges have strong/weak labels and can contain cycles that do not consist exclusively of strong edges. The final graph never contains cycles so all edges can be strong.
* | | Add STEP_TARGETS to ExternalProject module.David Cole2010-08-231-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the ability to add custom targets that correspond to individual ExternalProject steps. The main motivation behind this new feature is to drive sub-project based dashboard steps as external projects with separate targets for update, configure, build and test output. This makes it easy to construct a ctest -S script to drive such a dashboard. With no STEP_TARGETS defined, there are no additional custom targets introduced, to minimize the chatter in the target name space. Clients may define STEP_TARGETS on a per-ExternalProject_Add basis, or at the directory level by setting the EP_STEP_TARGETS directory property.
* | Merge topic 'module-notices'Brad King2010-08-191-1/+1
|\ \ | | | | | | | | | | | | c088e7a ModuleNoticesTest: Do not require "Kitware" copyright
| * | ModuleNoticesTest: Do not require "Kitware" copyrightBrad King2010-08-171-1/+1
| | | | | | | | | | | | | | | | | | When a module is first contributed Kitware has made no modifications on which to place a copyright. Require the contributor to have a copyright notice, but not specifically by Kitware.
* | | Teach find_* commands to ignore some pathsTodd Gamblin2010-08-133-0/+10
|/ / | | | | | | | | | | | | | | Add platform configuration variable CMAKE_SYSTEM_IGNORE_PATH and user configuration variable CMAKE_IGNORE_PATH. These specify a set of directories that will be ignored by all the find commands. Update FindPackageTest so that several cases will fail without a functioning CMAKE_IGNORE_PATH.
* | Merge topic 'remove_submit_large_output'Brad King2010-08-105-102/+0
|\ \ | | | | | | | | | | | | 929b1c6 Remove the ctest submit larget output test.
| * | Remove the ctest submit larget output test.Bill Hoffman2010-08-095-102/+0
| | | | | | | | | | | | | | | This test is better covered in CDash now. It is always failing due to changes in CDash. So, it is better removed from CMake.
* | | Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-092-2/+2
|/ /