Skip to content

Commit

Permalink
DEBIAN: Add test binaries to the Debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
esindril committed Dec 3, 2024
1 parent 14cc1c6 commit 04ad36f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,15 @@ add_subdirectory(fst)
add_subdirectory(console)
add_subdirectory(fusex)
add_subdirectory(misc)
add_subdirectory(test)

if (GRPC_FOUND)
add_subdirectory(client)
endif()

if (NOT CLIENT)
add_subdirectory(namespace/ns_quarkdb/qclient)
add_subdirectory(test)

add_subdirectory(mq)
add_subdirectory(mgm)
add_subdirectory(namespace)
Expand Down
48 changes: 25 additions & 23 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,31 @@ target_link_libraries(threadpooltest PRIVATE EosCommon)
#-------------------------------------------------------------------------------
# MQ test related executables
#-------------------------------------------------------------------------------
add_executable(eos-shared-hash-test mq/SharedHashLoadTest.cc)
add_executable(xrdmqclienttest mq/XrdMqClientTest.cc)
add_executable(eos-mq-dumper mq/XrdMqQueueDumper.cc)
add_executable(eos-mq-feeder mq/XrdMqQueueFeeder.cc)
add_executable(xrdmqinjection mq/XrdMqQueueInjection.cc)
add_executable(xrdmqclientmaster mq/XrdMqClientMaster.cc)
add_executable(xrdmqclientworker mq/XrdMqClientWorker.cc)
add_executable(xrdmqsharedobjectclient mq/XrdMqSharedObjectClient.cc)
add_executable(xrdmqsharedobjectqueueclient mq/XrdMqSharedObjectQueueClient.cc)
add_executable(xrdmqsharedobjectbroadcastclient mq/XrdMqSharedObjectBroadCastClient.cc)
target_link_libraries(eos-shared-hash-test PRIVATE XrdMqClient-Static qclient)
target_link_libraries(xrdmqclienttest PRIVATE XrdMqClient-Static)
target_link_libraries(eos-mq-dumper PRIVATE XrdMqClient-Static)
target_link_libraries(eos-mq-feeder PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqinjection PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqclientmaster PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqclientworker PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqsharedobjectclient PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqsharedobjectqueueclient PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqsharedobjectbroadcastclient PRIVATE XrdMqClient-Static)
if (NOT CLIENT)
add_executable(eos-shared-hash-test mq/SharedHashLoadTest.cc)
add_executable(xrdmqclienttest mq/XrdMqClientTest.cc)
add_executable(eos-mq-dumper mq/XrdMqQueueDumper.cc)
add_executable(eos-mq-feeder mq/XrdMqQueueFeeder.cc)
add_executable(xrdmqinjection mq/XrdMqQueueInjection.cc)
add_executable(xrdmqclientmaster mq/XrdMqClientMaster.cc)
add_executable(xrdmqclientworker mq/XrdMqClientWorker.cc)
add_executable(xrdmqsharedobjectclient mq/XrdMqSharedObjectClient.cc)
add_executable(xrdmqsharedobjectqueueclient mq/XrdMqSharedObjectQueueClient.cc)
add_executable(xrdmqsharedobjectbroadcastclient mq/XrdMqSharedObjectBroadCastClient.cc)
target_link_libraries(eos-shared-hash-test PRIVATE XrdMqClient-Static qclient)
target_link_libraries(xrdmqclienttest PRIVATE XrdMqClient-Static)
target_link_libraries(eos-mq-dumper PRIVATE XrdMqClient-Static)
target_link_libraries(eos-mq-feeder PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqinjection PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqclientmaster PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqclientworker PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqsharedobjectclient PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqsharedobjectqueueclient PRIVATE XrdMqClient-Static)
target_link_libraries(xrdmqsharedobjectbroadcastclient PRIVATE XrdMqClient-Static)

install(TARGETS eos-mq-feeder eos-mq-dumper eos-shared-hash-test
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
endif()

install(TARGETS xrdstress.exe xrdcpabort xrdcprandom xrdcppgread
xrdcpextend xrdcpshrink xrdcpappend xrdcpappendoverlap xrdcptruncate
Expand All @@ -173,9 +178,6 @@ install(TARGETS xrdstress.exe xrdcpabort xrdcprandom xrdcppgread
eos-udp-dumper eos-mmap eos-io-tool
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_SBINDIR})

install(TARGETS eos-mq-feeder eos-mq-dumper eos-shared-hash-test
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})

install(PROGRAMS xrdstress eos-instance-test eos-instance-test-ci
fuse/eos-fuse-test eos-rain-test eoscp-rain-test eos-io-test eos-accounting-test
eos-oc-test eos-drain-test eos-groupdrain-test eos-mq-tests
Expand Down

0 comments on commit 04ad36f

Please sign in to comment.