Documentation
¶
Overview ¶
Command recdiff records and compares what two checkouts produce, case by case: the zero-difference differential for changes that must not move observable behaviour (docs/testing.md, "Output differential").
recdiff ingest <dir> <suite> <srcdir> # every file under srcdir, key = relative path recdiff c14n <dir> <file>... # parse each file, record its Canonical XML (with comments) recdiff compare [-allow rules] [-show n] <dirA> <dirB>
A recording is the directory GOXSLT_RECORD_DIR names while the suites run (internal/record): <suite>.tsv manifests of key, sha256 and length, and the bytes under obj/. tests/record.sh makes a whole one.
compare reports every case whose bytes differ. A difference is "explained" when it vanishes once the allow rules have deleted their matches from both sides; each rule line is
<suite glob> <key glob> <regexp to delete>
where "*" also matches across "/", so "xslt* * N\d+x\d+" says generate-id strings may differ anywhere in the XSLT suites, and "xsd11 set/group/case (?s).*" accepts one case outright. A case recorded on one side only is compared as the text "<missing>". The exit status is 1 when anything is left unexplained.