mirror of https://github.com/KLayout/klayout.git
Fixed unit tests.
This commit is contained in:
parent
142085bd64
commit
0215d05a12
|
|
@ -43,6 +43,7 @@
|
|||
#if defined(HAVE_QT)
|
||||
|
||||
# include "layApplication.h"
|
||||
# include "layMainWindow.h"
|
||||
# include "laySystemPaths.h"
|
||||
# include "layVersion.h"
|
||||
|
||||
|
|
@ -87,6 +88,13 @@ main (int argc, char **argv)
|
|||
static bool
|
||||
run_test (tl::TestBase *t, bool editable, bool slow, int repeat)
|
||||
{
|
||||
#if defined(HAVE_QT)
|
||||
// provide a clean main window without any views attached
|
||||
if (lay::MainWindow::instance ()) {
|
||||
lay::MainWindow::instance ()->close_all ();
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < repeat; ++i) {
|
||||
if (repeat > 1) {
|
||||
ut::noctrl << "Repeat iteration " << i + 1 << " of " << repeat;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -148,7 +148,7 @@ class DBLayoutToNetlistTests(unittest.TestCase):
|
|||
|
||||
lvs = pya.LayoutVsSchematic()
|
||||
|
||||
infile = os.path.join(ut_testsrc, "testdata", "algo", "lvs_test1b_au.lvsdb")
|
||||
infile = os.path.join(ut_testsrc, "testdata", "algo", "lvsdb_read_test.lvsdb")
|
||||
lvs.read(infile)
|
||||
|
||||
tmp = os.path.join(ut_testtmp, "tmp.lvsdb")
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class DBLayoutToNetlistTests(unittest.TestCase):
|
|||
xref = pya.NetlistCrossReference()
|
||||
|
||||
lvs = pya.LayoutVsSchematic()
|
||||
infile = os.path.join(ut_testsrc, "testdata", "algo", "lvs_test1b_au.lvsdb")
|
||||
infile = os.path.join(ut_testsrc, "testdata", "algo", "lvsdb_read_test.lvsdb")
|
||||
lvs.read(infile)
|
||||
|
||||
reader = pya.NetlistSpiceReader()
|
||||
|
|
@ -79,7 +79,7 @@ class DBLayoutToNetlistTests(unittest.TestCase):
|
|||
ut_testsrc = os.getenv("TESTSRC")
|
||||
|
||||
lvs = pya.LayoutVsSchematic()
|
||||
input = os.path.join(ut_testsrc, "testdata", "algo", "lvs_test2b_au.lvsdb")
|
||||
input = os.path.join(ut_testsrc, "testdata", "algo", "lvsdb_read_test2.lvsdb")
|
||||
lvs.read(input)
|
||||
|
||||
xref = lvs.xref()
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class DBLayoutVsSchematic_TestClass < TestBase
|
|||
|
||||
lvs = RBA::LayoutVsSchematic::new
|
||||
|
||||
input = File.join($ut_testsrc, "testdata", "algo", "lvs_test1b_au.lvsdb")
|
||||
input = File.join($ut_testsrc, "testdata", "algo", "lvsdb_read_test.lvsdb")
|
||||
lvs.read(input)
|
||||
|
||||
tmp = File::join($ut_testtmp, "tmp.lvsdb")
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class DBNetlistCrossReference_TestClass < TestBase
|
|||
xref = RBA::NetlistCrossReference::new
|
||||
|
||||
lvs = RBA::LayoutVsSchematic::new
|
||||
input = File.join($ut_testsrc, "testdata", "algo", "lvs_test1b_au.lvsdb")
|
||||
input = File.join($ut_testsrc, "testdata", "algo", "lvsdb_read_test.lvsdb")
|
||||
lvs.read(input)
|
||||
|
||||
reader = RBA::NetlistSpiceReader::new
|
||||
|
|
@ -54,7 +54,7 @@ class DBNetlistCrossReference_TestClass < TestBase
|
|||
def test_2_CircuitPairs
|
||||
|
||||
lvs = RBA::LayoutVsSchematic::new
|
||||
input = File.join($ut_testsrc, "testdata", "algo", "lvs_test2b_au.lvsdb")
|
||||
input = File.join($ut_testsrc, "testdata", "algo", "lvsdb_read_test2.lvsdb")
|
||||
lvs.read(input)
|
||||
|
||||
xref = lvs.xref
|
||||
|
|
|
|||
Loading…
Reference in New Issue