[hackers] [scc] [test] Use $_AT_ instead of using current directory || Roberto E. Vargas Caballero
commit 951fc8bd3252dfbde5fd682f5b373746400980fa
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jun 21 13:01:44 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Jun 21 13:01:44 2016 +0200
[test] Use $_AT_ 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.
diff --git a/tests/chktest.sh b/tests/chktest.sh
index a8a41ad..8737db6 100755
--- a/tests/chktest.sh
+++ b/tests/chktest.sh
_AT_@ -4,10 +4,10 @@ trap 'tabs -8' 0 1 2 3 15
tabs 40
ulimit -c 0
-for i in *.c
+for i in $_AT_
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
Received on Tue Jun 21 2016 - 13:08:59 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 21 2016 - 13:12:15 CEST