Skip to content

Commit

Permalink
Updated netedit tests. Refs #3045
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Jan 15, 2025
1 parent 797cc65 commit 38211dd
Show file tree
Hide file tree
Showing 35 changed files with 1,780 additions and 268 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Warning: Vehicle 'typeC' will not be able to arrive at the given lane 'Edge5_0'!
Warning: Vehicle 'typeC' will not be able to arrive at the given lane 'Edge5_0'!
Warning: Vehicle 'flowA' will not be able to arrive at the given lane 'Edge5_0'!
Warning: Vehicle 'flowA' will not be able to arrive at the given lane 'Edge5_0'!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: Unused states in tlLogic 'Junction5', program '0' in phase 0 after tl-index 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Warning: No connection between edge 'E20' and edge 'E15' found.
Error: No connection found between edge 'E20' and edge 'E15' for person 'p_0'.
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,3 @@
Warning: No connection between edge 'E20' and edge 'E15' found.
Error: No connection found between edge 'E20' and edge 'E15' for person 'p_0'.
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
@@ -1 +1 @@
Warning: Unused states in tlLogic 'D', program '0' in phase 0 after tl-index 17
Warning: Unused states in tlLogic 'JunctionCenter', program '0' in phase 0 after tl-index 23
5 changes: 5 additions & 0 deletions tests/netedit/network/junctions/merge/abort/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# import common functions for netedit tests
import os
import sys
import time

testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests')
neteditTestRoot = os.path.join(
Expand All @@ -38,6 +39,10 @@
netedit.positions.network.junction.merge.fromA.y,
netedit.positions.network.junction.merge.toA.x,
netedit.positions.network.junction.merge.toA.y)

# wait for output
time.sleep(2)

# press ESC
netedit.typeEscape()

Expand Down
263 changes: 190 additions & 73 deletions tests/netedit/network/junctions/merge/basic/net.netedit

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions tests/netedit/network/junctions/merge/basic/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# import common functions for netedit tests
import os
import sys
import time

testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests')
neteditTestRoot = os.path.join(
Expand All @@ -38,6 +39,9 @@
netedit.positions.network.junction.merge.toA.x,
netedit.positions.network.junction.merge.toA.y)

# wait for output
time.sleep(2)

# press enter
netedit.typeEnter()

Expand Down
263 changes: 190 additions & 73 deletions tests/netedit/network/junctions/merge/basic_recomputing/net.netedit

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# import common functions for netedit tests
import os
import sys
import time

testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests')
neteditTestRoot = os.path.join(
Expand All @@ -39,6 +40,9 @@
netedit.positions.network.junction.merge.toA.x,
netedit.positions.network.junction.merge.toA.y)

# wait for output
time.sleep(2)

# press enter
netedit.typeEnter()

Expand Down
12 changes: 0 additions & 12 deletions tests/netedit/network/junctions/merge/bubble/log.netedit
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
Warning: Lane '-E0_1' is not connected from any incoming edge at junction 'J1'.
Warning: Lane '-E7_0' is not connected from any incoming edge at junction 'J1'.
Warning: Edge 'E0' is not connected to outgoing edges at junction 'J1'.
Warning: Edge 'E7' is not connected to outgoing edges at junction 'J1'.
Warning: Lane '-E0_1' is not connected from any incoming edge at junction 'J1'.
Warning: Lane '-E7_0' is not connected from any incoming edge at junction 'J1'.
Warning: Edge 'E0' is not connected to outgoing edges at junction 'J1'.
Warning: Edge 'E7' is not connected to outgoing edges at junction 'J1'.
Warning: Lane '-E0_1' is not connected from any incoming edge at junction 'J1'.
Warning: Edge 'E0' is not connected to outgoing edges at junction 'J1'.
Warning: 6 total messages of type: Edge '%' is not connected to outgoing edges at junction '%'.
Warning: 6 total messages of type: Lane '%' is not connected from any incoming edge at junction '%'.
35 changes: 25 additions & 10 deletions tests/netedit/network/junctions/merge/bubble/net.netedit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-09-02 10:08:14 by Eclipse SUMO netedit Version v1_20_0+1821-fef78581e33
<!-- generated on 2025-01-15 15:21:02 by Eclipse SUMO netedit Version v1_21_0+1861-576d70cd5b1
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
Expand All @@ -14,15 +14,16 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<additional-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\additionals.add.xml"/>
<route-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\routes.rou.xml"/>
<data-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\datas.dat.xml"/>
<sumo-net-file value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\net.net.xml"/>
<additional-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\additionals.add.xml"/>
<route-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\routes.rou.xml"/>
<data-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\datas.dat.xml"/>
<meandata-files value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\datas.med.add.xml"/>
<sumo-net-file value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\net.net.xml"/>
</input>
<output>
<write-license value="true"/>
<output-file value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\net.net.xml"/>
<output-file value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\net.net.xml"/>
</output>
<processing>
Expand All @@ -46,19 +47,20 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<netedit>
<ignore-supermode-question value="true"/>
<force-saving value="true"/>
</netedit>
<visualisation>
<gui-settings-file value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\gui-settings.xml"/>
<gui-settings-file value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\gui-settings.xml"/>
<window-size value="1280, 720"/>
<window-pos value="50,50"/>
<gui-testing value="true"/>
<gui-testing.setting-output value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\guisettingsoutput.xml"/>
<gui-testing.setting-output value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\guisettingsoutput.xml"/>
</visualisation>
<report>
<no-warnings value="true"/>
<error-log value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.02Sep100517.1248\netedit.gui\network\junctions\merge\bubble\log.txt"/>
<error-log value="C:\Users\alva_pa\.texttest\tmp\netedit.gui.15Jan151709.9628\netedit.gui\network\junctions\merge\bubble\log.txt"/>
</report>
</neteditConfiguration>
Expand Down Expand Up @@ -116,6 +118,12 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<edge id=":J0_w2" function="walkingarea">
<lane id=":J0_w2_0" index="0" allow="pedestrian" speed="2.78" length="3.30" width="4.00" shape="17.20,-3.20 17.20,-5.20 15.20,-7.20 13.20,-7.20 13.31,-5.98 13.64,-4.98 14.20,-4.20 14.98,-3.64 15.98,-3.31"/>
</edge>
<edge id=":J1_0" function="internal">
<lane id=":J1_0_0" index="0" disallow="pedestrian" speed="7.58" length="12.62" shape="11.60,14.80 11.05,17.78 9.40,19.90 6.65,21.17 2.80,21.60"/>
</edge>
<edge id=":J1_1" function="internal">
<lane id=":J1_1_0" index="0" disallow="pedestrian" speed="5.99" length="7.49" shape="2.80,18.40 5.25,18.18 7.00,17.50 8.05,16.38 8.40,14.80"/>
</edge>
<edge id=":J1_w0" function="walkingarea">
<lane id=":J1_w0_0" index="0" allow="pedestrian" speed="2.78" length="8.16" width="3.20" shape="6.80,14.80 4.80,14.80 2.80,16.80 2.80,20.00 2.80,23.20 15.20,14.80 13.20,14.80"/>
</edge>
Expand Down Expand Up @@ -340,7 +348,10 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<request index="7" response="000000000" foes="000011110" cont="0"/>
<request index="8" response="000000000" foes="000111001" cont="0"/>
</junction>
<junction id="J1" type="dead_end" x="10.00" y="20.00" incLanes="E0_0 E0_1 E7_0" intLanes="" shape="15.20,14.80 4.80,14.80 4.58,15.91 4.30,16.30 3.91,16.58 3.41,16.74 2.80,16.80 2.80,23.20 6.59,22.97 9.69,22.27 12.10,21.10 13.82,19.47 14.86,17.37"/>
<junction id="J1" type="priority" x="10.00" y="20.00" incLanes="E0_0 E0_1 E7_0" intLanes=":J1_0_0 :J1_1_0" shape="15.20,14.80 4.80,14.80 4.58,15.91 4.30,16.30 3.91,16.58 3.41,16.74 2.80,16.80 2.80,23.20 6.59,22.97 9.69,22.27 12.10,21.10 13.82,19.47 14.86,17.37">
<request index="0" response="00" foes="00" cont="0"/>
<request index="1" response="00" foes="00" cont="0"/>
</junction>
<junction id="J2" type="dead_end" x="10.00" y="-20.00" incLanes="E1_0 E1_1" intLanes="" shape="10.00,-20.00 4.80,-20.00 10.00,-20.00"/>
<junction id="J3" type="dead_end" x="30.00" y="0.00" incLanes="E2_0 E2_1" intLanes="" shape="30.00,0.00 30.00,-5.20 30.00,0.00"/>
<junction id="J4" type="traffic_light" x="-10.00" y="0.00" incLanes="E6_0 E6_1 -E3_0 -E3_1 :J4_w1_0 :J4_w0_0" intLanes=":J4_2_0 :J4_1_0 :J4_c0_0 :J4_c1_0" shape="-4.80,-5.20 -15.20,-5.20 -15.20,5.20 -12.02,4.91 -9.42,4.04 -7.40,2.60 -5.96,0.58 -5.09,-2.02">
Expand Down Expand Up @@ -394,10 +405,12 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<connection from="-E4" to="-E3" fromLane="1" toLane="1" via=":J5_1_0" tl="J5" linkIndex="1" dir="r" state="o"/>
<connection from="-E5" to="-E4" fromLane="1" toLane="1" via=":J6_1_0" tl="J6" linkIndex="1" dir="r" state="o"/>
<connection from="-E6" to="-E5" fromLane="1" toLane="1" via=":J7_0_0" tl="J7" linkIndex="0" dir="r" state="o"/>
<connection from="E0" to="-E7" fromLane="1" toLane="0" via=":J1_0_0" dir="l" state="M"/>
<connection from="E3" to="E4" fromLane="1" toLane="1" via=":J5_0_0" tl="J5" linkIndex="0" dir="l" state="o"/>
<connection from="E4" to="E5" fromLane="1" toLane="1" via=":J6_0_0" tl="J6" linkIndex="0" dir="l" state="o"/>
<connection from="E5" to="E6" fromLane="1" toLane="1" via=":J7_1_0" tl="J7" linkIndex="1" dir="l" state="o"/>
<connection from="E6" to="E3" fromLane="1" toLane="1" via=":J4_0_0" tl="J4" linkIndex="0" dir="l" state="o"/>
<connection from="E7" to="-E0" fromLane="0" toLane="1" via=":J1_1_0" dir="r" state="M"/>
<connection from="EdgeExternBot" to="EdgeExternTop" fromLane="0" toLane="0" via=":JunctionExtern1_0_0" dir="t" state="M"/>
<connection from="EdgeExternTop" to="EdgeExternBot" fromLane="0" toLane="0" via=":JunctionExtern0_0_0" dir="t" state="M"/>

Expand All @@ -411,6 +424,8 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<connection from=":J0_4" to="E2" fromLane="0" toLane="1" via=":J0_9_0" dir="r" state="m"/>
<connection from=":J0_9" to="E2" fromLane="0" toLane="1" dir="r" state="m"/>
<connection from=":J0_5" to="E0" fromLane="0" toLane="1" dir="s" state="M"/>
<connection from=":J1_0" to="-E7" fromLane="0" toLane="0" dir="l" state="M"/>
<connection from=":J1_1" to="-E0" fromLane="0" toLane="1" dir="r" state="M"/>
<connection from=":J4_0" to="E3" fromLane="0" toLane="1" via=":J4_2_0" dir="l" state="m"/>
<connection from=":J4_2" to="E3" fromLane="0" toLane="1" dir="l" state="m"/>
<connection from=":J4_1" to="-E6" fromLane="0" toLane="1" dir="r" state="M"/>
Expand Down
4 changes: 4 additions & 0 deletions tests/netedit/network/junctions/merge/bubble/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# import common functions for netedit tests
import os
import sys
import time

testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests')
neteditTestRoot = os.path.join(
Expand All @@ -39,6 +40,9 @@
netedit.positions.network.junction.merge.toB.x,
netedit.positions.network.junction.merge.toB.y)

# wait for output
time.sleep(2)

