mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09: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: 1148116a87
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()
|
endfunction()
|
||||||
|
|
||||||
function(serenity_test test_src sub_dir)
|
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.
|
# 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()
|
endfunction()
|
||||||
|
|
||||||
function(serenity_bin name)
|
function(serenity_bin name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue