From dff0483bca7cd46d1fc3d1666aa31bce80dd2cc7 Mon Sep 17 00:00:00 2001 From: GloamXun Date: Tue, 27 Oct 2026 03:58:44 +0800 Subject: [PATCH] Add a verification script and record live smoke evidence scripts/verify-route-d.sh runs cargo fmt --check and the full offline workspace test suite from the repository root. The status document points at the script and records a live check of the debug server: POST /preview answered 200 with X-Preview-Engine: route-d, one page and no warnings, and POST /api/route-d/pdf answered 200 with a PDF body. --- docs/ROUTE_D_STATUS.md | 8 ++++++++ scripts/verify-route-d.sh | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 scripts/verify-route-d.sh diff --git a/docs/ROUTE_D_STATUS.md b/docs/ROUTE_D_STATUS.md index 9b2a424..233d4e0 100755 --- a/docs/ROUTE_D_STATUS.md +++ b/docs/ROUTE_D_STATUS.md @@ -14,6 +14,8 @@ cargo fmt --all -- --check cargo test --workspace --offline ``` +or run `./scripts/verify-route-d.sh`, which executes both. + The workspace currently passes **1055 tests**: | Suite | Tests | @@ -26,6 +28,12 @@ The workspace currently passes **1055 tests**: | route-D integration | 10 | | engine/core unit | 4 + 1 | +Latest live check (2026-10-27): the debug server served `examples/hello.tex` +from `target/debug/texrra serve`; `POST /preview` answered 200 with +`X-Preview-Engine: route-d`, one page and an empty warning list, and +`POST /api/route-d/pdf` answered 200 with `application/pdf` and a `%PDF-` +header. + The oracle suite compiles fixtures with `pdflatex`, extracts word boxes with `pdftotext -bbox`/`pdftoppm`, and compares route-D page geometry; it skips (saying so) when the TeX tools are absent. The server suite includes diff --git a/scripts/verify-route-d.sh b/scripts/verify-route-d.sh new file mode 100755 index 0000000..d39cf52 --- /dev/null +++ b/scripts/verify-route-d.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# Verify the route-D workspace: formatting and the full offline test suite. +set -euo pipefail + +root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "$root" + +echo "== cargo fmt --all -- --check" +cargo fmt --all -- --check + +echo "== cargo test --workspace --offline" +cargo test --workspace --offline