summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-Complex-cleanup'David Cole2012-01-0960-3022/+195
|\ | | | | | | | | | | | | | | | | | | | | | | 53d31c2 complex: Remove unused option to test CMakeLib c1789e6 complex: Remove test dependence on cmSystemTools 569cee1 complex: Move cmSystemTools::UpperCase test to CMakeLibTests 49d6dd6 complex: Simplify test for single-character exe name 76ac88b complex: Move GeneratedFileStream test to CMakeLibTests 137e597 complex: Remove dynamic loader tests 6337920 complex: Sync Tests/ComplexOneConfig with Tests/Complex 6a75821 complex: Remove ancient unused ComplexRelativePaths test
| * complex: Remove unused option to test CMakeLibBrad King2011-12-239-85/+0
| | | | | | | | | | Now that the Complex tests do not depend on cmSystemTools or other classes from CMakeLib the COMPLEX_TEST_CMAKELIB option is useless.
| * complex: Remove test dependence on cmSystemToolsBrad King2011-12-232-24/+24
| | | | | | | | Use C standard 'remove' and POSIX standard 'stat'.
| * complex: Move cmSystemTools::UpperCase test to CMakeLibTestsBrad King2011-12-234-28/+34
| | | | | | | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib.
| * complex: Simplify test for single-character exe nameBrad King2011-12-236-74/+26
| | | | | | | | | | Run the test executable as a custom command instead of depending on cmSystemTools::RunSingleCommand.
| * complex: Move GeneratedFileStream test to CMakeLibTestsBrad King2011-12-236-176/+103
| | | | | | | | | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib. Fix incorrect library link order in the Complex tests exposed by this change.
| * complex: Remove dynamic loader testsBrad King2011-12-238-160/+2
| | | | | | | | | | Everything covered by these tests is now covered by the KWSys DynamicLoader test and the Plugin test.
| * complex: Sync Tests/ComplexOneConfig with Tests/ComplexBrad King2011-12-232-1/+9
| | | | | | | | | | | | The two test sources must remain identical. Apply to ComplexOneConfig the change that commit f578381e (Fix vs2010 project generation error when HEADER_FILE_ONLY is set, 2010-12-20) made to Complex.
| * complex: Remove ancient unused ComplexRelativePaths testBrad King2011-12-2343-2481/+4
| |
* | Merge topic 'avoid-mfc-test'David Cole2011-12-202-0/+65
|\ \ | | | | | | | | | | | | 0e598b7 Tests: Only really run MFC test if we can build MFC apps (#11213)
| * | Tests: Only really run MFC test if we can build MFC apps (#11213)David Cole2011-12-162-0/+65
| |/ | | | | | | Avoid problems on "undetected" VS Express build environments.
* | Merge topic 'fix_double_project_cmake_build'David Cole2011-12-204-6/+23
|\ \ | | | | | | | | | | | | 5badf5f Fix the case where cmake --build failed with two project cmds in one file.
| * | Fix the case where cmake --build failed with two project cmds in one file.Bill Hoffman2011-12-204-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | This adds a test that uses two project commands in the same CMakeLists.txt file. It also adds a fix so that cmake --build will work in that case. The fix sets the name of the last project command in the top level CMakeLists.txt in the cache variable CMAKE_PROJECT_NAME. This variable is used by cmake --build to find the project name.
* | | Merge topic 'AutomocFineTuning'David Cole2011-12-201-0/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | e474dcb automoc: improved warning message in relaxed mode 96fc5d5 automoc: default to strict mode, use CMAKE_AUTOMOC_RELAXED_MODE
| * | automoc: default to strict mode, use CMAKE_AUTOMOC_RELAXED_MODEAlex Neundorf2011-12-131-0/+3
| |/ | | | | | | | | | | | | | | | | automoc now defaults to strict mode, also with Qt4, i.e. it behaves as the documentation says by default. I also inverted the switch CMAKE_AUTOMOC_STRICT_MODE to CMAKE_AUTOMOC_RELAXED_MODE. Docs and test adapted accordingly. Alex
* | Merge topic 'test-Fortran-compiler-compat'David Cole2011-12-161-10/+2
|\ \ | | | | | | | | | | | | fcb2a27 Fix and simplify Fortran test compiler compatibility check
| * | Fix and simplify Fortran test compiler compatibility checkBrad King2011-12-151-10/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 38aab379 (Set CMAKE_<lang>_COMPILER_ID for VS generators, 2011-09-02) the VS IDE generators set the C and C++ compiler id to MSVC and the Fortran compiler id to Intel. This caused the Fortran test to fail compatible compiler detection because the if() test "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC" is evaluated as the "var MATCHES regex" signature which evaluates the compiler id "MSVC" as a variable which is defined to 1 which does not match "MSVC". Combine tests for non-identical but compatible compiler vendors into a single regex match whose left hand side will not be defined as a variable.
* | Follow all dependencies of shared library private dependenciesBrad King2011-12-143-2/+25
|/ | | | | | | | | In cmComputeLinkDepends we compute the transitive closure of private shared library dependencies. When a shared library is added to this closure we must follow all of its dependencies whether they are private or public. Previously we only followed the private dependencies. Fix the implementation to follow the public dependencies too. Also extend the ExportImport test to cover this case.
* Merge branch 'master' into AutomocIncludedDotMocFileHandlingDavid Cole2011-12-0771-19/+2094
|\ | | | | | | | | Conflicts: Source/cmTarget.cxx
| * Merge topic 'GNU-to-MS'David Cole2011-12-062-0/+6
| |\ | | | | | | | | | | | | | | | | | | | | | | | | ae62a1c Test CMAKE_GNUtoMS option in ExportImport on MinGW and MSys afb00fe Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib 61e8629 Factor makefile generator link rule lookup into helper function a603250 Load platform files that need to know the ABI when possible ecd8414 Fortran: Detect pointer size in gfortran on MinGW
| | * Test CMAKE_GNUtoMS option in ExportImport on MinGW and MSysBrad King2011-12-052-0/+6
| | |
| * | Merge topic 'fix-ExternalProject-svn-issue'David Cole2011-12-061-7/+0
| |\ \ | | | | | | | | | | | | | | | | f529ddc Tests: ExternalProject: Remove unnecessary 'svn --version' call
| | * | Tests: ExternalProject: Remove unnecessary 'svn --version' callRolf Eike Beer2011-12-051-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test will fail to get a proper version number if running on a (e.g. German) localized system because the regular expression used to match the Subversion version output does not match. Instead of duplicating code just remove the local test altogether and use the version that FindSubversion.cmake already detects.
| * | | export(): Document undefined behavior of location propertiesBrad King2011-12-012-10/+12
| |/ / | | | | | | | | | | | | | | | | | | | | | Since the export() command needs to know the final location of a target in the build tree we cannot allow properties affecting the location or name of a target file to be set after the target is passed to export(). Fix a violation of this rule in the SimpleInstall test.
| * | Merge topic 'newline-style'David Cole2011-12-015-0/+38
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | ac2e45d Provide std::ios_base typedef on GCC < 3 28c46ca cmNewLineStyle: Use cmStandardIncludes.h 75e83e9 cmNewLineStyle: Remove trailing comma in enum be6502c bootstrap: Include cmNewLineStyle in build a087490 Add NEWLINE_STYLE option to configure_file (#3957)
| | * Add NEWLINE_STYLE option to configure_file (#3957)Peter Kuemmel2011-11-285-0/+38
| | |
| * | Merge topic 'target-link-libraries-interfaces'David Cole2011-11-239-0/+129
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b1f12f8 target_link_libraries: Simplify argument processing state tests 5fc95df target_link_libraries: Add missing space in documentation 9143822 target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options cf64218 target_link_libraries: Trim trailing whitespace
| | * | target_link_libraries: Add LINK_(PUBLIC|PRIVATE) optionsStephen Kelly2011-11-229-0/+129
| | | | | | | | | | | | | | | | | | | | Makes it possible to specify the link dependencies and link interfaces in one command without repetition.
| * | | Fix CMake.File hash test for CRLF checkoutsBrad King2011-11-1611-14/+16
| | | | | | | | | | | | | | | | | | | | Use a dedicated test input file for the file() hash API tests. Set attribute crlf=input so it is always checked out correctly.
| * | | Add string(MD5) and string(SHA*) commands to compute hashesBrad King2011-11-1610-0/+47
| | | | | | | | | | | | | | | | | | | | Provide a CMake-language binding to these cryptographic hashes. Add a string() command API for MD5, SHA1, SHA224, SHA256, SHA384, and SHA512.
| * | | Add file(SHA*) commands to compute cryptographic hashesBrad King2011-11-166-0/+25
| | | | | | | | | | | | | | | | Add a file() command API for SHA1, SHA224, SHA256, SHA384, and SHA512.
| * | | Add file(MD5) command to compute cryptographic hashBrad King2011-11-167-1/+22
| | |/ | |/| | | | | | | | | | Provide a CMake-language binding to the md5sum function previously available only by "cmake -E md5sum".
| * | Merge topic 'fix-11213-vs10-mfc-support'David Cole2011-11-154-5/+39
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 537020f Tests: Nudge MFC test to pass on VS 6 dashboards (#11213) 51f442e VS11: Update InstallRequiredSystemLibraries.cmake for VS11 (#11213) d85ab7a Tests: Add environment logging to the MFC test (#11213) 011694c VS10: Use expected values for UseOfMfc (#11213) a2e6d24 Tests: Fix MFC test to work with VS 10 and later (#11213)
| | * | Tests: Nudge MFC test to pass on VS 6 dashboards (#11213)David Cole2011-11-093-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InstallRequiredSystemLibraries does not install any dlls when used with VS 6 dashboards. Modify the ValidateBuild script to expect only 1 file when building with VS 6. Using "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>" does not work when <INSTALL_DIR> evaluates to a long enough string. However, using "-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>" does work, even with the longer strings. So: make sure to include the ":PATH" when using this construct with ExternalProject calls so that they may install to the proper location on VS 6 builds. All existing calls that match "CMAKE_INSTALL_PREFIX.*INSTALL_DIR" include the ":PATH" after this commit. By the way: https://twitter.com/DLRdave/status/134339505397309440
| | * | Tests: Add environment logging to the MFC test (#11213)David Cole2011-11-081-0/+11
| | | | | | | | | | | | | | | | Simply to ease analyzing still-occurring dashboard failures.
| | * | Tests: Fix MFC test to work with VS 10 and later (#11213)David Cole2011-11-041-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mfc app in the test was generated by the VS 7.1 wizard, and due to changes in VS since then, the values used for WINVER and _WIN32_WINNT caused compile errors when built with VS 10 or later. Change them to values appropriate for targeting Windows XP or later when building with VS 10 or later. See http://msdn.microsoft.com/en-us/library/6sehtctf.aspx for more info.
| * | | Merge topic 'add-mfc-test'David Cole2011-11-1528-0/+1778
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | c71f7ab Tests: Avoid MFC test automatically for Watcom WMake builds (#11213) a42e3f2 Tests: Fix MFC test for old vs6 dashboards (#11213) b297da6 Tests: Fix MFC test w/ Make-based generators (#11213) 54595e6 Tests: Avoid MFC test automatically for VCExpress builds (#11213) 36b0c43 Tests: Add the MFC test (#11213)
| | * | Tests: Avoid MFC test automatically for Watcom WMake builds (#11213)David Cole2011-11-031-0/+10
| | | |
| | * | Tests: Fix MFC test for old vs6 dashboards (#11213)David Cole2011-11-031-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MFC test's mfc1 directory was a "VS-MFC-wizard-generated" starter MFC app, using VS 7.1 as the generator. There's one define used in the generated rc file that was not available back in the VS6 days... Put a conditional define in here based on _MSC_VER to enable the test app to build on VS6 dashboards.
| | * | Tests: Fix MFC test w/ Make-based generators (#11213)David Cole2011-11-021-0/+12
| | | | | | | | | | | | | | | | | | | | An explicit add_definitions of _AFXDLL is required for shared library builds with non-Visual Studio generators.
| | * | Tests: Avoid MFC test automatically for VCExpress builds (#11213)David Cole2011-11-011-0/+24
| | | |
| | * | Tests: Add the MFC test (#11213)David Cole2011-11-0128-0/+1726
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build a simple, do-nothing VS 7.1 MFC wizard generated app with CMake. Build it two different ways via ExternalProject, one with CMAKE_MFC_FLAG set to 1 for linking to MFC statically, and one with CMAKE_MFC_FLAG set to 2 for linking to the shared MFC dlls. Validate that the install tree of the static build has only one *.exe file in it and nothing else. Also validate that the install tree of the shared library build has multiple files in it (no less than 3) and that they are only of the expected types *.exe, *.dll and *.manifest. This commit does not address the issue reported in #11213, it merely adds a test that may be used to show that the bug report is valid. After this commit, the MFC test should fail on any dashboard machines that have MSVC defined, but cannot build an MFC app. We can then analyze that failure data as input to solving the issue.
* | | | Add a test case for the use of Q_PRIVATE_SLOT.Stephen Kelly2011-11-223-1/+42
| | | |
* | | | automoc: add special handling for including basename_p.moc, with testAlex Neundorf2011-11-225-1/+92
| | | | | | | | | | | | | | | | Alex
* | | | automoc: add test for including a moc_abc_p.cpp fileAlex Neundorf2011-11-222-0/+34
| | | | | | | | | | | | | | | | Alex
* | | | automoc: add test for including the moc file from another headerAlex Neundorf2011-11-225-1/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | including moc_xyz.cpp in abc.cpp should run moc on xyz.h (and include the file in abc.cpp) Alex
* | | | automoc: add a test for including both abc.moc and moc_abc.cppAlex Neundorf2011-11-224-1/+74
| | | | | | | | | | | | | | | | Alex
* | | | automoc: add more test casesAlex Neundorf2011-11-106-1/+131
|/ / / | | | | | | | | | Alex
* | | Merge topic 'CPackRPM-perComponentHeader'David Cole2011-11-012-0/+2
|\ \ \ | | | | | | | | | | | | | | | | e20c59a CPackRPM support component specific variables for spec files
| * | | CPackRPM support component specific variables for spec filesEric NOULARD2011-10-302-0/+2
| | | | | | | | | | | | | | | | | | | | This is a modified version of a user patch Inspired-By: informant