commit 951fc8bd3252dfbde5fd682f5b373746400980fa
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Jun 21 13:01:44 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Tue Jun 21 13:01:44 2016 +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.

diff --git a/tests/chktest.sh b/tests/chktest.sh
index a8a41ad..8737db6 100755
--- 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

Reply via email to