upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/progress_dashboard.md
diff options
context:
space:
mode:
authorTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-24 21:52:00 +0100
committerTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-24 21:52:00 +0100
commita7eb87825142df6fba9feafd1c27fcd9528e23c9 (patch)
tree4eb97daf1e902c4d2c4f6f3873e3fa0b2a73e380 /docs/progress_dashboard.md
parenta83f0c3e14842adbc565b30f1b3fb9eccd7b44ec (diff)
docs: write each CTest report to a new file (DOC-DASH-CTEST-JUNIT)
With a fixed path, an aborted CTest run left the previous report in place and the dashboard recorded it again.
Diffstat (limited to 'docs/progress_dashboard.md')
-rw-r--r--docs/progress_dashboard.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/progress_dashboard.md b/docs/progress_dashboard.md
index 963b8b071..d6ffebbbe 100644
--- a/docs/progress_dashboard.md
+++ b/docs/progress_dashboard.md
@@ -15,12 +15,17 @@ The page is one self-contained HTML file: no network, no packages, it opens from
15 15
16Use a CTest JUnit report when the run includes tests configured with `SKIP_RETURN_CODE`. CTest can log those 16Use a CTest JUnit report when the run includes tests configured with `SKIP_RETURN_CODE`. CTest can log those
17skips as `Test Passed.` in `LastTest.log`. `--ctest-junit` replaces the local log with the report, which preserves 17skips as `Test Passed.` in `LastTest.log`. `--ctest-junit` replaces the local log with the report, which preserves
18the skipped status. Use `--junit` to add independent runs. 18the skipped status. Use `--junit` to add independent runs. A new file name for each run keeps an aborted CTest run
19from reusing an older report.
19 20
20```powershell 21```powershell
21$report = Join-Path $env:TEMP 'leonida-ctest.xml' 22$report = Join-Path $env:TEMP ("leonida-ctest-{0}.xml" -f [guid]::NewGuid())
22ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure --output-junit $report 23ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure --output-junit $report
23python -I tools/progress_dashboard.py --out ..\leonida_progress --ctest-junit $report 24if (Test-Path -LiteralPath $report -PathType Leaf) {
25 python -I tools/progress_dashboard.py --out ..\leonida_progress --ctest-junit $report
26} else {
27 throw "CTest did not produce a JUnit report (exit $LASTEXITCODE)."
28}
24``` 29```
25 30
26## Sources 31## Sources