Exclude test name from approval tests

This commit is contained in:
Phil Nash 2017-01-09 14:33:03 +00:00
parent 1ae84897d4
commit 62cbde369e
6 changed files with 900 additions and 895 deletions

View File

@ -1,6 +1,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CatchSelfTest is a <version> host application.
<exe-name> is a <version> host application.
Run with -? for options
-------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CatchSelfTest is a <version> host application.
<exe-name> is a <version> host application.
Run with -? for options
-------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CatchSelfTest is a <version> host application.
<exe-name> is a <version> host application.
Run with -? for options
-------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
<?xml version="1.1" encoding="UTF-8"?>
<testsuites>
<testsuite name="CatchSelfTest" errors="13" failures="68" tests="909" hostname="tbd" time="{duration}" timestamp="tbd">
<testsuite name="<exe-name>" errors="13" failures="68" tests="909" hostname="tbd" time="{duration}" timestamp="tbd">
<testcase classname="global" name="# A test name that starts with a #" time="{duration}"/>
<testcase classname="global" name="'Not' checks that should fail" time="{duration}">
<failure message="false != false" type="CHECK">

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,7 @@ durationsParser = re.compile(r'(.*)time="[0-9]*\.[0-9]*"(.*)')
versionParser = re.compile(r'(.*?)Catch v[0-9]*\.[0-9]*\.[0-9]*(.*)')
devVersionParser = re.compile(r'(.*?)Catch v[0-9]*\.[0-9]*\.[0-9]*-develop\.[0-9]*(.*)')
nullParser = re.compile(r'(.*?)\b(__null|nullptr)\b(.*)')
exeNameParser = re.compile(r'(.*?)\b(CatchSelfTest|SelfTest)\b(.*)')
if len(sys.argv) == 2:
cmdPath = sys.argv[1]
@ -59,6 +60,10 @@ def filterLine(line):
if m:
line = m.group(1) + "0" + m.group(3)
m = exeNameParser.match(line)
if m:
line = m.group(1) + "<exe-name>" + m.group(3)
while True:
m = hexParser.match(line)
if m: