mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	CMake: added labels to tests
This commit is contained in:
		| @@ -46,6 +46,11 @@ macro(add_fuzzer name) | ||||
| 		COMMAND | ||||
| 			"${FUZZER}" "${CORPUS_DIR}" "${SEED_CORPUS_DIR}" -max_total_time=5 -timeout=1 | ||||
| 	) | ||||
|  | ||||
| 	set_tests_properties("${FUZZER}" | ||||
| 		PROPERTIES | ||||
| 			LABELS 		"Fuzzing" | ||||
| 	) | ||||
| endmacro() | ||||
|  | ||||
| if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6) | ||||
|   | ||||
| @@ -19,6 +19,7 @@ macro(build_should_fail target) | ||||
| 	set_tests_properties(${target}  | ||||
| 		PROPERTIES | ||||
| 			WILL_FAIL	TRUE | ||||
| 			LABELS 		"WillFail;Catch" | ||||
| 	) | ||||
| endmacro() | ||||
|  | ||||
|   | ||||
| @@ -17,3 +17,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||||
| endif() | ||||
|  | ||||
| add_test(IntegrationTests IntegrationTests) | ||||
|  | ||||
| set_tests_properties(IntegrationTests | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -20,3 +20,8 @@ add_executable(JsonArrayTests | ||||
| ) | ||||
|  | ||||
| add_test(JsonArray JsonArrayTests) | ||||
|  | ||||
| set_tests_properties(JsonArray | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -21,3 +21,8 @@ add_executable(JsonDeserializerTests | ||||
| set_target_properties(JsonDeserializerTests PROPERTIES UNITY_BUILD OFF) | ||||
|  | ||||
| add_test(JsonDeserializer JsonDeserializerTests) | ||||
|  | ||||
| set_tests_properties(JsonDeserializer | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -22,3 +22,8 @@ add_executable(JsonDocumentTests | ||||
| ) | ||||
|  | ||||
| add_test(JsonDocument JsonDocumentTests) | ||||
|  | ||||
| set_tests_properties(JsonDocument | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -20,3 +20,8 @@ add_executable(JsonObjectTests | ||||
| ) | ||||
|  | ||||
| add_test(JsonObject JsonObjectTests) | ||||
|  | ||||
| set_tests_properties(JsonObject | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -15,3 +15,8 @@ add_executable(JsonSerializerTests | ||||
| ) | ||||
|  | ||||
| add_test(JsonSerializer JsonSerializerTests) | ||||
|  | ||||
| set_tests_properties(JsonSerializer | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -26,3 +26,8 @@ add_executable(JsonVariantTests | ||||
| ) | ||||
|  | ||||
| add_test(JsonVariant JsonVariantTests) | ||||
|  | ||||
| set_tests_properties(JsonVariant | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -11,3 +11,8 @@ add_executable(MemoryPoolTests | ||||
| ) | ||||
|  | ||||
| add_test(MemoryPool MemoryPoolTests) | ||||
|  | ||||
| set_tests_properties(MemoryPool | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -21,3 +21,8 @@ add_executable(MiscTests | ||||
| set_target_properties(MiscTests PROPERTIES UNITY_BUILD OFF) | ||||
|  | ||||
| add_test(Misc MiscTests) | ||||
|  | ||||
| set_tests_properties(Misc | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
|   | ||||
| @@ -29,3 +29,8 @@ add_executable(MixedConfigurationTests | ||||
| set_target_properties(MixedConfigurationTests PROPERTIES UNITY_BUILD OFF) | ||||
|  | ||||
| add_test(MixedConfiguration MixedConfigurationTests) | ||||
|  | ||||
| set_tests_properties(MixedConfiguration | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -17,3 +17,8 @@ add_executable(MsgPackDeserializerTests | ||||
| ) | ||||
|  | ||||
| add_test(MsgPackDeserializer MsgPackDeserializerTests) | ||||
|  | ||||
| set_tests_properties(MsgPackDeserializer | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -12,3 +12,8 @@ add_executable(MsgPackSerializerTests | ||||
| ) | ||||
|  | ||||
| add_test(MsgPackSerializer MsgPackSerializerTests) | ||||
|  | ||||
| set_tests_properties(MsgPackSerializer | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -11,3 +11,8 @@ add_executable(NumbersTests | ||||
|  | ||||
|  | ||||
| add_test(Numbers NumbersTests) | ||||
|  | ||||
| set_tests_properties(Numbers | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
| @@ -11,3 +11,8 @@ add_executable(TextFormatterTests | ||||
| set_target_properties(TextFormatterTests PROPERTIES UNITY_BUILD OFF) | ||||
|  | ||||
| add_test(TextFormatter TextFormatterTests) | ||||
|  | ||||
| set_tests_properties(TextFormatter | ||||
| 	PROPERTIES | ||||
| 		LABELS 		"Catch" | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user