From f14b061ea7b6eb6199b1d165e06d896ff8adb99f Mon Sep 17 00:00:00 2001 From: AntonioND Date: Mon, 3 Apr 2017 21:35:40 +0100 Subject: [PATCH] Add script to update references of rgbasm tests Update test references. Signed-off-by: AntonioND --- test/asm/test.sh | 2 ++ test/asm/undefined-dot.out | 2 +- test/asm/update-refs.sh | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/asm/update-refs.sh diff --git a/test/asm/test.sh b/test/asm/test.sh index 89dba563..dbf27496 100644 --- a/test/asm/test.sh +++ b/test/asm/test.sh @@ -4,3 +4,5 @@ for i in *.asm; do ../../rgbasm $i >$fname 2>&1 diff -u $fname ${i%.asm}.out done + +exit 0 diff --git a/test/asm/undefined-dot.out b/test/asm/undefined-dot.out index d59c0fe7..aeb8fd05 100644 --- 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)! diff --git a/test/asm/update-refs.sh b/test/asm/update-refs.sh new file mode 100644 index 00000000..b2f88907 --- /dev/null +++ b/test/asm/update-refs.sh @@ -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