From 577b2b3cf2640377c3a4e2fb791c7bb29fefcb41 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sun, 14 May 2023 23:27:45 +0100 Subject: [PATCH] Automated test case for EAS SAME. --- test/CMakeLists.txt | 8 ++++++++ test/scripts/check-modemeas | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 test/scripts/check-modemeas diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a95cbaf..91e06a2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,6 +26,7 @@ set(TEST_CHECK-MODEM2400-a_FILE "check-modem2400-a") set(TEST_CHECK-MODEM2400-b_FILE "check-modem2400-b") set(TEST_CHECK-MODEM2400-g_FILE "check-modem2400-g") set(TEST_CHECK-MODEM4800_FILE "check-modem4800") +set(TEST_CHECK-MODEMEAS_FILE "check-modemeas") # generate the scripts that run the tests @@ -101,6 +102,12 @@ configure_file( @ONLY ) +configure_file( + "${CUSTOM_TEST_SCRIPTS_DIR}/${TEST_CHECK-MODEMEAS_FILE}" + "${CUSTOM_TEST_BINARY_DIR}/${TEST_CHECK-MODEMEAS_FILE}${CUSTOM_SCRIPT_SUFFIX}" + @ONLY + ) + # global includes # not ideal but not so slow @@ -498,6 +505,7 @@ add_test(check-modem2400-a "${CUSTOM_TEST_BINARY_DIR}/${TEST_CHECK-MODEM2400-a_F add_test(check-modem2400-b "${CUSTOM_TEST_BINARY_DIR}/${TEST_CHECK-MODEM2400-b_FILE}${CUSTOM_SCRIPT_SUFFIX}") add_test(check-modem2400-g "${CUSTOM_TEST_BINARY_DIR}/${TEST_CHECK-MODEM2400-g_FILE}${CUSTOM_SCRIPT_SUFFIX}") add_test(check-modem4800 "${CUSTOM_TEST_BINARY_DIR}/${TEST_CHECK-MODEM4800_FILE}${CUSTOM_SCRIPT_SUFFIX}") +add_test(check-modemeas "${CUSTOM_TEST_BINARY_DIR}/${TEST_CHECK-MODEMEAS_FILE}${CUSTOM_SCRIPT_SUFFIX}") diff --git a/test/scripts/check-modemeas b/test/scripts/check-modemeas new file mode 100644 index 0000000..c2a8853 --- /dev/null +++ b/test/scripts/check-modemeas @@ -0,0 +1,4 @@ +@CUSTOM_SHELL_SHABANG@ + +@GEN_PACKETS_BIN@ -B EAS -o testeas.wav +@ATEST_BIN@ -B EAS -L 6 -G 6 testeas.wav