Skip to content
Snippets Groups Projects
Commit cae21178 authored by Anastasia Karachaliou's avatar Anastasia Karachaliou
Browse files

transferring ConfigurationFileTest and SourcedParameterTest and file

from tapeserver/daemon to common directory
parent 9762cd3f
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,8 @@ set (COMMON_LIB_SRC_FILES
utils/strerror_r_wrapper.cpp
CreationLog.cpp
Configuration.cpp
ConfigurationFile.cpp
ConfigurationFile.cpp
SourcedParameter.cpp
TapePool.cpp
Timer.cpp
UserIdentity.cpp
......@@ -150,6 +151,8 @@ target_link_libraries (ctacommon
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
checksum/ChecksumTest.cpp
ConfigurationFileTests.cpp
SourcedParameterTests.cpp
dataStructures/ArchiveFileTest.cpp
dataStructures/StorageClassTest.cpp
processCap/SmartCapTest.cpp
......@@ -183,6 +186,6 @@ set_property(TARGET ctacommonunittests PROPERTY SOVERSION "${CTA_SOVERSION}")
set_property(TARGET ctacommonunittests PROPERTY VERSION "${CTA_LIBVERSION}")
install(TARGETS ctacommonunittests DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
add_executable(mutexLtrace threading/MutexLtrace.cpp)
target_link_libraries (mutexLtrace ctacommon)
target_link_libraries(mutexLtrace ctacommon)
......@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "tapeserver/daemon/SourcedParameter.hpp"
#include "SourcedParameter.hpp"
#include "tapeserver/daemon/FetchReportOrFlushLimits.hpp"
#include "tapeserver/daemon/TpconfigLine.hpp"
#include <algorithm>
......@@ -123,4 +123,4 @@ void SourcedParameter<TpconfigLine>::addLogParamForValue(log::LogContext & lc) {
lc.pushOrReplace({"librarySlot", m_value.rawLibrarySlot});
}
}}} // namespace cta::tape::daemon
\ No newline at end of file
}}} // namespace cta::tape::daemon
......@@ -18,8 +18,8 @@
#include <gtest/gtest.h>
#include "SourcedParameter.hpp"
#include "FetchReportOrFlushLimits.hpp"
#include "common/SourcedParameter.hpp"
#include "tapeserver/daemon/FetchReportOrFlushLimits.hpp"
namespace unitTests {
......
......@@ -17,7 +17,6 @@ add_library(ctatapedaemon
DriveHandlerProxy.cpp
GarbageCollectorHandler.cpp
SignalHandler.cpp
SourcedParameter.cpp
SubprocessHandler.cpp
ProcessManager.cpp
TapedConfiguration.cpp
......@@ -44,10 +43,8 @@ target_link_libraries(ctatapedaemon
File)
add_library(ctadaemonunittests SHARED
ConfigurationFileTests.cpp
TapedConfigurationTests.cpp
TpconfigTests.cpp
SourcedParameterTests.cpp)
TpconfigTests.cpp)
set_property(TARGET ctadaemonunittests PROPERTY SOVERSION "${CTA_SOVERSION}")
set_property(TARGET ctadaemonunittests PROPERTY VERSION "${CTA_LIBVERSION}")
......
......@@ -23,7 +23,7 @@
#include <limits>
#include "common/log/DummyLogger.hpp"
#include "common/exception/Exception.hpp"
#include "SourcedParameter.hpp"
#include "common/SourcedParameter.hpp"
#include "FetchReportOrFlushLimits.hpp"
#include "Tpconfig.hpp"
......
......@@ -19,7 +19,7 @@
#pragma once
#include "tapeserver/daemon/TpconfigLine.hpp"
#include "tapeserver/daemon/SourcedParameter.hpp"
#include "common/SourcedParameter.hpp"
#include "common/exception/Exception.hpp"
#include <map>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment