Ben Boeckel
42de5d02dd
Add WORKING_DIRECTORY argument to add_test
2010-12-16 16:50:47 -05:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
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.
2009-09-28 11:43:28 -04:00
Brad King
9862f383d0
ENH: Add NAME mode to ADD_TEST command
...
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.
2009-03-16 10:51:30 -04:00
Brad King
606e6ff9cd
ENH: Refactor storage of test command lines
...
We used to separate the command executable from its argument vector.
It is simpler to just store the whole command line in one vector.
2009-03-16 10:42:40 -04:00
Brad King
66d69f864a
ENH: Refactor generation of CTestTestfile content
...
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).
2009-03-16 10:40:46 -04:00
Ken Martin
0e69d38004
ENH: add return and break support to cmake, also change basic command invocation signature to be able to return extra informaiton via the cmExecutionStatus class
2008-01-23 10:28:26 -05:00
Ken Martin
aae0bcdacf
STYLE: fix line length
2006-05-10 13:50:44 -04:00
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
2006-03-15 11:02:08 -05:00
Andy Cedilnik
c736b5b958
COMP: Fix problem on compilers that cannot implicitly convert std::string to cmStdString
2005-04-24 16:19:54 -04:00
Andy Cedilnik
d395b563ed
ENH: Improve internal test handling by creating a test class. Command 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
2005-04-24 15:59:51 -04:00
Andy Cedilnik
0dd2b6eb80
BUG: By default disable new files.
2005-04-04 12:22:08 -04:00
Andy Cedilnik
86cebea79a
ENH: More ctest changes and move SetupTest to superclass
2005-04-01 15:48:46 -05:00
Andy Cedilnik
7acfc4dc3c
ENH: Start adding support for CTest testfiles
2005-04-01 14:57:55 -05:00
Ken Martin
345cf04012
ENH: big change that includes immediate subdir support, removing the notion of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
2005-03-18 10:41:41 -05:00
Brad King
0169ccf157
BUG: Cannot add extra escapes for backslashes because it makes the behavior inconsistent with previous versions of cmake.
2003-11-04 08:50:43 -05:00
Brad King
5f30c8caac
BUG#259: ADD_TEST command generated in DartTestfile.txt now quotes/escapes all arguments.
2003-11-03 15:19:27 -05:00
Brad King
fc689df5d9
BUG: Backing out previous change until a deeper problem can be investigated.
2003-10-30 14:27:29 -05:00
Brad King
cc3887c462
BUG#259: Do not double quote arguments if they are already quoted when writing DartTestfile.txt.
2003-10-30 14:00:59 -05:00
Brad King
4888c088ae
ENH: Moved ExpandListVariables out of individual commands. Argument evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
2002-12-11 18:13:33 -05:00
Brad King
1f6a3c67b1
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
2002-10-23 18:03:27 -04:00
Ken Martin
7ddb408621
removed some includes
2002-09-27 16:24:10 -04:00
Bill Hoffman
7d76de4403
make sure ; expansion is done in all commands
2002-03-29 14:20:32 -05:00
Bill Hoffman
4651dbcfc6
ENH: expand variables in arguments before the commands get them
2002-03-05 18:41:24 -05:00
Sebastien Barre
ffb875f862
FIX: command now expands args during the first pass (found through FOREACH example)
2002-02-26 11:46:01 -05:00
Bill Hoffman
b8d2413156
ENH: fix for spaces in paths on unix
2002-02-22 15:40:44 -05:00
Will Schroeder
a6a43d5320
ENH:Updated copyright
2002-01-21 15:30:43 -05:00
Bill Hoffman
baa28efd10
ENH: change InitialPass to take a const reference to the argument string, to avoid changes to the file cache
2001-09-20 15:08:30 -04:00
Amitha Perera
2eb9d09e04
BUG: ADD_TEST now only does stuff if ENABLE_TESTING has been run.
2001-08-23 18:30:05 -04:00
Jim Miller
f5ee70af60
ENH: Changed generated filename to DartTestfile.txt
2001-06-19 07:41:43 -04:00
Bill Hoffman
4f77d737c9
ENH: move utilities to targets from makefile, and add versioning to cache
2001-06-07 14:52:29 -04:00
Jim Miller
0905117480
FIX: InitialPass() seg fault on std::copy and FinalPass() was not appending to the file
2001-06-06 16:14:11 -04:00
Ken Martin
37801ddaae
added enable testing deprecated some commands
2001-06-06 13:58:18 -04:00
Bill Hoffman
9922155423
ENH: rename Invoke to InitialPass
2001-06-06 13:19:15 -04:00
Jim Miller
6282d41c2a
New cmake command to specify a single test
2001-06-05 20:32:33 -04:00