summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Add a parser for GCC-style depfilesJoerg Bornemann2020-01-281-0/+2
| | | | | | | | | | | Introduce the function cmReadGccDepfile that parses a GCC-style depfile and returns its content. The implementation uses a lexer that is modeled after the re2c implementation in Ninja. The sample files of the autotest have been created with gcc 8.3.0. This depfile reader is to be used by the Autogen facility to make use of the depfiles that are generated by Qt's meta object compiler.
* Refactoring: introduce header cmext/algorithm with append functionsMarc Chevrier2019-12-171-0/+1
|
* Memory management: cast functions for managed pointersMarc Chevrier2019-11-271-0/+1
|
* CTest: Rename hardware -> resources for source codeCraig Scott2019-11-051-3/+3
|
* CTest: Rename PROCESSES test property to RESOURCE_GROUPSBrad King2019-11-051-1/+1
| | | | | | | | | | | | The `PROCESSES` test property name added for CMake 3.16 is too close to the existing `PROCESSORS` test property. Furthermore, the property in principle specifies groups of resources organized in a way that is meaningful to a particular test. The groups may often correspond to processes but they could have other meanings. Since the property name `PROCESSES` has not been in a final 3.16 release yet, simply rename it to `RESOURCE_GROUPS`. Fixes: #19914
* CTest: Add bin-packing algorithmKyle Edwards2019-10-021-0/+1
| | | | | | | This algorithm is used to determine whether or not a test can execute with the available resources. It uses a recursive largest- first algorithm to try to place the tests into their respective slots.
* CTest: Add cmCTestHardwareAllocator classKyle Edwards2019-10-021-0/+1
|
* CTest: Add parser for hardware spec fileKyle Edwards2019-10-021-0/+2
|
* CTest: Add lexer for PROCESSES propertyKyle Edwards2019-10-021-1/+3
|
* Source: Add cm::optionalKyle Edwards2019-08-231-0/+1
|
* Tests: Add CMakeLib.testStringAlgorithms testSebastian Holtermann2019-08-011-0/+1
|
* cmUVProcessChain: Add cmUVProcessChainKyle Edwards2019-05-071-0/+4
| | | | | | | | | This class is ultimately intended as a replacement for cmsys::Process. It spawns a series of processes using libuv, piping the output of each command into the next. Note: input support has not yet been implemented because write support has not yet been implemented on cmUVStreambuf.
* cmUVStreambuf: Add std::streambuf implementation for uv_stream_tKyle Edwards2019-04-251-1/+3
| | | | | This will allow std::istream/std::ostream-based interaction with processes spawned by libuv.
* Introduce cmArgumentParserRegina Pfeifer2019-04-041-0/+1
|
* cmRange: Add unit testsRegina Pfeifer2019-02-211-0/+1
|
* String: Add a custom string typeBrad King2018-12-121-0/+1
| | | | | | | | | | | | | | Create a `cm::String` type that holds a view of a string buffer and optionally shares ownership of the buffer. Instances can either borrow longer-lived storage (e.g. static storage of string literals) or internally own a `std::string` instance. In the latter case, share ownership with copies and substrings. Allocate a new internal string only on operations that require mutation. This will allow us to recover string sharing semantics that we used to get from C++98 std::string copy-on-write implementations. Such implementations are not allowed by C++11 so code our own in a custom string type instead.
* CTest: Add options to control test process affinity to CPUsBrad King2018-03-051-0/+3
| | | | | | | | | | In commit v2.8.0~170 (ENH: Added ctest test options PROCESSORS and RUN_SERIAL, 2009-09-07) CTest learned to track the number of processors allocated to running tests in order to balance it against the desired level of parallelism. Extend this idea by introducing a new `PROCESSOR_AFFINITY` test property to ask that CTest run a test with the CPU affinity mask set. This will allow a set of tests that are running concurrently to use disjoint CPU resources.
* cmake: specify source file extensionsBen Boeckel2018-01-091-10/+11
|
* cmUVHandlePtr: Move to CMakeLib to make it available everywhereBrad King2017-11-301-0/+4
|
* Xcode: Drop support for Xcode versions below 3Brad King2017-04-221-10/+0
|
* execute_process: Add ENCODING option for Windows child process outputDāvis Mosāns2016-11-301-0/+3
| | | | Different applications can use different output encodings.
* find_package: Optionally sort globbed directories in a meaningful orderPierluigi Taddei2016-09-151-0/+1
| | | | | | | | | | | | Add `CMAKE_FIND_PACKAGE_SORT_{ORDER,DIRECTION}` variables to specify sort order and direction. When multiple package with the same name have been found in the same location sorting option can be used to force a specific version to be loaded (e.g. libA_1.12.0 instead of libA_1.1.0). Currently sorting by NAME and by NATURAL order have been implemented. Natural ordering makes use of the `strverscmp(3)` ordering.
* Tests: Move CTestTestMemcheck tools into Tests/CMakeLibBrad King2014-12-181-0/+2
| | | | | | The dummy memcheck tools we build for the RunCMake.CTestMemcheck tests require CMakeLib, so put them in a Tests/CMakeLib/PseudoMemcheck directory.
* Tests: Fix CMakeLib.testRST for relative __FILE__Brad King2014-06-061-1/+3
| | | | | Pass the test input directory as a runtime argument instead of depending on __FILE__ to locate it.
* Add class cmRST to do basic reStructuredText processingBrad King2013-10-161-0/+1
| | | | | | | | | | | | | | | | Create a cmRST class to perform just enough reStructuredText processing to support display of Help documents in human-readable text format. This will be used to implement --help-* command-line options. Support directives "include", "replace", "parsed-literal", "toctree" (Sphinx), and "cmake-module" (CMake Sphinx Extension to scan .cmake modules). Support inline CMake Sphinx Domain roles to convert cross-references to corresponding title text. Support inline substitutions defined by the "replace" directive, but keep it simple by requiring replacements to be defined before use. Add a CMakeLib "testRST" case to cover processing of supported constructs and compare results against expected output.
* Require CMake 2.8.4 or greater to build CMakeStephen Kelly2013-10-151-1/+1
| | | | | | | | | | | | | | This allows the use of the $<TARGET_FILE:...> generator expression as a replacement for the use of the LOCATION target property. The use of the LOCATION target property is now deprecated for in-build targets. Also drop other checks for older CMake versions: * Simplify cmake_set_target_folder macro. * Use find_package(LibArchive) unconditionally. * Simplify condition for running testVisualStudioSlnParser test. * Convert two macros to functions. * Unconditionally run the CTestTestRerunFailed test.
* VS: Create parser for Visual Studio .sln filesPetr Kmoch2013-04-121-0/+8
| | | | | | Create class cmVisualStudioSlnParser as a generic parser for Visual Studio .sln files. Implement minimum functionality but keep class extensible. Add tests for the class.
* complex: Move cmSystemTools::UpperCase test to CMakeLibTestsBrad King2011-12-231-0/+1
| | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib.
* complex: Move GeneratedFileStream test to CMakeLibTestsBrad King2011-12-231-0/+1
| | | | | | 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.
* Only offer the compile command output feature on unix systemsManuel Klimek2011-05-161-2/+4
|
* Adds a test for the compile command line output.Manuel Klimek2011-04-251-0/+3
|
* Create CMakeLibTests output dir for XcodeBrad King2009-12-091-0/+10
| | | | | | | | | Xcode 2.x forgets to create the target output directory before linking the individual architecture pieces of a universal binary for the target CMakeLibTests. Then it passes the directory to -L and -F options when linking the and warns that the directory does not exist. We work around the problem by using a pre-build rule on the target to create the output directory.
* Test XML encoding with UTF-8 character validationBrad King2009-12-081-0/+1
| | | | This creates a unit test for cmXMLSafe. See issue #10003.
* Test UTF-8 decodingBrad King2009-12-081-0/+1
| | | | This creates a unit test for cm_utf8. See issue #10003.
* Create CMakeLib test driver and test cmXMLParserBrad King2009-12-081-0/+20
We create a new CMakeLibTests driver executable in which to writes unit tests for CMakeLib. Our first test is a smoke-test of cmXMLParser.