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:
Sylvie
2024-03-13 15:34:27 -04:00
committed by GitHub
parent a1bbb3b3f7
commit 658286c8e4
7 changed files with 17 additions and 10 deletions

View File

@@ -3,3 +3,6 @@ Same:
ds 1 ds 1
Foo: Foo:
ds 2 ds 2
SECTION "a", ROM0
dw Same, Foo ; $c000, $c001

View File

@@ -3,3 +3,6 @@ Same:
ds 2 ds 2
Bar: Bar:
ds 1 ds 1
SECTION "b", ROM0
dw Same, Bar ; $c000, $c002

Binary file not shown.

View File

@@ -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