Commit dcea62d8 authored by Steven Murray's avatar Steven Murray
Browse files

Each XXXXDummy class is now in compiled into a libYYYYdummies.so

parent ffdc0cb0
......@@ -3,6 +3,9 @@ cmake_minimum_required (VERSION 2.6)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver/h)
add_library (castorlogdummies SHARED
DummyLogger.cpp)
set (LOG_LIB_SRC_FILES
DummyLogger.cpp
Logger.cpp
......
......@@ -28,9 +28,11 @@ set (MEDIA_CHANGER_LIB_SRC_FILES
ManualLibrarySlot.cpp
MediaChangerFacade.cpp
MmcProxy.cpp
MmcProxyDummy.cpp
MmcProxyLog.cpp
MmcProxyNotSupported.cpp
ScsiLibrarySlot.cpp
TapeLibraryType.cpp)
add_library(castormediachanger ${MEDIA_CHANGER_LIB_SRC_FILES})
add_library(castormediachangerdummies SHARED
MmcProxyDummy.cpp)
......@@ -31,9 +31,12 @@ PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders ${ProtoFiles})
add_library(castormessagesprotobuf
${ProtoSources})
add_library(castormessagesdummies
AcsProxyDummy.cpp
TapeserverProxyDummy.cpp)
set(CastorMessageSrcs
AcsProxy.cpp
AcsProxyDummy.cpp
AcsProxyZmq.cpp
Constants.cpp
Frame.cpp
......@@ -41,7 +44,6 @@ set(CastorMessageSrcs
Mutex.cpp
SmartZmqContext.cpp
TapeserverProxy.cpp
TapeserverProxyDummy.cpp
TapeserverProxyZmq.cpp
ZmqMsg.cpp
ZmqSocket.cpp
......
......@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.6)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver/h)
add_library (castorserverdummies
add_library (castorserverdummies SHARED
ProcessCapDummy.cpp)
add_library (castorserverunittests SHARED
......
......@@ -25,8 +25,6 @@ include_directories(${CMAKE_SOURCE_DIR}/tapeserver)
# Rules to build the reactor code that is common to both rmcd and tapeserverd
################################################################################
set (REACTOR_SRC_FILES
DummyPollEventHandler.cpp
DummyZMQReactor.cpp
PollEventHandler.cpp
PollReactor.cpp
PollReactorImpl.cpp
......@@ -35,9 +33,15 @@ set (REACTOR_SRC_FILES
add_library (castortapereactor ${REACTOR_SRC_FILES})
target_link_libraries (castortapereactor)
add_library (castortapereactordummies SHARED
DummyPollEventHandler.cpp
DummyPollReactor.cpp
DummyZMQReactor.cpp)
add_library (castortapereactorunittests SHARED
PollReactorImplTest.cpp
ZMQReactorTest.cpp)
target_link_libraries (castortapereactorunittests
castortapereactor)
castortapereactor
castortapereactordummies)
......@@ -59,7 +59,6 @@ add_library(castorTapeServerDaemon
ProcessForker.cpp
ProcessForkerConnectionHandler.cpp
ProcessForkerProxy.cpp
ProcessForkerProxyDummy.cpp
ProcessForkerProxySocket.cpp
ProcessForkerUtils.cpp
RecallMemoryManager.cpp
......@@ -88,6 +87,9 @@ add_dependencies(castorTapeServerDaemon castormessagesprotobuf)
add_executable(tapeserverd TapeDaemon.cpp)
target_link_libraries(tapeserverd castorTapeServerDaemon SCSI System Utils File TapeDrive castorcommon castorclient castorlegacymsg castorserver castortapegatewayprotocol castortapereactor ${LIBCAP_LIB} ${ZLIB_LIBRARIES} castormessages zmq)
add_library(castortapeserverdaemondummies SHARED
ProcessForkerProxyDummy.cpp)
# The
add_library(castortapeserverdaemonunittests SHARED
CatalogueDriveStateTest.cpp
......@@ -134,4 +136,5 @@ add_library(castortapeserverdaemonunittests SHARED
)
target_link_libraries(castortapeserverdaemonunittests
castorserverdummies)
castorserverdummies
castortapeserverdaemondummies)
......@@ -28,19 +28,6 @@ include_directories(${CMAKE_SOURCE_DIR}/tapeserver/h)
include_directories(${CMAKE_BINARY_DIR}/tapeserver)
include_directories(${CMAKE_BINARY_DIR})
find_package( ZLIB REQUIRED )
# Create a shared librbary for the dummies supporting the tests
#add_library(TestDummies
# ../castor/mediachanger/MmcProxyDummy.cpp
# ../castor/messages/TapeserverProxyDummy.cpp
# ../castor/legacymsg/RmcProxyDummy.cpp
# ../castor/log/DummyLogger.cpp
# ../castor/tape/reactor/DummyPollEventHandler.cpp
# ../castor/tape/reactor/DummyPollReactor.cpp
# ../castor/server/ProcessCapDummy.cpp
#)
find_package (xrootd REQUIRED)
include_directories (${XROOTD_INCLUDE_DIR})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment