ENH: read in old file formats Dart as well
This commit is contained in:
parent
065f23ba38
commit
21852384e0
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue