blob: 9c6f0a2df4c8fe534a4e59f7ab3654fb59f65b98 (
plain)
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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
|
add_executable (test_radio_callsign test_radio_callsign.cpp)
target_link_libraries (test_radio_callsign wsjt_qt Qt5::Test)
add_test (NAME test_radio_callsign COMMAND test_radio_callsign)
add_executable (test_frequency_list
test_frequency_list.cpp
${CMAKE_SOURCE_DIR}/Logger.cpp
)
target_link_libraries (test_frequency_list wsjt_qt Boost::log_setup Qt5::Test)
add_test (NAME test_frequency_list COMMAND test_frequency_list)
add_executable (test_qt_helpers
test_qt_helpers.cpp
${CMAKE_SOURCE_DIR}/qt_helpers.cpp
)
target_include_directories (test_qt_helpers PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries (test_qt_helpers Qt5::Test Qt5::Network Qt5::Widgets)
add_test (NAME test_qt_helpers COMMAND test_qt_helpers)
add_executable (test_configuration_radio test_configuration_radio.cpp)
add_dependencies (test_configuration_radio wsjt_qt_autogen)
target_include_directories (test_configuration_radio PRIVATE
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/wsjt_qt_autogen/include
${CMAKE_BINARY_DIR}/wsjt_qt_autogen/include_$<CONFIG>)
target_link_libraries (test_configuration_radio wsjt_qt wsjt_cxx wsjt_fort_common
Boost::log_setup Qt5::Test)
add_test (NAME test_configuration_radio COMMAND test_configuration_radio)
set_tests_properties (test_configuration_radio PROPERTIES
ENVIRONMENT "QT_QPA_PLATFORM=offscreen"
TIMEOUT 60)
add_executable (test_callsign_validator
test_callsign_validator.cpp
${CMAKE_SOURCE_DIR}/validators/CallsignValidator.cpp
)
target_link_libraries (test_callsign_validator Qt5::Test Qt5::Gui)
add_test (NAME test_callsign_validator COMMAND test_callsign_validator)
add_executable (test_livecq_callsign
test_livecq_callsign.cpp
)
target_link_libraries (test_livecq_callsign wsjt_qt Qt5::Test)
add_test (NAME test_livecq_callsign COMMAND test_livecq_callsign)
add_executable (test_decoded_message_fields test_decoded_message_fields.cpp)
target_link_libraries (test_decoded_message_fields wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_decoded_message_fields COMMAND test_decoded_message_fields)
add_executable (test_decoded_time
test_decoded_time.cpp
${CMAKE_SOURCE_DIR}/Network/DecodedTime.cpp
)
target_link_libraries (test_decoded_time Qt5::Test)
add_test (NAME test_decoded_time COMMAND test_decoded_time)
add_executable (test_displaytext
test_displaytext.cpp
${CMAKE_SOURCE_DIR}/widgets/displaytext.cpp
)
target_link_libraries (test_displaytext wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_displaytext COMMAND test_displaytext)
add_executable (test_fox_operator_actions
test_fox_operator_actions.cpp
)
target_link_libraries (test_fox_operator_actions Qt5::Test)
add_test (NAME test_fox_operator_actions COMMAND test_fox_operator_actions)
add_executable (test_wf_palette
test_wf_palette.cpp
)
target_link_libraries (test_wf_palette wsjt_qt Qt5::Test)
add_test (NAME test_wf_palette COMMAND test_wf_palette)
add_executable (test_decode_highlighting_model
test_decode_highlighting_model.cpp
)
target_link_libraries (test_decode_highlighting_model wsjt_qt Qt5::Test)
add_test (NAME test_decode_highlighting_model COMMAND test_decode_highlighting_model)
add_executable (test_waterfall_scale
test_waterfall_scale.cpp
)
target_link_libraries (test_waterfall_scale Qt5::Test)
add_test (NAME test_waterfall_scale COMMAND test_waterfall_scale)
add_executable (test_http_user_agent
test_http_user_agent.cpp
)
target_link_libraries (test_http_user_agent wsjt_qt Qt5::Test)
add_test (NAME test_http_user_agent COMMAND test_http_user_agent)
add_executable (test_fox_guard_bands
test_fox_guard_bands.cpp
${CMAKE_SOURCE_DIR}/FoxGuardBands.cpp
)
target_link_libraries (test_fox_guard_bands Qt5::Test)
add_test (NAME test_fox_guard_bands COMMAND test_fox_guard_bands)
add_executable (test_highlighting_rules
test_highlighting_rules.cpp
${CMAKE_SOURCE_DIR}/HighlightingRules.cpp
)
target_link_libraries (test_highlighting_rules Qt5::Test)
add_test (NAME test_highlighting_rules COMMAND test_highlighting_rules)
add_executable (test_tx_start_policy
test_tx_start_policy.cpp
)
target_link_libraries (test_tx_start_policy Qt5::Test)
add_test (NAME test_tx_start_policy COMMAND test_tx_start_policy)
add_executable (test_beacon_tx_controller
test_beacon_tx_controller.cpp
${CMAKE_SOURCE_DIR}/BeaconTxController.cpp
)
target_link_libraries (test_beacon_tx_controller Qt5::Test)
add_test (NAME test_beacon_tx_controller COMMAND test_beacon_tx_controller)
add_executable (test_round_robin_selection
test_round_robin_selection.cpp
${CMAKE_SOURCE_DIR}/widgets/RoundRobinSelection.cpp
${CMAKE_SOURCE_DIR}/BeaconTxController.cpp
)
target_link_libraries (test_round_robin_selection Qt5::Test Qt5::Widgets)
add_test (NAME test_round_robin_selection COMMAND test_round_robin_selection)
set_tests_properties (test_round_robin_selection PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
add_executable (test_log_window_deletion
test_log_window_deletion.cpp
${CMAKE_SOURCE_DIR}/Logger.cpp
)
target_link_libraries (test_log_window_deletion wsjt_qt wsjt_cxx wsjt_fort_common
Boost::log_setup Qt5::Test Qt5::Widgets Qt5::Sql)
add_test (NAME test_log_window_deletion COMMAND test_log_window_deletion)
set_tests_properties (test_log_window_deletion PROPERTIES
ENVIRONMENT "QT_QPA_PLATFORM=offscreen"
TIMEOUT 60)
add_executable (test_rig_frequency_change_policy
test_rig_frequency_change_policy.cpp
)
target_link_libraries (test_rig_frequency_change_policy Qt5::Test)
add_test (NAME test_rig_frequency_change_policy COMMAND test_rig_frequency_change_policy)
add_executable (test_wait_feature_policy
test_wait_feature_policy.cpp
)
target_link_libraries (test_wait_feature_policy Qt5::Test)
add_test (NAME test_wait_feature_policy COMMAND test_wait_feature_policy)
add_executable (test_superfox_tx_planner
test_superfox_tx_planner.cpp
${CMAKE_SOURCE_DIR}/SuperFoxTxPlanner.cpp
)
target_link_libraries (test_superfox_tx_planner Qt5::Test)
add_test (NAME test_superfox_tx_planner COMMAND test_superfox_tx_planner)
add_executable (test_auto_respond_selection_latch
test_auto_respond_selection_latch.cpp
${CMAKE_SOURCE_DIR}/AutoRespondSelectionLatch.cpp
)
target_link_libraries (test_auto_respond_selection_latch Qt5::Test)
add_test (NAME test_auto_respond_selection_latch COMMAND test_auto_respond_selection_latch)
add_executable (test_auto_respond_scoring
test_auto_respond_scoring.cpp
)
target_link_libraries (test_auto_respond_scoring Qt5::Test)
add_test (NAME test_auto_respond_scoring COMMAND test_auto_respond_scoring)
add_executable (test_auto_respond_period
test_auto_respond_period.cpp
${CMAKE_SOURCE_DIR}/AutoRespondPeriod.cpp
)
target_link_libraries (test_auto_respond_period wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_auto_respond_period COMMAND test_auto_respond_period)
add_executable (test_emulate_split_transceiver
test_emulate_split_transceiver.cpp
${CMAKE_SOURCE_DIR}/Transceiver/EmulateSplitTransceiver.cpp
${CMAKE_SOURCE_DIR}/Transceiver/Transceiver.cpp
${CMAKE_SOURCE_DIR}/qt_helpers.cpp
)
target_include_directories (test_emulate_split_transceiver PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries (test_emulate_split_transceiver Boost::log Qt5::Test Qt5::Network Qt5::Widgets)
add_test (NAME test_emulate_split_transceiver COMMAND test_emulate_split_transceiver)
add_executable (test_tx_inhibit_transceiver
test_tx_inhibit_transceiver.cpp
${CMAKE_SOURCE_DIR}/Transceiver/TxInhibitTransceiver.cpp
${CMAKE_SOURCE_DIR}/Transceiver/TransceiverBase.cpp
${CMAKE_SOURCE_DIR}/Transceiver/Transceiver.cpp
${CMAKE_SOURCE_DIR}/qt_helpers.cpp
)
target_include_directories (test_tx_inhibit_transceiver PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries (test_tx_inhibit_transceiver Boost::log Qt5::Test Qt5::Network Qt5::Widgets)
add_test (NAME test_tx_inhibit_transceiver COMMAND test_tx_inhibit_transceiver)
add_executable (test_hamlib_mode
test_hamlib_mode.cpp
)
target_link_libraries (test_hamlib_mode wsjt_qt Qt5::Test)
add_test (NAME test_hamlib_mode COMMAND test_hamlib_mode)
add_executable (test_hamlib_vfo_role_state
test_hamlib_vfo_role_state.cpp
)
target_link_libraries (test_hamlib_vfo_role_state Hamlib::Hamlib Qt5::Test)
add_test (NAME test_hamlib_vfo_role_state COMMAND test_hamlib_vfo_role_state)
add_executable (test_active_station_list
test_active_station_list.cpp
${CMAKE_SOURCE_DIR}/ActiveStationList.cpp
)
target_link_libraries (test_active_station_list Qt5::Test)
add_test (NAME test_active_station_list COMMAND test_active_station_list)
add_executable (test_frequency_editors
test_frequency_editors.cpp
${CMAKE_SOURCE_DIR}/Logger.cpp
)
target_link_libraries (test_frequency_editors wsjt_qt Boost::log_setup Qt5::Test Qt5::Widgets)
add_test (NAME test_frequency_editors COMMAND test_frequency_editors)
add_executable (test_frequency_suggestions
test_frequency_suggestions.cpp
${CMAKE_SOURCE_DIR}/Logger.cpp
)
target_link_libraries (test_frequency_suggestions wsjt_qt Boost::log_setup Qt5::Test Qt5::Widgets)
add_test (NAME test_frequency_suggestions COMMAND test_frequency_suggestions)
set_tests_properties (test_frequency_suggestions PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
add_executable (test_decoded_message_reaction
test_decoded_message_reaction.cpp
)
target_link_libraries (test_decoded_message_reaction wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_decoded_message_reaction COMMAND test_decoded_message_reaction)
add_executable (test_decode_output_plan
test_decode_output_plan.cpp
)
target_link_libraries (test_decode_output_plan wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_decode_output_plan COMMAND test_decode_output_plan)
add_executable (test_auto_sequence_reaction
test_auto_sequence_reaction.cpp
)
target_link_libraries (test_auto_sequence_reaction wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_auto_sequence_reaction COMMAND test_auto_sequence_reaction)
add_executable (test_rr73_policy
test_rr73_policy.cpp
${CMAKE_SOURCE_DIR}/Rr73Policy.cpp
)
target_link_libraries (test_rr73_policy Qt5::Test)
add_test (NAME test_rr73_policy COMMAND test_rr73_policy)
add_executable (test_qso_reaction
test_qso_reaction.cpp
)
target_link_libraries (test_qso_reaction wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_qso_reaction COMMAND test_qso_reaction)
add_executable (test_hound_transmission_policy
test_hound_transmission_policy.cpp
${CMAKE_SOURCE_DIR}/HoundTransmissionPolicy.cpp
)
target_link_libraries (test_hound_transmission_policy Qt5::Test)
add_test (NAME test_hound_transmission_policy COMMAND test_hound_transmission_policy)
add_executable (test_qsy_message_parser
test_qsy_message_parser.cpp
${CMAKE_SOURCE_DIR}/widgets/QSYMessageParser.cpp
)
target_link_libraries (test_qsy_message_parser Qt5::Test)
add_test (NAME test_qsy_message_parser COMMAND test_qsy_message_parser)
add_executable (test_spec_op_label
test_spec_op_label.cpp
${CMAKE_SOURCE_DIR}/widgets/SpecOpLabel.cpp
)
target_link_libraries (test_spec_op_label Qt5::Test)
add_test (NAME test_spec_op_label COMMAND test_spec_op_label)
qt5_wrap_ui (test_active_stations_UIS ${CMAKE_SOURCE_DIR}/widgets/activeStations.ui)
add_executable (test_active_stations
test_active_stations.cpp
${CMAKE_SOURCE_DIR}/widgets/activeStations.cpp
${test_active_stations_UIS}
)
target_include_directories (test_active_stations PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries (test_active_stations wsjt_qt Qt5::Test Qt5::Widgets)
add_test (NAME test_active_stations COMMAND test_active_stations)
set_tests_properties (test_active_stations PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
if (WSJT_ENABLE_TSAN)
# These tests exercise Qt GUI classes but do not test the window-system
# integration. Offscreen QPA avoids Arch xcb/DBus startup reports while
# preserving the tests' widget and event-loop behavior.
set_tests_properties (
test_qt_helpers
test_displaytext
test_wf_palette
test_emulate_split_transceiver
test_hamlib_mode
test_frequency_editors
test_decoded_message_reaction
test_decode_output_plan
test_auto_sequence_reaction
test_qso_reaction
PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
endif ()
qt5_wrap_ui (test_configuration_dialog_layout_UIS
${CMAKE_SOURCE_DIR}/Configuration.ui
)
add_executable (test_configuration_dialog_layout
test_configuration_dialog_layout.cpp
${test_configuration_dialog_layout_UIS}
)
target_include_directories (test_configuration_dialog_layout PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries (test_configuration_dialog_layout wsjt_qt Qt5::Test Qt5::Widgets)
add_test (NAME test_configuration_dialog_layout COMMAND test_configuration_dialog_layout)
add_test (NAME test_configuration_dialog_layout_fusion COMMAND test_configuration_dialog_layout)
set_tests_properties (test_configuration_dialog_layout_fusion PROPERTIES
ENVIRONMENT "QT_STYLE_OVERRIDE=Fusion"
)
add_test (NAME test_configuration_dialog_layout_scaled COMMAND test_configuration_dialog_layout)
set_tests_properties (test_configuration_dialog_layout_scaled PROPERTIES
ENVIRONMENT "QT_ENABLE_HIGHDPI_SCALING=1;QT_SCALE_FACTOR=1.5"
)
add_executable (test_operating_frequency
test_operating_frequency.cpp
${CMAKE_SOURCE_DIR}/OperatingFrequency.cpp
)
target_include_directories (test_operating_frequency PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries (test_operating_frequency Qt5::Test)
add_test (NAME test_operating_frequency COMMAND test_operating_frequency)
add_executable (test_mainwindow_compact_controls
test_mainwindow_compact_controls.cpp
${CMAKE_SOURCE_DIR}/widgets/TxDriveSlider.cpp
)
target_include_directories (test_mainwindow_compact_controls PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries (test_mainwindow_compact_controls Qt5::Test Qt5::Widgets)
add_test (NAME test_mainwindow_compact_controls COMMAND test_mainwindow_compact_controls)
add_test (NAME test_mainwindow_compact_controls_scaled COMMAND test_mainwindow_compact_controls)
set_tests_properties (test_mainwindow_compact_controls_scaled PROPERTIES
ENVIRONMENT "QT_ENABLE_HIGHDPI_SCALING=1;QT_SCALE_FACTOR=1.5"
)
|