Skip to content

Commit

Permalink
Add RTTY 7N1 sample and ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
darksidelemm committed Jul 16, 2020
1 parent 36707e1 commit d2f85cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ enable_testing()
)
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
COMMAND sh -c "cd ${CMAKE_CURRENT_BINARY_DIR}/src;
sox ${CMAKE_CURRENT_SOURCE_DIR}/samples/rtty_7n2.wav -r 48000 -t raw - |
Expand Down
Binary file added samples/rtty_7n1.wav
Binary file not shown.

0 comments on commit d2f85cb

Please sign in to comment.