Skip to content

Commit

Permalink
added test refs #10632, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 29, 2022
1 parent e880574 commit a9ee58a
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/sumo/basic/person/walking/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ walk_0
# random depart and arrival positions
walk_random_pos
walk_start_crossing

# Copy of walk_routeDist
walk_routeDist
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="DEFAULT_PEDTYPE" speedDev="0" vClass="pedestrian"/>

<routeDistribution id="rDist">
<route id="r0" edges="beg beg2left"/>
<route id="r1" edges="beg middle"/>
<route id="r2" edges="beg beg2right"/>
</routeDistribution>

<person id="p0" depart="0" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
<person id="p1" depart="1" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
<person id="p2" depart="2" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
<person id="p3" depart="3" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
<person id="p4" depart="4" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
<person id="p5" depart="5" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
<person id="p6" depart="6" departPos="-50">
<walk route="rDist" arrivalPos="50"/>
</person>
</routes>
2 changes: 2 additions & 0 deletions tests/sumo/basic/person/walking/walk_routeDist/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--no-step-log --no-duration-log --net-file=three_split.net.xml
-r=input_routes.rou.xml --vehroute-output=vehroutes.xml
Empty file.
70 changes: 70 additions & 0 deletions tests/sumo/basic/person/walking/walk_routeDist/vehroutes.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-04-29 08:16:24 by Eclipse SUMO sumo Version v1_12_0+2371-e880574
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/sumoConfiguration.xsd">
<input>
<net-file value="three_split.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
<pedestrian.model value="nonInteracting"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable 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">
<person id="p0" depart="0.00" departPos="-50.00" arrival="72.00">
<walk edges="beg beg2right" arrivalPos="50.00"/>
</person>

<person id="p1" depart="1.00" departPos="-50.00" arrival="73.00">
<walk edges="beg beg2right" arrivalPos="50.00"/>
</person>

<person id="p2" depart="2.00" departPos="-50.00" arrival="74.00">
<walk edges="beg beg2left" arrivalPos="50.00"/>
</person>

<person id="p3" depart="3.00" departPos="-50.00" arrival="75.00">
<walk edges="beg middle" arrivalPos="50.00"/>
</person>

<person id="p4" depart="4.00" departPos="-50.00" arrival="76.00">
<walk edges="beg middle" arrivalPos="50.00"/>
</person>

<person id="p5" depart="5.00" departPos="-50.00" arrival="77.00">
<walk edges="beg beg2left" arrivalPos="50.00"/>
</person>

<person id="p6" depart="6.00" departPos="-50.00" arrival="78.00">
<walk edges="beg beg2right" arrivalPos="50.00"/>
</person>

</routes>

0 comments on commit a9ee58a

Please sign in to comment.