mirror of https://github.com/KLayout/klayout.git
Trying to fix unit tests
This commit is contained in:
parent
3a069427cd
commit
8b010d61d2
|
|
@ -121,6 +121,12 @@ class DBLibrary_TestClass < TestBase
|
||||||
|
|
||||||
def test_4_library_registration_and_rename
|
def test_4_library_registration_and_rename
|
||||||
|
|
||||||
|
# clean up before
|
||||||
|
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||||
|
l = RBA::Library::library_by_name(name)
|
||||||
|
l && l.unregister
|
||||||
|
end
|
||||||
|
|
||||||
lib = RBA::Library::new
|
lib = RBA::Library::new
|
||||||
lib.description = "LIB1"
|
lib.description = "LIB1"
|
||||||
lib.delete
|
lib.delete
|
||||||
|
|
@ -159,6 +165,12 @@ class DBLibrary_TestClass < TestBase
|
||||||
|
|
||||||
def test_5_reload
|
def test_5_reload
|
||||||
|
|
||||||
|
# clean up before
|
||||||
|
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||||
|
l = RBA::Library::library_by_name(name)
|
||||||
|
l && l.unregister
|
||||||
|
end
|
||||||
|
|
||||||
lib = MyLibImpl::new
|
lib = MyLibImpl::new
|
||||||
lib.description = "LIB1"
|
lib.description = "LIB1"
|
||||||
lib.register("RBA-unit-test")
|
lib.register("RBA-unit-test")
|
||||||
|
|
@ -178,6 +190,12 @@ class DBLibrary_TestClass < TestBase
|
||||||
|
|
||||||
def test_6_cells_become_defunct_after_unregister
|
def test_6_cells_become_defunct_after_unregister
|
||||||
|
|
||||||
|
# clean up before
|
||||||
|
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||||
|
l = RBA::Library::library_by_name(name)
|
||||||
|
l && l.unregister
|
||||||
|
end
|
||||||
|
|
||||||
lib = RBA::Library::new
|
lib = RBA::Library::new
|
||||||
lib.description = "LIB1"
|
lib.description = "LIB1"
|
||||||
lib.register("RBA-unit-test")
|
lib.register("RBA-unit-test")
|
||||||
|
|
@ -209,6 +227,12 @@ class DBLibrary_TestClass < TestBase
|
||||||
|
|
||||||
def test_7_change_ref
|
def test_7_change_ref
|
||||||
|
|
||||||
|
# clean up before
|
||||||
|
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||||
|
l = RBA::Library::library_by_name(name)
|
||||||
|
l && l.unregister
|
||||||
|
end
|
||||||
|
|
||||||
lib = RBA::Library::new
|
lib = RBA::Library::new
|
||||||
lib.description = "LIB1"
|
lib.description = "LIB1"
|
||||||
lib.register("RBA-unit-test")
|
lib.register("RBA-unit-test")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue