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

Unit-test libraries now end with the word unittests

parent dc273aa8
Branches
Tags
No related merge requests found
......@@ -14,11 +14,11 @@ add_executable(castornstest CastorNameServerTest.cpp)
target_link_libraries(castornstest ctanameserver ctacommon ctascheduler)
add_library (ctanameservertest SHARED
add_library (ctanameserverunittests SHARED
mockNS/MockNameServerFactory.cpp
mockNS/MockNameServerTest.cpp
mockNS/SmartFdTest.cpp
NameServerFactory.cpp)
target_link_libraries(ctanameservertest
target_link_libraries(ctanameserverunittests
ctanameserver)
......@@ -14,12 +14,12 @@ include_directories (${XROOTD_INCLUDE_DIR} ${XROOTD_PRIVATE_INCLUDE_DIR} ${CMAKE
target_link_libraries (ctaremotens ${XROOTD_XRDCL_LIB} ctacommon cryptopp)
add_library (ctaremotenstest SHARED
add_library (ctaremotensunittests SHARED
MockRemoteNS.cpp
MockRemoteNSFactory.cpp
MockRemoteNSTest.cpp
RemoteNSDispatcherTest.cpp
RemoteNSFactory.cpp)
target_link_libraries(ctaremotenstest
target_link_libraries(ctaremotensunittests
ctaremotens)
......@@ -34,14 +34,14 @@ add_library (ctascheduler SHARED
target_link_libraries (ctascheduler ${SQLITE3_LIBRARY_RELEASE} ctacommon)
add_library (ctaschedulertest SHARED
add_library (ctaschedulerunittests SHARED
mockDB/MockSchedulerDatabase.cpp
mockDB/MockSchedulerDatabaseFactory.cpp
SchedulerDatabaseFactory.cpp
SchedulerDatabaseTest.cpp
SchedulerTest.cpp)
target_link_libraries (ctaschedulertest ${SQLITE3_LIBRARY_RELEASE})
target_link_libraries (ctaschedulerunittests ${SQLITE3_LIBRARY_RELEASE})
include_directories(${CMAKE_BINARY_DIR})
add_library(ctaOStoreSchedulerDB SHARED
......@@ -50,6 +50,6 @@ add_library(ctaOStoreSchedulerDB SHARED
target_link_libraries(ctaOStoreSchedulerDB
CTAObjectStore)
target_link_libraries(ctaschedulertest
target_link_libraries(ctaschedulerunittests
ctascheduler
ctaOStoreSchedulerDB)
......@@ -18,6 +18,7 @@
#
cmake_minimum_required (VERSION 2.6)
add_subdirectory (exception)
add_subdirectory (utils)
add_subdirectory (mediachanger)
add_subdirectory (messages)
......
cmake_minimum_required (VERSION 2.6)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/libs/ctacommon)
include_directories(${PROJECT_SOURCE_DIR}/libs/ctaclient)
add_executable(unittests
unit_tests.cpp)
target_link_libraries(unittests
castorexceptionunittests
ctacommon
ctacommonunittests
CTAObjectStore
ctaobjectstoreunittests
ctanameservertest
ctaremotenstest
ctaschedulertest
ctanameserverunittests
ctaremotensunittests
ctaschedulerunittests
gmock
gtest
pthread)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment