Make more RGBLINK tests use at-files

Less special handling = good

Possibly this can be done to more tests, but this is what I found.
This commit is contained in:
ISSOtm
2026-09-17 10:25:47 -04:00
committed by Rangi
parent 960f82126f
commit 6f69867d04
14 changed files with 29 additions and 44 deletions
+1
View File
@@ -0,0 +1 @@
-Bno-collapse
+17
View File
@@ -0,0 +1,17 @@
error: assert failure
at rept-trace.asm::REPT~4::REPT~3::REPT~2::REPT~1::m(10)
<- rept-trace.asm::REPT~4::REPT~3::REPT~2::REPT~1::REPT~1(15)
<- rept-trace.asm::REPT~4::REPT~3::REPT~2::REPT~1(14)
<- rept-trace.asm::REPT~4::REPT~3::REPT~2(13)
<- rept-trace.asm::REPT~4::REPT~3(6)
<- rept-trace.asm::REPT~4(4)
<- rept-trace.asm(2)
error: assert failure
at rept-trace.asm::REPT~4::REPT~3::REPT~2::REPT~1::m(10)
<- rept-trace.asm::REPT~4::REPT~3::REPT~2::REPT~1::REPT~2(15)
<- rept-trace.asm::REPT~4::REPT~3::REPT~2::REPT~1(14)
<- rept-trace.asm::REPT~4::REPT~3::REPT~2(13)
<- rept-trace.asm::REPT~4::REPT~3(6)
<- rept-trace.asm::REPT~4(4)
<- rept-trace.asm(2)
Linking failed with 2 errors
-17
View File
@@ -1,17 +0,0 @@
error: assert failure
at rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::m(10)
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::REPT~1(15)
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1(14)
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2(13)
<- rept-trace/a.asm::REPT~4::REPT~3(6)
<- rept-trace/a.asm::REPT~4(4)
<- rept-trace/a.asm(2)
error: assert failure
at rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::m(10)
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::REPT~2(15)
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1(14)
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2(13)
<- rept-trace/a.asm::REPT~4::REPT~3(6)
<- rept-trace/a.asm::REPT~4(4)
<- rept-trace/a.asm(2)
Linking failed with 2 errors
+2
View File
@@ -0,0 +1,2 @@
SECTION "test", ROM0
db 1, 2, 3
+1
View File
@@ -0,0 +1 @@
-S r0mx=4
+2
View File
@@ -0,0 +1,2 @@
FATAL: Unknown region name "r0mx" in spec for option '-S'
Linking aborted with 1 error
+1 -24
View File
@@ -312,14 +312,6 @@ continueTest
tryCmp "$test"/out.gb "$gbtemp"
evaluateTest
test="rept-trace"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
rgblinkQuiet -Bno-collapse -o "$gbtemp" "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
evaluateTest
test="same-consts"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
@@ -333,6 +325,7 @@ test="scramble-invalid"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
# This `-S` argument contains spaces, so cannot be specified in a .flags file.
rgblinkQuiet -o "$gbtemp" -S "romx := 4" "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
evaluateTest
@@ -523,22 +516,6 @@ rgblinkQuiet "$otemp" "$gbtemp" "$gbtemp2" "$outtemp" "$outtemp2" 2>"$outtemp3"
tryDiff "$test"/out.err "$outtemp3"
evaluateTest
test="truncation/level1"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
rgblinkQuiet -Wtruncation=1 -o "$gbtemp" "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
evaluateTest
test="truncation/level2"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
continueTest
rgblinkQuiet -Wtruncation=2 -o "$gbtemp" "$otemp" 2>"$outtemp"
tryDiff "$test"/out.err "$outtemp"
evaluateTest
if [[ "$failed" -eq 0 ]]; then
echo "${bold}${green}All ${tests} tests passed!${rescolors}${resbold}"
else
+1
View File
@@ -0,0 +1 @@
-Wtruncation=1
@@ -1,2 +1,2 @@
warning: Value $fffe8000 (may be negative?) is not 16-bit [-Wtruncation]
at truncation/level1/a.asm(3)
at truncation1.asm(3)
+1
View File
@@ -0,0 +1 @@
-Wtruncation=2
@@ -1,4 +1,4 @@
warning: Value $fffe8000 (may be negative?) is not 16-bit [-Wtruncation]
at truncation/level2/a.asm(3)
at truncation2.asm(3)
warning: Value $ffff4000 (may be negative?) is not 16-bit [-Wtruncation]
at truncation/level2/a.asm(2)
at truncation2.asm(2)