Move Authz TLS test from fdbrpc/ to fdbrpc/tests

fdb_find_sources CMake command adds all sources directly under fdbrpc/,
which would end up embedding the test binary into libfdbrpc.a
Avoid this by placing the test binary under subdirectory fdbrpc/tests/
This commit is contained in:
Junhyun Shim 2022-08-25 19:26:16 +02:00
parent cc5105278d
commit 3180dc23f6
3 changed files with 7 additions and 6 deletions

View File

@ -81,9 +81,4 @@ if(WIN32)
add_dependencies(fdbrpc_sampling_actors fdbrpc_actors)
endif()
if(NOT WIN32)
add_flow_target(EXECUTABLE NAME authz_tls_unittest SRCS AuthzTlsTest.actor.cpp)
target_link_libraries(authz_tls_unittest PRIVATE flow fdbrpc fmt::fmt)
add_test(NAME authorization_tls_unittest
COMMAND $<TARGET_FILE:authz_tls_unittest>)
endif()
add_subdirectory(tests)

View File

@ -0,0 +1,6 @@
if(NOT WIN32)
add_flow_target(EXECUTABLE NAME authz_tls_unittest SRCS AuthzTlsTest.actor.cpp)
target_link_libraries(authz_tls_unittest PRIVATE flow fdbrpc fmt::fmt)
add_test(NAME authorization_tls_unittest
COMMAND $<TARGET_FILE:authz_tls_unittest>)
endif()