mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Add a test for Catch version output
This commit is contained in:
		@@ -408,6 +408,10 @@ set_tests_properties(ApprovalTests PROPERTIES FAIL_REGULAR_EXPRESSION "Results d
 | 
			
		||||
add_test(NAME RegressionCheck-1670 COMMAND $<TARGET_FILE:SelfTest> "#1670 regression check" -c A -r compact)
 | 
			
		||||
set_tests_properties(RegressionCheck-1670 PROPERTIES PASS_REGULAR_EXPRESSION "Passed 1 test case with 2 assertions.")
 | 
			
		||||
 | 
			
		||||
add_test(NAME VersionCheck COMMAND $<TARGET_FILE:SelfTest> -h)
 | 
			
		||||
set_tests_properties(VersionCheck PROPERTIES PASS_REGULAR_EXPRESSION "Catch v${PROJECT_VERSION}")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if (CATCH_USE_VALGRIND)
 | 
			
		||||
    add_test(NAME ValgrindRunTests COMMAND valgrind --leak-check=full --error-exitcode=1 $<TARGET_FILE:SelfTest>)
 | 
			
		||||
    add_test(NAME ValgrindListTests COMMAND valgrind --leak-check=full --error-exitcode=1 $<TARGET_FILE:SelfTest> --list-tests --verbosity high)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user