summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* run_compile_commands: Cast istream::get() result to charBrad King2011-05-191-1/+1
| | | | | We perform error checking on the stream after reading so this conversion is safe.
* run_compile_commands: Avoid extra stl vector conversionBrad King2011-05-181-3/+2
| | | | | | | The Sun compiler does not provide the proper vector constructor to initialize it from an iterator pair of a non-matching type. Extend the ParseUnixCommandLine API to provide a vector of the proper type so no conversion is needed.
* run_compile_commands: Avoid shadow in std::map<>::at workaroundBrad King2011-05-171-2/+2
| | | | | The map has a member called "empty" so use a different name for the local variable in our approximate at() method.
* Provide std::map<>::at for use in run_compile_commandsBrad King2011-05-171-2/+0
| | | | | | Many compilers we support do not provide the at() member of std::map. Use the workaround added by commit a7e7a04a (Fix run_compile_commands build on Apple GCC 3.3, 2011-05-16) for all compilers.
* Fix run_compile_commands build on Apple GCC 3.3Brad King2011-05-161-1/+13
| | | | | This compiler does not provide the "at" method of std::map. Approximate it well enough for our needs.
* Only offer the compile command output feature on unix systemsManuel Klimek2011-05-162-4/+12
|
* Adds a test for the compile command line output.Manuel Klimek2011-04-259-0/+166
|
* Merge topic 'find_package-system-registry'Brad King2011-04-192-0/+42
|\ | | | | | | | | | | | | | | | | | | | | 08b9397 find_package: Fix system package registry test path conversion 93021ad find_package: Test system package registry when possible b95f3ca find_package: Check both 32-bit and 64-bit registry views a0d76c1 find_package: Search a "system package registry" 549458f find_package: Document user package registry locations c9563db find_package: Cleanup user package registry less aggressively 4df1197 find_package: Rename implementation of user package registry
| * find_package: Fix system package registry test path conversionBrad King2011-04-141-1/+1
| | | | | | | | | | | | | | Do not use file(TO_NATIVE_PATH) to compute the value to store in the registry. It is meant for constructing values to be put in shells. Since find_package() can use the value with CMake-normalized slashes do not bother with any conversion.
| * find_package: Test system package registry when possibleBrad King2011-04-132-0/+42
| | | | | | | | | | | | Teach the FindPackagTest to try creating the appropriate HKLM system package registry value. If it works then add a test to verify that find_package() reads it as expected. Then delete the value to cleanup.
* | Merge topic 'add-svn-trust-cert-to-ExternalProject'Brad King2011-04-191-0/+3
|\ \ | |/ |/| | | | | | | 12a3699 ExternalProject: Always use --non-interactive with svn 3a5a402 ExternalProject: Add SVN_TRUST_CERT argument
| * ExternalProject: Add SVN_TRUST_CERT argumentDavid Cole2011-04-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Which adds --non-interactive and --trust-server-cert to the svn checkout and update command lines. This allows ExternalProject clients to pull from an https:// based svn server even though the server may not have a valid or trusted certificate. Caveat emptor: I would NOT recommend using this except as a short-term work-around. Rather, the server should have a valid, trusted certificate, or the client should be using "http" instead of "https".
* | find_package: Forward component list for recursive calls in modulesBrad King2011-04-072-1/+4
|/ | | | | | | | | Some find modules call find_package recursively to locate a package configuration file for the package instead of searching for individual pieces. Commit 79e9b755 (Help recursive find_package calls in modules, 2008-10-03) taught find_package to forward the version number and EXACT arguments through the recursive call automatically. Do the same for the component list.
* Merge topic 'drag-n-drop-components'Brad King2011-04-053-1/+21
|\ | | | | | | | | | | dd04608 Fix KWStyle warnings 2973c1f Add component support to DragNDrop generator.
| * Add component support to DragNDrop generator.Clinton Stimpson2011-03-313-1/+21
| |
* | Merge topic 'fix_vs10_object_files'Brad King2011-04-051-0/+6
|\ \ | | | | | | | | | | | | 9a6ff95 Fix for bug where VS2010 did not use .obj files as part of the build.
| * | Fix for bug where VS2010 did not use .obj files as part of the build.Bill Hoffman2011-04-011-0/+6
| |/ | | | | | | | | | | | | For VS2010 if a precompiled .obj file was the output of a custom commad, it was used as part of the build. If it was not, then VS did not use it as part of the build. This commit updates the test to check for this issue, and fixes the problem. This fixes bugs #0011891 and
* | Merge topic 'upload-built-files'Brad King2011-04-055-0/+59
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Add the FILES keyword to ctest_upload commandZach Mullen2011-03-151-1/+1
| | |
| * | Implement ctest_upload commandZach Mullen2011-03-155-0/+59
| | |
* | | Fix #11964 Handle lib64 library on LinuxEric NOULARD2011-03-312-172/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AMD64 ABI document http://www.x86-64.org/documentation/abi.pdf does specify that 64bits binary libraries should end up in <prefix>/lib64 and 32bits ones in <prefix>/lib. All but debian based distros do so, and some like OpenSUSE even enforce the rule when packaging with RPM and refuse to build the RPM if this is not the case. After some discussion (see the bug notes) we cannot do that behind the scene and the current fix supposes that the user shall use the CMAKE_INSTALL_LIBDIR variables content in its INSTALL rules if he wants to put the lib in the right place. CMAKE_INSTALL_LIBDIR shall have the appropriate value depending on the Linux distribution found and 32/64bitness of the host. The cross-compiling case (even 32bits compile on a 64bits host) is not handled.
* | 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