You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.6 KiB
CMake

#
# Copyright 2013-2020 Software Radio Systems Limited
#
# This file is part of srsLTE
#
# srsLTE is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# srsLTE 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 Affero General Public License for more details.
#
# A copy of the GNU Affero General Public License can be found in
# the LICENSE file in the top-level directory of this distribution
# and at http://www.gnu.org/licenses/.
#
add_executable(srslog_test srslog_test.cpp)
target_link_libraries(srslog_test srslog)
add_test(srslog_test srslog_test)
add_executable(log_channel_test log_channel_test.cpp)
target_link_libraries(log_channel_test srslog)
add_test(log_channel_test log_channel_test)
add_executable(log_backend_test log_backend_test.cpp)
target_include_directories(log_backend_test PUBLIC ../../)
target_link_libraries(log_backend_test srslog)
add_test(log_backend_test log_backend_test)
add_executable(logger_test logger_test.cpp)
target_link_libraries(logger_test srslog)
add_test(logger_test logger_test)
add_executable(any_test any_test.cpp)
target_link_libraries(any_test srslog)
add_test(any_test any_test)
add_executable(file_sink_test file_sink_test.cpp)
target_include_directories(file_sink_test PUBLIC ../../)
target_link_libraries(file_sink_test srslog)
add_test(file_sink_test file_sink_test)
add_executable(file_utils_test file_utils_test.cpp)
target_include_directories(file_utils_test PUBLIC ../../)
target_link_libraries(file_utils_test srslog)
add_test(file_utils_test file_utils_test)
add_executable(tracer_test event_trace_test.cpp)
add_definitions(-DENABLE_SRSLOG_EVENT_TRACE)
target_link_libraries(tracer_test srslog)
add_test(tracer_test tracer_test)
#:TODO: re-enable test.
#add_executable(text_formatter_test text_formatter_test.cpp)
#target_include_directories(text_formatter_test PUBLIC ../../)
#target_link_libraries(text_formatter_test srslog)
#add_test(text_formatter_test text_formatter_test)
add_executable(json_formatter_test json_formatter_test.cpp)
target_include_directories(json_formatter_test PUBLIC ../../)
target_link_libraries(json_formatter_test srslog)
add_test(json_formatter_test json_formatter_test)
add_executable(context_test context_test.cpp)
target_link_libraries(context_test srslog)
add_test(context_test context_test)