-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
116 lines (96 loc) · 3.36 KB
/
Copy pathCMakeLists.txt
File metadata and controls
116 lines (96 loc) · 3.36 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# 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.
# Name of files to test
set(TESTS
repeater
repeater_tcp
tcp
udp
discovery_server
dds_rtps
dds
rpc/ros2_services_cloud
rpc/ros2_services_repeater
rpc/ros2_services_repeater_with_talker
rpc/ros2_services_correct_target
rpc/ros2_services_simple
rpc/ros2_services_without_router
rpc/ros2_services_trivial
rpc/ros2_services_trivial_multiple
transparency/partitions
transparency/durability
transparency/ownership
security/backdoor
security/backdoor_dds
security/secure_trespassing
security/secure_wan
forwarding_routes/basic_route
forwarding_routes/parallel_routes
forwarding_routes/topic_routes
forwarding_routes/repeater
remove_unused_entities/reader/disconnect
remove_unused_entities/reader/disconnect_wan
remove_unused_entities/reader/persist_diff_domain
remove_unused_entities/reader/persist_same_domain
remove_unused_entities/reader/reconnect
remove_unused_entities/reader/reconnect_wan
remove_unused_entities/writer/disconnect
remove_unused_entities/writer/disconnect_wan
remove_unused_entities/writer/persist_diff_domain
remove_unused_entities/writer/persist_same_domain
remove_unused_entities/writer/reconnect
remove_unused_entities/writer/reconnect_wan
frequency/max-tx-rate/specs
frequency/max-tx-rate/participant
frequency/max-rx-rate/specs
frequency/max-rx-rate/participant
frequency/downsampling/specs
frequency/downsampling/participant
manual_topics/generic
manual_topics/participants
manual_topics/precedence
discovery_trigger/reader
discovery_trigger/writer
discovery_trigger/none
discovery_trigger/any/reader
discovery_trigger/any/writer
stress/cloud/reliable
stress/repeater/mixed_data_sizes
stress/repeater/reliable
stress/simple/reliable
)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/test_cases DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docker-compose.sh
${CMAKE_CURRENT_BINARY_DIR}/docker-compose.sh
COPYONLY)
file(
COPY
${CMAKE_CURRENT_SOURCE_DIR}/scripts
DESTINATION
${CMAKE_CURRENT_BINARY_DIR}
)
find_program (BASH_PROGRAM bash)
# Populate the tests
foreach(TEST IN LISTS TESTS)
set(TEST_NAME "tool.application.ddsrouter.compose.${TEST}")
string(REPLACE "/" "_" TEST_NAME ${TEST_NAME})
message(STATUS "Building test ${TEST_NAME}")
add_test(
NAME ${TEST_NAME}
COMMAND ${BASH_PROGRAM} ${CMAKE_CURRENT_BINARY_DIR}/docker-compose.sh
-t ${TEST_NAME}
-f ${CMAKE_CURRENT_BINARY_DIR}/test_cases/${TEST}/compose.yml)
endforeach()
# Set flaky tests as xfail
add_xfail_label(${CMAKE_CURRENT_SOURCE_DIR}/TEST_XFAIL.list)