ref: f2c207cb4460634d7c2145d6f62406ba8c21a10a
dir: /test/link/test.sh/
otemp=$(mktemp) gbtemp=$(mktemp) gbtemp2=$(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 $RGBASM -o $otemp wramx-dmg-mode.asm $RGBLINK -o $gbtemp $otemp > $outtemp 2>&1 diff wramx-dmg-mode-no-w.out $outtemp $RGBLINK -w -o $gbtemp $otemp > $outtemp 2>&1 diff wramx-dmg-mode-w.out $outtemp $RGBASM -o $otemp vram-fixed-dmg-mode.asm $RGBLINK -o $gbtemp $otemp > $outtemp 2>&1 diff vram-fixed-dmg-mode-no-w.out $outtemp $RGBLINK -w -o $gbtemp $otemp > $outtemp 2>&1 diff vram-fixed-dmg-mode-w.out $outtemp $RGBASM -o $otemp vram-floating-dmg-mode.asm $RGBLINK -o $gbtemp $otemp > $outtemp 2>&1 diff vram-floating-dmg-mode-no-w.out $outtemp $RGBLINK -w -o $gbtemp $otemp > $outtemp 2>&1 diff vram-floating-dmg-mode-w.out $outtemp $RGBASM -o $otemp romx-tiny.asm $RGBLINK -o $gbtemp $otemp > $outtemp 2>&1 diff romx-tiny-no-t.out $outtemp $RGBLINK -t -o $gbtemp $otemp > $outtemp 2>&1 diff romx-tiny-t.out $outtemp $RGBASM -o $otemp high-low-a.asm $RGBLINK -o $gbtemp $otemp $RGBASM -o $otemp high-low-b.asm $RGBLINK -o $gbtemp2 $otemp diff $gbtemp $gbtemp2 exit 0