summaryrefslogtreecommitdiffstats
path: root/Source/cmAddTestCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-01 19:57:55 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-01 19:57:55 (GMT)
commit7acfc4dc3cd8c5865ff55ed94e210776cff6876b (patch)
treef68de1f9e3885b48f37857dfaf3b5120ca93072d /Source/cmAddTestCommand.cxx
parenteca18a2e9fcd9a33dce6d87bcca86de236598ae1 (diff)
downloadCMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.zip
CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.gz
CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.bz2
ENH: Start adding support for CTest testfiles
Diffstat (limited to 'Source/cmAddTestCommand.cxx')
-rw-r--r--Source/cmAddTestCommand.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx
index 28ee2d7..66203e2 100644
--- a/Source/cmAddTestCommand.cxx
+++ b/Source/cmAddTestCommand.cxx
@@ -44,7 +44,14 @@ void cmAddTestCommand::FinalPass()
std::string fname;
fname = m_Makefile->GetStartOutputDirectory();
fname += "/";
- fname += "DartTestfile.txt";
+ if ( m_Makefile->IsOn("DART_ROOT") )
+ {
+ fname += "DartTestfile.txt";
+ }
+ else
+ {
+ fname += "CTestTestfile.cmake";
+ }
// If the file doesn't exist, then ENABLE_TESTING hasn't been run