Skip to content

Commit

Permalink
added failing test refs #14324, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 14, 2024
1 parent 3af39ff commit e389b71
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/duarouter/trips/stops/jump_duplicate_stop/alts.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-14 13:07:46 by Eclipse SUMO duarouter Version v1_19_0+0814-b3a3d13
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_net2.net.xml"/>
<additional-files value="input_additional.add.xml"/>
<route-files value="input_trips.trips.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"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Error: No connection between edge 'E2' and edge 'E3' found.
Error: Mandatory edge 'E3' not reachable by vehicle 'v0'.
Error: The vehicle 'v0' has no valid route.
Quitting (on error).
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

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

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<busStop id="bs_0" lane="E0_0" startPos="0.00" endPos="10.00"/>
<busStop id="bs_1" lane="E2_0" startPos="0.00" endPos="10.00"/>
<busStop id="bs_2" lane="E3_0" startPos="0.00" endPos="10.00"/>
<busStop id="bs_3" lane="E5_0" startPos="0.00" endPos="10.00"/>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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">
<stop busStop="bs_0" duration="5"/>
<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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--net-file=input_net2.net.xml --route-files=input_trips.trips.xml -o routes.rou.xml
-a input_additional.add.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
collectJumps veh=v0 mandatory=E0 stopEdge=E0 jump=-1
collectJumps veh=v0 mandatory=E2 stopEdge=E0 jump=-1
collectJumps veh=v0 mandatory=E3 stopEdge=E0 jump=-1
collectJumps veh=v0 mandatory=E5 stopEdge=E0 jump=-1
hasJumps mIndex=0 jumpStarts=0
hasJumps mIndex=0 jumpStarts=0
hasJumps mIndex=1 jumpStarts=0
35 changes: 35 additions & 0 deletions tests/duarouter/trips/stops/jump_duplicate_stop/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-14 13:07:46 by Eclipse SUMO duarouter Version v1_19_0+0814-b3a3d13
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_net2.net.xml"/>
<additional-files value="input_additional.add.xml"/>
<route-files value="input_trips.trips.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"/>
3 changes: 3 additions & 0 deletions tests/duarouter/trips/stops/testsuite.duarouter
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jump_end
# jump twice
jump2

# see #14324
jump_duplicate_stop

# define an explicit jump despite there being a possible route
jump_connected

Expand Down

0 comments on commit e389b71

Please sign in to comment.