blob: abe6fed17826ed618497f0a1941b1e2eed1b49e4 (
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
|
add_executable (test_tci_stream
test_tci_stream.cpp
)
target_link_libraries (test_tci_stream Qt5::Test)
add_test (NAME test_tci_stream COMMAND test_tci_stream)
add_executable (test_tci_protocol
test_tci_protocol.cpp
)
target_link_libraries (test_tci_protocol Qt5::Test)
add_test (NAME test_tci_protocol COMMAND test_tci_protocol)
add_library (tci_simulator STATIC
TciSimScript.cpp
TciSimScript.hpp
TciSimServer.cpp
TciSimServer.hpp
)
target_include_directories (tci_simulator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (tci_simulator PUBLIC Qt5::Core Qt5::Network Qt5::WebSockets)
add_executable (test_tci_sim_smoke test_tci_sim_smoke.cpp)
target_link_libraries (test_tci_sim_smoke PRIVATE tci_simulator Qt5::Test)
add_test (NAME test_tci_sim_smoke COMMAND test_tci_sim_smoke)
set_tests_properties (test_tci_sim_smoke PROPERTIES TIMEOUT 30)
add_executable (test_tci_transceiver_characterization
test_tci_transceiver_characterization.cpp
)
target_link_libraries (test_tci_transceiver_characterization PRIVATE
tci_simulator wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_tci_transceiver_characterization
COMMAND test_tci_transceiver_characterization)
set_tests_properties (test_tci_transceiver_characterization PROPERTIES
COST 32
TIMEOUT 120)
add_executable (test_transceiver_base_period test_transceiver_base_period.cpp)
target_include_directories (test_transceiver_base_period PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries (test_transceiver_base_period PRIVATE wsjt_qt Qt5::Test)
add_test (NAME test_transceiver_base_period COMMAND test_transceiver_base_period)
add_executable (test_tci_receive_ownership
test_tci_receive_ownership.cpp
${CMAKE_SOURCE_DIR}/FastDecode.cpp)
target_include_directories (test_tci_receive_ownership PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries (test_tci_receive_ownership PRIVATE
tci_simulator wsjt_qt wsjt_fort_common Qt5::Test)
add_test (NAME test_tci_receive_ownership COMMAND test_tci_receive_ownership)
set_tests_properties (test_tci_receive_ownership PROPERTIES
TIMEOUT 120 LABELS "receive-handoff;tci-receive")
if (WSJT_ENABLE_TSAN)
set_tests_properties (test_tci_receive_ownership PROPERTIES
ENVIRONMENT "TSAN_OPTIONS=halt_on_error=1:exitcode=66")
endif ()
|