summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix PositionIndependentTargets test with clang trunk.Stephen Kelly2012-06-271-2/+2
| | | | | | The __PIE__ define might be set instead of __PIC__ if fPIE is used. http://llvm.org/bugs/show_bug.cgi?id=13221
* Merge topic 'module-no-soname'David Cole2012-06-217-0/+10
|\ | | | | | | | | 56148fd Do not crash on SHARED library without language (#13324)
| * Do not crash on SHARED library without language (#13324)Brad King2012-06-207-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Since commit e1409ac5 (Support building shared libraries or modules without soname, 2012-04-22) CMake crashes on the code add_library(foo SHARED foo.nolang) because the logic to lookup the language's soname flag was moved from cmTarget::GetLibraryNames to cmMakefile::GetSONameFlag without its check for a NULL language. Restore the check for NULL. Add RunCMake.Languages test to cover language error cases like this one.
* | Merge topic 'CTestUpdateGit-safecrlf'David Cole2012-06-211-0/+3
|\ \ | | | | | | | | | | | | 5c153c6 Make CTest.UpdateGIT robust to Git safecrlf on Windows
| * | Make CTest.UpdateGIT robust to Git safecrlf on WindowsBrad King2012-06-201-0/+3
| | | | | | | | | | | | | | | | | | | | | If the user has configured 'core.autocrlf' and 'core.safecrlf' then 'git submodule add' will fail to 'git add' the '.gitmodules' file because it has LF newlines, at least as of Git 1.7.11. Disable 'core.safecrlf' in our test repository to avoid the problem.
* | | Merge topic 'run_compile_commands-aix-gcc-2.9'David Cole2012-06-211-2/+2
|\ \ \ | | | | | | | | | | | | | | | | 96b66a4 Avoid string.clear and string.push_back (#13319)
| * | | Avoid string.clear and string.push_back (#13319)Daniel R. Gomez2012-06-191-2/+2
| | | | | | | | | | | | | | | | Compiler "gcc version 2.9-aix51-020209" does not offer them.
* | | | Merge topic 'test-FindPackageModeMakefileTest'David Cole2012-06-211-3/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 09ff191 Fix FindPackageMode test Makefile (#13314)
| * | | | Fix FindPackageMode test Makefile (#13314)Daniel R. Gomez2012-06-191-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use CXXFLAGS in the makefile's link rule since it invokes the C++ compiler front-end. Retool the makefile not to require GNU Make. Using backticks instead of $(shell ...) is safe so long as one guards against the possibility of backslashes getting inside the backticks, so use temporary files and shell variables to avoid them.
* | | | | Merge topic 'test-Assembler-C-flags'David Cole2012-06-211-0/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | d686517 Tests/Assembler: Assemble and link with same flags (#13314)
| * | | | Tests/Assembler: Assemble and link with same flags (#13314)Daniel R. Gomez2012-06-181-0/+1
| |/ / / | | | | | | | | | | | | | | | | The test uses the C compiler as the assembler so use the C flags for ASM too. This is important when the flags specify the target ABI.
* | | | Merge topic 'test-VSGNUFortran-C-comment'David Cole2012-06-191-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 307d45e Tests/VSGNUFortran: Avoid C++ comment in C code (#13314)
| * | | | Tests/VSGNUFortran: Avoid C++ comment in C code (#13314)Daniel R. Gomez2012-06-181-1/+1
| |/ / /
* | | | Merge topic 'test-IncludeDirectories-eof'David Cole2012-06-191-3/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | cad6921 Tests/IncludeDirectories: Files must end in a newline (#13314)
| * | | | Tests/IncludeDirectories: Files must end in a newline (#13314)Daniel R. Gomez2012-06-181-3/+1
| |/ / / | | | | | | | | | | | | The HP compiler really really wants source files to end with a newline.
* | | | Merge topic 'ninja-cldeps'David Cole2012-06-191-2/+6
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb410e8 Ninja: disable cldeps for bcc32, it's too old, and ninja would also not build 5ead31d Ninja: try work around for bcc32 bug 1333b57 Ninja: build server fixes 9081e3a remove warning about unused parameter f430bea Ninja: maybe this fixes the bcc32 build f2c1288 Ninja: msvc6 for-scoping 44b9bbc Ninja: build with old msvc versions 57156a5 Ninja: build server fixes f1abdce Ninja: some bytes of the rc files couldn't be piped correctly 2de963d Ninja: don't remove space between command and parameters 50b6f33 Ninja: build cmcldeps with mingw c05653e Ninja: try to make GetProcessId visible ab245ff Ninja: but cl supports /nologo ... bf58e9a Ninja: no /nologo option in old rc.exe 2fb07fc Ninja: Eclipse and KDevelop fixes for ninja 518c065 Ninja: don't pollute build dir with preprocessed rc files ...
| * | | Ninja: add wrapper for cl to extract dependenciesPeter Kuemmel2012-06-081-2/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmcldeps wraps cl and adds /showInclude before calling cl. It parses the output of cl for used headers, drops system headers and writes them to a GCC like dependency file. cmcldeps uses ATM ninja code for process handling, but could be ported later to SystemTools. TODO: Why needs ninja multiple calls in the BuildDepends test?
* | | Merge topic 'position-independent-targets'David Cole2012-06-129-0/+132
|\ \ \ | |/ / |/| | | | | | | | | | | | | | bd34963 Refactor generation of shared library flags 55d7aa4 Add platform variable for flags specific to shared libraries 31d7a0f Add platform variables for position independent code flags
| * | Refactor generation of shared library flagsStephen Kelly2012-06-128-0/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CMAKE_SHARED_LIBRARY_<lang>_FLAGS has flags on various platforms for a variety of purposes that are correlated with shared libraries but not exclusive to them. Refactor generation of these flags to use new purpose-specific platform variables CMAKE_<lang>_COMPILE_OPTIONS_DLL CMAKE_<lang>_COMPILE_OPTIONS_PIC CMAKE_<lang>_COMPILE_OPTIONS_PIE Activate the DLL flags specifically for shared libraries. Add a new POSITION_INDEPENDENT_CODE target property to activate PIC/PIE flags, and default to true for shared libraries to preserve default behavior. Initialize the new property from CMAKE_POSITION_INDEPENDENT_CODE to allow easy global configuration in projects. Although the default behavior is unchanged by this refactoring, the new approach ignores CMAKE_SHARED_LIBRARY_<lang>_FLAGS completely. We must leave it set in case projects reference the value. Furthermore, if a project modifies CMAKE_SHARED_LIBRARY_<lang>_FLAGS it expects the new value to be used. Add policy CMP0018 to handle compatibility with projects that modify this platform variable. Add a PositionIndependentCode test on platforms where we can get meaningful results.
| * | Add platform variable for flags specific to shared librariesStephen Kelly2012-06-121-0/+2
| | | | | | | | | | | | | | | | | | Store in CMAKE_${lang}_COMPILE_OPTIONS_DLL flags from CMAKE_SHARED_LIBRARY_${lang}_FLAGS that are truly exclusive to shared libraries.
| * | Add platform variables for position independent code flagsStephen Kelly2012-06-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Store in new platform variables CMAKE_${lang}_COMPILE_OPTIONS_PIC CMAKE_${lang}_COMPILE_OPTIONS_PIE flags for position independent code generation. In almost all cases, this means duplication of the CMAKE_SHARED_LIBRARY_${lang}_FLAGS for the _PIC case and using the assumed pie equivalent for the _PIE case. Note that the GNU compiler has supported -fPIE since 3.4 and that there is no -fPIC on GNU for Windows or Cygwin. There is a possibility that the _PIE variables are not correct. However, as there is no backwards compatibility to be concerned about (as the POSITION_INDEPENDENT_CODE property is not used anywhere yet), the current state suffices.
* | | Merge topic 'Ninja-EXPORT_COMPILE_COMMANDS'David Cole2012-06-052-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3545645 Exclude the CompileCommandOutput test on WIN32. fbaddf4 Escape the source file to be compiled if required. db839be Make the CMAKE_EXPORT_COMPILE_COMMANDS option work with Ninja. 8778357 Add newline to the output. 2c04bc0 Move the EscapeJSON method to a sharable location.
| * | | Exclude the CompileCommandOutput test on WIN32.Stephen Kelly2012-06-041-1/+1
| | | |
| * | | Make the CMAKE_EXPORT_COMPILE_COMMANDS option work with Ninja.Stephen Kelly2012-06-041-1/+1
| | | |
| * | | Add newline to the output.Stephen Kelly2012-06-041-1/+1
| |/ /
* | | Add FindLibLZMA ModuleMario Bensi2012-05-311-1/+1
|/ /
* | Merge topic 'HandleEmptySIZEOF_VOID_P'David Cole2012-05-241-0/+12
|\ \ | | | | | | | | | | | | | | | 14b213c add test for #13241: empty SIZEOF_VOIDP in write_basic_package_version_file 00ae36f write_basic_package_version_file() now works with unset CMAKE_SIZEOF_VOID_P
| * | add test for #13241: empty SIZEOF_VOIDP in write_basic_package_version_fileAlex Neundorf2012-05-231-0/+12
| | | | | | | | | | | | Alex
* | | Merge topic 'CPack-activateRPM-DEB-onMacOS'David Cole2012-05-241-12/+36
|\ \ \ | |/ / |/| | | | | | | | | | | 801ea70 Calm down Borland compiler warning about "always true" 2a34b57 CPack allow RPM and DEB generator to be used on OSX.
| * | CPack allow RPM and DEB generator to be used on OSX.Eric NOULARD2012-05-201-12/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | More generally add the check for possible generator "activation" at runtime depending on a generator specific check. The dynamic behavior is currently implemented only for MacOS and should be fully backward compatible for other system. Inspired-By Tom Hughes <tomtheengineer@gmail.com>
* | | Merge topic 'mumps_coverage'David Cole2012-05-179-0/+1951
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c806b23 CDash now supports lots of files in coverage. So, show all files. 761d931 Do not try to run bullseye coverage if COVFILE env is empty. 5b69ce4 Update test data to match new coverage format. 1b418f1 Change GT.M Coverage Parser global b0c07a1 Disable bullseye coverage for mumps coverage test. 0a169e6 Remove uncovered files from cache coverage data. a7abf5e Add ability to specify more than one package directory or coverage directory. 220afca Use <TARGET_FILE> expression to run ctest so it works with Xcode and VS IDE. 62f6bce Use a script to run the test because WORKING_DIRECTORY is not in 2.8.2. f5c5db0 Fix some warnings and a bug where it went past the length of a vector. 7955e99 Add support for Cache coverage. a86cd33 Add virutal destructor to silence warning. 319eeb0 Add test for mumps coverage. Also refactor code to prepare for cache coverage. 72210c2 Fix line length. dd07161 Fix warning about char* instead of const char*. e6412e0 Add support to ctest for GTM mumps coverage.
| * | Update test data to match new coverage format.Bill Hoffman2012-05-071-1441/+1441
| | |
| * | Disable bullseye coverage for mumps coverage test.Bill Hoffman2012-05-041-2/+4
| | |
| * | Use <TARGET_FILE> expression to run ctest so it works with Xcode and VS IDE.Bill Hoffman2012-05-023-26/+10
| | | | | | | | | | | | Also add -crlf to the .gitconfig to handle the coverage data.
| * | Use a script to run the test because WORKING_DIRECTORY is not in 2.8.2.Bill Hoffman2012-05-022-8/+24
| | | | | | | | | | | | | | | add_test with WORKING_DIRECTORY is too new to use in cmake. This change uses a configured script to run the command in the right directory.
| * | Add support for Cache coverage.Bill Hoffman2012-05-014-0/+330
| | | | | | | | | | | | | | | This adds support for Cache coverage parsing. A test is added that does a basic run of the coverage on a small bit of data.
| * | Add test for mumps coverage. Also refactor code to prepare for cache coverage.Bill Hoffman2012-05-016-0/+1619
| | | | | | | | | | | | | | | Add a simple test to make sure the GTM mumps coverage is working. Also refactor the code so that cache coverage can be added.
* | | Merge topic 'module-no-soname'David Cole2012-05-012-0/+58
|\ \ \ | | | | | | | | | | | | | | | | | | | | fdb3f87 Test NO_SONAME property (#13155) e1409ac Support building shared libraries or modules without soname (#13155)
| * | | Test NO_SONAME property (#13155)Brad King2012-04-302-0/+58
| |/ / | | | | | | | | | | | | | | | | | | Teach the Plugin test to check that the NO_SONAME target property works as documented. Check that the IMPORTED targets are written with the correct properties. When readelf is available use it to check the actual binary files for SONAME fields.
* | | Merge topic 'enhance-include_external_msproject'David Cole2012-04-2511-0/+138
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b803410 VS: Fix line-too-long style errors 8787f94 Merge branch 'list-empty-error' into enhance-include_external_msproject 4a30258 include_external_msproject: Test TYPE, GUID, PLATFORM options (#13120) f3191f5 Merge branch 'test-RunCMake-check' into enhance-include_external_msproject 5913903 include_external_msproject: Add TYPE, GUID, PLATFORM options (#13120)
| * \ \ Merge branch 'list-empty-error' into enhance-include_external_msprojectBrad King2012-04-1912-0/+30
| |\ \ \ | | | | | | | | | | | | | | | Resolve conflict in Tests/RunCMake/CMakeLists.txt by adding both tests.
| * | | | include_external_msproject: Test TYPE, GUID, PLATFORM options (#13120)Brad King2012-04-1911-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "RunCMake.include_external_msproject" test to use the TYPE, GUID, and PLATFORM options to include_external_msproject. Since projects with custom types and platforms cannot be loaded without special VS plugins validate the results by directly parsing the generated solution (.sln). Co-Author: Leonid Yurchenko <nocturne@qarea.com>
* | | | | Merge topic 'list-empty-error'David Cole2012-04-2512-0/+30
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | 05604eb list: Handle errors on empty lists more gracefully (#13138)
| * | | | list: Handle errors on empty lists more gracefully (#13138)Brad King2012-04-1712-0/+30
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit ed1ea24c (Fix INSERT to allow inserting to empty list, 2006-05-15) the list command allows insertion into an empty list at index 0. Fix rejection of insertion at non-zero (negative) indices to present an error message instead of crashing. While at it, fix the error message of the GET and REMOVE_AT operations when the list is empty to not present a bogus allowed range. Add a "RunCMake.list" test to cover failure cases on empty lists.
* | | | Merge topic 'test-RunCMake-check'David Cole2012-04-252-9/+19
|\ \ \ \ | | |/ / | |/| | | | | | | | | | 38c3943 Teach RunCMake tests to allow custom checks
| * | | Teach RunCMake tests to allow custom checksBrad King2012-04-192-9/+19
| |/ / | | | | | | | | | | | | | | | Look for a <SubTest>-check.cmake script and load it to check side effects of the sub test. Provide it with the test source and build tree paths in variables. Check for a failure message in a result variable.
* | | FindPkgConfig.cmake: fix documented output variable not set (#13125,#13132)Rolf Eike Beer2012-04-151-2/+1
|/ / | | | | | | | | The real fix is from Yury G. Kudryashov while I added the surrounding cleanups. An additional hint to really get this fixed came from Rex Dieter.
* | Merge topic 'test-generated-def'David Cole2012-04-034-1/+14
|\ \ | | | | | | | | | | | | 89987c2 Test generated module .def files
| * | Test generated module .def filesBrad King2012-04-024-1/+14
| | | | | | | | | | | | | | | Teach the ModuleDefinition test to cover the case that a .def file is generated by a custom command.
* | | automoc: add define to test which caused bug #13018Alex Neundorf2012-03-261-1/+1
| |/ |/| | | | | | | | | | | | | | | This does not really test that the bug is fixed, but at least it makes it easy to check manually whether the bug is there or not. I have to see whether I can build a test which does test that a target is not rebuilt everytime. Alex