mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Add test for tag aliases
This commit is contained in:
		| @@ -222,6 +222,11 @@ set_tests_properties(TestsInFile::InvalidTestNames-1 PROPERTIES PASS_REGULAR_EXP | ||||
| add_test(NAME TestsInFile::InvalidTestNames-2 COMMAND $<TARGET_FILE:SelfTest> "-f ${SELF_TEST_DIR}/Misc/invalid-test-names.input") | ||||
| set_tests_properties(TestsInFile::InvalidTestNames-2 PROPERTIES PASS_REGULAR_EXPRESSION "No tests ran") | ||||
|  | ||||
| add_test(NAME TagAlias COMMAND $<TARGET_FILE:SelfTest> [@tricky] --list-tests) | ||||
| set_tests_properties(TagAlias PROPERTIES | ||||
|   PASS_REGULAR_EXPRESSION "[0-9]+ matching test cases" | ||||
|   FAIL_REGULAR_EXPRESSION "0 matching test cases" | ||||
| ) | ||||
|  | ||||
| if (CATCH_USE_VALGRIND) | ||||
|     add_test(NAME ValgrindRunTests COMMAND valgrind --leak-check=full --error-exitcode=1 $<TARGET_FILE:SelfTest>) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský