Add unit tests for the TetraIF modules in a unit-test folder
New TetraIF/unit-test/ directory with one QtTest executable per TetraIF release-scope module, wired into ctest and the DEB pipeline: - coprtcnv_unit_test: central and radio telegram header fields, payload access, length checks, fragmentation/reassembly roundtrip, telegram-id string helpers - logview_unit_test: IntegerCalculator arithmetic, operator priority, parentheses, error codes and variables (compiles the LogView class source directly; the class otherwise lives in the LogView executable) - prtcnv_unit_test: PrtCnvMember state and fragmented-telegram handling (compiles the class source directly because PrtCnvLib is built with hidden visibility) TetraIF/CMakeLists.txt adds the unit-test subdirectory and new_docker_build.sh builds and ctest-runs the three new targets.
This commit is contained in:
1 parent
2d1b12b5d8
commit
cebc456bc1
6 files changed
+495
No files matched your search
@@ -232,6 +232,10 @@ RELEASE_BUILD_TARGETS=(
|
||||
ngltools_qt_smoke
|
||||
lts_coord_trans_unit_test
|
||||
test_nglpdfwidget
|
||||
# TetraIF unit tests (TetraIF/unit-test)
|
||||
coprtcnv_unit_test
|
||||
logview_unit_test
|
||||
prtcnv_unit_test
|
||||
)
|
||||
|
||||
APT_PACKAGES_STRING="$(join_by ' ' "${APT_PACKAGES[@]}")"
|
||||
|
||||
Reference in new issue
Block a user