updated testing

This commit is contained in:
Ken Martin 2001-09-11 15:17:40 -04:00
parent 7e37a0cafb
commit faafcdddbf
1 changed files with 20 additions and 3 deletions

View File

@ -105,6 +105,7 @@ void ctest::ProcessDirectory(int &passed, int &failed)
std::string name; std::string name;
std::vector<std::string> args; std::vector<std::string> args;
cmRegularExpression var(this->m_RegExp.c_str()); cmRegularExpression var(this->m_RegExp.c_str());
cmRegularExpression dartStuff("([\t\n ]*<DartMeasurement.*/DartMeasurement[a-zA-Z]*>[\t ]*[\n]*)");
while ( fin ) while ( fin )
{ {
@ -153,14 +154,22 @@ void ctest::ProcessDirectory(int &passed, int &failed)
*/ */
std::string output; std::string output;
int retVal; int retVal;
if (!cmSystemTools::RunCommand(testCommand.c_str(), output, if (!cmSystemTools::RunCommand(testCommand.c_str(), output,
retVal, false) || retVal != 0) retVal, false) || retVal != 0)
{ {
fprintf(stderr,"***Failed\n"); fprintf(stderr,"***Failed\n");
if (output != "") if (output != "")
{ {
std::cerr << output.c_str() << "\n"; if (dartStuff.find(output.c_str()))
{
cmSystemTools::ReplaceString(output,
dartStuff.match(1).c_str(),"");
}
if (output != "")
{
std::cerr << output.c_str() << "\n";
}
} }
failed++; failed++;
} }
@ -169,7 +178,15 @@ void ctest::ProcessDirectory(int &passed, int &failed)
fprintf(stderr," Passed\n"); fprintf(stderr," Passed\n");
if (output != "") if (output != "")
{ {
std::cerr << output.c_str() << "\n"; if (dartStuff.find(output.c_str()))
{
cmSystemTools::ReplaceString(output,
dartStuff.match(1).c_str(),"");
}
if (output != "")
{
std::cerr << output.c_str() << "\n";
}
} }
passed++; passed++;
} }