Add tests for rgblink options -t and -w

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-03 20:46:18 +01:00
parent 7e3720b627
commit f431b384a2
8 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1 @@
rgblink:error:Unable to place 'r0b' (ROM0 section) anywhere

View File

@@ -0,0 +1 @@
rgblink:error:ROMX sections can't be used with option -t.

8
test/link/romx-tiny.asm Normal file
View File

@@ -0,0 +1,8 @@
SECTION "r0a", ROM0
DS $4000
SECTION "rx", ROMX
DS $4000
SECTION "r0b", ROM0
DS $4000

View File

@@ -10,3 +10,17 @@ $RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
diff bank-numbers.out $outtemp diff bank-numbers.out $outtemp
head -c 20 $gbtemp > $otemp 2>&1 head -c 20 $gbtemp > $otemp 2>&1
diff bank-numbers.out.bin $otemp diff bank-numbers.out.bin $otemp
$RGBASM -o $otemp wramx-contwram.asm
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
diff wramx-contwram-no-w.out $outtemp
$RGBLINK -w -o $gbtemp $otemp > $outtemp 2>&1
diff wramx-contwram-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
exit 0

View File

@@ -7,3 +7,13 @@ RGBLINK=../../rgblink
$RGBASM -o $otemp bank-numbers.asm $RGBASM -o $otemp bank-numbers.asm
$RGBLINK -o $gbtemp $otemp > bank-numbers.out 2>&1 $RGBLINK -o $gbtemp $otemp > bank-numbers.out 2>&1
head -c 20 $gbtemp > bank-numbers.out.bin 2>&1 head -c 20 $gbtemp > bank-numbers.out.bin 2>&1
$RGBASM -o $otemp wramx-contwram.asm
$RGBLINK -o $gbtemp $otemp > wramx-contwram-no-w.out 2>&1
$RGBLINK -w -o $gbtemp $otemp > wramx-contwram-w.out 2>&1
$RGBASM -o $otemp romx-tiny.asm
$RGBLINK -o $gbtemp $otemp > romx-tiny-no-t.out 2>&1
$RGBLINK -t -o $gbtemp $otemp > romx-tiny-t.out 2>&1
exit 0

View File

@@ -0,0 +1 @@
rgblink:error:Unable to place 'w0b' (WRAM0 section) anywhere

View File

@@ -0,0 +1 @@
rgblink:error:WRAMX sections can't be used with option -w.

View File

@@ -0,0 +1,8 @@
SECTION "w0a", WRAM0
DS $1000
SECTION "wx", WRAMX
DS $1000
SECTION "w0b", WRAM0
DS $1000