scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 951fc8bd3252dfbde5fd682f5b373746400980fa
parent c8d38c382b122f8f47b93ab7ed8ef95f971b8787
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 21 Jun 2016 13:01:44 +0200

[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.

Diffstat:
tests/chktest.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/chktest.sh b/tests/chktest.sh @@ -4,10 +4,10 @@ trap 'tabs -8' 0 1 2 3 15 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