[Server] Share one in-memory database interface across the server tests (#7862)

This commit is contained in:
BruebachL 2026-11-10 12:16:35 +01:00 • committed by GitHub
parent 3a1238a467
commit 9315a4aa6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 200 additions and 170 deletions

View file

@ -0,0 +1,12 @@
set(HEADERS libcockatrice/server/dev/servatrice_in_memory_database_interface.h)
add_library(
libcockatrice_server_dev STATIC ${HEADERS} libcockatrice/server/dev/servatrice_in_memory_database_interface.cpp
)
target_include_directories(libcockatrice_server_dev PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(libcockatrice_server_dev PUBLIC libcockatrice_network_server_remote)
# Dev-only code: linked by the server tests and the servatrice-dev executable, never by the shipped
# servatrice binary.