summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Fortran: Add support for free- and fixed-form flagsBrad King2011-08-313-5/+9
| | | | | | | Define a "Fortran_FORMAT" target and source file property. Initialize the target property from a "CMAKE_Fortran_FORMAT" variable. Interpret values "FIXED" and "FREE" to indicate the source file format. Append corresponding flags to the compiler command line.
* Merge topic 'UsingCMakeLikePkgConfig2'David Cole2011-08-257-0/+69
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 59238dc Fix --find-package mode on Cygwin, where enable_language(RC) is called 98472e4 Require the current cmake version in --find-package mode a6ccf3c Use $(CXXFLAGS) and $(LDFLAGS) in the --find-package test Makefile 4386918 Fix line length 7d69310 Only enable the test when using GNU make 3011149 Make the test harder by always having a space in the include dirs ab57ff6 Make the --find-package test harder 626fc71 Much improved test, should now be executed on all UNIXes ec6982d Disable any STATUS output in --find-package mode e552ae7 Dont check for -isysroot and -mmacosx-version on OSX in --find-package mode e589589 Rename helper macros print_compile_flags() to set_compile_flags_var() aecfc1f Fix test on OpenBSD with BSD make 6bb4ca3 The makefile for the test was kindof wrong fd15b5e Only run the test if we are using a makefile generator under UNIX 9fc87c6 Add a test for the new --find-package mode d3ae0ff Improve documentation for --find-package mode bf07375 Add a cmake.m4 for using cmake in autoconf projects instead of pkgconfig b0e3578 Use the file-utility to test for 64bit if there is no /usr/lib64 53edfb2 Better support for lib64 and Debian multiarch b8fdaa1 Fix copyright notice in new CMakeFindPackageMode.cmake 7690edf Replace cmake::GetScriptMode() with GetWorkingMode() e4f603b Implement find-package mode of cmake a91d662 Add find-package mode, which does nothing yet b976e70 Make clLocalGenerator::GetTargetFlags() public
| * Use $(CXXFLAGS) and $(LDFLAGS) in the --find-package test MakefileAlex Neundorf2011-08-181-2/+2
| | | | | | | | | | | | | | This should make the test succeed in the coverage builds, where CXXFLAGS and LDFLAGS are set accordingly. Alex
| * Only enable the test when using GNU makeAlex Neundorf2011-08-171-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | The makefile used in the test uses $(shell ...), which is AFAIK a GNU extension, and will probably not work e.g. with OpenBSD make. According to the FreeBSD make manpage their make has a != assignment, which seems to do something similar, but I don't have such a system around for testing. Also, the point of this test is not to write a portable makefile, but to check whether cmake --find-package prints a correct string. Alex
| * Make the test harder by always having a space in the include dirsAlex Neundorf2011-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The commit message for the previous commit was wrong, it should have been: fix the test by using $(shell ...) syntax instead of backticks in the Makefile. With backticks I couldn't get the quoting right. Printing -I"/some/path with space" did not work, the compiler complained that there is not file "with". Also backslashes in different numbers did not make it work. Alex
| * Make the --find-package test harderAlex Neundorf2011-08-171-2/+2
| | | | | | | | | | | | | | Now it is guaranteed that the include paths always contain a space. This should make the cont. build fail. Alex
| * Much improved test, should now be executed on all UNIXesAlex Neundorf2011-08-166-17/+33
| | | | | | | | | | | | | | | | Instead of relying on that some development package is installed on the system, now a tiny library is built, which is the searched and used during the test. Alex
| * Fix test on OpenBSD with BSD makeAlex Neundorf2011-08-151-1/+1
| | | | | | | | | | | | | | | | BSD make doesn't seem to support -C, so do not use it, According to the documentation the working directory is set to CMAKE_CURRENT_BINARY_DIR anyway, so it should work just the same. Alex
| * The makefile for the test was kindof wrongAlex Neundorf2011-08-141-1/+3
| | | | | | | | Alex
| * Only run the test if we are using a makefile generator under UNIXAlex Neundorf2011-08-111-1/+1
| | | | | | | | Alex
| * Add a test for the new --find-package modeAlex Neundorf2011-08-114-0/+40
| | | | | | | | Alex
* | Merge topic 'AutomocForQt'David Cole2011-08-257-0/+914
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 920a046 QtAutomoc: Eliminate compiler warning b00463f QtAutomoc test: Pass QT_QMAKE_EXECUTABLE e78ce44 Fix automoc with VS builds: apply patch from Bill 71165e9 Silence warning in automoc: use long instead of int 1879bcc Fix build: use std::ios::out|ios::trunc instead of std::ios_base::out 678e124 Only enable the automoc test after checking that Qt4 works 71c29d1 Fix bootstrap test with automoc afb3edc Fix warnings add30e9 Fix build: non-void function must return a value 7e6d845 Automoc.cmake is not needed anymore 2963d0b Fix logic which decides when to execute automoc test 77a5c6e Add documentation for AUTOMOC, add initialization via CMAKE_AUTOMOC bf8ef77 Add a test for automoc d045fd4 Nicer progress message for the automoc target 50cd6ce Move automoc processing from add_executable/library to cmGlobalGenerator cbaac2a Remove trailing whitespace c27607b Refactor SetupAutomocTarget() so it can be run after creating the target 24d9b7d Remove trailing whitespace 58b7fe6 Use cout instead of printf() 72caf4d Add the generated automoc.cpp file to the cleaned files ddb517d Color output when running moc 9303295 Initialize verbose based onb the env.var. ace1215 Move code for parsing a cpp-file from the big loop to separate function 735a5bb Fix line lengths 83b730c Add AUTOMOC to the add_library() command 126c6ea Add the cmake module required currently for automoc de91feb Remove the need to check for .h/.cxx during buildtime d65689a Add actual automoc code from automoc d1c0a5f Start implementing skeleton for automoc in cmake a65011b Start work on automoc: add empty cmQtAutomoc class
| * | QtAutomoc test: Pass QT_QMAKE_EXECUTABLEDavid Cole2011-08-191-0/+1
| | | | | | | | | | | | ...in case qmake is not in the PATH
| * | Only enable the automoc test after checking that Qt4 worksAlex Neundorf2011-08-171-12/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | On some systems which contribute nightly builds there were strange errors which seemed to hint that the installed Qt4 is not usable/ not usable with this compiler. So first check whether it works, and only if this was successful, enable the test. Alex
| * | Fix logic which decides when to execute automoc testAlex Neundorf2011-08-161-14/+15
| | | | | | | | | | | | Alex
| * | Add a test for automocAlex Neundorf2011-08-167-0/+893
| | | | | | | | | | | | | | | | | | | | | The files are taken from the Qt examples. They are BSD licensed, so it should be fine. I only edited main.cpp to use both widgets. Alex
* | | Merge topic 'WriteConfigVersionFile_2TemplateFiles'David Cole2011-08-161-0/+91
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c9761de Improve documentation for WriteBasicConfigVersionFile.cmake 208bb90 Set UNSUITABLE instead of not COMPATIBLE bb03c2d Really fix copyright notice d50a61a Fix copyright notice 4ba09bc Add some tests for write_basic_config_version_file() 02b1e4b Add example to documentation d216a67 Provide macro write_basic_config_version_file()
| * | | Set UNSUITABLE instead of not COMPATIBLEAlex Neundorf2011-08-051-0/+11
| | | | | | | | | | | | | | | | Alex
| * | | Add some tests for write_basic_config_version_file()Alex Neundorf2011-08-011-0/+80
| | | | | | | | | | | | | | | | Alex
* | | | Merge topic 'intel_fortran_vs2010'David Cole2011-08-167-1/+78
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | 3c53fbb Fix custom commands in VS2010 Fortran projects using CFG_INTDIR and test.
| * | | Fix custom commands in VS2010 Fortran projects using CFG_INTDIR and test.Bill Hoffman2011-08-037-1/+78
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | For custom commands in VS2010 Fortran projects the INTDIR variable is different than in the rest of the solution because Intel fortran still uses the old VS project files even in VS2010. So, we replace $(Configuration) directly in the project files. I have also added a FortranOnly test that tests this feature and is run on any generator that has Fortran abilities.
* | | Merge topic 'adjust-path-for-all-generators-test'David Cole2011-08-021-0/+22
|\ \ \ | | | | | | | | | | | | | | | | 0baf565 Ensure libgmp-10.dll is in the PATH for CMakeTestAllGenerators
| * | | Ensure libgmp-10.dll is in the PATH for CMakeTestAllGeneratorsDavid Cole2011-07-291-0/+22
| | |/ | |/| | | | | | | | | | | | | | | | | | | But only if it exists at the default location: C:/MinGW/bin/libgmp-10.dll This is so that the pop-up dialog about not being able to load that dll does not hang the test when there's nobody watching.
* | | Merge topic 'fix-updategit-test'David Cole2011-08-021-3/+5
|\ \ \ | | | | | | | | | | | | | | | | 0375865 Fix machine-specific UpdateGIT test failures
| * | | Fix machine-specific UpdateGIT test failuresDavid Cole2011-07-291-3/+5
| |/ / | | | | | | | | | | | | | | | Generated Update.xml file is larger than the previously hard-coded limit of 4096. Introduce variable max_update_xml_size and bump it up to 16k for reliable test runs.
* | | Add support for Visual Studio project-specific globals (#8707)David Cole2011-07-291-1/+4
|/ / | | | | | | | | | | | | | | | | | | | | Thanks to Pau Garcia i Quiles for the inspiration for the patch. I've tweaked it a bit compared to what's in the bug tracker: this commit does not allow empty global variable names. I also added usage of the new feature to an existing test. Although it has no effect on the resulting Visual Studio projects, you can verify that the VSResource test produces a non-empty globals section in the generated .vcproj(x) files.
* | Merge topic 'fix-tests-failing-with-Xcode4'Brad King2011-07-262-4/+63
|\ \ | | | | | | | | | | | | | | | | | | | | | 1a53fb7 Use correct default multiple architecture values in test 5f7acc8 Base architecture choice logic on Xcode version c050c59 Fix BuildDepends test to work with Xcode 4 923b030 Fix Architecture test to work with Xcode 4
| * | Use correct default multiple architecture values in testDavid Cole2011-07-191-9/+10
| | | | | | | | | | | | Even if CMAKE_OSX_ARCHITECTURES value is a single value...
| * | Base architecture choice logic on Xcode versionDavid Cole2011-07-182-7/+37
| | | | | | | | | | | | Not on Darwin version.
| * | Fix BuildDepends test to work with Xcode 4David Cole2011-07-151-0/+5
| | | | | | | | | | | | | | | | | | ppc tools are no longer available in the Xcode 4 installation. Eliminate the use of the hard-coded 'ppc' in the test when running on Snow Leopard or later.
| * | Fix Architecture test to work with Xcode 4David Cole2011-07-151-4/+27
| |/ | | | | | | | | | | ppc tools are no longer available in the Xcode 4 installation. Eliminate the use of the hard-coded 'ppc' in the test when running on Snow Leopard or later.
* | Merge topic 'SetPropertyAppendString'Brad King2011-07-261-0/+18
|\ \ | | | | | | | | | | | | 9dbba1b Fix #12342: Add APPEND_STRING option to set_property()
| * | Fix #12342: Add APPEND_STRING option to set_property()Alex Neundorf2011-07-151-0/+18
| |/ | | | | | | | | | | | | | | | | set_property() has APPEND, which creates a list. E.g. when appending to COMPILE_FLAGS a string is needed, not a list. With the APPEND_STRING option the value is append as string, not as list. Alex
* | Merge topic 'PushCheckState'Brad King2011-07-262-0/+31
|\ \ | | | | | | | | | | | | | | | d64ba0b Fix copyright notice test 1325260 Add macros cmake_push/pop_check_state() as discussed on the list.
| * | Add macros cmake_push/pop_check_state() as discussed on the list.Alex Neundorf2011-07-072-0/+31
| |/ | | | | | | | | | | | | | | This patch adds two macros cmake_push_check_state() and cmake_pop_check_state(), which can be used to save and restore the contents of the CMAKE_REQUIRED_xxx variables. Alex
* | Merge topic 'DisableSwitchForFindPackage'Brad King2011-07-262-1/+5
|\ \ | | | | | | | | | | | | | | | | | | 4a50b5f Add a basic test for CMAKE_DISABLE_FIND_PACKAGE_<package> a66df08 Add documentation for the CMAKE_DISABLE_FIND_PACKAGE_<Name> switch 6e1d3ed Add a switch to disable a find_package() call completely
| * | Add a basic test for CMAKE_DISABLE_FIND_PACKAGE_<package>Alex Neundorf2011-06-232-1/+5
| |/ | | | | | | Alex
* | Merge topic 'asn_java_support'Brad King2011-07-262-41/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | 1417a55 Java: Fix documentation format and indentation 0b7627d Java: Use set_property/get_property for target variables. b01a505 Java: Create correct jar archive dependencies. f99c312 Java: Added some dependency magic to avoid recompilations. f3233ba Java: Create java_class_filelist only if it does't exist. a22ed3d Tests: Check for the new Java exeutable variables. c177c8e Tests: Java tests should test UseJava.cmake 5c2106c Modules: Added CMake Java support. a4b6275 FindJava: Find missing java development executables.
| * Tests: Check for the new Java exeutable variables.Andreas Schneider2011-03-291-2/+2
| |
| * Tests: Java tests should test UseJava.cmakeAndreas Schneider2011-03-291-39/+6
| |
* | Merge topic 'library-multiarch-issue-12037'Brad King2011-06-147-0/+31
|\ \ | | | | | | | | | | | | | | | | | | 1ed19bc multiarch: Set CMAKE_LIBRARY_ARCHITECTURE_REGEX for Linux|Hurd|kFreeBSD 52a6ed2 Test find_package multiarch support (#12037) b41ad3b Teach find_(library|package) about Linux multiarch (#12037)
| * | Test find_package multiarch support (#12037)Brad King2011-06-087-0/+31
| | |
* | | CTest: Report tests not run due to unknown configurationBrad King2011-06-101-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | When add_test(NAME) is called without the CONFIGURATIONS argument then the test is intended to run in any configuration. In multi-config generators like the VS IDE and Xcode tests created by add_test(NAME) can only be run when testing a known configuration (otherwise there is no way to generate the test command line). If no test command line is known for a particular configuration, or if no configuration is given to ctest, report the test as not run instead of silently skipping it. Also fix CMake's own TestsWorkingDirectory test invocation to correct a previously silent failure exposed by this change.
* | Merge topic 'fix-12034-fixup-bundle-with-non-dotapp-exe'Brad King2011-06-0713-0/+305
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 51e16c0 BundleUtilities: Avoid test on Watcom dashboards (#12034) 41f962a Revert "BundleUtilities: Run test on Windows if either MSVC or dumpbin was found." e17135e BundleUtilities: Add rpath to loadable modules in test. 8064044 BundleUtilities: Print reason for not loading module.so f3de459 BundleUtilities: Run test on Windows if either MSVC or dumpbin was found. 900bf98 BundleUtilities: Disable running test on Windows unless using MSVC. fa4dc08 BundleUtilities: Fix issues with custom target DEPENDS in test (#12034) e40b79e BundleUtilities: Fix test when using xcode (#12034) b68d3dc BundleUtilities: Fix regex to extract dependents from ldd (#12034) 7ac7b43 BundleUtilities: Work w/ non .app exes on Mac (#12034)
| * | BundleUtilities: Avoid test on Watcom dashboards (#12034)David Cole2011-06-041-3/+3
| | |
| * | Revert "BundleUtilities: Run test on Windows if either MSVC or dumpbin was ↵Clinton Stimpson2011-06-021-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | found." This reverts commit f3de459cec78eac3a7081379b6ee9c6cde36bb60. There are some platforms without MSVC where this test doesn't work well. We can look into these later.
| * | BundleUtilities: Add rpath to loadable modules in test.Clinton Stimpson2011-06-023-25/+70
| | |
| * | BundleUtilities: Print reason for not loading module.soClinton Stimpson2011-06-011-3/+7
| | |
| * | BundleUtilities: Run test on Windows if either MSVC or dumpbin was found.Clinton Stimpson2011-06-011-2/+4
| | |
| * | BundleUtilities: Disable running test on Windows unless using MSVC.Clinton Stimpson2011-06-011-3/+3
| | |