test: add unit tests and a local Docker test runner

- Unit tests for calculate_page_iv (incl. 8-byte wrap), calculate_file_iv round-trip, and game-key lookup
- Extract exfat_utc_offset_seconds and nt_timestamp_to_system_time as pure helpers and test them (covers the recent exFAT UtcOffset fix)
- scripts/test.sh runs cargo test + a smoke test natively, then repeats for the x86_64-musl target in a clux/muslrust container (no hosted CI needed)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jujuforce
2026-06-28 11:44:35 +02:00
co-authored by Claude Opus 4.8
parent 9c2821ddab
commit d92e4b5ba9
5 changed files with 245 additions and 15 deletions
+1
View File
@@ -0,0 +1 @@
*.sh text eol=lf