diff --git a/projects/SelfTest/Baselines/approvedResults.txt b/projects/SelfTest/Baselines/approvedResults.txt index 04fd704d..04f9505f 100644 --- a/projects/SelfTest/Baselines/approvedResults.txt +++ b/projects/SelfTest/Baselines/approvedResults.txt @@ -7175,28 +7175,28 @@ No test cases matched '~dummy 4' No tests ran - - - - - - - - - - + + + + + + + + + + ClassTests.cpp - - + + ClassTests.cpp - - + + ConditionTests.cpp @@ -7237,8 +7237,8 @@ ConditionTests.cpp ConditionTests.cpp - - + + ConditionTests.cpp @@ -7255,8 +7255,8 @@ ConditionTests.cpp ConditionTests.cpp - - + + ConditionTests.cpp @@ -7315,14 +7315,14 @@ ConditionTests.cpp ConditionTests.cpp - - - - - - - - + + + + + + + + ConditionTests.cpp @@ -7348,8 +7348,8 @@ ConditionTests.cpp ConditionTests.cpp - - + + expected exception ExceptionTests.cpp @@ -7362,67 +7362,67 @@ expected exception ExceptionTests.cpp - + unexpected exception ExceptionTests.cpp - + unexpected exception ExceptionTests.cpp - + unexpected exception ExceptionTests.cpp - + expected exception ExceptionTests.cpp - + custom exception ExceptionTests.cpp - + custom exception - not std ExceptionTests.cpp - + custom exception - not std ExceptionTests.cpp - + 3.14 ExceptionTests.cpp - - - - - - + + + + + + this message should be logged so should this MessageTests.cpp - + this message should be logged MessageTests.cpp @@ -7432,61 +7432,61 @@ and this, but later MessageTests.cpp - + This is a failure MessageTests.cpp - + Message from section one MessageTests.cpp - + Message from section two MessageTests.cpp - + Message from section one Message from section two - + current counter 10 i := 10 MessageTests.cpp - - + + Previous info should not be seen MessageTests.cpp - - - - - + + + + + MiscTests.cpp - - - + + + MiscTests.cpp - + Testing if fib[0] (1) is even MiscTests.cpp @@ -7512,7 +7512,7 @@ Testing if fib[7] (21) is even MiscTests.cpp - + Some information @@ -7520,16 +7520,16 @@ Some information An error - - + + hi i := 7 MiscTests.cpp - - + + MiscTests.cpp @@ -7537,8 +7537,8 @@ MiscTests.cpp MiscTests.cpp - - + + MiscTests.cpp @@ -7546,47 +7546,47 @@ MiscTests.cpp MiscTests.cpp - + 3 MiscTests.cpp - - - + + + MiscTests.cpp - + MiscTests.cpp - + MiscTests.cpp - + MiscTests.cpp - - - - - - - - - - - - - + + + + + + + + + + + + + to infinity and beyond MiscTests.cpp @@ -7600,11 +7600,11 @@ to infinity and beyond MiscTests.cpp - - - - - + + + + + Message from section one Message from section two @@ -7618,58 +7618,58 @@ An error An error - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hello hello - - - - - + + + + + TrickyTests.cpp @@ -7677,61 +7677,61 @@ TrickyTests.cpp TrickyTests.cpp - + TrickyTests.cpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Message from section one Message from section two diff --git a/scripts/approvalTests.py b/scripts/approvalTests.py index eb460f1c..4dd4e97f 100644 --- a/scripts/approvalTests.py +++ b/scripts/approvalTests.py @@ -8,6 +8,7 @@ from scriptCommon import catchPath filenameParser = re.compile( r'\s*.*/(.*\..pp):([0-9]*)(.*)' ) lineNumberParser = re.compile( r'(.*)line="[0-9]*"(.*)' ) hexParser = re.compile( r'(.*)\b(0[xX][0-9a-fA-F]+)\b(.*)' ) +durationsParser = re.compile( r'(.*)time="[0-9]*\.[0-9]*"(.*)' ) #catchPath = os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0]))) @@ -45,6 +46,10 @@ for line in rawFile: line = m.group(1) + "0x" + m.group(3) else: break + m = durationsParser.match( line ) + if m: + line = m.group(1) + 'time="{duration}"' + m.group(2) + filteredFile.write( line.rstrip() + "\n" ) filteredFile.close() rawFile.close()