Add script to update references of rgbasm tests

Update test references.

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-03 21:35:40 +01:00
parent e16af28676
commit f14b061ea7
3 changed files with 11 additions and 1 deletions

View File

@@ -4,3 +4,5 @@ for i in *.asm; do
../../rgbasm $i >$fname 2>&1
diff -u $fname ${i%.asm}.out
done
exit 0

View File

@@ -1,3 +1,3 @@
ERROR: undefined-dot.asm(3):
'.' not defined
../../rgbasm: Assembly aborted in pass 2 (1 errors)!
rgbasm:error:Assembly aborted in pass 2 (1 errors)!

8
test/asm/update-refs.sh Normal file
View File

@@ -0,0 +1,8 @@
fname=$(mktemp)
for i in *.asm; do
../../rgbasm $i >$fname 2>&1
mv -f $fname ${i%.asm}.out
done
exit 0