mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Move a SECTION FRAGMENT test to the test/link/section-fragment folder (#1354)
Add a binary comparison for the same-label SECTION UNION test
This commit is contained in:
@@ -3,3 +3,6 @@ Same:
|
|||||||
ds 1
|
ds 1
|
||||||
Foo:
|
Foo:
|
||||||
ds 2
|
ds 2
|
||||||
|
|
||||||
|
SECTION "a", ROM0
|
||||||
|
dw Same, Foo ; $c000, $c001
|
||||||
|
|||||||
@@ -3,3 +3,6 @@ Same:
|
|||||||
ds 2
|
ds 2
|
||||||
Bar:
|
Bar:
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
|
SECTION "b", ROM0
|
||||||
|
dw Same, Bar ; $c000, $c002
|
||||||
|
|||||||
BIN
test/link/section-union/same-label/ref.out.bin
Normal file
BIN
test/link/section-union/same-label/ref.out.bin
Normal file
Binary file not shown.
@@ -209,6 +209,15 @@ tryDiff "$test"/out.err "$outtemp"
|
|||||||
tryCmpRomSize "$gbtemp" 65536
|
tryCmpRomSize "$gbtemp" 65536
|
||||||
evaluateTest
|
evaluateTest
|
||||||
|
|
||||||
|
test="section-fragment/good"
|
||||||
|
startTest
|
||||||
|
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||||
|
"$RGBASM" -o "$gbtemp2" "$test"/b.asm
|
||||||
|
continueTest
|
||||||
|
rgblinkQuiet -o "$gbtemp" "$otemp" "$gbtemp2"
|
||||||
|
tryCmpRom "$test"/ref.out.bin
|
||||||
|
evaluateTest
|
||||||
|
|
||||||
test="section-fragment/jr-offset"
|
test="section-fragment/jr-offset"
|
||||||
startTest
|
startTest
|
||||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||||
@@ -227,15 +236,6 @@ rgblinkQuiet -o "$gbtemp" -l "$test"/script.link "$otemp" "$gbtemp2"
|
|||||||
tryCmpRom "$test"/ref.out.bin
|
tryCmpRom "$test"/ref.out.bin
|
||||||
evaluateTest
|
evaluateTest
|
||||||
|
|
||||||
test="section-union/fragments"
|
|
||||||
startTest
|
|
||||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
|
||||||
"$RGBASM" -o "$gbtemp2" "$test"/b.asm
|
|
||||||
continueTest
|
|
||||||
rgblinkQuiet -o "$gbtemp" "$otemp" "$gbtemp2"
|
|
||||||
tryCmpRom "$test"/ref.out.bin
|
|
||||||
evaluateTest
|
|
||||||
|
|
||||||
test="section-union/same-export"
|
test="section-union/same-export"
|
||||||
startTest
|
startTest
|
||||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||||
@@ -252,10 +252,11 @@ startTest
|
|||||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||||
"$RGBASM" -o "$gbtemp2" "$test"/b.asm
|
"$RGBASM" -o "$gbtemp2" "$test"/b.asm
|
||||||
continueTest
|
continueTest
|
||||||
rgblinkQuiet "$gbtemp2" "$otemp" 2>"$outtemp"
|
rgblinkQuiet -o "$gbtemp" "$gbtemp2" "$otemp" 2>"$outtemp"
|
||||||
substPath "$otemp" "$test/a.o" "$outtemp"
|
substPath "$otemp" "$test/a.o" "$outtemp"
|
||||||
substPath "$gbtemp2" "$test/b.o" "$outtemp"
|
substPath "$gbtemp2" "$test/b.o" "$outtemp"
|
||||||
tryDiff "$test"/out.err "$outtemp"
|
tryDiff "$test"/out.err "$outtemp"
|
||||||
|
tryCmpRom "$test"/ref.out.bin
|
||||||
evaluateTest
|
evaluateTest
|
||||||
|
|
||||||
for i in section-union/*.asm; do
|
for i in section-union/*.asm; do
|
||||||
|
|||||||
Reference in New Issue
Block a user