Port all currently-enabled unit tests to Catch2: replace the custom
main() / printf error-reporting boilerplate with TEST_CASE and REQUIRE
macros. Add catch2_dep to unit_test_opts now that it is actually used.
Tests ported: M17_callsign, M17_golay, M17_rrc, M17_viterbi, cps,
convert_minmea_coord, linux_inputStream. The M17 demodulator test is
still in its pre-Catch2 form and remains disabled, as it needs
significant rework (not just porting to Catch2).
Co-authored-by: GitHub Copilot <copilot@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
Rename cps.c and convert_minmea_coord.c to .cpp so they can be built
with the C++ compiler required for Catch2. File content is unchanged at
this point - the Catch2 port follows in the next commit. Also update the
source references in meson.build and the file list in clang_format.sh.
Co-authored-by: GitHub Copilot <copilot@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>