ref: 9b3345eaca6c2fe564577e761d611de23760a1cd
parent: 2f5e19af99a0de4f591acc246cde5869815a4719
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jun 21 09:01:44 EDT 2016
[test] Use $@ instead of using current directory This form of the command is more general because we can run the tests that are needed, and no all the tests in the directory.
--- a/tests/chktest.sh
+++ b/tests/chktest.sh
@@ -4,10 +4,10 @@
tabs 40
ulimit -c 0
-for i in *.c
+for i in $@
do
printf "%s\t" $i
(set -e
- scc -m qbe $i && ./a.out
+ scc -m qbe "$i" && ./a.out
) 2>/dev/null && echo [OK] || echo [FAILED]
done