Skip to content

Commit

Permalink
added failing test refs #7893
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Dec 1, 2020
1 parent 1c55ba1 commit 69f85e0
Show file tree
Hide file tree
Showing 12 changed files with 150 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/sumo/devices/taxi/bugs/testsuite.sumo
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# customer exists early and leave taxi in invalid state
ticket7257

# customer enters early and taxi exits before first dispatch
ticket7893

# customer enters early and taxi exits before first dispatch
ticket7893_container
1 change: 1 addition & 0 deletions tests/sumo/devices/taxi/bugs/ticket7893/errors.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: Vehicle 'taxi' aborted waiting for a person or container that will never come.
15 changes: 15 additions & 0 deletions tests/sumo/devices/taxi/bugs/ticket7893/input_routes.rou.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="taxi" vClass="taxi">
<param key="has.taxi.device" value="true"/>
</vType>

<trip id="taxi" type="taxi" depart="1.00">
<stop lane="A1B1_1" endPos="10" triggered="person"/>
</trip>

<person id="0" depart="1.00" departPos="10">
<ride from="A1B1" to="E1F1" lines="taxi" arrivalPos="5"/>
</person>

</routes>
4 changes: 4 additions & 0 deletions tests/sumo/devices/taxi/bugs/ticket7893/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--no-step-log --no-duration-log --net-file=net.net.xml
-r input_routes.rou.xml
--tripinfo-output tripinfos.xml
--tripinfo-output.write-unfinished
Empty file.
43 changes: 43 additions & 0 deletions tests/sumo/devices/taxi/bugs/ticket7893/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Tue Dec 1 16:04:11 2020 by Eclipse SUMO sumo Version 1.8.0
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"/>
<tripinfo-output value="tripinfos.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<personinfo id="0" depart="1.00" type="DEFAULT_PEDTYPE">
<ride waitingTime="64.00" vehicle="taxi" depart="65.00" arrival="169.00" arrivalPos="5.00" duration="104.00" routeLength="1195.00" timeLoss="17.97"/>
</personinfo>
<tripinfo id="taxi" depart="1.00" departLane="A1B1_1" departPos="5.10" departSpeed="0.00" departDelay="0.00" arrival="-1.00" arrivalLane="" arrivalPos="-1.00" arrivalSpeed="-1.00" duration="229.00" routeLength="1199.90" waitingTime="5.00" waitingCount="2" stopTime="120.00" timeLoss="22.62" rerouteNo="2" devices="tripinfo_taxi routing_taxi taxi_taxi person_taxi" vType="taxi" speedFactor="1.00" vaporized="">
<taxi customers="1" occupiedDistance="1195.00" occupiedTime="106.00"/>
</tripinfo>
</tripinfos>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: Vehicle 'taxi' aborted waiting for a person or container that will never come.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="taxi" vClass="truck">
<param key="has.taxi.device" value="true"/>
</vType>

<trip id="taxi" type="taxi" depart="1.00">
<stop lane="A1B1_1" endPos="10" triggered="container"/>
</trip>

<container id="0" depart="1.00" departPos="10">
<transport from="A1B1" to="E1F1" lines="taxi" arrivalPos="5"/>
</container>

</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

[Reported by kobo at 01Dec16:06:13]
search_string:Teleporting
search_file:errors
ignore_other_errors:1
full_description:invalid taxi route
brief_description:see #7893
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--no-step-log --no-duration-log --net-file=net.net.xml
-r input_routes.rou.xml
--tripinfo-output tripinfos.xml
--tripinfo-output.write-unfinished
Empty file.
54 changes: 54 additions & 0 deletions tests/sumo/devices/taxi/bugs/ticket7893_container/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Mon Aug 17 14:57:08 2020 by Eclipse SUMO sumo Version v1_6_0+1601-040c29858a
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"/>
<tripinfo-output value="tripinfos.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<taxi_device>
<device.taxi.dispatch-algorithm value="greedyShared"/>
<device.taxi.dispatch-algorithm.output value="dispatchinfos.xml"/>
</taxi_device>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<personinfo id="0" depart="0.00" type="DEFAULT_PEDTYPE">
<ride waitingTime="8.00" vehicle="taxi" depart="8.00" arrival="122.00" arrivalPos="5.00" duration="114.00" routeLength="1195.00" timeLoss="26.97"/>
</personinfo>
<personinfo id="1" depart="0.00" type="DEFAULT_PEDTYPE">
<ride waitingTime="66.00" vehicle="taxi" depart="66.00" arrival="210.00" arrivalPos="285.60" duration="144.00" routeLength="875.60" timeLoss="20.96"/>
</personinfo>
<personinfo id="2" depart="170.00" type="DEFAULT_PEDTYPE">
<ride waitingTime="106.00" vehicle="taxi" depart="276.00" arrival="431.00" arrivalPos="285.60" duration="155.00" routeLength="1765.87" timeLoss="26.59"/>
</personinfo>
<tripinfo id="taxi" depart="0.00" departLane="A1B1_1" departPos="5.00" departSpeed="0.00" departDelay="0.00" arrival="-1.00" arrivalLane="" arrivalPos="-1.00" arrivalSpeed="-1.00" duration="492.00" routeLength="3551.41" waitingTime="17.00" waitingCount="6" stopTime="157.00" timeLoss="76.44" rerouteNo="4" devices="tripinfo_taxi routing_taxi taxi_taxi person_taxi" vType="taxi" speedFactor="1.00" vaporized="">
<taxi customers="3" occupiedDistance="3241.47" occupiedTime="302.00"/>
</tripinfo>
</tripinfos>

0 comments on commit 69f85e0

Please sign in to comment.