Fixed unit tests.

This commit is contained in:
Matthias Koefferlein 2019-07-19 00:02:05 +02:00
parent 142085bd64
commit 0215d05a12
7 changed files with 2029 additions and 6 deletions

View File

@ -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;

1002
testdata/algo/lvsdb_read_test.lvsdb vendored Normal file

File diff suppressed because it is too large Load Diff

1013
testdata/algo/lvsdb_read_test2.lvsdb vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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")

View File

@ -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()

View File

@ -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")

View File

@ -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