Skip to content

Commit b8a8052

Browse files
committed
fix: applied RESOURCE_LOCK to perft tests
1 parent 3d8c9b5 commit b8a8052

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/perft/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ foreach (data_file IN LISTS testcase_files)
4040
)
4141
# cmake-format: on
4242

43+
set (test_name "ben_bot.perft.${filename}.${depth}")
44+
4345
add_test (
44-
NAME "ben_bot.perft.${filename}.${depth}"
46+
NAME "${test_name}"
4547
COMMAND Python::Interpreter "${CMAKE_CURRENT_LIST_DIR}/perft.py" "--test=${data_file}"
4648
"--engine=$<TARGET_FILE:ben_bot>" "--depth=${depth}"
4749
)
50+
51+
set_tests_properties ("${test_name}" PROPERTIES RESOURCE_LOCK BenBotPerft)
4852
endforeach ()
4953

5054
set_property (DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${data_file}")

0 commit comments

Comments
 (0)