Providing a fix for issue #2267

1. The script API "map_file" attribute has been changed
   to accept and supply nil (for no file), a string (for
   a file, empty is equivalent to "no file") and a list
   for multiple files which are merged. The split at "+"
   or "," has been dropped.
2. The strm* tools option ("--lefdef-map") has been changed
   to allow multiple occurances instead of split at "+" or ",".
This commit is contained in:
Matthias Koefferlein
2026-02-05 23:21:04 +01:00
parent 4c58a66fce
commit 65fd3f3e50
10 changed files with 151 additions and 70 deletions
+7 -1
View File
@@ -370,9 +370,15 @@ class DBReaders_TestClass < TestBase
conf.separate_groups = true
assert_equal(conf.separate_groups, true)
assert_equal(conf.map_file, "")
assert_equal(conf.map_file, nil)
conf.map_file = "xyz.map"
assert_equal(conf.map_file, "xyz.map")
conf.map_file = nil
assert_equal(conf.map_file, nil)
conf.map_file = ""
assert_equal(conf.map_file, nil)
conf.map_file = [ "abc.map", "uvw.map" ]
assert_equal(conf.map_file, [ "abc.map", "uvw.map" ])
assert_equal(conf.lef_files.join(","), "")
conf.lef_files = [ "u.lef", "v.lef" ]