Make test scripts return error code

Make them executable.

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-04-10 22:10:10 +01:00
parent 5679c7066b
commit 2b5ad9dc38
4 changed files with 16 additions and 2 deletions

4
test/asm/test.sh Normal file → Executable file
View File

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