summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'custom-command-slashes'Brad King2011-03-311-1/+1
|\ | | | | | | | | 1286050 Normalize slashes of add_custom_(command|target) DEPENDS (#11973)
| * Normalize slashes of add_custom_(command|target) DEPENDS (#11973)Brad King2011-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All commands accepting file paths should normalize the slashes so that the string-represented names can be compared reliably. The commands add_library and add_executable have done this for years. We taught add_custom_command to normalize its OUTPUT names in commit a75a0a14 (Normalize add_custom_command OUTPUT names, 2010-12-15). We handled a special case of the DEPENDS option in commit 7befc007 (Handle trailing slashes on add_custom_command DEPENDS, 2011-01-26). Teach both add_custom_command and add_custom_target to normalize slashes of DEPENDS files up front. This approach subsumes the above-mentioned special case so remove the one line added for it but keep its test. Extend the CustomCommand test to check that slash count mismatches between custom command OUTPUT and DEPENDS can still be linked correctly.
* | 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-233-44/+20
| | |
* | | Merge topic 'asn_check_proto'Brad King2011-03-221-0/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | 93c56a7 Tests: Added test for check_prototype_definition. 4f252ab Modules: Added CheckPrototypeDefinition module.
| * | | Tests: Added test for check_prototype_definition.Andreas Schneider2011-03-181-0/+13
| | | |
* | | | Merge topic 'fix-Java-test-enable-logic'Brad King2011-03-221-33/+24
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 80ccc9a Disable Java test with Xcode generator 46c0a58 Enable Java test more carefully on Apple
| * | | | 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.
* | | | ProcessorCount: Use ERROR_QUIET with execute_process (#11302)David Cole2011-03-181-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, comment out all "debugging" calls to message() that helped us interpret the output on other platforms when running on the dashboard clients. Using ERROR_QUIET avoids unnecessary stderr output while calling external tools to determine the processor count. If there's an error parsing the output, we set the count to 0 anyhow. Also, the test will fail on a CMake dashboard run if the count comes back equal to 0. Now that the code is "done"-ish, remove the debugging output. Expect no output on stdout or stderr when calling the ProcessorCount function from now on.
* | | | ProcessorCount: Test fails if count is 0 (#11302)David Cole2011-03-151-4/+5
| | | | | | | | | | | | | | | | It also fails if count is not a decimal integer.
* | | | ProcessorCount test: more output, do not fail. (#11302)David Cole2011-03-151-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | More dev work remains to be done here. Removing test failure condition until that dev work is complete, so it does not mask or hide other, more important failures, on the dashboard.
* | | | Compare ProcessorCount to SystemInformation count. (#11302)David Cole2011-03-151-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | Maximize output to gather data on the dashboards. Only FATAL_ERROR out once at the bottom if an error occurred earlier.
* | | | Add ProcessorCount support for QNX via pidin. (#11302)David Cole2011-03-151-1/+5
| | | | | | | | | | | | | | | | | | | | Thanks to Rolf Eike Beer <eike@sf-mail.de> for the code snippet parsing the pidin output.
* | | | Add module ProcessorCount.cmake (#11302)Michael Wild2011-03-152-0/+10
|/ / / | | | | | | | | | | | | | | | | | | | | | Credit goes to David Cole ( http://www.kitware.com/blog/home/post/63 ). Also add a script-based test of the new module. Signed-off-by: Michael Wild <themiwi@users.sourceforge.net>
* | | Merge topic 'CPackRPM-TestWithMoreTraces'Brad King2011-03-153-5/+180
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ade04de Remove debbuging typo a201028 CPack try to please SUSE 64 bits and install lib in lib64 and not lib. 7ebbcf1 CPackRPM non matching ENDIF 0e07b42 CPackRPM even more trace in debug mode or in case of failure 564b731 CPackRPM add more trace output in order to help failing diagnostics
| * | | Remove debbuging typoEric NOULARD2011-03-141-3/+3
| | | |
| * | | CPack try to please SUSE 64 bits and install lib in lib64 and not lib.Eric NOULARD2011-03-132-1/+173
| | | |
| * | | CPackRPM add more trace output in order to help failing diagnosticsEric NOULARD2011-03-101-4/+7
| | | |
* | | | CPackDeb add Component Support to DEB generator fix #0011655M. Konrad2011-03-115-0/+22
|/ / / | | | | | | | | | | | | Contribution by Martin Konrad Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* | | Merge topic 'ReworkedAsmSupport'Brad King2011-03-081-17/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b3ce420 Do not bother enabling C++ in Assembler test 80f6a34 Teach Assembler test to generate main.s at build time 1dafa74 Fix Assembler test to parse C flags string before using 4139a73 -only enable the asm test for the Intel compiler if we are under UNIX 1f6c6b1 -use CMAKE_C_FLAGS when generating the assembler file d0f71e2 Add ASM platform information for HP compiler on HP bd580be Merge branch 'hp-compiler-info' into ReworkedAsmSupport a0bab7a Add ASM platform information for XL compiler on AIX c03b610 Merge branch 'aix-xl-platform-info' into ReworkedAsmSupport c623008 Initialize ASM rpath flags for executables with those for shared libs 17c658f Add support for the Intel compiler used for ASM under Windows 4258b24 Add more regex for gcc, always print the ASM compiler ID 9071b8b Add temporary debug output for compiler ID detection for ASM 48f7199 It's ELSEIF(), not ELSIF() d103c75 Fix bad comparison in the detect assembler-code 20fe0be Only try assembler support for Makefile-based generators 8614470 Use a regexp instead a lot of ORs for checking the compiler ID cf88092 The Assembler test now tests ASM for GNU, Intel, HP, XL and SunPro 66614a8 Add assemble- and preprocess commands for HP 78f7c59 Fix the default CMAKE_ASM_COMPILE_OBJECT, make XL-ASM use it 7456461 Change the default rules so they fit better to the new ASM handling 5542d58 Set the HP asm file suffix f745220 Add support for ASm for the HP compiler. 00735d4 Add suport for ASM for the IBM XL compiler d3e9e8a Add support for ASM for the SunPro compiler 64e66eb Actually use CMAKE_ASM_COMPILER for asm, instead of CMAKE_C_COMPILER 38f92bf Add ASM support for the Intel compiler 4b40d42 Rework the way assembler is handled, use the C/CXX compiler by default
| * | | Do not bother enabling C++ in Assembler testBrad King2011-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | This test needs only the C compiler and ASM compiler so do not enable the C++ compiler.
| * | | Teach Assembler test to generate main.s at build timeBrad King2011-03-041-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a custom command to generate the assembly source file at build time. Also set CMAKE_VERBOSE_MAKEFILE so the test output contains all the build rules. These two changes will show the entire .c -> .s -> .o and final link commands in the test output.
| * | | Fix Assembler test to parse C flags string before usingBrad King2011-03-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 1f6c6b1c (use CMAKE_C_FLAGS when generating the assembler file, 2011-03-03) added use of CMAKE_C_FLAGS to the assembler generation step. However, this variable is meant for direct substitution into a shell command line so we need to parse it to separate the arguments first.
| * | | -only enable the asm test for the Intel compiler if we are under UNIXAlex Neundorf2011-03-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ...have to find out how to generate assembler with icl.exe Alex
| * | | -use CMAKE_C_FLAGS when generating the assembler fileAlex Neundorf2011-03-031-1/+1
| | | | | | | | | | | | | | | | Alex
| * | | Merge branch 'aix-xl-platform-info' into ReworkedAsmSupportBrad King2011-03-0249-234/+611
| |\ \ \
| * | | | Only try assembler support for Makefile-based generatorsAlex Neundorf2011-03-011-4/+6
| | | | | | | | | | | | | | | | | | | | Alex
| * | | | Use a regexp instead a lot of ORs for checking the compiler IDAlex Neundorf2011-02-241-11/+3
| | | | | | | | | | | | | | | | | | | | Alex
| * | | | The Assembler test now tests ASM for GNU, Intel, HP, XL and SunProAlex Neundorf2011-02-231-16/+19
| | | | | | | | | | | | | | | | | | | | Alex
* | | | | Merge topic 'CPackRPM-enableCPackTests'Brad King2011-03-082-0/+23
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-032-0/+23
| | |/ / / | |/| | |
* | | | | Merge topic 'CPackArchive-PackageOrphanComponents'Brad King2011-03-081-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | fe530ff CPackArchive package all components specified in CPACK_COMPONENTS_ALL
| * | | | | CPackArchive package all components specified in CPACK_COMPONENTS_ALLEric NOULARD2011-03-031-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | When asking for group packaging the components not belonging to any group should be packaged separately.
* | | | | Test static linking with LINK_SEARCH_START_STATICBrad King2011-03-043-0/+48
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | 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 'fix-11286-add-file-upload'Brad King2011-03-014-1/+72
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 61a83f9 Fix KWStyle line too long error (#11286) 963bebc Implement file(UPLOAD (#11286)
| * | | | Implement file(UPLOAD (#11286)David Cole2011-02-254-1/+72
| | | | | | | | | | | | | | | | | | | | Including documentation and testing, of course.
* | | | | Merge topic 'CPack-ChangeComponentNamingScheme'Brad King2011-03-011-11/+20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3fb89cf CPack remove previously CPack generated files (if any) before running CPack f2ab270 CPack fix KWStyle warning 4deb308 CPack Authorize DISPLAY_NAME usage in component package 8c450f6 CPack remove "-ALL" suffix for ALL-IN-ONE packages
| * | | | | CPack remove previously CPack generated files (if any) before running CPackEric NOULARD2011-02-231-11/+20
| |/ / / /
* | | | | Merge topic 'mingw-module-definition'Brad King2011-02-243-1/+14
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | 6c4b249 Fix Fortran test .def file symbol mangling 7616216 Pass .def files directly to MinGW tools (#9997)
| * | | | Fix Fortran test .def file symbol manglingBrad King2011-02-233-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 6a61a8a5 (Honor module .def files with MinGW tools, 2011-02-21) enabled use of .def files with GNU tools on Windows. Previously the Fortran tests's world.def file was used only for the Intel Fortran Compiler on Windows and contained the symbol name mangled for that compiler. Instead choose a .def file that names the symbol with proper mangling for the compiler in use.
* | | | | 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 ↵Brad King2011-02-222-1/+78
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'resolve/add-STRING-subcommand-FIND-issue-11795/fix-2828-more-info-in-script-mode' 1a8eed1 Merge branch 'add-STRING-subcommand-FIND-issue-11795' into fix-2828-more-info-in-script-mode 006124b Avoid direct use of std::stringstream 8a8da36 Merge branch 'fix-2828-more-info-in-script-mode' into add-STRING-subcommand-FIND-issue-11795 1462561 Add a string(FIND) sub-command (#11795)
| * \ \ \ Merge branch 'fix-2828-more-info-in-script-mode' into ↵Brad King2011-02-151-0/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add-STRING-subcommand-FIND-issue-11795 Conflicts: Tests/CMakeTests/StringTestScript.cmake
| * | | | | Add a string(FIND) sub-command (#11795)Tim Hütz2011-02-152-1/+78
| | |/ / / | |/| | |
* | | | | Merge topic 'fix-2828-more-info-in-script-mode'Brad King2011-02-221-0/+2
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | a58ace6 Fix KWStyle line-too-long complaint (#2828) 106958c Add CMAKE_ARGC and CMAKE_ARGV0..N-1 variables (#2828) 94d1684 Add CMAKE_SCRIPT_MODE_FILE variable (#2828)
| * | | | Add CMAKE_SCRIPT_MODE_FILE variable (#2828)David Cole2011-02-021-0/+2
| | |/ / | |/| | | | | | | | | | | | | | New CMake variable is set when processing a -P script file, but not when configuring a project.