mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Exclude test name from approval tests
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
|  | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
| CatchSelfTest is a <version> host application. | ||||
| <exe-name> is a <version> host application. | ||||
| Run with -? for options | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
|  | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
| CatchSelfTest is a <version> host application. | ||||
| <exe-name> is a <version> host application. | ||||
| Run with -? for options | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
|  | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
| CatchSelfTest is a <version> host application. | ||||
| <exe-name> is a <version> host application. | ||||
| Run with -? for options | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
|   | ||||
| @@ -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
											
										
									
								
							| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash