Skip to content

Commit

Permalink
added test refs #14653, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 3, 2024
1 parent 2fa8180 commit e37f38f
Show file tree
Hide file tree
Showing 9 changed files with 506 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/duarouter/config.duarouter
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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_net4.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
398 changes: 398 additions & 0 deletions tests/duarouter/person/input_net4.net.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/duarouter/person/personTrip/testsuite.duarouter
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ bike_public_walk

# back and forth using walkingarea
walk_walkingareas
walk_crossings_tl

# back and forth using normal vehicle connections
walk_normal_connections
Expand Down
44 changes: 44 additions & 0 deletions tests/duarouter/person/personTrip/walk_crossings_tl/alts.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-04-03 13:31:16 by Eclipse SUMO duarouter Version v1_19_0+1664-2fa8180670f
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
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net4.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
</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">
<person id="pFwd" depart="0.00">
<personTrip from="SC" to="CN" walkFactor="0.75" costs="106.34"/>
</person>
<person id="pBwd" depart="0.00">
<personTrip from="CN" to="SC" walkFactor="0.75" costs="106.34"/>
</person>
<person id="pDiag" depart="0.00">
<personTrip from="SC" to="CW" walkFactor="0.75" costs="125.56"/>
</person>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<routes>
<person id="pFwd" depart="0">
<personTrip from="SC" to="CN"/>
</person>

<person id="pBwd" depart="0">
<personTrip from="CN" to="SC"/>
</person>

<person id="pDiag" depart="0">
<personTrip from="SC" to="CW"/>
</person>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--net-file=input_net4.net.xml --route-files=input_routes.rou.xml -o routes.rou.xml
--write-costs
--weights.tls-penalty 10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-04-03 13:31:28 by Eclipse SUMO duarouter Version v1_19_0+1664-2fa8180670f
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
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net4.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<write-costs value="true"/>
</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">
<person id="pFwd" depart="0.00">
<walk cost="106.34" edges="SC CN"/>
</person>
<person id="pBwd" depart="0.00">
<walk cost="106.34" edges="CN SC"/>
</person>
<person id="pDiag" depart="0.00">
<walk cost="125.56" edges="SC CW"/>
</person>
</routes>

0 comments on commit e37f38f

Please sign in to comment.