diff options
author | tv <tv@nomic.retiolum> | 2013-09-02 17:31:50 +0200 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-09-02 17:31:50 +0200 |
commit | 2c1456ddbe8812913eef1a19b7fe0188076b8b6d (patch) | |
tree | 49faf81019f6a9b1f3ff2cbfb84dd1403df1b3b4 | |
parent | bc0a3b70466b0de0f4549e3cd2974ca3eda2ccf2 (diff) |
util Makefile test: sanitize variable names
-rw-r--r-- | util/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/util/Makefile b/util/Makefile index b5ce668a..ffc400bd 100644 --- a/util/Makefile +++ b/util/Makefile @@ -4,10 +4,11 @@ test: export PATH := "$(PWD)/bin:$(PATH)" test: @tests="`find t -type f -executable`"; \ i=1; \ - echo $$i..`echo "$$tests" | wc -l`; \ - for t in $$tests; do \ - ./$$t; \ - case $$? in 0) ok=ok;; *) ok='not ok';; esac; \ - echo $$ok $$i - $$t; \ + n=`echo "$$tests" | wc -l`; \ + echo $$i..$$n; \ + for exe in $$tests; do \ + ./$$exe; \ + case $$? in 0) result=ok;; *) result='not ok';; esac; \ + echo $$result $$i - $$exe; \ (( i++ )); \ done |