cmake: Set LABELS property for tests

This commit is contained in:
Hennadii Stepanov
2026-01-13 17:26:47 +00:00
parent 29f26ec3cf
commit 8354618e02
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -9,6 +9,9 @@ function(add_example name)
$<$<PLATFORM_ID:Windows>:bcrypt>
)
add_test(NAME secp256k1.example.${name} COMMAND ${target_name})
set_tests_properties(secp256k1.example.${name} PROPERTIES
LABELS secp256k1_example
)
endfunction()
add_example(ecdsa)
+5
View File
@@ -154,6 +154,8 @@ if(SECP256K1_BUILD_TESTS)
DISCOVERY_MATCH "^\\t\\\\[ *[0-9]+\\\\] ([^ ].*)$"
TEST_NAME_REPLACEMENT "secp256k1.${exe_name}.\\\\1"
TEST_ARGS_REPLACEMENT "--target=\\\\1 --log=1"
PROPERTIES
LABELS "secp256k1_${exe_name}"
)
endfunction()
@@ -170,6 +172,9 @@ if(SECP256K1_BUILD_EXHAUSTIVE_TESTS)
target_link_libraries(exhaustive_tests secp256k1_asm)
target_compile_definitions(exhaustive_tests PRIVATE $<$<NOT:$<CONFIG:Coverage>>:VERIFY>)
add_test(NAME secp256k1.exhaustive_tests COMMAND exhaustive_tests)
set_tests_properties(secp256k1.exhaustive_tests PROPERTIES
LABELS secp256k1_exhaustive
)
endif()
if(SECP256K1_BUILD_CTIME_TESTS)