summaryrefslogtreecommitdiffstats
path: root/Source/cmAddTestCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmMakefile: modernize memory managementMarc Chevrier2020-01-141-2/+4
|
* Refactor: Use cmStrCat to construct error stringsAsit Dhal2019-09-181-13/+6
| | | | | Replace string construction using std::stringstream with cmStrCat and cmWrap.
* cmA*Command: Turn into free functionsRegina Pfeifer2019-08-071-22/+27
| | | | Ref: #19499
* add_test: Add COMMAND_EXPAND_LISTS optionSergey Bobrenok2019-06-071-0/+9
| | | | | | | | | Add a `COMMAND_EXPAND_LISTS` option to the `add_test` command to cause `;`-separated lists produced by generator expressions to be expanded into multiple arguments. The `add_custom_command` command already has such an option. Fixes: #17284
* Use cmAppend to append ranges to std::vector instancesSebastian Holtermann2019-05-231-2/+1
|
* Include necessary headers in commandsDaniel Pfeifer2016-10-261-1/+5
|
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-65/+36
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Remove `//------...` horizontal separator commentsBrad King2016-05-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Modern editors provide plenty of ways to visually separate functions. Drop the explicit comments that previously served this purpose. Use the following command to automate the change: $ git ls-files -z -- \ "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" | egrep -z -v "^Source/cmCommandArgumentLexer\." | egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmDependsJavaLexer\." | egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmExprLexer\." | egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmFortranLexer\." | egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmListFileLexer\." | egrep -z -v "^Source/cm_sha2" | egrep -z -v "^Source/(kwsys|CursesDialog/form)/" | egrep -z -v "^Utilities/(KW|cm).*/" | xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}' This avoids modifying third-party sources and generated sources.
* Merge topic 'drop-ancient-workarounds'Brad King2015-01-121-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f7bdd61 Remove VS 6 special case. 5e92c826 Remove some obsolete stuff. 15e42bb2 cmStandardIncludes: Remove obsolete cmOStringStream. 931e055d Port all cmOStringStream to std::ostringstream. f194a009 Remove unused cmIStringStream class. 3ec1bb15 cmStandardIncludes: Remove std namespace hack. bb3bce70 cmStandardIncludes: Remove ANSI_FOR_SCOPE hack. 28fa4923 cmStandardIncludes: Remove iostreams workaround for obsolete Compaq compiler. 837a8a63 cmStandardIncludes: Drop Comeau-related workaround. 4030ddfd Remove Borland-related undef. 17d6a6fd cmStandardIncludes: Remove comment about Borland. 26fb5011 Drop SGI as a CMake host compiler.
| * Port all cmOStringStream to std::ostringstream.Stephen Kelly2015-01-111-3/+3
| | | | | | | | All compilers hosting CMake support the std class.
* | Use insert instead of a loop in some cases.Stephen Kelly2015-01-111-5/+1
|/ | | | | | Limit this change to inserting into a vector from a vector. A follow up change can use insert for inserting into a set.
* Remove some c_str() calls.Stephen Kelly2014-03-111-7/+7
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* Only set the property if the property was givenBen Boeckel2011-01-201-5/+6
|
* Default the working dir to the current binary dirBen Boeckel2011-01-201-2/+4
| | | | Keep backwards compatability with CMake <= 2.8.3.
* Add WORKING_DIRECTORY argument to add_testBen Boeckel2010-12-161-0/+17
|
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Add NAME mode to ADD_TEST commandBrad King2009-03-161-1/+110
| | | | | | | | This creates command mode add_test(NAME ...). This signature is extensible with more keyword arguments later. The main purpose is to enable automatic replacement of target names with built target file locations. A side effect of this feature is support for tests that only run under specific configurations.
* ENH: Refactor storage of test command linesBrad King2009-03-161-9/+6
| | | | | We used to separate the command executable from its argument vector. It is simpler to just store the whole command line in one vector.
* ENH: Refactor generation of CTestTestfile contentBrad King2009-03-161-1/+10
| | | | | | | | | This moves code which generates ADD_TEST and SET_TESTS_PROPERTIES calls into CTestTestfile.cmake files out of cmLocalGenerator and into a cmTestGenerator class. This will allow more advanced generation without cluttering cmLocalGenerator. The cmTestGenerator class derives from cmScriptGenerator to get support for per-configuration script generation (not yet enabled).
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-1/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* STYLE: fix line lengthKen Martin2006-05-101-4/+3
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-1/+1
|
* COMP: Fix problem on compilers that cannot implicitly convert std::string to ↵Andy Cedilnik2005-04-241-1/+5
| | | | cmStdString
* ENH: Improve internal test handling by creating a test class. Command ↵Andy Cedilnik2005-04-241-61/+9
| | | | cmEnableTesting now only sets CMAKE_TESTING_ENABLED and cmAddTest only adds a test to the list. The actual test files are written by local generator. This way we can at some point in the future replace DartTestfile with some XML file
* BUG: By default disable new files.Andy Cedilnik2005-04-041-3/+3
|
* ENH: More ctest changes and move SetupTest to superclassAndy Cedilnik2005-04-011-1/+1
|
* ENH: Start adding support for CTest testfilesAndy Cedilnik2005-04-011-1/+8
|
* ENH: big change that includes immediate subdir support, removing the notion ↵Ken Martin2005-03-181-1/+1
| | | | of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
* BUG: Cannot add extra escapes for backslashes because it makes the behavior ↵Brad King2003-11-041-2/+4
| | | | inconsistent with previous versions of cmake.
* BUG#259: ADD_TEST command generated in DartTestfile.txt now quotes/escapes ↵Brad King2003-11-031-7/+12
| | | | all arguments.
* BUG: Backing out previous change until a deeper problem can be investigated.Brad King2003-10-301-10/+9
|
* BUG#259: Do not double quote arguments if they are already quoted when ↵Brad King2003-10-301-9/+10
| | | | writing DartTestfile.txt.
* ENH: Moved ExpandListVariables out of individual commands. Argument ↵Brad King2002-12-111-2/+1
| | | | evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-11/+11
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* removed some includesKen Martin2002-09-271-1/+0
|
* make sure ; expansion is done in all commandsBill Hoffman2002-03-291-7/+1
|
* ENH: expand variables in arguments before the commands get themBill Hoffman2002-03-051-3/+1
|
* FIX: command now expands args during the first pass (found through FOREACH ↵Sebastien Barre2002-02-261-9/+11
| | | | example)
* ENH: fix for spaces in paths on unixBill Hoffman2002-02-221-1/+8
|
* ENH:Updated copyrightWill Schroeder2002-01-211-29/+5
|
* ENH: change InitialPass to take a const reference to the argument string, to ↵Bill Hoffman2001-09-201-1/+1
| | | | avoid changes to the file cache
* BUG: ADD_TEST now only does stuff if ENABLE_TESTING has been run.Amitha Perera2001-08-231-18/+22
|
* ENH: Changed generated filename to DartTestfile.txtJim Miller2001-06-191-1/+1
|
* ENH: move utilities to targets from makefile, and add versioning to cacheBill Hoffman2001-06-071-1/+1
|
* FIX: InitialPass() seg fault on std::copy and FinalPass() was not appending ↵Jim Miller2001-06-061-3/+4
| | | | to the file
* added enable testing deprecated some commandsKen Martin2001-06-061-4/+39
|
* ENH: rename Invoke to InitialPassBill Hoffman2001-06-061-1/+1
|
* New cmake command to specify a single testJim Miller2001-06-061-0/+69