mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-14 13:51:42 +00:00
Add some basic regression tests.
Most cause crashes. Only macro-@ works correctly; the others need to be fixed.
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
SECTION "sec", ROM0
|
||||||
|
db BANK(noexist)
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
ERROR: bank-noexist.asm(2) :
|
||||||
|
'noexist' not defined
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
SECTION "sec", ROMX[$/0]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
ERROR: foo.asm(1) :
|
||||||
|
syntax error
|
||||||
|
rgbasm: Assembly aborted in pass 1 (1 errors)!
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
foo @bar
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
ERROR: macro-@.asm(1) -> @(-1) :
|
||||||
|
Macro '@' not defined
|
||||||
Binary file not shown.
@@ -0,0 +1,7 @@
|
|||||||
|
fname=$(mktemp)
|
||||||
|
|
||||||
|
for i in *.asm; do
|
||||||
|
../../rgbasm $i >$fname 2>&1
|
||||||
|
# diff -u $fname $(basename $i .asm).out
|
||||||
|
diff -u $fname ${i%.asm}.out
|
||||||
|
done
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
SECTION "sec", ROM0
|
||||||
|
foo:
|
||||||
|
add sp, .
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
ERROR: undefined-dot.asm(3) :
|
||||||
|
'.' not defined
|
||||||
Reference in New Issue
Block a user