WIP: deep region debugged, GSI binding, tests.

This commit is contained in:
Matthias Koefferlein
2018-11-17 00:16:13 +01:00
parent f5cc8b6018
commit a438dfd6f0
25 changed files with 699 additions and 71 deletions
Binary file not shown.
Binary file not shown.
+29
View File
@@ -769,6 +769,35 @@ class DBRegion_TestClass < TestBase
end
# deep region tests
def test_deep1
# construction/destruction magic ...
GC.start
assert_equal(RBA::DeepShapeStore::instance_count, 0)
dss = RBA::DeepShapeStore::new
dss._create
assert_equal(RBA::DeepShapeStore::instance_count, 1)
dss = nil
GC.start
assert_equal(RBA::DeepShapeStore::instance_count, 0)
dss = RBA::DeepShapeStore::new
ly = RBA::Layout::new
ly.read(File.join($ut_testsrc, "testdata", "algo", "deep_region_l1.gds"))
l1 = ly.layer(1, 0)
r = RBA::Region::new(ly.top_cell.begin_shapes_rec(l1), dss)
rf = RBA::Region::new(ly.top_cell.begin_shapes_rec(l1))
assert_equal(r.area, 53120000)
assert_equal(rf.area, 53120000)
# force destroy, so the unit tests pass on the next iteration
dss._destroy
assert_equal(RBA::DeepShapeStore::instance_count, 0)
end
end
load("test_epilogue.rb")