Skip to content

Commit

Permalink
added failing test, refs #1128, #21
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/behr_mi/git/sumo_synched/trunk@15431 afbd958f-9f77-42d5-a016-97a22340ccf4
  • Loading branch information
behrisch committed Jan 17, 2014
1 parent f1a93e5 commit 1c57d34
Show file tree
Hide file tree
Showing 12 changed files with 210 additions and 3 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--vehroute-output=vehroutes.xml --no-step-log --net-file net.net.xml --route-files routes.rou.xml --remote-port 8815 TraCITestClient.exe -def testclient.prog -p 8815 -h localhost -o testclient_out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
***Starting server on port 8815 ***
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo-sim.org/xsd/routes_file.xsd">
<vType id="SUMO_DEFAULT_TYPE" accel="0.8" decel="4.5" sigma="0" length="3" minGap="2" maxSpeed="0.1"/>
<vType id="SUMO_DEFAULT_TYPE" sigma="0" maxSpeed="2"/>

<vehicle id="veh0" type="SUMO_DEFAULT_TYPE" depart="0" departPos="-1">
<route edges="1fi 1si 2o 2fi 2si 3o 3fi 3si 1o 1fi"/>
<vehicle id="veh0" type="SUMO_DEFAULT_TYPE" depart="0" departPos="-1" arrivalPos="5">
<route edges="1si 2o"/>
</vehicle>

</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
repeat 5 simstep2 0
setvalue 0xc4 0x31 veh0 <string> 3fi
simstep2 600
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
TraCITestClient output file. Date: Mon Jul 01 13:28:01 2013


-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <SetValue>:
domID=196 varID=49 objID=veh0
.. Command acknowledged (196), [description: ]

-> Command sent: <SimulationStep2>:
.. Command acknowledged (2), [description: ]

-> Command sent: <Close>:
.. Command acknowledged (127), [description: ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 05/02/13 14:27:04 by SUMO sumo Version 0.17.0
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo-sim.org/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="routes.rou.xml"/>
</input>
<output>
<netstate-dump value="netstate_dump.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<report>
<no-step-log value="true"/>
</report>
<traci_server>
<remote-port value="8815"/>
</traci_server>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo-sim.org/xsd/routes_file.xsd">
<vehicle id="veh0" type="vType1" depart="0.00" arrival="104.00">
<routeDistribution>
<route replacedOnEdge="e_m6" replacedAtTime="50.00" probability="0" edges="e_m5 e_m6 e_shape1 e_u1 e_u0 e_vu0"/>
<route edges="e_m5 e_m6 e_shape0 e_o1 e_o0 e_vo0"/>
</routeDistribution>
</vehicle>

</routes>
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Test basic functionality of <ChangeTarget>
Basic

# Test rerouting on an internal edge
OnInternal

# Test behaviour when specifying unreachable target
UnreachableTarget

Expand Down

0 comments on commit 1c57d34

Please sign in to comment.