summaryrefslogtreecommitdiffstats
path: root/.graveyard/util/t
diff options
context:
space:
mode:
Diffstat (limited to '.graveyard/util/t')
-rwxr-xr-x.graveyard/util/t/mobile.vvs.de/smoke-test5
-rwxr-xr-x.graveyard/util/t/vvs.de/smoke-test11
2 files changed, 16 insertions, 0 deletions
diff --git a/.graveyard/util/t/mobile.vvs.de/smoke-test b/.graveyard/util/t/mobile.vvs.de/smoke-test
new file mode 100755
index 00000000..0b9e7960
--- /dev/null
+++ b/.graveyard/util/t/mobile.vvs.de/smoke-test
@@ -0,0 +1,5 @@
+#! /bin/sh
+set -euf
+mobile.vvs.de hauptbahnhof |
+ sed -n 'p;q' |
+ grep -q '\[4m[0-9][0-9]:[0-9][0-9] Stuttgart, Hauptbahnhof\[m'
diff --git a/.graveyard/util/t/vvs.de/smoke-test b/.graveyard/util/t/vvs.de/smoke-test
new file mode 100755
index 00000000..451270fe
--- /dev/null
+++ b/.graveyard/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
+}