summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | CTest: Look for CTestConfig.cmake in build dir first, then source dirJean-Christophe Fillion-Robin2011-10-275-0/+73
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide the ability to configure CTest with settings different from the ones available in the source tree by checking first if CTestConfig.cmake exists in the build tree. The motivation is to allow build system checking out external project to test and/or package them and submit the associated results to a different dashboard than the one specified (or not) in the source of the external project. For example, the build system of Slicer can checkout, build, test and package what I will call "extensions". These extensions can be developed by third parties who can test and submit to their own dashboard / project. When checked out by Slicer build system, the default dashboard can now be overwritten by adding a custom CTestConfig.cmake to the build directory. And if not overwritten, it would avoid to create CTestConfig.cmake within the source checkout of the extension.
* | | Merge topic 'test-update-svn-1.7-issue-12535'David Cole2011-10-251-1/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | 6d79b50 Teach CTest.UpdateSVN to detect svn add --depth before using it 74eb86c Fix CTest.UpdateSVN with Subversion 1.7 (#12535)
| * | | Teach CTest.UpdateSVN to detect svn add --depth before using itBrad King2011-10-241-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Older svn versions do not have the --depth option for "svn add". Fortunately we do not need it for versions that old. Look for the option and use it only when available.
| * | | Fix CTest.UpdateSVN with Subversion 1.7 (#12535)Brad King2011-10-241-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test adds a subdirectory with svn add subdir svn add ... subdir/foo.txt subdir/bar.txt Subversion 1.7 fails on the second command with svn: warning: W150002: '.../subdir/foo.txt' is already under version control svn: warning: W150002: '.../subdir/bar.txt' is already under version control svn: E200009: Could not add all targets because some targets don't exist because it considers adding an already-versioned file to be an error. Avoid the problem by using svn add --depth=empty subdir to add the subdirectory without the files it contains.
* | | Add copyright noticesAlex Neundorf2011-10-222-0/+26
| | | | | | | | | | | | Alex
* | | automoc:run moc on the header if the source file contains include "foo.moc"Alex Neundorf2011-10-224-1/+46
|/ / | | | | | | | | | | | | | | | | | | This fixes #12533. Before automoc did not check the header if the source file contained a statement, now it does. Additionally, moc is now only run on explicitely listed headers which contain a Q_OBJECT macro. Alex
* | Silence make on OpenBSD in FindPackageModeTest(#12508)Alex Neundorf2011-10-121-0/+1
| | | | | | | | | | | | | | | | | | | | BSD make doesn't use -v for printing its name and version, and so complains on stderr that this is a bad command line option, used in Tests/FindPackageModeMakefileTest/CMakeLists.txt . Silence stderr to make that ugly output go away. Patch by David Coppy. Alex
* | Build each library only once instead of once for each test.Stephen Kelly2011-10-094-5/+58
| |
* | Remove unused define.Stephen Kelly2011-10-091-8/+0
|/
* Teach our tests about special cases for VS 11Brad King2011-09-233-3/+10
| | | | | | Teach the CheckCompilerRelatedVariables test to verify MSVC11. Update the special cases already in the Preprocess and VSExternalInclude tests for VS 10 to work for VS 11 too.
* Merge topic 'FortranCInterface-VS'David Cole2011-09-201-19/+26
|\ | | | | | | | | | | | | | | | | 67fcc83 Simplify IntelVSImplicitPath detection project a7ce26d Move IntelVSImplicitPath project to better location 539a822 Enable Fortran tests for IDE builds. 555f589 For VS Intel Fortran IDE builds, add a check to find the Fortran library PATH. 71402eb FortranCInterface: Compile separate Fortran lib in VerifyC[XX]
| * Enable Fortran tests for IDE builds.Bill Hoffman2011-09-091-19/+26
| |
* | Tests: Add the more modern Mac64 nightly buildDavid Cole2011-09-141-0/+2
| | | | | | | | | | We can remove the older ppc;i386 non-64-bit Mac nightly build in a little while after this one proves itself reliable.
* | Merge topic 'effective-platform-name'David Cole2011-09-1312-0/+1345
|\ \ | | | | | | | | | | | | | | | 64c9b31 Xcode: Add test to demonstrate iOS project in Xcode 59a2265 Xcode: Use EFFECTIVE_PLATFORM_NAME reference in ComputeOutputDir
| * | Xcode: Add test to demonstrate iOS project in XcodeDavid Cole2011-09-1212-0/+1345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Presently, this test is only run manually because not all machines have an iOS SDK, complications associated with certificates and code signing, having a device attached, ... If you're setup to do iOS dev work, you can easily run this test manually on your Mac using the Xcode generator and run the result in the simulator or on your attached device.
* | | Merge topic 'add-kwstyle-test'David Cole2011-09-131-0/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | 3a0d632 KWStyle Test: Activate by default if KWStyle is found 91704ef Tests: Add a KWStyle test, equivalent to the make StyleCheck target
| * | | Tests: Add a KWStyle test, equivalent to the make StyleCheck targetDavid Cole2011-08-041-0/+13
| | | |
* | | | Merge topic 'fix-ctesttestcrash-test'David Cole2011-09-071-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 339a321 Tests: Look for "Illegal" or "SegFault" in the output