Skip to content

Commit

Permalink
added failing test refs #14332, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 15, 2024
1 parent 1dea0ed commit c6f4e5a
Show file tree
Hide file tree
Showing 8 changed files with 386 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/sumo/rail/routing/reversal_possible_slack/errors.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Warning: Network contains internal links which are ignored. Vehicles will 'jump' across junctions and thus underestimate route lengths and travel times.
Warning: Teleporting vehicle 't0'; waited too long (jam), lane='e_0', time=352.00.
Warning: Vehicle 't0' ends teleporting on edge '-e', time=352.00.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="train" vClass="rail" length="48.03"/>
<trip id="t0" type="train" depart="0.00" from="a" to="-a3"/>
</routes>
289 changes: 289 additions & 0 deletions tests/sumo/rail/routing/reversal_possible_slack/net.net.xml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions tests/sumo/rail/routing/reversal_possible_slack/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--no-step-log --no-duration-log --net-file=net.net.xml --vehroute-output
vehroutes.xml --routes=input_routes.rou.xml
--no-internal-links
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Tue Feb 25 13:52:43 2020 by Eclipse SUMO Version v1_5_0+0242-ce7b74c
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
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<vehroute-output value="vehroutes.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<railsignal-block-output>
</railsignal-block-output>
46 changes: 46 additions & 0 deletions tests/sumo/rail/routing/reversal_possible_slack/vehroutes.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-15 11:08:11 by Eclipse SUMO sumo Version v1_19_0+0821-7ff161c
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<vehroute-output value="vehroutes.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
</output>
<processing>
<no-internal-links value="true"/>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation 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">
<vehicle id="t0" type="train" depart="0.00" arrival="364.00">
<route edges="a b c d e -e -b3 -a3"/>
</vehicle>

</routes>
3 changes: 3 additions & 0 deletions tests/sumo/rail/routing/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ reversal_impossible
# the train is just as long as the available reversal section. This would make it get stuck in the simulation so routing should fail
reversal_impossible_slack

# the train is just as long as the first edge of the available reversal section. This should prolong the route to another section to prevent it from getting stuck.
reversal_possible_slack

# vehicle has sufficient space after the switch but no turn-around connection is defined
missing_turnaround

Expand Down

0 comments on commit c6f4e5a

Please sign in to comment.