From d0005f3ca356e6002449e2cc337526770669038e Mon Sep 17 00:00:00 2001 From: m-kro Date: Wed, 2 Aug 2023 16:00:43 +0200 Subject: [PATCH] add test ref #13686 #21 Signed-off-by: m-kro --- tests/netconvert/config.netconvert | 1 + .../simple1_include/errors.netconvert | 0 .../simple1_include/foreign.netconvert | 204 ++++++++++++++++++ .../openDRIVE/simple1_include/included.xodr | 21 ++ .../openDRIVE/simple1_include/net.netconvert | 71 ++++++ .../openDRIVE/simple1_include/opendrive.xodr | 21 ++ .../simple1_include/options.netconvert | 1 + .../simple1_include/output.netconvert | 42 ++++ .../import/openDRIVE/testsuite.netconvert | 3 + 9 files changed, 364 insertions(+) create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/errors.netconvert create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/foreign.netconvert create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/included.xodr create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/net.netconvert create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/opendrive.xodr create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/options.netconvert create mode 100644 tests/netconvert/import/openDRIVE/simple1_include/output.netconvert diff --git a/tests/netconvert/config.netconvert b/tests/netconvert/config.netconvert index d3abafb3c72..c4f2294dcf7 100644 --- a/tests/netconvert/config.netconvert +++ b/tests/netconvert/config.netconvert @@ -23,6 +23,7 @@ copy_test_path:osm.xml.gz copy_test_path:matsim.xml copy_test_path:vissim.inpx copy_test_path:opendrive.xodr +copy_test_path:included.xodr copy_test_path:input_plain.nod.xml copy_test_path:input_plain.edg.xml copy_test_path:input_plain.con.xml diff --git a/tests/netconvert/import/openDRIVE/simple1_include/errors.netconvert b/tests/netconvert/import/openDRIVE/simple1_include/errors.netconvert new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/netconvert/import/openDRIVE/simple1_include/foreign.netconvert b/tests/netconvert/import/openDRIVE/simple1_include/foreign.netconvert new file mode 100644 index 00000000000..6dc01ad78cb --- /dev/null +++ b/tests/netconvert/import/openDRIVE/simple1_include/foreign.netconvert @@ -0,0 +1,204 @@ + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/tests/netconvert/import/openDRIVE/simple1_include/included.xodr b/tests/netconvert/import/openDRIVE/simple1_include/included.xodr new file mode 100644 index 00000000000..74810c360c9 --- /dev/null +++ b/tests/netconvert/import/openDRIVE/simple1_include/included.xodr @@ -0,0 +1,21 @@ + + + + + + + + +
+ + + + +
+ + + + + + +
diff --git a/tests/netconvert/import/openDRIVE/simple1_include/net.netconvert b/tests/netconvert/import/openDRIVE/simple1_include/net.netconvert new file mode 100644 index 00000000000..7466035c897 --- /dev/null +++ b/tests/netconvert/import/openDRIVE/simple1_include/net.netconvert @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/netconvert/import/openDRIVE/simple1_include/opendrive.xodr b/tests/netconvert/import/openDRIVE/simple1_include/opendrive.xodr new file mode 100644 index 00000000000..4377dfa390e --- /dev/null +++ b/tests/netconvert/import/openDRIVE/simple1_include/opendrive.xodr @@ -0,0 +1,21 @@ + + +
+ + + + + + + + + + + + + + + + + + diff --git a/tests/netconvert/import/openDRIVE/simple1_include/options.netconvert b/tests/netconvert/import/openDRIVE/simple1_include/options.netconvert new file mode 100644 index 00000000000..220b92a3b54 --- /dev/null +++ b/tests/netconvert/import/openDRIVE/simple1_include/options.netconvert @@ -0,0 +1 @@ +--opendrive opendrive.xodr -v --opendrive-output foreign.net --output net.net.xml diff --git a/tests/netconvert/import/openDRIVE/simple1_include/output.netconvert b/tests/netconvert/import/openDRIVE/simple1_include/output.netconvert new file mode 100644 index 00000000000..9d67134202b --- /dev/null +++ b/tests/netconvert/import/openDRIVE/simple1_include/output.netconvert @@ -0,0 +1,42 @@ +Parsing types from 'D:\Repos\sumo/data/typemap/opendriveNetconvert.typ.xml' ... done. +Parsing opendrive from 'opendrive.xodr' ... Parsing included opendrive from 'included.xodr' ... done. +done. + Import done: + 2 nodes loaded. + 21 types loaded. + 2 edges loaded. +Removing self-loops ... done (0ms). +Removing empty nodes ... done (1ms). + 0 nodes removed. +Moving network to origin ... done (0ms). +Computing turning directions ... done (0ms). +Assigning nodes to traffic lights ... done (0ms). +Sorting nodes' edges ... done (0ms). +Computing node shapes ... done (1ms). +Computing edge shapes ... done (1ms). +Computing node types ... done (0ms). +Computing priorities ... done (0ms). +Computing approached edges ... done (1ms). +Guessing and setting roundabouts ... done (0ms). +Computing approaching lanes ... done (0ms). +Dividing of lanes on approached lanes ... done (0ms). +Processing turnarounds ... done (0ms). +Rechecking of lane endings ... done (0ms). +Computing traffic light control information ... done (0ms). +Computing node logics ... done (0ms). +Computing traffic light logics ... done (0ms). + 0 traffic light(s) computed. +Building inner edges ... done (1ms). +----------------------------------------------------- +Summary: + Node type statistics: + Unregulated junctions : 0 + Priority junctions : 2 + Right-before-left junctions : 0 + Network boundaries: + Original boundary : 0.00,0.00,50.00,0.00 + Applied offset : 0.00,0.00 + Converted boundary : 0.00,0.00,50.00,0.00 +----------------------------------------------------- +Writing network ... done (11ms). +Success. diff --git a/tests/netconvert/import/openDRIVE/testsuite.netconvert b/tests/netconvert/import/openDRIVE/testsuite.netconvert index a7fac3e1d93..86aab06660c 100644 --- a/tests/netconvert/import/openDRIVE/testsuite.netconvert +++ b/tests/netconvert/import/openDRIVE/testsuite.netconvert @@ -7,6 +7,9 @@ simple1_remove simple1_noturnarounds simple1_left_nt simple1_right_nt + +# read OpenDRIVE from second file referenced in the main file +simple1_include simple2_noturnarounds simple2_left_nt simple2_right_nt