mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	cmake script to generate ctest definitions from catch tests: fix for test case body bracket
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							49d87cf182
						
					
				
				
					commit
					8014bf1124
				
			@@ -56,7 +56,7 @@ function(ParseFile SourceFile TestTarget)
 | 
				
			|||||||
    RemoveComments(Contents)
 | 
					    RemoveComments(Contents)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Find definition of test names
 | 
					    # Find definition of test names
 | 
				
			||||||
    string(REGEX MATCHALL "[ \t]*(CATCH_)?(TEST_CASE_METHOD|SCENARIO|TEST_CASE)[ \t]*\\([^\)]+\\)+[ \t]*{+[ \t]*(//[^\n]*[Tt][Ii][Mm][Ee][Oo][Uu][Tt][ \t]*[0-9]+)*" Tests "${Contents}")
 | 
					    string(REGEX MATCHALL "[ \t]*(CATCH_)?(TEST_CASE_METHOD|SCENARIO|TEST_CASE)[ \t]*\\([^\)]+\\)+[ \t\n]*{+[ \t]*(//[^\n]*[Tt][Ii][Mm][Ee][Oo][Uu][Tt][ \t]*[0-9]+)*" Tests "${Contents}")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    foreach(TestName ${Tests})
 | 
					    foreach(TestName ${Tests})
 | 
				
			||||||
        # Strip newlines
 | 
					        # Strip newlines
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user