mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
CMake: Allow passing test name to serenity_test
This forwards to lagom_test. One day we should simplify this..
This commit is contained in:
parent
f6a8e5aa68
commit
1148116a87
Notes:
github-actions[bot]
2025-03-18 23:16:35 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/1148116a870 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3963 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/bugaevc
1 changed files with 2 additions and 2 deletions
|
@ -281,9 +281,9 @@ function(lagom_utility name)
|
|||
endfunction()
|
||||
|
||||
function(serenity_test test_src sub_dir)
|
||||
cmake_parse_arguments(PARSE_ARGV 2 SERENITY_TEST "MAIN_ALREADY_DEFINED" "CUSTOM_MAIN" "LIBS")
|
||||
cmake_parse_arguments(PARSE_ARGV 2 SERENITY_TEST "MAIN_ALREADY_DEFINED" "CUSTOM_MAIN;NAME" "LIBS")
|
||||
# FIXME: Pass MAIN_ALREADY_DEFINED and CUSTOM_MAIN to support tests that use them.
|
||||
lagom_test(${test_src} LIBS ${SERENITY_TEST_LIBS} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
lagom_test(${test_src} LIBS ${SERENITY_TEST_LIBS} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} NAME ${SERENITY_TEST_NAME})
|
||||
endfunction()
|
||||
|
||||
function(serenity_bin name)
|
||||
|
|
Loading…
Add table
Reference in a new issue