From ddecabf669c09f85ad522d2f530d086922de1cf7 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 2 Nov 2013 15:55:30 +0100 Subject: add vvs.de smoke test --- util/t/vvs.de/smoke-test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 util/t/vvs.de/smoke-test (limited to 'util/t/vvs.de/smoke-test') 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 +} -- cgit v1.2.3