summaryrefslogtreecommitdiffstats
path: root/util/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile11
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