Skip to content

Commit

Permalink
added test refs #14585, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 23, 2024
1 parent aa53b5e commit d07018b
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/sumo/extended/stops/jumps/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ jump_same_end

# insertion must be delayed when insertion fails (rather than shifted along the route as for teleporting)
target_occupied

# combine jumps with vias
vias
3 changes: 3 additions & 0 deletions tests/sumo/extended/stops/jumps/vias/errors.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Warning: No connection between edge 'E2' and edge 'E3' found.
Error: Vehicle 'v0' has no valid route from edge 'E2' to stop edge 'E3'.
Quitting (on error).
1 change: 1 addition & 0 deletions tests/sumo/extended/stops/jumps/vias/exitcode.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
14 changes: 14 additions & 0 deletions tests/sumo/extended/stops/jumps/vias/input_trips.trips.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-12-09 12:43:57 by Eclipse SUMO netedit Version v1_15_0+0917-249760d
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<!-- Vehicles, persons and containers (sorted by depart) -->
<trip id="v0" depart="0.00" via="E0 E2 E3 E5">
<stop busStop="bs_0" duration="5"/>
<stop busStop="bs_1" duration="5" jump="10"/>
<stop busStop="bs_2" duration="5"/>
<stop busStop="bs_3" duration="5"/>
</trip>
</routes>
4 changes: 4 additions & 0 deletions tests/sumo/extended/stops/jumps/vias/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--net-file=net2.net.xml --route-files=input_trips.trips.xml
--vehroute-output vehroutes.xml
-a input_additional.add.xml
--no-step-log
1 change: 1 addition & 0 deletions tests/sumo/extended/stops/jumps/vias/output.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
stopIndex=1 jumps=
40 changes: 40 additions & 0 deletions tests/sumo/extended/stops/jumps/vias/vehroutes.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-03-23 14:55:02 by Eclipse SUMO sumo Version v1_19_0+1492-aa53b5e533a
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="net2.net.xml"/>
<route-files value="input_trips.trips.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<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">
</routes>
52 changes: 52 additions & 0 deletions tests/sumo/extended/stops/jumps/vias/vehroutes.sumo.meso
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-12-10 08:02:50 by Eclipse SUMO sumo Version v1_15_0+0936-fce21cd
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="net2.net.xml"/>
<route-files value="input_trips.trips.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="v0" depart="0.00" arrival="64.00">
<route edges="E0 E1 E2 E3 E4 E5"/>
<stop busStop="bs_0" duration="5.00"/>
<stop busStop="bs_1" duration="5.00" jump="10.00"/>
<stop busStop="bs_2" duration="5.00"/>
<stop busStop="bs_3" duration="5.00"/>
</vehicle>

</routes>

0 comments on commit d07018b

Please sign in to comment.