test: Add HTTP/WS server test coverage

Add black-box integration tests for the HTTP/WS server and rtl_tcp,
plus a gcov coverage helper and supporting CI wiring.

Refs: #3541

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew Berry
2026-06-09 07:28:34 -04:00
committed by Christian W. Zuckschwerdt
parent 3ca23d5a8a
commit 7a04dbdec9
9 changed files with 755 additions and 0 deletions

View File

@@ -78,6 +78,28 @@ jobs:
run: |
./tests/symbolizer.py check
coverage_check_job:
runs-on: ubuntu-latest
name: Run tests with code coverage
steps:
- uses: actions/checkout@v5
- name: Setup
run: |
sudo apt-get update -q -y
sudo apt-get install -q -y --no-install-recommends cmake gcovr curl python3
- name: Build with coverage and run tests
# Builds with -DENABLE_COVERAGE=ON, runs ctest (incl. the HTTP server
# integration/dataflow/ws tests), and writes an HTML report. Exits
# non-zero if any test fails.
run: ./tests/coverage.sh "$GITHUB_WORKSPACE/build-coverage"
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: build-coverage/coverage-report
if-no-files-found: warn
analyzer_check_job:
# https://github.com/actions/virtual-environments
# - Ubuntu 24.04 ubuntu-24.04