commit db420540ad48bc0303ed2be999d0e5d0858df9f8
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Jun 23 11:46:40 2016 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Jun 23 11:55:41 2016 +0200
[tests] Improve chktest.sh
Simplify the subshell, and remove the temporal files created.
diff --git a/tests/chktest.sh b/tests/chktest.sh
index 8737db6..e7294d1 100755
--- a/tests/chktest.sh
+++ b/tests/chktest.sh
@@ -1,13 +1,11 @@
#!/bin/sh
-trap 'tabs -8' 0 1 2 3 15
+trap 'tabs -8;rm -f a.out' 0 1 2 3 15
tabs 40
ulimit -c 0
for i in $@
do
printf "%s\t" $i
- (set -e
- scc -m qbe "$i" && ./a.out
- ) 2>/dev/null && echo [OK] || echo [FAILED]
+ (scc -m qbe "$i" && ./a.out) 2>/dev/null && echo [OK] || echo [FAILED]
done