ref: f14b061ea7b6eb6199b1d165e06d896ff8adb99f
parent: e16af28676d553f84939b63589c8dc5d29fe4e21
author: AntonioND <[email protected]>
date: Mon Apr 3 17:35:40 EDT 2017
Add script to update references of rgbasm tests Update test references. Signed-off-by: AntonioND <[email protected]>
--- a/test/asm/test.sh
+++ b/test/asm/test.sh
@@ -4,3 +4,5 @@
../../rgbasm $i >$fname 2>&1
diff -u $fname ${i%.asm}.out
done
+
+exit 0
--- a/test/asm/undefined-dot.out
+++ b/test/asm/undefined-dot.out
@@ -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)!
--- /dev/null
+++ b/test/asm/update-refs.sh
@@ -1,0 +1,8 @@
+fname=$(mktemp)
+
+for i in *.asm; do
+ ../../rgbasm $i >$fname 2>&1
+ mv -f $fname ${i%.asm}.out
+done
+
+exit 0