-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
102 lines (89 loc) · 2.71 KB
/
Copy pathCMakeLists.txt
File metadata and controls
102 lines (89 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#####################################
# Yaml DdsRouter Configuration Test #
#####################################
set(TEST_NAME YamlReaderConfigurationTest)
set(TEST_SOURCES
YamlReaderConfigurationTest.cpp
${PROJECT_SOURCE_DIR}/src/cpp/YamlReaderConfiguration.cpp
${PROJECT_SOURCE_DIR}/src/cpp/YamlReader_configuration.cpp
)
set(TEST_LIST
error_loading_yaml
configuration_version_not_supported
configuration_version_deprecated
valid_yaml_invalid_config
get_ddsrouter_configuration_no_version
version_negative_cases
number_of_threads
remove_unused_entities
discovery_trigger
valid_routes
invalid_routes
history_depth
max_tx_rate
max_rx_rate
downsampling
)
set(TEST_EXTRA_LIBRARIES
yaml-cpp
fastcdr
fastdds
cpp_utils
ddspipe_core
ddspipe_participants
ddspipe_yaml
ddsrouter_core
)
file(GLOB_RECURSE TEST_NEEDED_SOURCES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"empty_file.yaml"
)
add_unittest_executable(
"${TEST_NAME}"
"${TEST_SOURCES}"
"${TEST_LIST}"
"${TEST_EXTRA_LIBRARIES}"
"${TEST_NEEDED_SOURCES}")
#####################################
# Yaml DdsRouter Configuration Test #
#####################################
set(TEST_NAME YamlGetConfigurationDdsRouterTest)
set(TEST_SOURCES
YamlGetConfigurationDdsRouterTest.cpp
${PROJECT_SOURCE_DIR}/src/cpp/CommandlineArgsRouter.cpp
${PROJECT_SOURCE_DIR}/src/cpp/YamlReaderConfiguration.cpp
${PROJECT_SOURCE_DIR}/src/cpp/YamlReader_configuration.cpp
)
set(TEST_LIST
get_ddsrouter_configuration_trivial
get_ddsrouter_configuration_ros_case
get_ddsrouter_configuration_yaml_vs_commandline
)
set(TEST_EXTRA_LIBRARIES
yaml-cpp
fastcdr
fastdds
cpp_utils
ddspipe_core
ddspipe_participants
ddspipe_yaml
ddsrouter_core
)
add_unittest_executable(
"${TEST_NAME}"
"${TEST_SOURCES}"
"${TEST_LIST}"
"${TEST_EXTRA_LIBRARIES}")