ENH: read in old file formats Dart as well

This commit is contained in:
Ken Martin 2008-01-31 11:43:44 -05:00
parent 065f23ba38
commit 21852384e0
2 changed files with 17 additions and 1 deletions

View File

@ -100,6 +100,11 @@ bool cmCTestSubdirCommand
// does the CTestTestfile.cmake exist ?
testFilename = "CTestTestfile.cmake";
}
else if( cmSystemTools::FileExists("DartTestfile.txt") )
{
// does the DartTestfile.txt exist ?
testFilename = "DartTestfile.txt";
}
else
{
// No CTestTestfile? Who cares...
@ -186,6 +191,11 @@ bool cmCTestAddSubdirectoryCommand
// does the CTestTestfile.cmake exist ?
testFilename = "CTestTestfile.cmake";
}
else if( cmSystemTools::FileExists("DartTestfile.txt") )
{
// does the DartTestfile.txt exist ?
testFilename = "DartTestfile.txt";
}
else
{
// No CTestTestfile? Who cares...
@ -1378,6 +1388,11 @@ void cmCTestTestHandler::GetListOfTests()
// does the CTestTestfile.cmake exist ?
testFilename = "CTestTestfile.cmake";
}
if( cmSystemTools::FileExists("DartTestfile.txt") )
{
// does the DartTestfile.txt exist ?
testFilename = "DartTestfile.txt";
}
else
{
return;

View File

@ -224,7 +224,8 @@ int main (int argc, char *argv[])
// If there is a testing input file, check for documentation options
// only if there are actually arguments. We want running without
// arguments to run tests.
if(argc > 1 || !cmSystemTools::FileExists("CTestTestfile.cmake"))
if(argc > 1 || !(cmSystemTools::FileExists("CTestTestfile.cmake") ||
cmSystemTools::FileExists("DartTestfile.txt")))
{
if(argc == 1)
{