tools/visreg/run.sh re-renders every widget example the same way the pythondoc sweep did (Xvfb, import -window root, crop to window size), diffs each shot against its golden with ImageMagick RMSE (normalized, 0.5% threshold), and writes out/report.md + report.json with per-widget PASS/FAIL and diff percentages. Goldens vendored from the pythondoc sweep shots. Full run on a clean tree: 547/547 PASS, max diff 0.0%.
11 lines
485 B
Bash
Executable File
11 lines
485 B
Bash
Executable File
#!/bin/sh
|
|
# Visual regression harness: re-render all 547 widget examples under Xvfb,
|
|
# diff each screenshot against its golden with ImageMagick RMSE, write a
|
|
# per-widget PASS/FAIL report. One command:
|
|
# tools/visreg/run.sh [--diff-only] [--threshold PCT] [--workers N] [--update-goldens]
|
|
# Report lands in tools/visreg/out/report.md (and report.json).
|
|
# Exit code 0 = all pass, 1 = failures (or bad usage).
|
|
set -e
|
|
cd "$(dirname "$0")/../.."
|
|
exec python3 tools/visreg/visreg.py "$@"
|