summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Build testUVProcessChainHelper with WIN32_LEAN_AND_MEANKyle Edwards2024-02-271-0/+1
|
* cmUVJobServerClient: Add libuv-based job server integration clientBrad King2023-12-031-0/+1
|
* Tests: Add dedicated test to cover cmUVHandlePtr typesBrad King2023-11-201-0/+1
| | | | | Move the case added by commit 70d88a5361 (cmUVHandlePtr: Add uv_idle_ptr, 2023-11-06) to a dedicated test.
* Debugger: report function name in DAP stackframesDmitry.Neverov2023-10-261-0/+1
| | | | | | | Before a file name and a line were returned, but they can be obtained by other means. Fixes: #25091
* cmDebugTools: add headerBen Boeckel2023-10-011-0/+1
| | | | | | | | | | | | | | This provides a utility macro which prints out: - location of the call; - the expression being evaluated; and - the value of the expression. Evaluates to the value of the expression. Inspired by Rust's `dbg!` macro. See: https://doc.rust-lang.org/stable/std/macro.dbg.html
* CMakeLibTests: Compile with WIN32_LEAN_AND_MEANKyle Edwards2023-08-211-0/+6
|
* cmCMakePath: workarounds for Sunpro/sparc compilerMarc Chevrier2023-07-181-0/+1
|
* Tests: Improve order of CMakeLibTests link librariesBrad King2023-07-071-1/+1
| | | | Avoid repeating `libCMakeLib.a` multiple times on the link line.
* CMakeLibTests: Precompile common expensive headersClemens Wasser2023-06-221-0/+4
|
* cmUVProcessChain: Add support for SetExternalStream(Stream_INPUT)Kyle Edwards2023-06-121-0/+1
|
* cmake: Add debuggerGlen Chung2023-05-301-0/+25
| | | | | | | | | | | | | | | | - Depends on cppdap and jsoncpp. - Add --debugger argument to enable the Debugger. - Add --debugger-pipe argument for DAP traffics over named pipes. - Support breakpoints by filenames and line numbers. - Support exception breakpoints. - Call stack shows filenames and line numbers. - Show Cache Variables. - Show the state of currently defined targets, tests and directories with their properties. - Add cmakeVersion to DAP initialize response. - Include unit tests. Co-authored-by: Ben McMorran <bemcmorr@microsoft.com>
* cmUVProcessChain: Add working directory optionKyle Edwards2023-05-261-0/+1
|
* cmList: CMake list implementationMarc Chevrier2023-04-051-0/+1
| | | | Fixes: #24548
* Build: Simplify `configure_file()` callsAlex Turbov2022-09-221-4/+2
|
* cm::enum_set: container that contains a set of unique enum values.Marc Chevrier2022-04-271-0/+1
| | | | The enum must be an `enum class` with an unsigned integer as base type.
* JSON: Add helpersKyle Edwards2020-09-091-0/+1
|
* STL Support: Add cm::filesystem::path in <cm/filesystem>Marc Chevrier2020-07-091-0/+3
|
* 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.