summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Rename Visibility{InlinesHidden =>}Brad King2015-05-221-5/+5
| | | | We will soon generalize it to cover other visibility properties.
* Revert "Qbs: Add new 'extra' generator for qbs project files"Brad King2015-05-211-15/+1
| | | | | | | | | | | | | | | | | | | This reverts commit f85db2f32358e6de921aba7d1cb8ecb81da934c0. Discussion by the QtCreator community at https://bugreports.qt.io/browse/QTCREATORBUG-13695 raises concerns about this particular approach to working with CMake projects using QtCreator. Also, the functionality and design of the QBS extra generator was never discussed on the CMake mailing list or with QtCreator developers. There may be better ways to make the two tools work together. In order to avoid committing to long-term support of this generator prior to such discussion taking place, revert it from CMake for now. We may restore this or use an alternative design based on results of such discussion.
* Merge topic 'cpack-deb-component-dependencies'Brad King2015-05-121-1/+3
|\ | | | | | | | | | | 1237d5fa Help: Add notes for topic 'cpack-deb-component-dependencies' e3f522f6 CPack/DEB per component dependencies
| * CPack/DEB per component dependenciesRaffi Enficiaud2015-05-081-1/+3
| | | | | | | | Dependencies may now be set per component
* | CPack: Enable DEB and RPM tests more reliablyDomen Vrankar2015-05-121-19/+21
|/ | | | | | | CPack DEB and RPM generators were not used for some tests because CPACK_BINARY_DEB and CPACK_BINARY_RPM variable were not set. Fix this, simplify generator selection in CTEST_RUN_CPackComponentsForAll, and fix bugs that were detected after tests were run.
* Merge topic 'vs-install-in-default-build'Brad King2015-05-071-1/+4
|\ | | | | | | | | | | a6e4e73d VS: Add option to put INSTALL target in .sln default build 562e69dd Tests: Enable devenv tests on VS >= 10
| * VS: Add option to put INSTALL target in .sln default buildRobert Goulet2015-05-061-0/+1
| | | | | | | | | | Add a CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD variable to control this behavior.
| * Tests: Enable devenv tests on VS >= 10Brad King2015-05-041-1/+3
| | | | | | | | | | | | | | | | | | The VSExcludeFromDefaultBuild have not been enabled on VS >= 10 since commit v3.0.0-rc1~260^2~9 (Tests: Simplify VSExcludeFromDefaultBuild configuration, 2013-11-14). Since commit v3.0.0-rc1~260^2~2 (VS: Add CMAKE_VS_(DEVENV|MSBUILD|MSDEV)_COMMAND variables, 2013-12-04) we can simply check the CMAKE_VS_DEVENV_COMMAND variable for a devenv tool to use for the test.
* | CPack/DEB component dependency auto-discoveryRaffi Enficiaud2015-05-071-1/+2
|/ | | | Dependency auto-discovery can now be set per component
* CPackDEB component descriptionRaffi Enficiaud2015-04-291-1/+3
| | | | | Support for setting different description for each component.
* Tests: Guard more CTest tests against parallel execution.Stephen Kelly2015-04-271-0/+2
|
* Merge topic 'cpack-deb-linitian-md5hash'Brad King2015-04-231-0/+34
|\ | | | | | | | | | | 75b0e167 CPackDeb: Add basic package tests fdfe4586 CPackDeb: Fix lintian md5sum file warning
| * CPackDeb: Add basic package testsRaffi Enficiaud2015-04-231-0/+34
| | | | | | | | | | Tests of generated component based deb packages with lintian and dpkg. Also includes basic file name check.
* | Merge topic 'ExternalProject-genex'Brad King2015-04-221-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | b470d618 Help: Add notes for topic 'ExternalProject-genex' 0273ef14 ExternalProject: Allow generator expressions with LOG_* options (#15287) 7bd8cfb8 ExternalProject: Allow generator expressions in initial cache options 1cf43dcf Tests: Add case to cover ExternalProject with subdirectories
| * | Tests: Add case to cover ExternalProject with subdirectoriesBrad King2015-04-211-0/+12
| |/ | | | | | | | | | | | | Add an ExternalProjectSubdir test directory with a minimal test showing use of ExternalProject_Add for a source tree in a subdirectory. This will allow us to easily add test external projects that cover specific behavior where the client project must check results.
* | Tests: Protect CTestTestSerialOrder from environment (#15524)Brad King2015-04-211-0/+1
|/ | | | Reported-by: Stephen Kelly <steveire@gmail.com>
* Merge topic 'add-GreenHills-MULTI-generator'Brad King2015-04-201-0/+17
|\ | | | | | | | | | | | | 66b641f4 Help: Add notes for topic 'add-GreenHills-MULTI-generator' 48004d9d Add a 'Green Hills MULTI' generator on Windows 051d8be1 cmLocalGenerator: Constify some cmTarget and cmGeneratorTarget arguments
| * Add a 'Green Hills MULTI' generator on WindowsGeoff Viola2015-04-201-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | Green Hills MULTI is an IDE for embedded real-time systems. The IDE's product page can be found here: http://www.ghs.com/products/MULTI_IDE.html It supports cross compiling on ARM, Intel x86, and other architectures with various operating systems. The IDE exists on Linux and Windows host systems, but CMake will currently only generate the project files on Windows host systems.
* | Merge topic 'ninja-autogen'Brad King2015-04-171-2/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | e8fdd5f1 QtAutogen: Workaround rcc CRCRLF newlines on Windows (#15459) 15f1a6b4 Tests/QtAutogen: Avoid touching files in the source tree 3f7c7c65 Tests/QtAutogen: Help Qt5Autogen test find Qt5 on Windows 26b5cc5e Tests/QtAutogen: Enable per-config source tests when possible 45566408 Tests/QtAutogen: Require CMake 3.1 to set policies everywhere
| * | Tests/QtAutogen: Enable per-config source tests when possibleBrad King2015-04-161-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass CMAKE_BUILD_TYPE into the test on generators that use it so that the per-config part of the test can activate as needed. Do not make the per-config part conditional on the Debug configuration because the generator expressions evaluate to empty in other configurations. Skip the per-config source case with the Ninja generator because it does not currently work. cmQtAutoGenerators::InitializeAutogenTarget needs to know the list of source files on a target, but generator expressions in the list cannot be evaluated until after CreateGeneratorTargets has been called. That cannot happen until after Autogen targets have been generated. It is a chicken-and-egg problem.
* | | Tests: Move more command line tests into RunCMake.CommandLineBrad King2015-04-101-15/+0
| | | | | | | | | | | | | | | | | | Port most CMakeTestBadCommandLines test cases to RunCMake.CommandLine and drop the former test. Add validation of expected results, which was not done by the old test.
* | | Tests: Consolidate, refactor and extend -E tar testsNils Gladitz2015-04-101-1/+0
| |/ |/|
* | Merge topic 'gcov-module-coverage-exclude'Brad King2015-04-061-1/+2
|\ \ | | | | | | | | | | | | 9a544f2d CTestCoverageCollectGCOV: Support CTEST_CUSTOM_COVERAGE_EXCLUDE
| * | CTestCoverageCollectGCOV: Support CTEST_CUSTOM_COVERAGE_EXCLUDENils Gladitz2015-04-041-1/+2
| | |
* | | VS: Add support for XAML source filesGilles Khouzam2015-04-031-0/+11
|/ / | | | | | | | | | | | | | | XAML files are by default of type Page in the vcxproj and can be overriden by setting the VS_XAML_TYPE property. The .cpp and .h file of the same name are automatically added as depending on the XAML file. New VSXaml test builds a basic XAML WindowsStore 8.1 app with VS2013.
* | CPackRPM: Add basic symlink support (#15209)Domen Vrankar2015-03-311-0/+1
| | | | | | | | | | | | | | RPM packages can contain symbolic links to relative paths - including support for multiple relocation paths through generation of post install relocation scripts. Add basic support with limitations described in documentation.
* | cpack: Fix CPACK_PACKAGING_INSTALL_PREFIX handling for archives (#14677)Clinton Stimpson2015-03-301-0/+28
|/ | | | | Fix the case when the archive generator is used to package components with an install prefix.
* Tests: Enable XCTest tests for Xcode 5Gregor Jasny2015-03-241-1/+1
| | | | Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
* Merge topic 'add-extra-qbs-generator'Brad King2015-03-231-1/+15
|\ | | | | | | | | f85db2f3 Qbs: Add new 'extra' generator for qbs project files
| * Qbs: Add new 'extra' generator for qbs project filesStanislav Ionascu2015-03-201-1/+15
| |
* | Tests: Add XCTest example to test Frameworks and Cocoa App BundlesGregor Jasny2015-03-231-0/+6
| | | | | | | | Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
* | Tests: Compute Xcode version for any generator on OS XBrad King2015-03-181-0/+12
|/ | | | | | Store the version in CMake_TEST_XCODE_VERSION for use by tests that work with any generator on OS X but may depend on the Xcode version providing the tools.
* Merge topic 'FindMatlab-rewrite'Brad King2015-03-171-0/+6
|\ | | | | | | | | 49c8dcf7 FindMatlab: Rewrite module and provide a usage API
| * FindMatlab: Rewrite module and provide a usage APIRaffi Enficiaud2015-03-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | Implement a brand new FindMatlab module: - Add support for versions and components. - Find Matlab and its version in a more precise and multiplatform way. - Add API to create a new mex extension with documentation. - Add API to add matlab unit tests (with or without the unit test framework). - Find as much as possible based on a single Matlab_ROOT_DIR cache entry and allow the user to change it to re-find everything.
* | CTest: Output test-specific env vars in verbose mode (#15446)Zach Mullen2015-03-171-0/+11
|/ | | | | | Any environment vars that were configured for a test via the ENVIRONMENT property will now be output when the test is run with verbose logging enabled.
* CTest: Fix Jacoco CoverageJoseph Snyder2015-03-061-0/+2
| | | | | | | | | Rename the example jacoco.xml file to be jacoco.xml.in to stop CMake from apptempting to calculate Jacoco Coverage when running over itself. Enclose a push of -1 to the coverage vector to only happen if there is a fin to calculate for. This prevents a crash if the target file doesn't exist.
* Tests: Drop CTestTestFailedSubmit-* testsBrad King2015-02-241-42/+0
| | | | | | Everything they cover is now covered by RunCMake.ctest_submit test cases (except ctest_coverage LABELS which were not actually checked anyway). Drop these redundant tests.
* CPackRPM: run tests on more platforms than just LinuxDomen Vrankar2015-02-231-1/+1
| | | | | Lift the restriction that limits use of CPackRPM tests to Linux OS only because RPM can also be used on e.g. AIX which is Unix OS.
* Tests: Consolidate detection of 'rpmbuild'Brad King2015-02-131-10/+15
| | | | | | | | | Several tests use slight variations of the same logic to enable CPack RPM tests. Consolidate this logic into one check before any tests are added. Look for 'rpmbuild' only on Linux and only when the test build tree does not have spaces in the path. In particular, this will make the result available in time for the RunCMake.CPackRPM test to be activated even if CMake is configured exactly once.
* Merge topic 'CTestCoverageCollectGCOV-refinements'Brad King2015-02-041-0/+12
|\ | | | | | | | | | | | | | | | | 809a5a5e Help: Add notes for topic 'CTestCoverageCollectGCOV-refinements' 03c0812c CTestCoverageCollectGCOV: Fix handling of international characters 8caa4e72 CTestCoverageCollectGCOV: Add test case 5c828cc8 CTestCoverageCollectGCOV: Allow custom flags to gcov 30cb628e CTestCoverageCollectGCOV: Fix handling of large file counts
| * CTestCoverageCollectGCOV: Add test caseBill Hoffman2015-02-031-0/+12
| |
* | Xcode: Switch to internal CMAKE_MAKE_PROGRAM lookup by generator (#15324)Brad King2015-01-291-1/+1
|/ | | | | | | | | | | | The "cmakexbuild" wrapper is not needed for Xcode 4 and above, and the path to it may change when CMake moves. Avoid storing a specific path to a build program in CMakeCache.txt and instead compute the value for CMAKE_MAKE_PROGRAM on demand. However, if a user does set the value explicitly then honor it. This does for Xcode what commit v3.0.0-rc1~260^2~4 (VS: Switch to internal CMAKE_MAKE_PROGRAM lookup by generators, 2013-11-15) did for Visual Studio generators.
* FindJsonCpp: Add module to find JsonCpp packageBrad King2015-01-191-0/+3
|
* Merge topic 'ninja-fix-subdir-objlib-languages'Brad King2014-12-241-0/+1
|\ | | | | | | | | | | 07fc7b75 Tests: Test using objects from a language enabled in a subdirectory (#15325) fdbfcfdf Ninja: Generate rules only for languages compiled in a target (#15325)
| * Tests: Test using objects from a language enabled in a subdirectory (#15325)Brad King2014-12-231-0/+1
| | | | | | | | | | | | | | | | Add a test case that enables CXX in the top level and C in a subdirectory. Create an executable in the top level that uses C objects compiled in the subdirectory. Strictly speaking this is not defined behavior for all language combinations, but happens to work in this case. Test this behavior since projects might try to use it.
* | Merge topic 'add-FindGSL'Brad King2014-12-231-0/+4
|\ \ | | | | | | | | | | | | 1b28e3b2 FindGSL: Add module to find the GNU Scientific Library
| * | FindGSL: Add module to find the GNU Scientific LibraryKelly Thompson2014-12-171-0/+4
| | |
* | | Merge topic 'osx-cfbundle-tweaks'Brad King2014-12-191-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b189c599 Tests: Run CFBundleTest only with valid configuration 3a605693 Xcode: Call IsCFBundleOnApple to decide if bundle is being built 207b7af0 cmTarget: Use GetCFBundleDirectory within GetFullNameInternal
| * | | Tests: Run CFBundleTest only with valid configurationBrad King2014-12-191-2/+3
| |/ / | | | | | | | | | The verification script needs to know the configuration tested.
* | | Tests: Move CTestTestMemcheck tools into Tests/CMakeLibBrad King2014-12-181-4/+0
|/ / | | | | | | | | | | The dummy memcheck tools we build for the RunCMake.CTestMemcheck tests require CMakeLib, so put them in a Tests/CMakeLib/PseudoMemcheck directory.