-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
247 lines (181 loc) · 5.63 KB
/
CMakeLists.txt
File metadata and controls
247 lines (181 loc) · 5.63 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
# SPDX-FileCopyrightText: 2022 Vector Informatik GmbH
#
# SPDX-License-Identifier: MIT
# local headers as interface lib
add_subdirectory(SimTestHarness)
# local headers as interface lib
add_subdirectory(Hourglass)
add_library(ITest_Utils INTERFACE)
target_include_directories(ITest_Utils
INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(SilKitIntegrationTests
PRIVATE SilKit
PRIVATE S_ITests_STH
)
target_link_libraries(SilKitInternalIntegrationTests
PRIVATE S_SilKitImpl
PRIVATE S_ITests_STH_Internals
)
target_link_libraries(SilKitFunctionalTests
PRIVATE SilKit
PRIVATE S_ITests_STH
)
target_link_libraries(SilKitInternalFunctionalTests
PRIVATE S_SilKitImpl
PRIVATE S_ITests_STH_Internals
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_CatchExceptionsInCallbacks.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_HopOnHopOff.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Abort.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Internals_ParticipantModes.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_CommunicationGuarantees.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Internals_DataPubSub.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_LabelsMatching.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Internals_TargetedMessaging.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_StateMachineVAsio.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_DeterministicSimVAsio.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_DifferentPeriods.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_SingleParticipant.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_SameParticipants.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Internals_ServiceDiscovery.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Internals_RequestReply.cpp
)
add_silkit_test_to_executable(SilKitInternalFunctionalTests
SOURCES FTest_ServiceDiscoveryPerf.cpp
)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_SystemMonitor.cpp
)
add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_PubSubPerf.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_AsyncSimTask.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_SimTask.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_GetParameter.cpp
)
add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_WallClockCoupling.cpp
)
# Windows specific tests
if(MSVC)
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_CompatibilityWithWindowsHeaders.cpp
)
endif()
# ============================================================
# Integration Tests for Single Bus System
# ============================================================
add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_VendorVectorRegistry.cpp
)
# CAN
add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_CanWithoutSync.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_ThreeCanController.cpp
)
add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_CanControllerThreadSafety.cpp
)
# Ethernet
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_ThreeEthController.cpp
)
add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_EthWithoutSync.cpp
)
# LIN
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_Lin.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_LinDynamicResponse.cpp
)
# Pub/Sub
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_PubHistory.cpp
)
# RPC
add_silkit_test_to_executable(SilKitInternalIntegrationTests
SOURCES ITest_Internals_Rpc.cpp ITest_Internals_Rpc.hpp
)
# ============================================================
# Integration Tests for Network Simulator API
# ============================================================
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_NetSimCan.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_NetSimEthernet.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_NetSimLin.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_NetSimFlexRay.cpp
)
# ============================================================
# Integration Tests based on Demo Applications
# ============================================================
# CAN
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_CanDemo.cpp
)
# Ethernet
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_EthernetDemo.cpp
)
# LIN
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_LinDemo.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_Orchestration.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_MessageAggregation.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_RequestRemoteParticipantConnect.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_MultiSim.cpp
)
add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_Config.cpp
)