summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-02-27 01:25:49 +0100
committertv <tv@nomic.retiolum>2014-02-27 01:25:49 +0100
commit433bc6bdcb62fa5e3cf2d0ba81bf3ceaa53b55e9 (patch)
tree471684a0fc48b56dee682ba32618280dc8b8f33e
parentd2182ad7d1c009874063722e34f153b516bbd5cb (diff)
util make test: rephrase
-rw-r--r--util/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/util/Makefile b/util/Makefile
index 375199e4..5096506b 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -7,14 +7,12 @@ test:
n=`echo "$$tests" | wc -l`; \
echo $$i..$$n; \
for exe in $$tests; do \
- { \
- ./$$exe; \
- case $$? in \
- 0) result=ok;; \
- *) result='not ok'; touch .test-not-ok;; \
- esac; \
- echo $$result $$i - $$exe; \
- } & \
+ if ./$$exe; then \
+ echo ok $$i - $$exe; \
+ else \
+ echo not ok $$i - $$exe; \
+ touch .test-not-ok; \
+ fi & \
i=$$(( i+1 )); \
done; \
wait; \