mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Add more tests for things that only the external tests had covered
This commit is contained in:
2
test/link/export-all/a.asm
Normal file
2
test/link/export-all/a.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
section "a", rom0[2]
|
||||
OneColon:
|
||||
2
test/link/export-all/b.asm
Normal file
2
test/link/export-all/b.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
section "b", rom0[0]
|
||||
dw OneColon
|
||||
0
test/link/export-all/out.err
Normal file
0
test/link/export-all/out.err
Normal file
BIN
test/link/export-all/ref.out.bin
Normal file
BIN
test/link/export-all/ref.out.bin
Normal file
Binary file not shown.
2
test/link/export-all/ref.out.sym
Normal file
2
test/link/export-all/ref.out.sym
Normal file
@@ -0,0 +1,2 @@
|
||||
; File generated by rgblink
|
||||
00:0002 OneColon
|
||||
@@ -162,6 +162,17 @@ tryDiff "$test"/ref.out.sym "$outtemp2"
|
||||
tryCmpRom "$test"/ref.out.bin
|
||||
evaluateTest
|
||||
|
||||
test="export-all"
|
||||
startTest
|
||||
"$RGBASM" -E -o "$otemp" "$test"/a.asm
|
||||
"$RGBASM" -o "$gbtemp2" "$test"/b.asm
|
||||
continueTest
|
||||
rgblinkQuiet -o "$gbtemp" -n "$outtemp2" "$otemp" "$gbtemp2" 2>"$outtemp"
|
||||
tryDiff "$test"/out.err "$outtemp"
|
||||
tryDiff "$test"/ref.out.sym "$outtemp2"
|
||||
tryCmpRom "$test"/ref.out.bin
|
||||
evaluateTest
|
||||
|
||||
for test in fragment-align/*; do
|
||||
startTest
|
||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||
|
||||
Reference in New Issue
Block a user