mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-27 05:22:07 +00:00
Automate and improve rgblink test
Check all sections when testing BANK(). Add scripts to verify the tests and update the reference if needed. Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
12
test/link/test.sh
Normal file
12
test/link/test.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
otemp=$(mktemp)
|
||||
gbtemp=$(mktemp)
|
||||
outtemp=$(mktemp)
|
||||
|
||||
RGBASM=../../rgbasm
|
||||
RGBLINK=../../rgblink
|
||||
|
||||
$RGBASM -o $otemp bank-numbers.asm
|
||||
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
||||
diff bank-numbers.out $outtemp
|
||||
head -c 20 $gbtemp > $otemp 2>&1
|
||||
diff bank-numbers.out.bin $otemp
|
||||
Reference in New Issue
Block a user