Skip to content

Commit

Permalink
added tests refs #21, #15885
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Dec 19, 2024
1 parent 1bbd6f0 commit 03b5219
Show file tree
Hide file tree
Showing 29 changed files with 358 additions and 0 deletions.
Empty file.
1 change: 1 addition & 0 deletions tests/duarouter/function/penalty/minor/options.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--weights.minor-penalty 10
1 change: 1 addition & 0 deletions tests/duarouter/function/penalty/minor/output.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
47 changes: 47 additions & 0 deletions tests/duarouter/function/penalty/minor/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 14:03:49 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<weights.minor-penalty value="10"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="31.60" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="19.64" edges="left0A0 A0left0"/>
</vehicle>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--weights.minor-penalty 10
--no-internal-links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
48 changes: 48 additions & 0 deletions tests/duarouter/function/penalty/minor_noInternal/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 14:00:22 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<no-internal-links value="true"/>
<weights.turnaround-penalty value="10"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="19.52" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="13.36" edges="left0A0 A0left0"/>
</vehicle>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--no-internal-links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
47 changes: 47 additions & 0 deletions tests/duarouter/function/penalty/noInternal/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 14:00:07 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<no-internal-links value="true"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="19.52" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="13.36" edges="left0A0 A0left0"/>
</vehicle>
</routes>
9 changes: 9 additions & 0 deletions tests/duarouter/function/penalty/testsuite.duarouter
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
default

# Copy of default
noInternal
turnaround
turnaround_noInternal
minor
minor_noInternal
tls
tls_noInternal
Empty file.
1 change: 1 addition & 0 deletions tests/duarouter/function/penalty/tls/options.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--weights.tls-penalty 10
1 change: 1 addition & 0 deletions tests/duarouter/function/penalty/tls/output.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
47 changes: 47 additions & 0 deletions tests/duarouter/function/penalty/tls/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 14:04:31 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<weights.tls-penalty value="10"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="33.10" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="19.64" edges="left0A0 A0left0"/>
</vehicle>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--weights.tls-penalty 10
--no-internal-links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
48 changes: 48 additions & 0 deletions tests/duarouter/function/penalty/tls_noInternal/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 14:00:22 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<no-internal-links value="true"/>
<weights.turnaround-penalty value="10"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="19.52" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="13.36" edges="left0A0 A0left0"/>
</vehicle>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--weights.turnaround-penalty 10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
47 changes: 47 additions & 0 deletions tests/duarouter/function/penalty/turnaround/routes.duarouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 13:59:05 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<weights.turnaround-penalty value="10"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="23.10" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="24.64" edges="left0A0 A0left0"/>
</vehicle>
</routes>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--weights.turnaround-penalty 10
--no-internal-links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-12-19 14:00:22 by Eclipse SUMO duarouter Version v1_21_0+1491-c87e41cfd61
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
<duarouterConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd">
<input>
<net-file value="input_net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<output-file value="routes.rou.xml"/>
<write-license value="true"/>
<alternatives-output value="NUL"/>
<write-costs value="true"/>
</output>
<processing>
<no-internal-links value="true"/>
<weights.turnaround-penalty value="10"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</duarouterConfiguration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="t_0" depart="0.00">
<route cost="19.52" edges="left0A0 A0B0 B0right0"/>
</vehicle>
<vehicle id="t_1" depart="0.00">
<route cost="13.36" edges="left0A0 A0left0"/>
</vehicle>
</routes>

0 comments on commit 03b5219

Please sign in to comment.