summaryrefslogtreecommitdiffstats
path: root/util/t/vvs.de
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-02 15:55:30 +0100
committertv <tv@nomic.retiolum>2013-11-02 15:55:30 +0100
commitddecabf669c09f85ad522d2f530d086922de1cf7 (patch)
treec5fe8fa58cfe449697151e479f1d2fc9de78c58e /util/t/vvs.de
parentc8e404282348d02d727bc70f58b3b005a0a9d869 (diff)
add vvs.de smoke test
Diffstat (limited to 'util/t/vvs.de')
-rwxr-xr-xutil/t/vvs.de/smoke-test11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/t/vvs.de/smoke-test b/util/t/vvs.de/smoke-test
new file mode 100755
index 00000000..451270fe
--- /dev/null
+++ b/util/t/vvs.de/smoke-test
@@ -0,0 +1,11 @@
+#! /bin/sh
+set -euf
+
+vvs.de Hauptbahnhof Renningen 13 37 | {
+ read from && test "x$from" = 'xfrom: Hauptbahnhof'
+ read to && test "x$to" = 'xto: Renningen'
+ read sep && test "x$sep" = 'x-------------------------------------'
+ while read line; do
+ echo "$line" | grep -q '^[0-9][0-9]:[0-9][0-9] [0-9][0-9]:[0-9][0-9] '
+ done
+}