summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Start testing expected values for compiler flags.Stephen Kelly2011-08-171-0/+2
| | | | | Should help catch unhandled flag warnings so far not handled by check_cxx_compiler_flag FAIL_REGEXen.
* Add the GenerateExportMacro with unit tests.Stephen Kelly2011-08-071-0/+2
| | | | Reviewed-by: Marcus D. Hanwell <marcus.hanwell@kitware.com>
* Merge topic 'asn_java_support'Brad King2011-07-261-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | 1417a55 Java: Fix documentation format and indentation 0b7627d Java: Use set_property/get_property for target variables. b01a505 Java: Create correct jar archive dependencies. f99c312 Java: Added some dependency magic to avoid recompilations. f3233ba Java: Create java_class_filelist only if it does't exist. a22ed3d Tests: Check for the new Java exeutable variables. c177c8e Tests: Java tests should test UseJava.cmake 5c2106c Modules: Added CMake Java support. a4b6275 FindJava: Find missing java development executables.
| * Tests: Check for the new Java exeutable variables.Andreas Schneider2011-03-291-2/+2
| |
* | CTest: Report tests not run due to unknown configurationBrad King2011-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | When add_test(NAME) is called without the CONFIGURATIONS argument then the test is intended to run in any configuration. In multi-config generators like the VS IDE and Xcode tests created by add_test(NAME) can only be run when testing a known configuration (otherwise there is no way to generate the test command line). If no test command line is known for a particular configuration, or if no configuration is given to ctest, report the test as not run instead of silently skipping it. Also fix CMake's own TestsWorkingDirectory test invocation to correct a previously silent failure exposed by this change.
* | Merge topic 'fix-12034-fixup-bundle-with-non-dotapp-exe'Brad King2011-06-071-0/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 51e16c0 BundleUtilities: Avoid test on Watcom dashboards (#12034) 41f962a Revert "BundleUtilities: Run test on Windows if either MSVC or dumpbin was found." e17135e BundleUtilities: Add rpath to loadable modules in test. 8064044 BundleUtilities: Print reason for not loading module.so f3de459 BundleUtilities: Run test on Windows if either MSVC or dumpbin was found. 900bf98 BundleUtilities: Disable running test on Windows unless using MSVC. fa4dc08 BundleUtilities: Fix issues with custom target DEPENDS in test (#12034) e40b79e BundleUtilities: Fix test when using xcode (#12034) b68d3dc BundleUtilities: Fix regex to extract dependents from ldd (#12034) 7ac7b43 BundleUtilities: Work w/ non .app exes on Mac (#12034)
| * | BundleUtilities: Avoid test on Watcom dashboards (#12034)David Cole2011-06-041-3/+3
| | |
| * | Revert "BundleUtilities: Run test on Windows if either MSVC or dumpbin was ↵Clinton Stimpson2011-06-021-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | found." This reverts commit f3de459cec78eac3a7081379b6ee9c6cde36bb60. There are some platforms without MSVC where this test doesn't work well. We can look into these later.
| * | BundleUtilities: Run test on Windows if either MSVC or dumpbin was found.Clinton Stimpson2011-06-011-2/+4
| | |
| * | BundleUtilities: Disable running test on Windows unless using MSVC.Clinton Stimpson2011-06-011-3/+3
| | |
| * | BundleUtilities: Fix issues with custom target DEPENDS in test (#12034)Clinton Stimpson2011-05-311-1/+0
| | |
| * | BundleUtilities: Work w/ non .app exes on Mac (#12034)Clinton Stimpson2011-05-271-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a test of BundleUtilities including an exe, some shared libs, a plugin, and a framework-style lib. This test presently runs (and this functionality works) on Linux, Mac and Windows. For now, the framework-style lib is built as a plain old shared lib because there is another yet-unresolved issue with local frameworks without rpaths on the Mac.
* | | Fix for bug#10798. VS10 did not append -I flags with COMPILE_FLAGS prop.Bill Hoffman2011-06-021-0/+12
|/ / | | | | | | This fix adds a test for this case for all generators.
* | Fix CompileCommandOutput test for Make tools not supporting spacesBrad King2011-05-191-0/+3
| | | | | | | | Use underscores instead of spaces for such Make tools.
* | Only offer the compile command output feature on unix systemsManuel Klimek2011-05-161-2/+8
| |
* | Adds a test for the compile command line output.Manuel Klimek2011-04-251-0/+3
| |
* | Merge topic 'drag-n-drop-components'Brad King2011-04-051-0/+3
|\ \ | | | | | | | | | | | | | | | dd04608 Fix KWStyle warnings 2973c1f Add component support to DragNDrop generator.
| * | Add component support to DragNDrop generator.Clinton Stimpson2011-03-311-0/+3
| | |
* | | Merge topic 'upload-built-files'Brad King2011-04-051-0/+10
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 3e32db7 cmCTestUploadCommand::CheckArgumentKeyword should return false if not FILES 6b6f309 Add the FILES keyword to ctest_upload command 28cdd0a Don't tar/gz ctest_upload() files fbe4356 Change 'Files' tag to 'Upload' in Upload.xml 350546d Implement ctest_upload command
| * | Implement ctest_upload commandZach Mullen2011-03-151-0/+10
| | |
* | | Merge topic 'cleanup-unused-variable-check'Brad King2011-03-311-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | a4335a6 Fix unused cache warning after multiple configure iterations a75ebe3 Refine unused cache variable warning
| * | | Refine unused cache variable warningBrad King2011-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | List all unused variables in one warning. Cleanup implementation to run the check exactly once at the end of generation.
* | | | CPack fix #11930 and simplifies component packaging optionsEric NOULARD2011-03-231-1/+0
| |_|/ |/| |
* | | Disable Java test with Xcode generatorBrad King2011-03-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | The parent commit 46c0a583 (Enable Java test more carefully on Apple, 2011-03-18) failed to restore the exclusion of Xcode when enabling the Java test that was originally removed by commit c8f39193 (Avoid problem reading jni.h on Macs, 2010-10-25). The Xcode generator does not work with the current Java support at all.
* | | Enable Java test more carefully on AppleBrad King2011-03-181-33/+23
| |/ |/| | | | | | | | | | | | | | | The CTEST_RUN_Java option added by commit c8f39193 (Avoid problem reading jni.h on Macs, 2010-10-25) was a quick hack to disable the Java test on Mac machines after an update from Apple created a broken jni.h symlink. Remove the option and instead test whether jni.h exists as a readable file before reading it. This restores the original Java test enabling logic but makes it robust to the broken symlink.
* | CPackDeb add Component Support to DEB generator fix #0011655M. Konrad2011-03-111-0/+6
| | | | | | | | | | Contribution by Martin Konrad Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* | Merge topic 'CPackRPM-enableCPackTests'Brad King2011-03-081-0/+6
|\ \ | | | | | | | | | | | | | | | dc9965f CPackRPM do not run test if build dir contains space e4d4dfc CPackRPM activate CPackRPM test on Linux systems where rpmbuild is found
| * | CPackRPM do not run test if build dir contains spaceEric NOULARD2011-03-041-2/+2
| | |
| * | CPackRPM activate CPackRPM test on Linux systems where rpmbuild is foundEric NOULARD2011-03-031-0/+6
| | |
* | | Test static linking with LINK_SEARCH_START_STATICBrad King2011-03-041-0/+16
|/ / | | | | | | | | | | | | Add "LinkStatic" test that links a static executable against "libm.a". Pass both "/usr/lib/libm.a" and "-lm" to target_link_libraries to trigger the link type logic for both cases. If CMake incorrectly switches the link type to shared for "-lm" then the link will fail.
* | Merge topic 'mingw-module-definition'Brad King2011-02-221-1/+4
|\ \ | | | | | | | | | | | | 6a61a8a Honor module .def files with MinGW tools (#9997)
| * | Honor module .def files with MinGW tools (#9997)Brad King2011-02-211-1/+4
| |/ | | | | | | | | | | | | | | | | Since commit 024d05ad (Fix use of module .def files for MS tools, 2009-09-29) module .def files work for any platform that sets CMAKE_LINK_DEF_FILE_FLAG correctly. Set it in the Windows-GNU platform information file to enable support with MinGW tools. Also enable the test added by commit 0db2c850 (Test use of module .def files for MS tools, 2009-09-29) for MinGW and MSYS generators.
* | Merge topic 'fix-11295-support-plugin-bundles-on-mac'Brad King2011-02-221-0/+15
|\ \ | | | | | | | | | | | | | | | cabc407 CFBundle Test: Add PATHS for finding Rez (#11295) 5457b82 Add support for CFBundle targets on the Mac (#11295)
| * | Add support for CFBundle targets on the Mac (#11295)Richard Bateman2011-01-111-0/+15
| | | | | | | | | | | | | | | This commit enables building, for example, plugin bundles to be loaded by web browsers.
* | | Merge topic 'increase-ep-test-timeout'Brad King2011-02-221-5/+2
|\ \ \ | |_|/ |/| | | | | | | | 42b26ee ExternalProject Test: Increase test timeout value
| * | ExternalProject Test: Increase test timeout valueDavid Cole2011-01-111-5/+2
| |/ | | | | | | | | | | | | | | | | | | | | Previously, it was hard-coded at 1000 seconds. Now it uses the value of CMAKE_LONG_TEST_TIMEOUT, which has a minimum value of 1500 seconds, but might have a longer value depending on the CTEST_TEST_TIMEOUT value of the driving dashboard. This should help avoid test failures on overloaded dashboard machines where it really does take that long to finish the test successfully.
* | Avoid foreach IN LISTS syntax which is not supported by CMake 2.6Eric NOULARD2011-01-311-2/+2
| |
* | CPack Tests the different ways of packaging componentsEric NOULARD2011-01-301-23/+33
| |
* | Merge topic 'MakeCMakeBuildWithCMakeLess263'Brad King2011-01-281-2/+2
|\ \ | | | | | | | | | | | | ccbdc24 Make cmake build again with cmake < 2.6.3
| * | Make cmake build again with cmake < 2.6.3Alex Neundorf2011-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | cmake_minimum_required() still says 2.4.5, but in Tests/CMakeLists.txt there was a parenthesis expression, which is new since 2.6.3. Alex
* | | Merge topic 'dev/strict-mode'Brad King2011-01-271-0/+84
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dd2f814 Merge branch 'dev/add_test-working-directory' into dev/strict-mode 949d32c Unwatch manual variables upon removal in cmake-gui 3939032 Unwatch manual variables upon removal in ccmake 8354413 Add method to unwatch a manual variable 8ed3c85 Give a better message for unused variables 729db48 Fix ArgumentExpansion test expected results 89c2544 Checking for a definition is a usage 5625dee Don't output to stderr in the GUI ad25a96 Merge branch 'ImprovedDotSupport2' into dev/strict-mode c128abe Merge branch 'AddCMAKE_CURRENT_LIST_DIR' into dev/strict-mode 9bcaff0 Merge branch 'cmake-guiRememberAdvancedCheckbox' into dev/strict-mode 544d0c3 Fix expected output for WarnUninitialized test 4e3bea4 Update expected messages to new format 8e8c9e4 Don't check at destruction for usage 668e005 Use cmake::IssueMessage for warnings 88cd4c1 Use 'CMake Warning' versus 'warning' for CDash 3c3b98d Initialize the class before setting warn flags cf8b15a Ignore files under the CMakeFiles directory fd50f06 Don't check for unused vars at configure time 447a04c Don't warn during configure when doing everything b97ee21 Check for unused variables at the end of generate c18c977 When checking for variables, specify a reason 3f1121f Use a long int since Line is a long as well 2507f93 Change the failure case string to 'Unexpected' fe390a2 Add 'ArgumentExpansion' test 8dbb209 Wrong boolean value for CLI warnings d4ee998 Hard-code the --no-warn-unused-cli flag a267b99 Fix line lengths 82ed104 Flag that the directories have been set 5aa535b Add argument to arg parsing to not set directories 367e5c3 Revert "Revert "When calling CMake, set the args and the cache"" ab5d4e4 Revert "When calling CMake, set the args and the cache" 9b90040 When calling CMake, set the args and the cache fe56002 Fix long lines for KWStyle 5d30cfc Set a watch on variables added through the gui 33c63b1 Add a method to put a watch for variables 535253f Initialize the warning variables earlier cbb286c Fix the path detection to work for top-level 62be1f7 Initialize the usage stack earlier c6e7fab Factor out the checks for unused variables 5e41ba8 When using the API, check for Add vs. Remove dee1976 Fix typo in VariableUnusedViaUnset test f231ce5 Remove old false positive avoidance code a117e02 Revert "Add test for unused warnings at the end of scope" 2c82f2b Exempt CMAKE(CURRENT|PARENT)_LIST_FILE from usage 6d7d449 Ignore CLI warnings for ABI determination 7740a73 Only return local keys that are defined bef3aee Use the API so that warnings can be tracked 05cb0f4 Check for unused variables in the dtor 91c4c99 Add test for unused warnings at the end of scope ca90f67 Fix detection of unused variables when setting f7438ca Add test for unused detection via setting it 995cfb0 Don't warn if the variable wasn't defined aefc91d Add test for usage checks via unset a8e97f8 Remove VarRemoved code since it's been superceded 59463ef Rework CheckVariableForUnused usage f117423 Fix line lengths to be no more than 78 e49a935 Improve unused warning logic e01e40c Mark ARGC, ARGV*, and ARGN as used a17aff7 Ignore CMAKE_MATCH_* variables for usage 02a114d Add method to allow variables to be marked as used a0b0d23 CMAKE_DO_TRY_COMPILE is no longer used ae3eff3 Fix the path used for ignoring system warnings 056b441 Fix missing case for usage of a variable 980e048 Factor out checks for unused variables 83acb0a Remove now unused variables 3801463 Use built-ins for readability and maintainability 8b52015 Push the initialize and unused states when copying 439877f Be consistent with single and double quotes 4cf1706 Add documentation for check-system-vars b74777f Fix the spelling of the flag for warn-unused-vars b948120 Change logic of flag to turn off cli unused checks f047a17 Add test for uninitialized variables 75bda38 Add tests for unused command line variables 300fc15 Fix detection of system files d784e6a Run the unused variables check on the final pass 9efc057 VariableWatch is not available when bootstrapping 2e78224 Add a missing comma to the warning message 7499700 Add a flag to warn about system files fff9f6d Rename flags again and use variablewatch for cli 786e269 Add warn-unused to the Qt interface 636e6c4 Default to marking things as used 4ff0340 Rename find-unused to warn-unused d7999e9 Rename strict-mode to warn-uninitialized e141bc9 Detect unused variables d3e8eb5 Add flags to detect unused variables f332e14 Complete strict-mode checks for uninitialized vars 52f9637 Add method to get the local scope variables f794d58 Make --strict-mode option, and integrate with cmake-gui 48b5b85 Add a warning when variables are used uninitialized. cd626ea For macros make sure the FilePath points to a valid pointer in the args.
| * | Merge branch 'dev/add_test-working-directory' into dev/strict-modeBrad King2011-01-271-2/+45
| |\ \ | | | | | | | | | | | | | | | | Conflicts: Tests/CMakeLists.txt
| * | | Fix ArgumentExpansion test expected resultsBrad King2011-01-111-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the ArgumentExpansion test to expect flattened lists as has always been the case in the CMake language. Now that the test should pass enable the failure regex even when CMAKE_STRICT is not on. Replace the reference to the old ArgumentExpansion test behavior in the workaround comment in cmMakefile::TryCompile with a full inline explanation.
| * | | Merge branch 'ImprovedDotSupport2' into dev/strict-modeBrad King2010-12-171-2/+13
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: Source/cmake.cxx
| * \ \ \ Merge branch 'cmake-guiRememberAdvancedCheckbox' into dev/strict-modeBrad King2010-12-171-1/+9
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Source/QtDialog/CMakeSetupDialog.cxx
| * | | | | Fix expected output for WarnUninitialized testBen Boeckel2010-12-071-1/+1
| | | | | |
| * | | | | Update expected messages to new formatBen Boeckel2010-12-071-4/+4
| | | | | |
| * | | | | Use 'CMake Warning' versus 'warning' for CDashBen Boeckel2010-12-071-7/+7
| | | | | |
| * | | | | Change the failure case string to 'Unexpected'Ben Boeckel2010-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VS6 detects the 'Error' string and fails itself even though we don't actually care about it unless CMAKE_STRICT is on.
| * | | | | Add 'ArgumentExpansion' testBen Boeckel2010-10-071-0/+15
| | | | | |