native-test: the engine and C API tests on GoogleTest

engine_test.cpp's five calls are now four GoogleTest tests, each with a
dmodemd of its own, and c_api_test.c is c_api_test.cpp, seven tests
(its header still compiled as C, c_api_header.c). ctest registers each
test on its own (gtest_discover_tests). GoogleTest is the system's
(libgtest-dev, added to the native job) or else fetched, v1.14.0 as
D-Modem-RE has it. The USB line tests stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
This commit is contained in:
Claude committed 2026-10-30 14:32:16 +00:00
1 parent bd3fa40dfd
commit 903e861dcf
7 files changed
+521 -359

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ jobs:
- name: Packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends cmake ninja-build g++ libssl-dev
sudo apt-get install -y --no-install-recommends cmake ninja-build g++ libssl-dev libgtest-dev
- name: Build
run: |