summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'generate_export_header'David Cole2011-09-0120-0/+915
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a6393c Don't use a variable name that might be used in other files. 5ca8c56 Fix up verbatim code sections of the dox. 75596e6 Don't start a line with a dash(-) 826374a Remove blank line at the start of the file. 8b9b8e1 Add documentation about the prefix and no_deprecated options. 51bc63a Fix the feature of using a specific prefix for macros. 3449f6b Add quotes in case cmake is installed in a prefix with a space. 36d28f2 Fix Compiler id variable name. 99b2aab Disable the tests for Watcom. 7ac0ab1 Quote paths in case there is a space in one of them. 89108b9 Look for errors reported by PGI too. e0cc024 Add missing NO_EXPORT macro variant. 1b031d1 More consistency in the macro options. 03d60c7 Try to make the macros do almost nothing for Watcom. 6adeda9 Possibly fix configuration test on AIX. e253348 Possibly fix test on HPUX. 32eff0c Test for too-old-intel compilers. 42154ec Fix up the regex command for Intel. a147a06 Add some settings for non-truncation of test output. bf73e75 Hopefully add version extraction for Intel. aa4f0b6 Fix the version extraction regex for clang. a493d1a Test the correct cxx variable. b6ee2ee Comment the test assertion for now a9a8b9e Exclude win32 from hidden visibility checks. afae7a9 Start testing expected values for compiler flags. 1ae3365 Exclude PGI from exports and deprecated. f426496 Exclude cygwin from the hidden visibility feature. f84c7db Don't enable deprecated on old GCC 9672b33 Don't enable deprecated on HP. 10d8c44 Disable testing of deprecated macros. 97392a7d Fixup forgotten part of aed84517c942a4c40f493fcf997cdf6a047349f8 2aeab4f Borland can't do deprecated. c41c68b Try to error on deprecated on Intel and SunCC. aed8451 Test for deprecated attribute before declspec. c448b09 Perform the -Werror test only once. fb88c6e Add some messaging output to make remaining issues findable. 01e9e98 Test -Werror instead of enabling it per compiler. 9aab2aa Expect the tests to pass if hidden visibilty is not enabled. 856bdb3 Don't change the expected build result based on the platform. df4615e Add the COMPILER_HAS_DEPRECATED only if it has a declspec variant 78a6e1c Exclude the XL compiler from the hidden-visibility test. e1f7ee3 Test for compiler features, instead of for specific platforms. 9554e10 Split the deprecated available check from setting macro values. 1590d5f Don't export methods on already exported classes. 750b67c Don't use hidden visibility on non-mingw windows either. 1f3be45 Make sure the hidden visibility variables never get set on MINGW. 399f415 Only set the deprecated attribute if hidden visibilty is enabled. 1c6b41b Remember to surround the other deprecated test in the Borland check. 3f7e036 Export deprecated free methods too. 7fa5592 Add some debug output to narrow down deprecation test issues 7924c1d Another attempt at fixing Borland. 50460ea Fix off-by-not in test for Borland. b443459 Use the correct project name compiletest not compilefail fc3772e Another attempt to fix the tests on Borland. bab4a22 Disable all export macros on Borland. cff9493 Only set the COMPILER_HAS_HIDDEN_VISIBILITY if GCC >= 4.2 af443b8 Set the CMAKE_RUNTIME_OUTPUT_DIRECTORY for windows builds. 61726f8 Only run the failure tests with gcc >= 4.2 002ddf2 Fix typo and tests failing as a result. 4443037 Fix tests with clang. ffaa127 Test expected no-op instead of aborting the build. 6aca0e2 Short-circuit the tests on unsupported compilers. d123bce Add some debug output. 3574b75 Simplify the compiler feature check c7a937b Simplify. We already know we have hidden visibility at this point. 3b188c8 Test for features, not specific compilers. 4718233 Remove the fatal_warnings option which is no longer used. b19911e Add missing licence header. 706ed2b Add a newline at the end of the file. 8963716 Add a newline at the end of the file. def0a54 Handle the case where the user changes the DEFINE_SYMBOL property. 3088070 Add the GenerateExportMacro with unit tests.
| * Fix Compiler id variable name.Stephen Kelly2011-08-241-1/+1
| |
| * Disable the tests for Watcom.Stephen Kelly2011-08-241-0/+15
| | | | | | | | They are timing out and showing up on the dashboard.
| * Quote paths in case there is a space in one of them.Stephen Kelly2011-08-241-3/+3
| |
| * Possibly fix test on HPUX.Stephen Kelly2011-08-231-1/+1
| |
| * Fix up the regex command for Intel.Stephen Kelly2011-08-181-1/+1
| |
| * Add some settings for non-truncation of test output.Stephen Kelly2011-08-171-0/+3
| |
| * Hopefully add version extraction for Intel.Stephen Kelly2011-08-171-0/+6
| |
| * Fix the version extraction regex for clang.Stephen Kelly2011-08-171-1/+1
| |
| * Test the correct cxx variable.Stephen Kelly2011-08-171-1/+1
| |
| * Comment the test assertion for nowStephen Kelly2011-08-171-1/+1
| | | | | | | | At least until I know which gcc versions do not pass.
| * Exclude win32 from hidden visibility checks.Stephen Kelly2011-08-171-1/+3
| |
| * Start testing expected values for compiler flags.Stephen Kelly2011-08-172-0/+65
| | | | | | | | | | Should help catch unhandled flag warnings so far not handled by check_cxx_compiler_flag FAIL_REGEXen.
| * Disable testing of deprecated macros.Stephen Kelly2011-08-143-19/+19
| | | | | | | | | | It is not possible to test for it sanely across multiple ancient compilers supported by cmake.
| * Try to error on deprecated on Intel and SunCC.Stephen Kelly2011-08-131-7/+23
| |
| * Perform the -Werror test only once.Stephen Kelly2011-08-131-3/+6
| | | | | | | | This way, the output of the test should be visible on CDash.
| * Add some messaging output to make remaining issues findable.Stephen Kelly2011-08-121-0/+4
| |
| * Test -Werror instead of enabling it per compiler.Stephen Kelly2011-08-121-1/+3
| | | | | | | | Maybe the Intel compiler supports it too.
| * Expect the tests to pass if hidden visibilty is not enabled.Stephen Kelly2011-08-122-9/+27
| |
| * Don't change the expected build result based on the platform.Stephen Kelly2011-08-111-5/+1
| | | | | | | | Hopefully the compiler feature tests will cover those cases.
| * Test for compiler features, instead of for specific platforms.Stephen Kelly2011-08-111-2/+2
| |
| * Split the deprecated available check from setting macro values.Stephen Kelly2011-08-113-3/+3
| |
| * Don't export methods on already exported classes.Stephen Kelly2011-08-113-10/+1
| | | | | | | | This is always a mistake.
| * Remember to surround the other deprecated test in the Borland check.Stephen Kelly2011-08-101-1/+4
| |
| * Export deprecated free methods too.Stephen Kelly2011-08-102-2/+2
| | | | | | | | That way they can be linked to even after being deprecated.
| * Another attempt at fixing Borland.Stephen Kelly2011-08-103-4/+15
| | | | | | | | | | Apparently it still needs to be exported, but only declspec(deprecated) does not work.
| * Use the correct project name compiletest not compilefailStephen Kelly2011-08-101-1/+1
| | | | | | | | Should fix windows VS solution based builds.
| * Only set the COMPILER_HAS_HIDDEN_VISIBILITY if GCC >= 4.2Stephen Kelly2011-08-101-16/+1
| | | | | | | | | | | | Hearsay has it that before that version it didn't work properly. Hopefully this will fix more dashboard builds.
| * Set the CMAKE_RUNTIME_OUTPUT_DIRECTORY for windows builds.Stephen Kelly2011-08-101-0/+4
| |
| * Only run the failure tests with gcc >= 4.2Stephen Kelly2011-08-101-1/+16
| |
| * Fix typo and tests failing as a result.Stephen Kelly2011-08-101-1/+1
| |
| * Fix tests with clang.Stephen Kelly2011-08-101-4/+5
| |
| * Test expected no-op instead of aborting the build.Stephen Kelly2011-08-101-7/+4
| | | | | | | | Aborting causes make clean to fail if the executable is not created.
| * Short-circuit the tests on unsupported compilers.Stephen Kelly2011-08-101-0/+6
| |
| * Add a newline at the end of the file.Stephen Kelly2011-08-091-1/+1
| | | | | | | | Hopefully fix the test execution reported on CDash.
| * Add a newline at the end of the file.Stephen Kelly2011-08-081-1/+1
| | | | | | | | Hopefully fix the test execution reported on CDash.
| * Handle the case where the user changes the DEFINE_SYMBOL property.Stephen Kelly2011-08-085-0/+37
| | | | | | | | This eases porting of KDE code.
| * Add the GenerateExportMacro with unit tests.Stephen Kelly2011-08-0715-0/+735
| | | | | | | | Reviewed-by: Marcus D. Hanwell <marcus.hanwell@kitware.com>
* | 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