summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rwxr-xr-xutil/t/vvs.de/smoke-test11
2 files changed, 12 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index e62f843f..92c5af77 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,7 @@ script: "! ( make -C util test | grep -q '^not ok' )"
before_install:
- sudo apt-get install bc -qq
- sudo apt-get install python -qq
+ - sudo apt-get install w3m -qq
branches:
only:
- master
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
+}