summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-09-02 17:55:12 +0200
committermakefu <github@syntax-fehler.de>2013-09-02 17:55:12 +0200
commit0f8b705776d2a10e3a0c89ca1f2e773aeb1ec582 (patch)
treeeae1bd94e1e2d40b24f8ce7b6fb604841bd84cab
parent7eb79f6564f498163a670fb3bc503dfcaace0ab5 (diff)
parente199ec06351365d4433b10c613100a2074b26f00 (diff)
Merge branch 'master' of github.com:krebscode/painload
-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