summaryrefslogtreecommitdiffstats
path: root/util/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/util/Makefile b/util/Makefile
index b5ce668a..90f8bfb2 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -1,13 +1,14 @@
usage:;cat Makefile
-test: export PATH := "$(PWD)/bin:$(PATH)"
test:
- @tests="`find t -type f -executable`"; \
+ @export PATH="$(PWD)/bin:$(PATH)"; \
+ 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