add bootstrapping test script

This commit is contained in:
Lobo 2025-12-03 22:58:03 -03:00
parent d49bac83c3
commit c63860654c
2 changed files with 16 additions and 1 deletions

15
bootstrap.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
set -e
echo "======> Building seed Drifloon using uxnmin"
make -sC utils clean
make -sC utils drifloon.rom
echo "======> Building Drifloon using utils/drifloon.rom (seed)"
dune exec -- ./exe/uxnemu.exe utils/drifloon.rom < utils/drifloon.tal > drifloon-ocaml.rom
echo "======> Comparing ROMs (should be identical)"
cmp drifloon-ocaml.rom utils/drifloon.rom
echo "======> Building Drifloon using drifloon-ocaml.rom"
dune exec -- ./exe/uxnemu.exe drifloon-ocaml.rom < utils/drifloon.tal > drifloon-boot.rom
echo "======> Comparing ROMs (should be identical)"
cmp drifloon-ocaml.rom drifloon-boot.rom
echo "======> Done!"