Skip to content
Snippets Groups Projects
Commit 05baae14 authored by Steven Murray's avatar Steven Murray
Browse files

Added libcastortapeserverdriveunittests.so

parent e525b211
Branches
Tags
No related merge requests found
......@@ -39,3 +39,11 @@ target_link_libraries(TapeDriveReadWriteTest
gtest
gmock
pthread)
add_library(castortapeserverdriveunittests SHARED
DriveTest.cpp)
target_link_libraries(castortapeserverdriveunittests
castorTapeServerDaemon
System
TapeDrive)
......@@ -64,7 +64,6 @@ APPEND PROPERTY COMPILE_FLAGS -fno-strict-aliasing)
# ../castor/tape/tapeserver/daemon/RecallReportPackerTest.cpp
# ../castor/tape/tapeserver/daemon/DiskWriteThreadPoolTest.cpp
# ../castor/tape/tapeserver/daemon/DiskWriteTaskTest.cpp
# ../castor/tape/tapeserver/drive/DriveTest.cpp
# ../castor/tape/tapeserver/file/StructuresTest.cpp
# ../castor/tape/tapeserver/file/FileTest.cpp
# ../castor/tape/tapeserver/SCSI/DeviceTest.cpp
......@@ -75,33 +74,6 @@ set_property(SOURCE ../SCSI/StructuresTest.cpp
PROPERTY COMPILE_FLAGS -fno-strict-aliasing
)
#target_link_libraries(castorUnitTests
# castorcommon
# castorclient
# castorlegacymsg
# SCSI
# System
# Utils
# File
# TestDummies
# castorserver
# castortapegatewayprotocol
# castorTapeServerDaemonTestDummies
# castorTapeServerDaemon
# gtest
# gmock
# pthread
# castorcommon
# castorclient
# castorvmgr
# castorvdqm
# ${LIBCAP_LIB}
# TapeDrive
# SCSI
# System
# Utils
# ${ZLIB_LIBRARIES})
find_package (xrootd REQUIRED)
include_directories (${XROOTD_INCLUDE_DIR})
......@@ -117,41 +89,3 @@ include_directories (${XROOTD_INCLUDE_DIR})
# ../castor/tape/tapeserver/daemon/TaskWatchDogTest.cpp
# ../castor/tape/tapeserver/file/CryptoPPTest.cpp
#)
#target_link_libraries(castorThreadedUnitTests
# castorclient
# castorcommon
# castorlegacymsg
# castorserver
# castortapegatewayprotocol
# castorTapeServerDaemonTestDummies
# castorTapeServerDaemon
# TestDummies
# castortapegatewayprotocol
# castorvdqm
# castorvmgr
# castorrfio
# gmock
# gtest
# pthread
# TapeDrive
# SCSI
# System
# File
# ${ZLIB_LIBRARIES}
# Utils
# cryptopp)
# Those tests are multi threaded. They could should also be run in
# helgrind/drd (but not memcheck)
add_executable(castorMultiprocessUnitTests
castorUnitTests.cpp
../castor/server/ThreadingMPTests.cpp
)
target_link_libraries(castorMultiprocessUnitTests
TapeDrive
SCSI
System
Utils File
castorserver
gtest gmock pthread castorcommon castorclient)
......@@ -11,6 +11,7 @@ target_link_libraries(unittests
castormessagesunittests
castorserverunittests
castortapereactorunittests
castortapeserverdriveunittests
castortapeserverutilsunittests
castorutilsunittests
ctacommon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment