Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Aug 2, 2024
1 parent ea3ad78 commit afbd244
Show file tree
Hide file tree
Showing 32 changed files with 1,480 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-26 16:39:09 by Eclipse SUMO netedit Version v1_20_0+1432-eb803cea24d
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
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<busStop id="busStopA" lane="Edge2_1" startPos="46.00" endPos="56.00"/>
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="24.18" endPos="31.09"/>
<trainStop id="trainStopA" lane="Edge2_1" startPos="2.00" endPos="12.00"/>
<trainStop id="trainStopB" name="m" lane="EdgeCenter0_1" startPos="6.05" endPos="12.95"/>
<containerStop id="containerStopA" lane="Edge2_1" startPos="34.00" endPos="44.00"/>
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="10.36" endPos="20.73"/>
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="13.00" endPos="21.00"/>
<chargingStation id="chargingStationB" lane="EdgeCenter1_1" startPos="34.42" endPos="41.58"/>
<parkingArea id="parkingAreaA" lane="Edge2_1" startPos="22.00" endPos="32.00"/>
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="16.41" endPos="26.77"/>
<!-- Detectors -->
<inductionLoop id="e1_0" lane="Edge4_1" pos="3.00" period="300.00" file="e1_0.xml"/>
<inductionLoop id="e1_1" lane="Edge1_1" pos="27.00" period="300.00" file="e1_1.xml"/>
<!-- TAZs -->
<taz id="taz_green" shape="8.00,10.00 8.00,-10.00 -4.00,-10.00 -4.00,10.00 8.00,10.00" fill="1" color="green"/>
<taz id="taz_red" shape="20.00,10.00 20.00,-10.00 42.00,-10.00 42.00,10.00 20.00,10.00" fill="1" color="red"/>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-26 16:39:09 by Eclipse SUMO netedit Version v1_20_0+1432-eb803cea24d
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
-->

<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd">
<interval id="dataSet" begin="0.00" end="3600.00">
<edge id="Edge0"/>
<edge id="Edge1"/>
<edge id="Edge2"/>
<edge id="Edge3"/>
<edge id="Edge4"/>
<edge id="Edge5"/>
</interval>
</data>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Warning: No connection between edge 'Junction3-source' and edge 'Junction4-sink' found.
Warning: No route for vehicle 't_3' found.
Error: Vehicle 't_3' has no valid route.
Quitting (on error).

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TestFunctions: Netedit opened successfully
Finding reference
TestFunctions: 'reference.png' found. Position: 304 - 168
TestFunctions: Netedit closed successfully
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-08-02 16:21:19 by Eclipse SUMO netedit Version v1_20_0+1519-a635611cf51
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
-->

<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) -->
<container id="c_0" depart="0.00">
<transport from="EdgeExternBot" to="EdgeExternTop"/>
</container>
<container id="c_1" depart="0.00">
<tranship from="EdgeExternTop" to="EdgeExternBot"/>
</container>
<container id="c_2" depart="0.00">
<tranship from="Edge0" to="EdgeCenter1"/>
</container>
<container id="c_3" depart="0.00">
<transport from="EdgeCenter1" to="Edge5"/>
</container>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-08-02 15:37:38 by Eclipse SUMO netedit Version v1_20_0+1519-a635611cf51
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<!-- Vehicles, containers and containers (sorted by depart) -->
<container id="c_0" depart="0.00">
<transport from="EdgeExternBot" to="EdgeExternTop"/>
</container>
<container id="c_1" depart="0.00">
<tranship from="EdgeExternTop" to="EdgeExternBot"/>
</container>
<container id="c_2" depart="0.00">
<tranship from="Edge0" to="EdgeCenter1"/>
</container>
<container id="c_3" depart="0.00">
<transport from="EdgeCenter1" to="Edge5"/>
</container>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env python
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
# Copyright (C) 2009-2024 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/
# This Source Code 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

# @file test.py
# @author Pablo Alvarez Lopez
# @date 2016-11-25

# import common functions for netedit tests
import os
import sys

testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests')
neteditTestRoot = os.path.join(
os.environ.get('TEXTTEST_HOME', testRoot), 'netedit')
sys.path.append(neteditTestRoot)
import neteditTestFunctions as netedit # noqa

# Open netedit
neteditProcess, referencePosition = netedit.setupAndStart(
neteditTestRoot, ['--sidewalks.guess', '--crossings.guess'])

# show demand elements in network mode
netedit.changeEditMode(netedit.attrs.modes.network.showDemandElements)

# Recompute with volatile options
netedit.rebuildNetworkWithVolatileOptions()

# save Netedit config
netedit.saveNeteditConfig(referencePosition)

# quit netedit
netedit.quit(neteditProcess)

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-26 16:39:09 by Eclipse SUMO netedit Version v1_20_0+1432-eb803cea24d
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
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<busStop id="busStopA" lane="Edge2_1" startPos="46.00" endPos="56.00"/>
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="24.18" endPos="31.09"/>
<trainStop id="trainStopA" lane="Edge2_1" startPos="2.00" endPos="12.00"/>
<trainStop id="trainStopB" name="m" lane="EdgeCenter0_1" startPos="6.05" endPos="12.95"/>
<containerStop id="containerStopA" lane="Edge2_1" startPos="34.00" endPos="44.00"/>
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="10.36" endPos="20.73"/>
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="13.00" endPos="21.00"/>
<chargingStation id="chargingStationB" lane="EdgeCenter1_1" startPos="34.42" endPos="41.58"/>
<parkingArea id="parkingAreaA" lane="Edge2_1" startPos="22.00" endPos="32.00"/>
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="16.41" endPos="26.77"/>
<!-- Detectors -->
<inductionLoop id="e1_0" lane="Edge4_1" pos="3.00" period="300.00" file="e1_0.xml"/>
<inductionLoop id="e1_1" lane="Edge1_1" pos="27.00" period="300.00" file="e1_1.xml"/>
<!-- TAZs -->
<taz id="taz_green" shape="8.00,10.00 8.00,-10.00 -4.00,-10.00 -4.00,10.00 8.00,10.00" fill="1" color="green"/>
<taz id="taz_red" shape="20.00,10.00 20.00,-10.00 42.00,-10.00 42.00,10.00 20.00,10.00" fill="1" color="red"/>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-26 16:39:09 by Eclipse SUMO netedit Version v1_20_0+1432-eb803cea24d
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
-->

<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd">
<interval id="dataSet" begin="0.00" end="3600.00">
<edge id="Edge0"/>
<edge id="Edge1"/>
<edge id="Edge2"/>
<edge id="Edge3"/>
<edge id="Edge4"/>
<edge id="Edge5"/>
</interval>
</data>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Warning: No connection between edge 'Junction3-source' and edge 'Junction4-sink' found.
Warning: No route for vehicle 't_3' found.
Error: Vehicle 't_3' has no valid route.
Quitting (on error).
Loading

0 comments on commit afbd244

Please sign in to comment.