Commit 753c84b3 authored by Steven Murray's avatar Steven Murray
Browse files

Added castorlogunittests

parent a2756b47
# This file is part of the Castor project.
# See http://castor.web.cern.ch/castor
#
# Copyright (C) 2003 CERN
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
# @author Castor Dev team, castor-dev@cern.ch
#
cmake_minimum_required (VERSION 2.6)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver/h)
################################################################################
# Rules to build and install libcastorlegacymsg.so
################################################################################
set (LOG_LIB_SRC_FILES
DummyLogger.cpp
Logger.cpp
......@@ -33,3 +12,9 @@ set (LOG_LIB_SRC_FILES
Message.cpp
Param.cpp)
add_library (castorlog ${LOG_LIB_SRC_FILES})
add_library (castorlogunittests SHARED
ParamTest.cpp
LogContextTest.cpp
StringLoggerTest.cpp
SyslogLoggerTest.cpp)
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define LOG_EMERG 0 /* system is unusable */
#define LOG_ALERT 1 /* action must be taken immediately */
#define LOG_CRIT 2 /* critical conditions */
#define LOG_ERR 3 /* error conditions */
#define LOG_WARNING 4 /* warning conditions */
#define LOG_NOTICE 5 /* normal but signification condition */
#define LOG_INFO 6 /* informational */
#define LOG_DEBUG 7 /* debug-level messages */
......@@ -48,13 +48,6 @@ set_property(SOURCE
APPEND PROPERTY COMPILE_FLAGS -fno-strict-aliasing)
#add_executable(castorUnitTests
# castorUnitTests.cpp
# ../castor/legacymsg/CommonMarshalTest.cpp
# ../castor/legacymsg/GenericMarshalTest.cpp
# ../castor/legacymsg/TapeMarshalTest.cpp
# ../castor/log/ParamTest.cpp
# ../castor/log/LogContextTest.cpp
# ../castor/log/StringLoggerTest.cpp
# ../castor/log/SyslogLoggerTest.cpp
# ../castor/messages/MessagesTest.cpp
# ../castor/messages/MutexLockerTest.cpp
# ../castor/messages/MutexTest.cpp
......
......@@ -7,6 +7,7 @@ target_link_libraries(unittests
castorexceptionunittests
castoriounittests
castorlegacymsgunittests
castorlogunittests
ctacommon
ctacommonunittests
CTAObjectStore
......
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