# press enter
netedit.typeEnter()

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Error: Source junction 'J3' has no outgoing edges for trip 't_1'!
Quitting (on error).
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
4 changes: 2 additions & 2 deletions tests/netedit/selection/bugs/ticket2948/log.netedit
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ Warning: The traffic light 'J0' does not control any links; it will not be build
Warning: Could not build program '0' for traffic light 'J0'
Warning: The traffic light 'J3' does not control any links; it will not be build.
Warning: Could not build program '0' for traffic light 'J3'
Warning: Cannot restore attribute 'selected=true' for computed connection from lane 'E1_0'
Warning: Cannot restore attribute 'selected=true' for computed connection from lane '-E1_0'
Warning: Cannot restore attribute 'selected=true' for computed connection from lane 'E0_0'
Warning: Cannot restore attribute 'selected=true' for computed connection from lane 'E1_0'
Warning: Cannot restore attribute 'selected=true' for computed connection from lane '-E2_0'
Warning: Cannot restore attribute 'selected=true' for computed connection from lane '-E1_0'
Warning: The traffic light 'J0' does not control any links; it will not be build.
Warning: Could not build program '0' for traffic light 'J0'
Warning: The traffic light 'J3' does not control any links; it will not be build.
Expand Down
6 changes: 5 additions & 1 deletion tests/netedit/selection/bugs/ticket2948/meandatas.netedit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-20 14:34:11 by Eclipse SUMO netedit Version v1_21_0+1568-7ba4877f071
<!-- generated on 2025-01-15 16:08:14 by Eclipse SUMO netedit Version v1_21_0+1861-576d70cd5b1
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
Expand All @@ -14,4 +14,8 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- MeanDataEdges -->
<edgeData id="meanDataEdge" file="meanDataEdgeOutput.xml"/>
<!-- MeanDataLanes -->
<laneData id="meanDataLane" file="meanDataLaneOutput.xml"/>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Error: Source junction 'J3' has no outgoing edges for trip 't_1'!
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,2 @@
Error: Source junction 'J3' has no outgoing edges for trip 't_1'!
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
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-04 15:01:07 by Eclipse SUMO netedit Version v1_20_0+0930-542f1297b48
<!-- generated on 2025-01-15 16:10:08 by Eclipse SUMO netedit Version v1_21_0+1861-576d70cd5b1
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
Expand Down Expand Up @@ -47,10 +47,6 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<containerStop id="ct_1" lane="E11_0" startPos="5.80" endPos="15.80"/>
<containerStop id="ct_2" lane="-E7_0" startPos="4.80" endPos="14.80"/>
<containerStop id="ct_4" lane="-E6_0" startPos="5.80" endPos="15.80"/>
<chargingStation id="cs_0" lane="E6_0" startPos="4.80" endPos="14.80"/>
<chargingStation id="cs_1" lane="-E10_0" startPos="5.80" endPos="15.80"/>
<chargingStation id="cs_2" lane="-E11_0" startPos="4.80" endPos="14.80"/>
<chargingStation id="cs_3" lane="E7_0" startPos="5.80" endPos="15.80"/>
<parkingArea id="pa_0" lane="-E4_0">
<space x="-26.00" y="10.00"/>
</parkingArea>
Expand All @@ -63,6 +59,10 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<parkingArea id="pa_3" lane="-E5_0">
<space x="-26.00" y="-18.00"/>
</parkingArea>
<chargingStation id="cs_0" lane="E6_0" startPos="4.80" endPos="14.80"/>
<chargingStation id="cs_1" lane="-E10_0" startPos="5.80" endPos="15.80"/>
<chargingStation id="cs_2" lane="-E11_0" startPos="4.80" endPos="14.80"/>
<chargingStation id="cs_3" lane="E7_0" startPos="5.80" endPos="15.80"/>
<!-- Detectors -->
<inductionLoop id="e1_0" lane="E0_1" pos="2.80" period="300.00" file="e1_0.xml"/>
<inductionLoop id="e1_1" lane="-E0_1" pos="19.80" period="300.00" file="e1_1.xml"/>
Expand Down
Loading

0 comments on commit 38211dd

Please sign in to comment.