The Windows build of zixl gives identical output #15
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
Reference
jeff/zixl#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Part of #1
What to build
Proof that zixl on Windows is the same program as zixl on Linux. The VM tests cross-compile
zixl.exe, run it under Wine on every fixture with the sameSOURCE_DATE_EPOCHand arguments, and require its installer packages to be byte-identical to the Linux build's. This covers Windows path handling,\separators, line endings and the command line's file source on Windows in one comparison.Acceptance criteria
cmpfinds the Windows build's installer package identical to the Linux build's.zixl -Eoutput and for external cabinets.Done in
9ada014; CI run 9 is green.tests/e2e/windows.sh, run by the flake'swindowscheck, cross-compileszixl.exein Nix and runs it under Wine. For every fixture on x86, x64 and arm64, and every preprocessor fixture with-E, it requires the bytes the Linux build writes. A difference is reported with the fixture andcmp's first differing byte.tests/e2e/windows/backslashes.wxs, writes its source paths and an include with backslashes. wixl can't read that form at all.$(sys.SOURCEFILEPATH), which is an absolute path in each platform's own form (/home/…againstZ:\home\…), is left out of the-Ecomparison.SOURCE_DATE_EPOCH, everything matched.