Iter 4c: IR-Snapshot-Tests als Codegen-Regressions-Schutz
Vier Snapshots in crates/ail/tests/snapshots/ (sum, max3, hello, list) sichern den erzeugten LLVM-IR. Test-Helper normalisiert target triple und trailing whitespace, sonst byte-für-byte-Vergleich. Update via UPDATE_SNAPSHOTS=1 cargo test ir_snapshot_. Mismatch erzeugt eine .actual-Datei mit dem aktuellen Output für Diff-Inspektion.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/target
|
||||
*.ll.o
|
||||
/build
|
||||
crates/ail/tests/snapshots/*.actual
|
||||
crates/ail/tests/snapshots/*.ll.actual
|
||||
|
||||
Reference in New Issue
Block a user