Add RTTY 7N1 sample and ctest

pull/21/head v0.1.15
Mark Jessop 2020-07-16 18:11:46 +09:30
rodzic 36707e11a9
commit d2f85cb490
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -59,6 +59,13 @@ enable_testing()
) )
set_tests_properties(test_horus_binary PROPERTIES PASS_REGULAR_EXPRESSION "1C9A9545") set_tests_properties(test_horus_binary PROPERTIES PASS_REGULAR_EXPRESSION "1C9A9545")
add_test(NAME test_horus_rtty_7n1
COMMAND sh -c "cd ${CMAKE_CURRENT_BINARY_DIR}/src;
sox ${CMAKE_CURRENT_SOURCE_DIR}/samples/rtty_7n1.wav -r 48000 -t raw - |
./horus_demod -c -m rtty7n1 - - | grep OK | wc -l"
)
set_tests_properties(test_horus_rtty_7n1 PROPERTIES PASS_REGULAR_EXPRESSION "3")
add_test(NAME test_horus_rtty_7n2 add_test(NAME test_horus_rtty_7n2
COMMAND sh -c "cd ${CMAKE_CURRENT_BINARY_DIR}/src; COMMAND sh -c "cd ${CMAKE_CURRENT_BINARY_DIR}/src;
sox ${CMAKE_CURRENT_SOURCE_DIR}/samples/rtty_7n2.wav -r 48000 -t raw - | sox ${CMAKE_CURRENT_SOURCE_DIR}/samples/rtty_7n2.wav -r 48000 -t raw - |

Plik binarny nie jest wyświetlany.