From a347a2e1d66e13c38c6741deecbd136e4754b22f Mon Sep 17 00:00:00 2001 From: namdre Date: Thu, 13 Sep 2018 22:38:58 +0200 Subject: [PATCH] added test refs #4595 --- .../cut_routes/routeRef/additional.tools | 3 + .../route/cut_routes/routeRef/errors.tools | 0 .../routeRef/input_additional.add.xml | 6 ++ .../cut_routes/routeRef/input_net.net.xml | 57 +++++++++++++++++++ .../cut_routes/routeRef/input_routes.rou.xml | 8 +++ .../route/cut_routes/routeRef/options.tools | 1 + .../route/cut_routes/routeRef/output.tools | 7 +++ .../route/cut_routes/routeRef/routes.tools | 8 +++ tests/tools/route/cut_routes/testsuite.tools | 3 + 9 files changed, 93 insertions(+) create mode 100644 tests/tools/route/cut_routes/routeRef/additional.tools create mode 100644 tests/tools/route/cut_routes/routeRef/errors.tools create mode 100644 tests/tools/route/cut_routes/routeRef/input_additional.add.xml create mode 100644 tests/tools/route/cut_routes/routeRef/input_net.net.xml create mode 100644 tests/tools/route/cut_routes/routeRef/input_routes.rou.xml create mode 100644 tests/tools/route/cut_routes/routeRef/options.tools create mode 100644 tests/tools/route/cut_routes/routeRef/output.tools create mode 100644 tests/tools/route/cut_routes/routeRef/routes.tools diff --git a/tests/tools/route/cut_routes/routeRef/additional.tools b/tests/tools/route/cut_routes/routeRef/additional.tools new file mode 100644 index 00000000000..1a61a0f15f0 --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/additional.tools @@ -0,0 +1,3 @@ + + + diff --git a/tests/tools/route/cut_routes/routeRef/errors.tools b/tests/tools/route/cut_routes/routeRef/errors.tools new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/tools/route/cut_routes/routeRef/input_additional.add.xml b/tests/tools/route/cut_routes/routeRef/input_additional.add.xml new file mode 100644 index 00000000000..bc9e3ce31c9 --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/input_additional.add.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/tests/tools/route/cut_routes/routeRef/input_net.net.xml b/tests/tools/route/cut_routes/routeRef/input_net.net.xml new file mode 100644 index 00000000000..8694d790bdc --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/input_net.net.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/tools/route/cut_routes/routeRef/input_routes.rou.xml b/tests/tools/route/cut_routes/routeRef/input_routes.rou.xml new file mode 100644 index 00000000000..167d78fe7d3 --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/input_routes.rou.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/tools/route/cut_routes/routeRef/options.tools b/tests/tools/route/cut_routes/routeRef/options.tools new file mode 100644 index 00000000000..0f540c4bdb1 --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/options.tools @@ -0,0 +1 @@ +input_net.net.xml input_routes.rou.xml -a input_additional.add.xml --routes-output out.rou.xml --stops-output out.add.xml tools/route/cutRoutes.py diff --git a/tests/tools/route/cut_routes/routeRef/output.tools b/tests/tools/route/cut_routes/routeRef/output.tools new file mode 100644 index 00000000000..4baca10401b --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/output.tools @@ -0,0 +1,7 @@ +Valid area contains 4 edges +Parsing routes from input_routes.rou.xml +Could not reconstruct new departure time for vehicle 'v1'. Using old departure time. +Parsed 2 vehicles and kept 1 routes +Number of disconnected routes: 0. Most frequent missing edges: +Wrote 2 routes +Wrote 1 standalone routes diff --git a/tests/tools/route/cut_routes/routeRef/routes.tools b/tests/tools/route/cut_routes/routeRef/routes.tools new file mode 100644 index 00000000000..50beebd03e9 --- /dev/null +++ b/tests/tools/route/cut_routes/routeRef/routes.tools @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/tools/route/cut_routes/testsuite.tools b/tests/tools/route/cut_routes/testsuite.tools index 16b48ae022e..ee77a44f82d 100644 --- a/tests/tools/route/cut_routes/testsuite.tools +++ b/tests/tools/route/cut_routes/testsuite.tools @@ -30,3 +30,6 @@ with_unknown_busstops # remove unknown access from bus stops with_access + +# using standalone routes +routeRef