Skip to content

Commit

Permalink
added test refs #2182
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 7, 2020
1 parent b6f1adf commit 8ef6fee
Show file tree
Hide file tree
Showing 10 changed files with 1,801 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/duarouter/config.duarouter
Expand Up @@ -7,6 +7,7 @@ copy_test_path:input_trips.trips.xml
copy_test_path:input_weights.dump.xml
copy_test_path:input_net.net.xml
copy_test_path:input_net2.net.xml
copy_test_path:input_net3.net.xml
copy_test_path:input_districts.taz.xml
copy_test_path:input_additional.add.xml
copy_test_path:input_additional2.add.xml
Expand Down
1,676 changes: 1,676 additions & 0 deletions tests/duarouter/input_net3.net.xml

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions tests/duarouter/trips/geoTrips_lonLat/alts.duarouter
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Sat Mar 7 22:49:14 2020 by Eclipse SUMO duarouter Version v1_5_0+0562-b6f1adf1f4
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net3.net.xml"/>
<route-files value="input_trips.trips.xml"/>
</input>
<output>
<write-license value="true"/>
<output-file value="routes.rou.xml"/>
<alternatives-output value="routes.rou.alt.xml"/>
</output>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="0" depart="0.00">
<routeDistribution last="0">
<route cost="59.61" probability="1.00000000" edges="-24214693#0 -7727483#3 -7727483#2 -7727483#1 -7727483#0 7727482 27445015#0 27445015#1 27445015#2 27445015#3 27445015#4"/>
</routeDistribution>
</vehicle>
<vehicle id="1" depart="0.00">
<routeDistribution last="0">
<route cost="102.10" probability="1.00000000" edges="-24214693#0 -7216737#3 -7216737#2 -7216737#1 24152812#0 -5198586#4 -5198586#3 -5198586#2 -5198586#1 -5198586#0 27445015#3 27445015#4"/>
</routeDistribution>
</vehicle>
</routes>
Empty file.
@@ -0,0 +1,3 @@
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<busStop id="busStop#1" lane="left_0" startPos="20" endPos="40" lines="100 101 102"/>
</additional>
37 changes: 37 additions & 0 deletions tests/duarouter/trips/geoTrips_lonLat/input_trips.trips.xml
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Thu Feb 7 12:44:05 2019 by Eclipse SUMO duarouter Version v1_0_1+0645-93703db
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<additional-files value="input_additional.add.xml"/>
<route-files value="input_trips.trips.xml"/>
</input>
<output>
<write-license value="true"/>
<output-file value="routes.rou.xml"/>
<alternatives-output value="routes.rou.alt.xml"/>
<write-trips value="true"/>
<write-trips.geo value="true"/>
</output>
<report>
<xml-validation value="never"/>
<ignore-errors value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<trip id="0" depart="0.00" fromLonLat="13.522013,52.426592" toLonLat="13.535143,52.432031"/>
<trip id="1" depart="0.00" fromLonLat="13.522013,52.426592" toLonLat="13.535143,52.432031" viaLonLat="13.535764,52.425891"/>
</routes>
2 changes: 2 additions & 0 deletions tests/duarouter/trips/geoTrips_lonLat/options.duarouter
@@ -0,0 +1,2 @@
--net-file=input_net3.net.xml --route-files=input_trips.trips.xml
-o routes.rou.xml
1 change: 1 addition & 0 deletions tests/duarouter/trips/geoTrips_lonLat/output.duarouter
@@ -0,0 +1 @@
Success.
37 changes: 37 additions & 0 deletions tests/duarouter/trips/geoTrips_lonLat/routes.duarouter
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Sat Mar 7 22:49:14 2020 by Eclipse SUMO duarouter Version v1_5_0+0562-b6f1adf1f4
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net3.net.xml"/>
<route-files value="input_trips.trips.xml"/>
</input>
<output>
<write-license value="true"/>
<output-file value="routes.rou.xml"/>
<alternatives-output value="routes.rou.alt.xml"/>
</output>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="0" depart="0.00">
<route edges="-24214693#0 -7727483#3 -7727483#2 -7727483#1 -7727483#0 7727482 27445015#0 27445015#1 27445015#2 27445015#3 27445015#4"/>
</vehicle>
<vehicle id="1" depart="0.00">
<route edges="-24214693#0 -7216737#3 -7216737#2 -7216737#1 24152812#0 -5198586#4 -5198586#3 -5198586#2 -5198586#1 -5198586#0 27445015#3 27445015#4"/>
</vehicle>
</routes>
3 changes: 3 additions & 0 deletions tests/duarouter/trips/testsuite.duarouter
Expand Up @@ -103,6 +103,9 @@ write-trips.geo
# test reading trips with geo-coordinates
geoTrips

# test reading trips with geo-coordinates
geoTrips_lonLat

# test reading trips with geo-coordinates
geoTrips_distance

Expand Down

0 comments on commit 8ef6fee

Please sign in to comment.