summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-09-02 17:18:53 +0200
committertv <tv@nomic.retiolum>2013-09-02 17:18:53 +0200
commit61781dbb9c85ef5997cc2adb6df9960c19776459 (patch)
treee811d95e7729f12f53f13392579fa35a93faf48e /util
parent78eb0da69229b9d29cc8a9a42678c7664ad5f8b8 (diff)
make -C util test: add basic dic bit rot test
Diffstat (limited to 'util')
-rw-r--r--util/Makefile13
-rwxr-xr-xutil/t/dic/mup6
2 files changed, 19 insertions, 0 deletions
diff --git a/util/Makefile b/util/Makefile
new file mode 100644
index 00000000..b5ce668a
--- /dev/null
+++ b/util/Makefile
@@ -0,0 +1,13 @@
+usage:;cat Makefile
+
+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; \
+ (( i++ )); \
+ done
diff --git a/util/t/dic/mup b/util/t/dic/mup
new file mode 100755
index 00000000..a31e0f6c
--- /dev/null
+++ b/util/t/dic/mup
@@ -0,0 +1,6 @@
+#! /bin/sh
+set -euf
+
+dic test |
+ sed 's/\[[^m]*m//g' |
+ grep -q '^test - der Test$'