Skip to content

Commit

Permalink
added tests refs #21, #15983
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 8, 2025
1 parent c11d561 commit f67ec96
Show file tree
Hide file tree
Showing 8 changed files with 233 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/duarouter/alternatives/style2_input/testsuite.duarouter
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ with_taz
# taz information stored in rou.alt.xml
with_taz_used

# taz information stored in rou.alt.xml.
# trigger use when option --junction-taz is set
with_taz_used2

# Checks handling of broken input
errors
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-01-08 14:41:01 by Eclipse SUMO duarouter Version v1_21_0+1735-742e398ba02
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
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<duarouterConfiguration 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_districts.taz.xml"/>
<route-files value="input_alts.rou.alt.xml"/>
<junction-taz value="true"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
</output>
<report>
<verbose value="true"/>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="0" length="3.00" minGap="2.00" maxSpeed="70.00" color="yellow" accel="2.6" decel="4.5" sigma="0.5"/>
<vehicle id="0" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="1" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="2" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="3" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="4" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="5" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="6" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="7" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="8" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="9" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<routeDistribution last="0">
<route cost="125.90" probability="1.00000000" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<routes>
<vType id="0" accel="2.6" decel="4.5" sigma="0.5" length="3" minGap="2" maxSpeed="70" fromTaz="1" toTaz="2" color="1,1,0"/>
<vehicle id="0" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="1" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="2" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="3" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="4" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="5" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="6" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="7" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="8" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
<vehicle id="9" type="0" depart="0" fromTaz="1" toTaz="2" color="0,0,0">
<routeDistribution last="0">
<route cost="125.126" probability="1" edges="beg middle end rend"/>
</routeDistribution>
</vehicle>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<tazs>
<taz id="1" edges="middle beg2left">
</taz>
<taz id="2" edges="end rend">
</taz>
</tazs>

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--net-file=input_net.net.xml --route-files=input_alts.rou.alt.xml -o routes.rou.xml
-a input_districts.taz.xml
--junction-taz
-v
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Loading net ... done.
Loading additional file 'input_districts.taz.xml' ... done.
Skipped until: 0.00
DijkstraRouter answered 10 queries and explored 12.00 edges on average.
DijkstraRouter spent 0.00s answering queries (0.00ms on average).
Success.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-01-08 14:41:01 by Eclipse SUMO duarouter Version v1_21_0+1735-742e398ba02
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
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<duarouterConfiguration 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_districts.taz.xml"/>
<route-files value="input_alts.rou.alt.xml"/>
<junction-taz value="true"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
</output>
<report>
<verbose value="true"/>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="0" length="3.00" minGap="2.00" maxSpeed="70.00" color="yellow" accel="2.6" decel="4.5" sigma="0.5"/>
<vehicle id="0" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="1" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="2" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="3" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="4" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="5" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="6" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="7" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="8" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
<vehicle id="9" type="0" depart="0.00" color="black" fromTaz="1" toTaz="2">
<route edges="beg middle end rend"/>
</vehicle>
</routes>

0 comments on commit f67ec96

Please sign in to comment.