Unit test refactoring

Move ut framework to tl, so there are less complex
dependencies.
This commit is contained in:
Matthias Koefferlein 2017-09-03 01:54:11 +02:00
parent 47b2e29137
commit cfe8375be0
138 changed files with 1378 additions and 1432 deletions

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "antObject.h"
#include "antTemplate.h"

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
antBasicTests.cc \
INCLUDEPATH += $$ANT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$ANT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$ANT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$ANT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_ant -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_ant -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -23,11 +23,10 @@
#include "bdWriterOptions.h"
#include "bdReaderOptions.h"
#include "tlCommandLineParser.h"
#include "tlUnitTest.h"
#include "dbLayout.h"
#include "dbCell.h"
#include "utHead.h"
// Testing writer options
TEST(1)
{

View File

@ -20,18 +20,19 @@
*/
#include "utHead.h"
#include "bdConverterMain.h"
#include "dbCIFReader.h"
#include "dbDXFReader.h"
#include "dbOASISReader.h"
#include "dbGDS2Reader.h"
#include "dbTestSupport.h"
#include "contrib/dbGDS2TextReader.h"
#include "tlUnitTest.h"
// Testing the converter main implementation (CIF)
TEST(1)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/gds/t10.gds";
std::string output = this->tmp_file ();
@ -48,13 +49,13 @@ TEST(1)
reader.read (layout, db::LoadLayoutOptions ());
}
this->compare_layouts (layout, input, ut::NoNormalization);
db::compare_layouts (this, layout, input, db::NoNormalization);
}
// Testing the converter main implementation (DXF)
TEST(2)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/gds/t10.gds";
std::string output = this->tmp_file ();
@ -77,13 +78,13 @@ TEST(2)
layout.rename_cell (top.second, "RINGO");
// Use GDS2 normalization to solve the box vs. polygon issue
this->compare_layouts (layout, input, ut::WriteGDS2);
db::compare_layouts (this, layout, input, db::WriteGDS2);
}
// Testing the converter main implementation (GDS2)
TEST(3)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/gds/t10.gds";
std::string output = this->tmp_file ();
@ -100,13 +101,13 @@ TEST(3)
reader.read (layout, db::LoadLayoutOptions ());
}
this->compare_layouts (layout, input, ut::NoNormalization);
db::compare_layouts (this, layout, input, db::NoNormalization);
}
// Testing the converter main implementation (GDS2Text)
TEST(4)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/gds/t10.gds";
std::string output = this->tmp_file ();
@ -123,13 +124,13 @@ TEST(4)
reader.read (layout, db::LoadLayoutOptions ());
}
this->compare_layouts (layout, input, ut::NoNormalization);
db::compare_layouts (this, layout, input, db::NoNormalization);
}
// Testing the converter main implementation (OASIS)
TEST(5)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/gds/t10.gds";
std::string output = this->tmp_file ();
@ -146,6 +147,6 @@ TEST(5)
reader.read (layout, db::LoadLayoutOptions ());
}
this->compare_layouts (layout, input, ut::NoNormalization);
db::compare_layouts (this, layout, input, db::NoNormalization);
}

View File

@ -20,17 +20,17 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "bdCommon.h"
BD_PUBLIC int strm2txt (int argc, char *argv[]);
TEST(1)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/gds/t10.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strm2txt_au.txt";
std::string output = this->tmp_file ();

View File

@ -20,18 +20,19 @@
*/
#include "utHead.h"
#include "bdCommon.h"
#include "dbReader.h"
#include "dbTestSupport.h"
#include "tlUnitTest.h"
BD_PUBLIC int strmclip (int argc, char *argv[]);
TEST(1A)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/bd/strm2clip_in.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strm2clip_au1.gds";
std::string output = this->tmp_file ();
@ -48,15 +49,15 @@ TEST(1A)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
}
TEST(1B)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/bd/strm2clip_in.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strm2clip_au1.gds";
std::string output = this->tmp_file ();
@ -73,15 +74,15 @@ TEST(1B)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
}
TEST(2)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/bd/strm2clip_in.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strm2clip_au2.gds";
std::string output = this->tmp_file ();
@ -98,6 +99,6 @@ TEST(2)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
}

View File

@ -20,9 +20,9 @@
*/
#include "utHead.h"
#include "bdCommon.h"
#include "dbReader.h"
#include "tlUnitTest.h"
#include "tlLog.h"
#include <sstream>
@ -32,17 +32,17 @@ BD_PUBLIC int strmcmp (int argc, char *argv[]);
TEST(1)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
tl::info << "Self test";
EXPECT_EQ (cap.captured_text (), "Self test\n");
cap.clear ();
EXPECT_EQ (cap.captured_text (), "");
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref1.gds";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -54,12 +54,12 @@ TEST(1)
TEST(2A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref2.gds";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -83,12 +83,12 @@ TEST(2A)
TEST(2B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref2.gds";
const char *argv[] = { "x", "-s", input_a.c_str (), input_b.c_str () };
@ -100,12 +100,12 @@ TEST(2B)
TEST(2C)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref2.gds";
const char *argv[] = { "x", "-am=8/0", "-as", "-bm=8/0", "-bs", input_a.c_str (), input_b.c_str () };
@ -124,12 +124,12 @@ TEST(2C)
TEST(2D)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref2.gds";
const char *argv[] = { "x", "-m=1", input_a.c_str (), input_b.c_str () };
@ -145,12 +145,12 @@ TEST(2D)
TEST(2E)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref2.gds";
const char *argv[] = { "x", "-ta=INV2", "-tb=INV2", input_a.c_str (), input_b.c_str () };
@ -160,12 +160,12 @@ TEST(2E)
TEST(2F)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref2.gds";
const char *argv[] = { "x", "-u", input_a.c_str (), input_b.c_str () };
@ -183,12 +183,12 @@ TEST(2F)
TEST(3A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref3.gds";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -207,12 +207,12 @@ TEST(3A)
TEST(3B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref3.gds";
const char *argv[] = { "x", "-t=0.001", input_a.c_str (), input_b.c_str () };
@ -222,12 +222,12 @@ TEST(3B)
TEST(4A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref4.gds";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -249,12 +249,12 @@ TEST(4A)
TEST(4B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref4.gds";
const char *argv[] = { "x", "-p", input_a.c_str (), input_b.c_str () };
@ -264,12 +264,12 @@ TEST(4B)
TEST(5A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref5.gds";
const char *argv[] = { "x", "-u", input_a.c_str (), input_b.c_str () };
@ -284,12 +284,12 @@ TEST(5A)
TEST(5B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref5.gds";
const char *argv[] = { "x", "--expand-arrays", input_a.c_str (), input_b.c_str () };
@ -299,12 +299,12 @@ TEST(5B)
TEST(6A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref6.gds";
const char *argv[] = { "x", "-r", input_a.c_str (), input_b.c_str () };
@ -323,12 +323,12 @@ TEST(6A)
TEST(6B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref6.gds";
const char *argv[] = { "x", "-np", input_a.c_str (), input_b.c_str () };
@ -338,12 +338,12 @@ TEST(6B)
TEST(7A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref7.oas";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -358,12 +358,12 @@ TEST(7A)
TEST(7B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref7.oas";
const char *argv[] = { "x", "-nl", input_a.c_str (), input_b.c_str () };
@ -373,12 +373,12 @@ TEST(7B)
TEST(8A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref8.gds";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -405,12 +405,12 @@ TEST(8A)
TEST(8B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref8.gds";
const char *argv[] = { "x", "-c", input_a.c_str (), input_b.c_str () };
@ -424,12 +424,12 @@ TEST(8B)
TEST(9A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref9.gds";
const char *argv[] = { "x", input_a.c_str (), input_b.c_str () };
@ -444,12 +444,12 @@ TEST(9A)
TEST(9B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmcmp_in.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmcmp_ref9.gds";
const char *argv[] = { "x", "-l", input_a.c_str (), input_b.c_str () };

View File

@ -20,10 +20,11 @@
*/
#include "utHead.h"
#include "bdCommon.h"
#include "dbReader.h"
#include "dbTestSupport.h"
#include "tlLog.h"
#include "tlUnitTest.h"
#include <sstream>
@ -31,12 +32,12 @@ BD_PUBLIC int strmxor (int argc, char *argv[]);
TEST(0)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in1.gds";
std::string output = this->tmp_file ("tmp.oas");
@ -52,15 +53,15 @@ TEST(0)
TEST(1A)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strmxor_au1.oas";
std::string output = this->tmp_file ("tmp.oas");
@ -77,7 +78,7 @@ TEST(1A)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
EXPECT_EQ (cap.captured_text (),
"Layer 10/0 is not present in first layout, but in second\n"
"Result summary (layers without differences are not shown):\n"
@ -94,12 +95,12 @@ TEST(1A)
TEST(1B)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string output = this->tmp_file ("tmp.oas");
@ -124,12 +125,12 @@ TEST(1B)
TEST(1C)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string output = this->tmp_file ("tmp.oas");
@ -145,12 +146,12 @@ TEST(1C)
TEST(1D)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string output = this->tmp_file ("tmp.oas");
@ -163,15 +164,15 @@ TEST(1D)
TEST(2)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strmxor_au2.oas";
std::string output = this->tmp_file ("tmp.oas");
@ -188,7 +189,7 @@ TEST(2)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
EXPECT_EQ (cap.captured_text (),
""
);
@ -196,15 +197,15 @@ TEST(2)
TEST(3)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strmxor_au3.oas";
std::string output = this->tmp_file ("tmp.oas");
@ -221,7 +222,7 @@ TEST(3)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
EXPECT_EQ (cap.captured_text (),
"Layer 10/0 is not present in first layout, but in second\n"
);
@ -229,15 +230,15 @@ TEST(3)
TEST(4)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strmxor_au4.oas";
std::string output = this->tmp_file ("tmp.oas");
@ -254,7 +255,7 @@ TEST(4)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
EXPECT_EQ (cap.captured_text (),
"Layer 10/0 is not present in first layout, but in second\n"
);
@ -262,15 +263,15 @@ TEST(4)
TEST(5)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strmxor_au5.oas";
std::string output = this->tmp_file ("tmp.oas");
@ -287,7 +288,7 @@ TEST(5)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
EXPECT_EQ (cap.captured_text (),
"Layer 10/0 is not present in first layout, but in second\n"
);
@ -295,15 +296,15 @@ TEST(5)
TEST(6)
{
ut::CaptureChannel cap;
tl::CaptureChannel cap;
std::string input_a = ut::testsrc ();
std::string input_a = tl::testsrc ();
input_a += "/testdata/bd/strmxor_in1.gds";
std::string input_b = ut::testsrc ();
std::string input_b = tl::testsrc ();
input_b += "/testdata/bd/strmxor_in2.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/bd/strmxor_au6.oas";
std::string output = this->tmp_file ("tmp.oas");
@ -320,7 +321,7 @@ TEST(6)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (this, layout, au, db::NoNormalization);
EXPECT_EQ (cap.captured_text (),
"Layer 10/0 is not present in first layout, but in second\n"
);

View File

@ -16,7 +16,7 @@ SOURCES = \
bdStrmxorTests.cc \
INCLUDEPATH += $$BD_INC $$DB_INC $$TL_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$BD_INC $$DB_INC $$TL_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$BD_INC $$DB_INC $$TL_INC $$GSI_INC
DEPENDPATH += $$BD_INC $$DB_INC $$TL_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_bd -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_bd -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -85,6 +85,7 @@ SOURCES = \
dbStatic.cc \
dbStream.cc \
dbStreamLayers.cc \
dbTestSupport.cc \
dbText.cc \
dbTextWriter.cc \
dbTilingProcessor.cc \
@ -211,6 +212,7 @@ HEADERS = \
dbStatic.h \
dbStream.h \
dbStreamLayers.h \
dbTestSupport.h \
dbText.h \
dbTextWriter.h \
dbTilingProcessor.h \

View File

@ -20,8 +20,6 @@
*/
#ifndef HDR_dbCell
#define HDR_dbCell

View File

@ -34,6 +34,7 @@
#include "dbLayoutStateModel.h"
#include "dbLayerProperties.h"
#include "dbMetaInfo.h"
#include "dbCellInst.h"
#include "tlException.h"
#include "tlVector.h"
#include "tlString.h"

154
src/db/db/dbTestSupport.cc Normal file
View File

@ -0,0 +1,154 @@
/*
KLayout Layout Viewer
Copyright (C) 2006-2017 Matthias Koefferlein
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "dbTestSupport.h"
#include "dbStreamLayers.h"
#include "dbReader.h"
#include "dbWriter.h"
#include "dbGDS2Writer.h"
#include "dbOASISWriter.h"
#include "dbCommonReader.h"
#include "dbCell.h"
#include "dbCellInst.h"
#include "dbLayoutDiff.h"
#include "tlUnitTest.h"
#include <QFileInfo>
namespace db
{
void compare_layouts (tl::TestBase *_this, const db::Layout &layout, const std::string &au_file, NormalizationMode norm, db::Coord tolerance)
{
compare_layouts (_this, layout, au_file, db::LayerMap (), true, norm, tolerance);
}
void compare_layouts (tl::TestBase *_this, const db::Layout &layout, const std::string &au_file, const db::LayerMap &lm, bool read_other_layers, NormalizationMode norm, db::Coord tolerance)
{
// normalize the layout by writing to GDS and reading from ..
// generate a "unique" name ...
unsigned int hash = 0;
for (const char *cp = au_file.c_str (); *cp; ++cp) {
hash = (hash << 4) ^ (hash >> 4) ^ ((unsigned int) *cp);
}
std::string tmp_file;
if (norm == WriteGDS2) {
tmp_file = _this->tmp_file (tl::sprintf ("tmp_%x.gds", hash));
tl::OutputStream stream (tmp_file.c_str ());
db::GDS2Writer writer;
db::SaveLayoutOptions options;
writer.write (const_cast<db::Layout &> (layout), stream, options);
} else {
tmp_file = _this->tmp_file (tl::sprintf ("tmp_%x.oas", hash));
tl::OutputStream stream (tmp_file.c_str ());
db::OASISWriter writer;
db::SaveLayoutOptions options;
writer.write (const_cast<db::Layout &> (layout), stream, options);
}
const db::Layout *subject = 0;
db::Layout layout2;
if (norm != NoNormalization) {
// read all layers from the original layout, so the layer table is the same
for (db::Layout::layer_iterator l = layout.begin_layers (); l != layout.end_layers (); ++l) {
layout2.insert_layer ((*l).first, *(*l).second);
}
tl::InputStream stream (tmp_file);
db::Reader reader (stream);
reader.read (layout2);
subject = &layout2;
} else {
subject = &layout;
}
bool equal = false;
bool any = false;
int n = 0;
for ( ; ! equal; ++n) {
db::Layout layout_au;
// read all layers from the original layout, so the layer table is the same
for (db::Layout::layer_iterator l = layout.begin_layers (); l != layout.end_layers (); ++l) {
layout_au.insert_layer ((*l).first, *(*l).second);
}
db::LoadLayoutOptions options;
options.get_options<db::CommonReaderOptions> ().layer_map = lm;
options.get_options<db::CommonReaderOptions> ().create_other_layers = read_other_layers;
std::string fn = au_file;
if (n > 0) {
fn += tl::sprintf (".%d", n);
}
if (QFileInfo (tl::to_qstring (fn)).exists ()) {
if (n == 1 && any) {
throw tl::Exception (tl::sprintf ("Inconsistent reference variants for %s: there can be either variants (.1,.2,... suffix) or a single file (without suffix)", au_file));
}
any = true;
tl::InputStream stream (fn);
db::Reader reader (stream);
reader.read (layout_au, options);
equal = db::compare_layouts (*subject, layout_au, (n > 0 ? db::layout_diff::f_silent : db::layout_diff::f_verbose) | db::layout_diff::f_flatten_array_insts /*| db::layout_diff::f_no_text_details | db::layout_diff::f_no_text_orientation*/, tolerance, 100 /*max diff lines*/);
if (equal && n > 0) {
tl::info << tl::sprintf ("Found match on golden reference variant %s", fn);
}
} else if (n > 0) {
if (! any) {
tl::warn << tl::sprintf ("No golden data found (%s)", au_file);
}
break;
}
}
if (! equal) {
_this->raise (tl::sprintf ("Compare failed - see\n actual: %s\n golden: %s%s",
tl::to_string (QFileInfo (tl::to_qstring (tmp_file)).absoluteFilePath ()),
tl::to_string (QFileInfo (tl::to_qstring (au_file)).absoluteFilePath ()),
(n > 1 ? "\nand variants" : "")));
}
}
}

77
src/db/db/dbTestSupport.h Normal file
View File

@ -0,0 +1,77 @@
/*
KLayout Layout Viewer
Copyright (C) 2006-2017 Matthias Koefferlein
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef HDR_dbTestSupport
#define HDR_dbTestSupport
#include "dbCommon.h"
#include "dbTypes.h"
#include <string>
namespace tl
{
class TestBase;
}
namespace db
{
class Layout;
class Cell;
class LayerMap;
/**
* @brief Specifies the normalization mode for compare_layouts
*/
enum NormalizationMode
{
NoNormalization, // no normalization - take the test subject as it is
WriteGDS2, // normalize subject by writing to GDS2 and reading back
WriteOAS // normalize subject by writing to OASIS and reading back
};
/**
* @brief Compares a layout with a golden layout file
* @param layout The layout to compare
* @param au_file The golden file path
* @param norm The normalization mode (see NormalizationMode)
* @param tolerance A tolerance applied when comparing shapes in database units
* The layout is normalized by writing to a file and reading back
*/
void compare_layouts (tl::TestBase *_this, const db::Layout &layout, const std::string &au_file, NormalizationMode norm = WriteGDS2, db::Coord tolerance = 0);
/**
* @brief Compares a layout with a golden layout file with layer mapping
* @param layout The layout to compare
* @param au_file The golden file path
* @param lmap The layer mapping object
* @param read_all_others If true, all other layers will be read too
* @param norm The normalization mode (see NormalizationMode)
* @param tolerance A tolerance applied when comparing shapes in database units
* The layout is normalized by writing to a file and reading back
*/
void compare_layouts (tl::TestBase *_this, const db::Layout &layout, const std::string &au_file, const db::LayerMap &lmap, bool read_all_others, NormalizationMode norm = WriteGDS2, db::Coord tolerance = 0);
}
#endif

View File

@ -23,7 +23,7 @@
#include "dbArray.h"
#include "dbBoxConvert.h"
#include "utHead.h"
#include "tlUnitTest.h"
typedef db::array <db::Box, db::Trans> BoxArray;

View File

@ -22,7 +22,7 @@
#include "dbBox.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)

View File

@ -24,7 +24,7 @@
#include "dbBoxScanner.h"
#include "dbShapeProcessor.h"
#include "dbRecursiveShapeIterator.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include "tlTimer.h"
#include "tlLog.h"
@ -196,7 +196,7 @@ TEST(1f)
EXPECT_EQ (tr.str, "");
}
void run_test2 (ut::TestBase *_this, size_t n, double ff, db::Coord spread, bool touch = true)
void run_test2 (tl::TestBase *_this, size_t n, double ff, db::Coord spread, bool touch = true)
{
std::vector<db::Box> bb;
for (size_t i = 0; i < n; ++i) {
@ -469,7 +469,7 @@ TEST(10e)
EXPECT_EQ (cl2s (clusters), "(0,1)");
}
void run_test11 (ut::TestBase *_this, size_t n, double ff, db::Coord spread, bool touch = true)
void run_test11 (tl::TestBase *_this, size_t n, double ff, db::Coord spread, bool touch = true)
{
std::vector<db::Box> bb;
for (size_t i = 0; i < n; ++i) {
@ -678,7 +678,7 @@ struct BooleanAndInteractionClusterCollector
TEST(100)
{
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/other/";
fn += "bs100.oas.gz";

View File

@ -23,7 +23,7 @@
#include "dbBoxTree.h"
#include "dbBoxConvert.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include "tlTimer.h"
#include "tlLog.h"
@ -148,11 +148,11 @@ typedef db::unstable_box_tree<db::Box, db::Box, Box2Box> UnstableTestTreeL;
typedef db::unstable_box_tree<db::Box, db::Box, Box2BoxCmplx> UnstableTestTreeCmplxL;
template <class Tree, class Box, class BoxConv>
static void test_tree_overlap (ut::TestBase *_this, const Tree &t, const Box &b, BoxConv conv)
static void test_tree_overlap (tl::TestBase *_this, const Tree &t, const Box &b, BoxConv conv)
{
typedef typename Tree::object_type value_type;
if (ut::verbose ()) {
if (tl::verbose ()) {
std::cout << "Testing vs. " << b << " overlapping" << std::endl;
}
@ -163,7 +163,7 @@ static void test_tree_overlap (ut::TestBase *_this, const Tree &t, const Box &b,
}
}
if (ut::verbose ()) {
if (tl::verbose ()) {
for (typename Tree::const_iterator e = t.begin (); e != t.end (); ++e) {
std::cout << " v=" << *e << std::endl;
}
@ -176,7 +176,7 @@ static void test_tree_overlap (ut::TestBase *_this, const Tree &t, const Box &b,
} else {
good_idx.erase (&*i);
}
if (ut::verbose ()) {
if (tl::verbose ()) {
std::cout << *i << std::endl;
}
++i;
@ -186,11 +186,11 @@ static void test_tree_overlap (ut::TestBase *_this, const Tree &t, const Box &b,
}
template <class Tree, class Box, class BoxConv>
static void test_tree_touching (ut::TestBase *_this, const Tree &t, const Box &b, BoxConv conv)
static void test_tree_touching (tl::TestBase *_this, const Tree &t, const Box &b, BoxConv conv)
{
typedef typename Tree::object_type value_type;
if (ut::verbose ()) {
if (tl::verbose ()) {
std::cout << "Testing vs. " << b << " touching" << std::endl;
}
@ -201,7 +201,7 @@ static void test_tree_touching (ut::TestBase *_this, const Tree &t, const Box &b
}
}
if (ut::verbose ()) {
if (tl::verbose ()) {
for (typename Tree::const_iterator e = t.begin (); e != t.end (); ++e) {
std::cout << " v=" << *e << std::endl;
}
@ -214,7 +214,7 @@ static void test_tree_touching (ut::TestBase *_this, const Tree &t, const Box &b
} else {
good_idx.erase (&*i);
}
if (ut::verbose ()) {
if (tl::verbose ()) {
std::cout << *i << std::endl;
}
++i;

View File

@ -26,12 +26,12 @@
#include "dbWriter.h"
#include "dbCIFWriter.h"
#include "dbGDS2Writer.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <QDir>
#include <stdlib.h>
static void run_test (ut::TestBase *_this, const char *file, const char *file_au, const char *map = 0, double dbu = 0.001, bool dummy_calls = false, bool blank_sep = false)
static void run_test (tl::TestBase *_this, const char *file, const char *file_au, const char *map = 0, double dbu = 0.001, bool dummy_calls = false, bool blank_sep = false)
{
db::CIFReaderOptions *opt = new db::CIFReaderOptions();
opt->dbu = dbu;
@ -60,7 +60,7 @@ static void run_test (ut::TestBase *_this, const char *file, const char *file_au
db::Layout layout (&m), layout2 (&m), layout2_cif (&m), layout_au (&m);
{
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/cif/";
fn += file;
tl::InputStream stream (fn);
@ -120,7 +120,7 @@ static void run_test (ut::TestBase *_this, const char *file, const char *file_au
}
{
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/cif/";
fn += file_au;
tl::InputStream stream (fn);

View File

@ -24,7 +24,7 @@
#include "dbLayout.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -25,7 +25,7 @@
#include "dbMatrix.h"
#include "dbRecursiveShapeIterator.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -24,7 +24,7 @@
#include "dbCellHullGenerator.h"
#include "dbEdgeProcessor.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
static std::string h2s (const std::vector<db::Polygon> &hull)
{

View File

@ -25,7 +25,7 @@
#include "dbLayout.h"
#include "dbCellMapping.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
std::string nc2s (const std::vector<db::cell_index_type> &nc, const db::Layout &a)
{

View File

@ -24,7 +24,7 @@
#include "dbClip.h"
#include "dbEdgeProcessor.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include "tlTimer.h"
TEST(1)

View File

@ -22,12 +22,12 @@
#include "dbDXFReader.h"
#include <utHead.h>
#include "dbTestSupport.h"
#include "tlUnitTest.h"
#include <stdlib.h>
static void run_test (ut::TestBase *_this, const char *file, const char *file_au, const char *map = 0, double dbu = 0.001, double dxf_unit = 1, int mode = 0, int ncircle = 100, double acircle = 0.0)
static void run_test (tl::TestBase *_this, const char *file, const char *file_au, const char *map = 0, double dbu = 0.001, double dxf_unit = 1, int mode = 0, int ncircle = 100, double acircle = 0.0)
{
db::DXFReaderOptions *opt = new db::DXFReaderOptions();
opt->dbu = dbu;
@ -59,7 +59,7 @@ static void run_test (ut::TestBase *_this, const char *file, const char *file_au
db::Layout layout;
{
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/dxf/";
fn += file;
tl::InputStream stream (fn);
@ -67,7 +67,7 @@ static void run_test (ut::TestBase *_this, const char *file, const char *file_au
reader.read (layout, options);
}
_this->compare_layouts (layout, ut::testsrc_private () + std::string ("/testdata/dxf/") + file_au, ut::WriteGDS2, 1);
db::compare_layouts (_this, layout, tl::testsrc_private () + std::string ("/testdata/dxf/") + file_au, db::WriteGDS2, 1);
}
TEST(1a)

View File

@ -23,7 +23,7 @@
#include "dbEdge.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)

View File

@ -23,7 +23,7 @@
#include "dbEdgePair.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbEdgePairRelations.h"

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbEdgePairs.h"
#include "dbEdges.h"

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbShapeProcessor.h"
#include "dbPolygon.h"
@ -31,6 +31,7 @@
#include "dbLayoutDiff.h"
#include "dbGDS2Writer.h"
#include "dbGDS2Writer.h"
#include "dbTestSupport.h"
#include "tlStream.h"
#include "tlTimer.h"
@ -39,12 +40,12 @@
#include <stdlib.h>
void run_test_bool (ut::TestBase *_this, const char *file, int mode, bool min_coherence = true, const char *au_file1 = 0, const char *au_file2 = 0, const char *au_file3 = 0)
void run_test_bool (tl::TestBase *_this, const char *file, int mode, bool min_coherence = true, const char *au_file1 = 0, const char *au_file2 = 0, const char *au_file3 = 0)
{
db::Layout layout_org;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/bool/";
fn += file;
tl::InputStream stream (fn);
@ -75,11 +76,11 @@ void run_test_bool (ut::TestBase *_this, const char *file, int mode, bool min_co
reader.read (layout_org, options);
}
std::string au_fn1 (ut::testsrc ());
std::string au_fn1 (tl::testsrc ());
au_fn1 += "/testdata/bool/";
au_fn1 += au_file1 ? au_file1 : file;
std::string au_fn2 (ut::testsrc ());
std::string au_fn2 (tl::testsrc ());
au_fn2 += "/testdata/bool/";
au_fn2 += au_file2 ? au_file2 : (au_file1 ? au_file1 : file);
@ -146,7 +147,7 @@ void run_test_bool (ut::TestBase *_this, const char *file, int mode, bool min_co
lmap.map (db::LDPair (2, 0), 1001);
lmap.map (db::LDPair (100, 0), 1002);
_this->compare_layouts (layout_org, au_fn1, lmap, false /*skip other layers*/, ut::WriteOAS);
db::compare_layouts (_this, layout_org, au_fn1, lmap, false /*skip other layers*/, db::WriteOAS);
layout_org.cell (*layout_org.begin_top_down ()).shapes (lr).clear ();
@ -161,12 +162,12 @@ void run_test_bool (ut::TestBase *_this, const char *file, int mode, bool min_co
proc.merge (layout_org, layout_org.cell (*layout_org.begin_top_down ()), lr2,
layout_org.cell (*layout_org.begin_top_down ()).shapes (lr), true /*hierarchical*/, 0 /*all polygons*/, true /*resolve holes*/, min_coherence);
_this->compare_layouts (layout_org, au_fn2, lmap, false /*skip other layers*/, ut::WriteOAS);
db::compare_layouts (_this, layout_org, au_fn2, lmap, false /*skip other layers*/, db::WriteOAS);
// Use this opportunity to test trapezoid decomposition
if (au_file3) {
std::string au_fn3 (ut::testsrc ());
std::string au_fn3 (tl::testsrc ());
au_fn3 += "/testdata/bool/";
au_fn3 += au_file3;
@ -181,7 +182,7 @@ void run_test_bool (ut::TestBase *_this, const char *file, int mode, bool min_co
db::TrapezoidGenerator out (sg);
ep.process (out, op);
_this->compare_layouts (layout_org, au_fn3, lmap, false /*skip other layers*/, ut::WriteOAS);
db::compare_layouts (_this, layout_org, au_fn3, lmap, false /*skip other layers*/, db::WriteOAS);
}
}
@ -413,7 +414,7 @@ TEST(3special)
run_test_bool (_this, "special3.oas", db::BooleanOp::Or, true, "special3_au5.oas");
}
void run_test_size (ut::TestBase *_this, const char *file, const char *au_file, int mode, db::Coord dx, db::Coord dy, bool min_coherence = true, bool flat = true)
void run_test_size (tl::TestBase *_this, const char *file, const char *au_file, int mode, db::Coord dx, db::Coord dy, bool min_coherence = true, bool flat = true)
{
db::Manager m;
@ -421,7 +422,7 @@ void run_test_size (ut::TestBase *_this, const char *file, const char *au_file,
db::Layout layout_au (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/bool/";
fn += file;
tl::InputStream stream (fn);
@ -447,7 +448,7 @@ void run_test_size (ut::TestBase *_this, const char *file, const char *au_file,
reader.read (layout_org, options);
}
std::string au_fn (ut::testsrc ());
std::string au_fn (tl::testsrc ());
au_fn += "/testdata/bool/";
au_fn += au_file;
@ -494,7 +495,7 @@ void run_test_size (ut::TestBase *_this, const char *file, const char *au_file,
lmap.map (db::LDPair (1, 0), 1);
lmap.map (db::LDPair (100, 0), 2);
_this->compare_layouts (layout_org, au_fn, lmap, false /*skip other layers*/, ut::WriteOAS);
db::compare_layouts (_this, layout_org, au_fn, lmap, false /*skip other layers*/, db::WriteOAS);
}
@ -2137,7 +2138,7 @@ TEST(100)
unsigned int l2_l1d0 = 0, l2_l2d0 = 0;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/bool/";
fn += "sp1.gds";
tl::InputStream stream (fn);
@ -2163,7 +2164,7 @@ TEST(100)
}
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/bool/";
fn += "sp2.gds";
tl::InputStream stream (fn);
@ -2236,10 +2237,10 @@ TEST(100)
proc.merge (layout_1, layout_1.cell (*layout_1.begin_top_down ()), l1_l1d0,
lr_top->shapes (lr_l123d0), false /*hierarchical*/, 1, true /*resolve holes*/, true /*min coherence*/);
std::string au_fn (ut::testsrc ());
std::string au_fn (tl::testsrc ());
au_fn += "/testdata/bool/";
au_fn += "sp_au.gds";
_this->compare_layouts (lr, au_fn);
db::compare_layouts (_this, lr, au_fn);
}

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbEdges.h"
#include "dbPolygonTools.h"

View File

@ -22,7 +22,7 @@
#include "dbEdgesToContours.h"
#include "utHead.h"
#include "tlUnitTest.h"
static std::string c2s (const std::vector <db::Point> &c)
{

View File

@ -24,7 +24,7 @@
#include "dbGDS2Reader.h"
#include "dbLayoutDiff.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <iostream>

View File

@ -27,17 +27,17 @@
#include "dbShapeProcessor.h"
#include "dbWriter.h"
#include "dbTextWriter.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <QDir>
#include <stdlib.h>
void run_test (ut::TestBase *_this, const char *file, const char *file_ref)
void run_test (tl::TestBase *_this, const char *file, const char *file_ref)
{
db::Manager m;
db::Layout layout_org (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/gds/";
fn += file;
tl::InputStream stream (fn);
@ -47,7 +47,7 @@ void run_test (ut::TestBase *_this, const char *file, const char *file_ref)
db::Layout layout_ref (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/gds/";
fn += file_ref;
tl::InputStream stream (fn);
@ -103,7 +103,7 @@ TEST(2)
poly.assign_hull (pts.begin (), pts.end ());
layout_org.cell (cid).shapes (lid).insert (poly);
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_2.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_2.gds");
{
tl::OutputStream stream (tmp_file);
@ -133,14 +133,14 @@ TEST(3)
db::Manager m;
db::Layout layout_org (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/other/d1.oas.gz";
tl::InputStream stream (fn);
db::Reader reader (stream);
reader.read (layout_org);
}
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_3.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_3.gds");
{
tl::OutputStream stream (tmp_file);
@ -192,7 +192,7 @@ TEST(4)
db::Manager m;
db::Layout layout_org (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/other/d1.oas.gz";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -206,7 +206,7 @@ TEST(4)
}
}
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_4.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_4.gds");
{
tl::OutputStream stream (tmp_file);
@ -285,7 +285,7 @@ TEST(100)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_100.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_100.gds");
{
tl::OutputStream out (tmp_file);
@ -367,7 +367,7 @@ TEST(101)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_101.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_101.gds");
{
tl::OutputStream out (tmp_file);
@ -439,7 +439,7 @@ TEST(102)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_102.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_102.gds");
{
tl::OutputStream out (tmp_file);
@ -519,7 +519,7 @@ TEST(103)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_103.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_103.gds");
{
tl::OutputStream out (tmp_file);
@ -592,7 +592,7 @@ TEST(110)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_110.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_110.gds");
{
tl::OutputStream out (tmp_file);
@ -668,7 +668,7 @@ TEST(111)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_111.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_111.gds");
{
tl::OutputStream out (tmp_file);
@ -741,7 +741,7 @@ TEST(112)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_112.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_112.gds");
{
tl::OutputStream out (tmp_file);
@ -818,7 +818,7 @@ TEST(113)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_113.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_113.gds");
{
tl::OutputStream out (tmp_file);
@ -872,7 +872,7 @@ TEST(114)
c1.shapes (0).insert (db::Text (db::Trans (1, false, db::Vector (100, 200)), 1000, db::Font (7), db::HAlignCenter, db::VAlignBottom));
c1.shapes (0).insert (db::Text (db::Trans (1, false, db::Vector (100, 200)), 1000, db::Font (7), db::HAlignLeft, db::VAlignCenter));
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_114.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_114.gds");
{
tl::OutputStream out (tmp_file);
@ -974,7 +974,7 @@ TEST(115)
ps.transform (db::FTrans (db::FTrans::r90), false);
c1.shapes (0).insert (ps);
std::string tmp_file = ut::TestBase::tmp_file ("tmp_GDS2Writer_115.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_GDS2Writer_115.gds");
{
tl::OutputStream out (tmp_file);

View File

@ -22,7 +22,7 @@
#include "dbLayer.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)

View File

@ -24,7 +24,7 @@
#include "dbLayout.h"
#include "dbLayerMapping.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
std::string nl2s (const std::vector<unsigned int> &nl, const db::Layout &a)
{

View File

@ -24,7 +24,7 @@
#include "dbLayout.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
std::string set2string (const std::set<db::cell_index_type> &set)
{

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbLayoutDiff.h"
#include "dbLayerProperties.h"
#include "dbLayout.h"

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbLayoutQuery.h"
#include "gsiExpression.h"

View File

@ -23,9 +23,10 @@
#include "dbLayoutUtils.h"
#include "dbLayerMapping.h"
#include "dbCellMapping.h"
#include "dbTestSupport.h"
#include "dbReader.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
unsigned int find_layer (const db::Layout &l, int ly, int dt)
{
@ -41,7 +42,7 @@ TEST(1)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -50,7 +51,7 @@ TEST(1)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -96,7 +97,7 @@ TEST(2)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -105,7 +106,7 @@ TEST(2)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -128,7 +129,7 @@ TEST(2)
db::merge_layouts (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table (), &fm);
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au2.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au2.gds");
EXPECT_EQ (fm.find (l1.cell_by_name ("TOP").second) != fm.end (), true);
EXPECT_EQ (l2.cell_name (fm.find (l1.cell_by_name ("TOP").second)->second), "TOP$1");
@ -145,7 +146,7 @@ TEST(3)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -154,7 +155,7 @@ TEST(3)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -178,7 +179,7 @@ TEST(3)
db::merge_layouts (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table (), &fm);
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au3.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au3.gds");
EXPECT_EQ (fm.find (l1.cell_by_name ("TOP").second) != fm.end (), true);
EXPECT_EQ (l2.cell_name (fm.find (l1.cell_by_name ("TOP").second)->second), "TOPTOP");
@ -195,7 +196,7 @@ TEST(4)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -204,7 +205,7 @@ TEST(4)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -228,7 +229,7 @@ TEST(4)
db::merge_layouts (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table (), &fm);
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au4.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au4.gds");
EXPECT_EQ (fm.find (l1.cell_by_name ("TOP").second) != fm.end (), true);
EXPECT_EQ (l2.cell_name (fm.find (l1.cell_by_name ("TOP").second)->second), "TOP");
@ -245,7 +246,7 @@ TEST(5)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -254,7 +255,7 @@ TEST(5)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -278,7 +279,7 @@ TEST(5)
db::merge_layouts (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table (), &fm);
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au5.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au5.gds");
EXPECT_EQ (fm.find (l1.cell_by_name ("TOP").second) != fm.end (), true);
EXPECT_EQ (l2.cell_name (fm.find (l1.cell_by_name ("TOP").second)->second), "TOP");
@ -295,7 +296,7 @@ TEST(6)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -304,7 +305,7 @@ TEST(6)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -331,7 +332,7 @@ TEST(6)
db::merge_layouts (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table (), &fm);
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au6.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au6.gds");
EXPECT_EQ (fm.find (l1.cell_by_name ("TOP").second) != fm.end (), true);
EXPECT_EQ (l2.cell_name (fm.find (l1.cell_by_name ("TOP").second)->second), "TOP");
@ -347,7 +348,7 @@ TEST(7)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -356,7 +357,7 @@ TEST(7)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l3.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -383,7 +384,7 @@ TEST(7)
db::merge_layouts (l2, l1, db::ICplxTrans (4.0), src, cm.table (), lm.table (), &fm);
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au7.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au7.gds");
EXPECT_EQ (fm.find (l1.cell_by_name ("TOP").second) != fm.end (), true);
EXPECT_EQ (l2.cell_name (fm.find (l1.cell_by_name ("TOP").second)->second), "TOP");
@ -398,7 +399,7 @@ TEST(7)
db::merge_layouts (l2copy, l1, db::ICplxTrans (4.0), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2copy, ut::testsrc () + "/testdata/algo/layout_utils_au7.gds");
db::compare_layouts (_this, l2copy, tl::testsrc () + "/testdata/algo/layout_utils_au7.gds");
}
// Tests copy_shapes with no specific mapping (flattening)
@ -406,7 +407,7 @@ TEST(12)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -415,7 +416,7 @@ TEST(12)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -439,7 +440,7 @@ TEST(12)
db::copy_shapes (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au12.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au12.gds");
}
// Tests copy_shapes with full name mapping
@ -447,7 +448,7 @@ TEST(13)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -456,7 +457,7 @@ TEST(13)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -479,7 +480,7 @@ TEST(13)
db::copy_shapes (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au13.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au13.gds");
}
// Tests copy_shapes with geo mapping
@ -487,7 +488,7 @@ TEST(14)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -496,7 +497,7 @@ TEST(14)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -519,7 +520,7 @@ TEST(14)
db::copy_shapes (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au14.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au14.gds");
}
// Tests copy_shapes with flattening minus one cell
@ -527,7 +528,7 @@ TEST(15)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -536,7 +537,7 @@ TEST(15)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l2.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -560,7 +561,7 @@ TEST(15)
db::copy_shapes (l2, l1, db::ICplxTrans (), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au15.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au15.gds");
}
// Tests copy_shapes/move_shapes with no specific mapping (flattening)
@ -568,7 +569,7 @@ TEST(16)
{
db::Layout l1;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l1.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -577,7 +578,7 @@ TEST(16)
db::Layout l2;
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/algo/layout_utils_l3.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -603,14 +604,14 @@ TEST(16)
db::copy_shapes (l2, l1, db::ICplxTrans (4.0), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2, ut::testsrc () + "/testdata/algo/layout_utils_au16.gds");
db::compare_layouts (_this, l2, tl::testsrc () + "/testdata/algo/layout_utils_au16.gds");
// ... and one test for move:
db::move_shapes (l2copy, l1, db::ICplxTrans (4.0), src, cm.table (), lm.table ());
CHECKPOINT();
compare_layouts (l2copy, ut::testsrc () + "/testdata/algo/layout_utils_au16.gds");
compare_layouts (l1, ut::testsrc () + "/testdata/algo/layout_utils_au16b.gds");
db::compare_layouts (_this, l2copy, tl::testsrc () + "/testdata/algo/layout_utils_au16.gds");
db::compare_layouts (_this, l1, tl::testsrc () + "/testdata/algo/layout_utils_au16b.gds");
}

View File

@ -33,7 +33,7 @@
#include "dbLayoutDiff.h"
#include "tlStream.h"
#include "tlStaticObjects.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <QDir>
#include <memory>
@ -100,7 +100,7 @@ class LIBT_L
: public db::Library
{
public:
LIBT_L (ut::TestBase *_this)
LIBT_L (tl::TestBase *_this)
: Library ()
{
set_name("L");
@ -227,11 +227,11 @@ public:
}
};
static bool compare_vs_au (const ut::TestBase *tb, const db::Layout &layout, const std::string &filename)
static bool compare_vs_au (const tl::TestBase *tb, const db::Layout &layout, const std::string &filename)
{
db::Layout layout_au;
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/gds/";
fn += filename;
tl::InputStream stream (fn);
@ -491,7 +491,7 @@ TEST(2)
EXPECT_EQ (layout.basic_name (lp2), "PD");
EXPECT_EQ (layout.display_name (lp2), "L.PD*");
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbLibraries2.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbLibraries2.gds"));
{
tl::OutputStream stream (tmp_file);
@ -582,7 +582,7 @@ TEST(3)
db::cell_index_type lp = layout.get_lib_proxy (lib_b, lib_bb);
db::Instance i1 = top.insert (db::CellInstArray (db::CellInst (lp), db::Trans (db::Vector (0, 0))));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbLibraries3.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbLibraries3.gds"));
{
db::Writer writer = db::Writer (db::SaveLayoutOptions ());

View File

@ -23,7 +23,7 @@
#include "dbMatrix.h"
#include "dbTrans.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -24,7 +24,7 @@
#include "dbOASISReader.h"
#include "dbTextWriter.h"
#include "tlLog.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <stdlib.h>
@ -37,7 +37,7 @@ TEST(1_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t1.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -68,7 +68,7 @@ TEST(1_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t1.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -99,7 +99,7 @@ TEST(1_3)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t1.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -130,7 +130,7 @@ TEST(1_4)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t1.4.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -161,7 +161,7 @@ TEST(1_5)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t1.5.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -219,7 +219,7 @@ TEST(10_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t10.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -285,7 +285,7 @@ TEST(11_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -516,7 +516,7 @@ TEST(11_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -582,7 +582,7 @@ TEST(11_3)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -682,7 +682,7 @@ TEST(11_4)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.4.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -913,7 +913,7 @@ TEST(11_5)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.5.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1014,7 +1014,7 @@ TEST(11_6)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.6.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1057,7 +1057,7 @@ TEST(11_7)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.7.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1083,7 +1083,7 @@ TEST(11_8)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.8.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1105,7 +1105,7 @@ TEST(11_9)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t11.9.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1151,7 +1151,7 @@ TEST(12_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t12.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1200,7 +1200,7 @@ TEST(13_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t13.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1250,7 +1250,7 @@ TEST(13_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t13.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1316,7 +1316,7 @@ TEST(13_3)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t13.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1382,7 +1382,7 @@ TEST(13_4)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t13.4.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1426,7 +1426,7 @@ TEST(14_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t14.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1459,7 +1459,7 @@ TEST(2_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t2.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1494,7 +1494,7 @@ TEST(2_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t2.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1520,7 +1520,7 @@ TEST(2_3)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t2.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1551,7 +1551,7 @@ TEST(2_4)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t2.4.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1577,7 +1577,7 @@ TEST(2_5)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t2.5.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1608,7 +1608,7 @@ TEST(2_6)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t2.6.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1859,7 +1859,7 @@ TEST(3_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1893,7 +1893,7 @@ TEST(3_10)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.10.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -1919,7 +1919,7 @@ TEST(3_11)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.11.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2166,7 +2166,7 @@ TEST(3_12)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.12.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2417,7 +2417,7 @@ TEST(3_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2443,7 +2443,7 @@ TEST(3_3)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2465,7 +2465,7 @@ TEST(3_4)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.4.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2712,7 +2712,7 @@ TEST(3_5)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.5.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2738,7 +2738,7 @@ TEST(3_6)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.6.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2760,7 +2760,7 @@ TEST(3_7)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.7.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2782,7 +2782,7 @@ TEST(3_8)
{
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.8.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2812,7 +2812,7 @@ TEST(3_9)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t3.9.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2869,7 +2869,7 @@ TEST(4_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t4.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -2998,7 +2998,7 @@ TEST(4_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t4.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3067,7 +3067,7 @@ TEST(5_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t5.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3103,7 +3103,7 @@ TEST(5_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t5.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3281,7 +3281,7 @@ TEST(5_3)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t5.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3344,7 +3344,7 @@ TEST(6_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t6.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3478,7 +3478,7 @@ TEST(7_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t7.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3530,7 +3530,7 @@ TEST(8_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3573,7 +3573,7 @@ TEST(8_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3616,7 +3616,7 @@ TEST(8_3)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.3.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3659,7 +3659,7 @@ TEST(8_4)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.4.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3702,7 +3702,7 @@ TEST(8_5)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.5.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3749,7 +3749,7 @@ TEST(8_6)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.6.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3792,7 +3792,7 @@ TEST(8_7)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.7.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3835,7 +3835,7 @@ TEST(8_8)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.8.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3935,7 +3935,7 @@ TEST(9_1)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t9.1.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -3974,7 +3974,7 @@ TEST(9_2)
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t9.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -4026,7 +4026,7 @@ TEST(99)
db::Layout layout (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t9.2.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -4043,7 +4043,7 @@ TEST(99)
}
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/t8.7.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -4109,7 +4109,7 @@ TEST(100)
db::Layout layout (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/xgeometry_test.oas";
tl::InputStream stream (fn);
db::Reader reader (stream);

View File

@ -29,17 +29,17 @@
#include "dbWriter.h"
#include "dbTextWriter.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <cstdlib>
#include <QDir>
void run_test (ut::TestBase *_this, const char *file, bool scaling_test, int compr, bool recompress)
void run_test (tl::TestBase *_this, const char *file, bool scaling_test, int compr, bool recompress)
{
{
db::Manager m;
db::Layout layout_org (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/";
fn += file;
tl::InputStream stream (fn);
@ -84,7 +84,7 @@ void run_test (ut::TestBase *_this, const char *file, bool scaling_test, int com
{
db::Manager m;
db::Layout layout_org (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/";
fn += file;
tl::InputStream stream (fn);
@ -140,7 +140,7 @@ void run_test (ut::TestBase *_this, const char *file, bool scaling_test, int com
{
db::Manager m;
db::Layout layout_org (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/";
fn += file;
tl::InputStream stream (fn);
@ -189,7 +189,7 @@ void run_test (ut::TestBase *_this, const char *file, bool scaling_test, int com
{
db::Manager m;
db::Layout layout_org (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/";
fn += file;
tl::InputStream stream (fn);
@ -240,7 +240,7 @@ void run_test (ut::TestBase *_this, const char *file, bool scaling_test, int com
db::Manager m;
db::Layout layout (&m);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/oasis/";
fn += file;
tl::InputStream stream (fn);
@ -299,7 +299,7 @@ void run_test (ut::TestBase *_this, const char *file, bool scaling_test, int com
}
}
void run_test (ut::TestBase *_this, const char *file, bool scaling_test = true)
void run_test (tl::TestBase *_this, const char *file, bool scaling_test = true)
{
for (int recompress = 0; recompress < 2; ++recompress) {
run_test (_this, file, scaling_test, 0, recompress);
@ -551,7 +551,7 @@ TEST(100)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter100.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter100.gds"));
{
tl::OutputStream out (tmp_file);
@ -634,7 +634,7 @@ TEST(101)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter101.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter101.gds"));
{
tl::OutputStream out (tmp_file);
@ -707,7 +707,7 @@ TEST(102)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter102.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter102.gds"));
{
tl::OutputStream out (tmp_file);
@ -788,7 +788,7 @@ TEST(103)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter103.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter103.gds"));
{
tl::OutputStream out (tmp_file);
@ -862,7 +862,7 @@ TEST(110)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter110.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter110.gds"));
{
tl::OutputStream out (tmp_file);
@ -939,7 +939,7 @@ TEST(111)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter111.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter111.gds"));
{
tl::OutputStream out (tmp_file);
@ -1013,7 +1013,7 @@ TEST(112)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter112.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter112.gds"));
{
tl::OutputStream out (tmp_file);
@ -1091,7 +1091,7 @@ TEST(113)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c3.cell_index ()), t));
c3.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c4.cell_index ()), t));
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter113.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter113.gds"));
{
tl::OutputStream out (tmp_file);
@ -1146,7 +1146,7 @@ TEST(114)
db::Edge e3 (0, 1200, 1000, 1200);
c1.shapes (1).insert (e3);
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter114.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter114.gds"));
{
tl::OutputStream out (tmp_file);
@ -1219,7 +1219,7 @@ TEST(115)
db::Edge e3 (0, 1200, 1000, 1200);
c1.shapes (1).insert (e3);
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter115.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter115.gds"));
{
tl::OutputStream out (tmp_file);
@ -1279,7 +1279,7 @@ TEST(118)
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c1.cell_index ()), db::Trans (), db::Vector (0, 1), db::Vector (1, 0), 1, 1));
c2.insert (db::array <db::CellInst, db::Trans> (db::CellInst (c1.cell_index ()), db::Trans (db::Vector (17, -42)), db::Vector (0, 1), db::Vector (1, 0), 1, 1));
std::string tmp_file = ut::TestBase::tmp_file ("tmp.oas");
std::string tmp_file = tl::TestBase::tmp_file ("tmp.oas");
{
tl::OutputStream out (tmp_file);
@ -1351,7 +1351,7 @@ TEST(116)
db::Cell &c2 (g.cell (g.add_cell ()));
{
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter116a.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter116a.gds"));
{
tl::OutputStream out (tmp_file);
@ -1400,7 +1400,7 @@ TEST(116)
}
{
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter116b.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter116b.gds"));
{
tl::OutputStream out (tmp_file);
@ -1449,7 +1449,7 @@ TEST(116)
}
{
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter116c.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter116c.gds"));
{
tl::OutputStream out (tmp_file);
@ -1507,7 +1507,7 @@ TEST(116)
}
{
std::string tmp_file = ut::TestBase::tmp_file ("tmp_dbOASISWriter116d.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_dbOASISWriter116d.gds");
{
tl::OutputStream out (tmp_file);
@ -1570,7 +1570,7 @@ TEST(116)
c1.insert (db::CellInstArray (c2.cell_index (), db::Trans ()));
{
std::string tmp_file = ut::TestBase::tmp_file ("tmp_dbOASISWriter116e.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_dbOASISWriter116e.gds");
{
tl::OutputStream out (tmp_file);
@ -1619,7 +1619,7 @@ TEST(116)
}
{
std::string tmp_file = ut::TestBase::tmp_file ("tmp_dbOASISWriter116f.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_dbOASISWriter116f.gds");
{
tl::OutputStream out (tmp_file);
@ -1695,7 +1695,7 @@ TEST(117)
ps.transform (db::FTrans (db::FTrans::r90), false);
c1.shapes (0).insert (ps);
std::string tmp_file = ut::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter117.gds"));
std::string tmp_file = tl::TestBase::tmp_file (tl::sprintf ("tmp_dbOASISWriter117.gds"));
{
tl::OutputStream out (tmp_file);

View File

@ -25,7 +25,7 @@
#include "dbOASISWriter.h"
#include "dbShapeProcessor.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <stdlib.h>
#include <QDir>
@ -38,7 +38,7 @@ TEST(1)
db::Manager m;
db::Layout layout_org (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/other/d1.oas.gz";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -52,7 +52,7 @@ TEST(1)
}
}
std::string tmp_file = ut::TestBase::tmp_file ("tmp_OASISWriter2.gds");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_OASISWriter2.gds");
{
tl::OutputStream stream (tmp_file);

View File

@ -22,7 +22,7 @@
#include "dbObject.h"
#include "utHead.h"
#include "tlUnitTest.h"
namespace {

View File

@ -28,8 +28,9 @@
#include "dbWriter.h"
#include "dbReader.h"
#include "dbLayoutDiff.h"
#include "dbTestSupport.h"
#include "tlStream.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <QDir>
@ -102,7 +103,7 @@ TEST(0)
// Note: this sample requires the BASIC lib
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/gds/pcell_test_0.gds";
tl::InputStream stream (fn);
db::Reader reader (stream);
@ -110,7 +111,7 @@ TEST(0)
}
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test_0_au.gds", ut::NoNormalization);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test_0_au.gds", db::NoNormalization);
}
TEST(1)
@ -174,7 +175,7 @@ TEST(1)
EXPECT_EQ (layout.get_properties(2).to_string (), "24/0");
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test.gds", ut::NoNormalization);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test.gds", db::NoNormalization);
// if not in editable mode, we could have lost the reference to the second instance
if (db::default_editable_mode ()) {
@ -186,7 +187,7 @@ TEST(1)
EXPECT_NE (i2.cell_index (), pd1);
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test2.gds", ut::NoNormalization);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test2.gds", db::NoNormalization);
width = 1.0;
i1 = top.change_pcell_parameters (i1, parameters);
@ -194,34 +195,34 @@ TEST(1)
EXPECT_NE (i1.cell_index (), pd1);
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test3.gds", ut::WriteGDS2);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test3.gds", db::WriteGDS2);
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test3.gds", ut::WriteOAS);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test3.gds", db::WriteOAS);
m.commit ();
m.undo ();
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test.gds", ut::NoNormalization);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test.gds", db::NoNormalization);
m.redo ();
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test3.gds", ut::WriteGDS2);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test3.gds", db::WriteGDS2);
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test3.gds", ut::WriteOAS);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test3.gds", db::WriteOAS);
m.undo (); // test the ability to destroy things stored in the transaction
CHECKPOINT ();
_this->compare_layouts (layout, ut::testsrc () + "/testdata/gds/pcell_test.gds", ut::NoNormalization);
db::compare_layouts (_this, layout, tl::testsrc () + "/testdata/gds/pcell_test.gds", db::NoNormalization);
// Test the ability to copy things and change PCell parameters then
db::Layout copy (layout);
CHECKPOINT ();
_this->compare_layouts (copy, ut::testsrc () + "/testdata/gds/pcell_test.gds", ut::NoNormalization);
db::compare_layouts (_this, copy, tl::testsrc () + "/testdata/gds/pcell_test.gds", db::NoNormalization);
db::Cell &copy_top = copy.cell (top.cell_index ());
@ -246,9 +247,9 @@ TEST(1)
i1_copy = copy_top.change_pcell_parameters (i1_copy, parameters);
CHECKPOINT ();
_this->compare_layouts (copy, ut::testsrc () + "/testdata/gds/pcell_test4.gds", ut::WriteGDS2);
db::compare_layouts (_this, copy, tl::testsrc () + "/testdata/gds/pcell_test4.gds", db::WriteGDS2);
CHECKPOINT ();
_this->compare_layouts (copy, ut::testsrc () + "/testdata/gds/pcell_test4.gds", ut::WriteOAS);
db::compare_layouts (_this, copy, tl::testsrc () + "/testdata/gds/pcell_test4.gds", db::WriteOAS);
}
}

View File

@ -24,7 +24,7 @@
#include "dbPath.h"
#include "tlVector.h"
#include "tlReuseVector.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <vector>

View File

@ -24,7 +24,7 @@
#include "dbPoint.h"
#include "dbVector.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -29,7 +29,7 @@
#include "dbText.h"
#include "dbShapeRepository.h"
#include "tlReuseVector.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <vector>

View File

@ -26,7 +26,7 @@
#include "dbPolygonTools.h"
#include "dbEdgeProcessor.h"
#include "dbPolygonGenerators.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -23,7 +23,7 @@
#include "dbPropertiesRepository.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)

View File

@ -25,7 +25,7 @@
#include "dbRegion.h"
#include "dbLayoutDiff.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <vector>

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbRegion.h"
#include "dbBoxScanner.h"

View File

@ -27,7 +27,7 @@
#include "dbObjectWithProperties.h"
#include "dbPropertiesRepository.h"
#include "dbLayout.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)

View File

@ -26,7 +26,7 @@
#include "dbObjectWithProperties.h"
#include "dbPropertiesRepository.h"
#include "dbLayout.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -31,7 +31,7 @@
#include "dbText.h"
#include "dbEdge.h"
#include "dbUserObject.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)

View File

@ -24,7 +24,7 @@
#include "dbLayout.h"
#include "tlTimer.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbOASISReader.h"
#include "dbStatic.h"
@ -111,7 +111,7 @@ TEST(1b)
EXPECT_EQ (s2.bbox (), db::Box (-100, -200, 1000, 1200));
}
std::string shapes_to_string_norm (ut::TestBase *_this, const db::Shapes &shapes, const db::ICplxTrans &trans)
std::string shapes_to_string_norm (tl::TestBase *_this, const db::Shapes &shapes, const db::ICplxTrans &trans)
{
std::vector<std::string> strings;
for (db::Shapes::shape_iterator shape = shapes.begin (db::Shapes::shape_iterator::All); ! shape.at_end (); ++shape) {
@ -155,7 +155,7 @@ std::string shapes_to_string_norm (ut::TestBase *_this, const db::Shapes &shapes
return r;
}
std::string shapes_to_string_norm (ut::TestBase *_this, const db::Shapes &shapes)
std::string shapes_to_string_norm (tl::TestBase *_this, const db::Shapes &shapes)
{
std::vector<std::string> strings;
for (db::Shapes::shape_iterator shape = shapes.begin (db::Shapes::shape_iterator::All); ! shape.at_end (); ++shape) {
@ -199,7 +199,7 @@ std::string shapes_to_string_norm (ut::TestBase *_this, const db::Shapes &shapes
return r;
}
std::string shapes_to_string (ut::TestBase *_this, const db::Shapes &shapes)
std::string shapes_to_string (tl::TestBase *_this, const db::Shapes &shapes)
{
std::string r;
for (db::Shapes::shape_iterator shape = shapes.begin (db::Shapes::shape_iterator::All); ! shape.at_end (); ++shape) {

View File

@ -23,7 +23,7 @@
#include "dbStreamLayers.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -23,7 +23,7 @@
#include "dbText.h"
#include "dbLayout.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbTilingProcessor.h"
#include "dbTextWriter.h"

View File

@ -22,7 +22,7 @@
#include "dbTrans.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -26,7 +26,7 @@
#include "dbPoint.h"
#include "dbTrans.h"
#include "tlString.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -22,7 +22,7 @@
#include "dbWriterTools.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -58,8 +58,8 @@ SOURCES = \
dbVector.cc \
dbWriterTools.cc \
INCLUDEPATH += $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$TL_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$TL_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -20,15 +20,16 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbReader.h"
#include "dbTestSupport.h"
#include "lymMacro.h"
TEST(1)
{
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/drc/drctest.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/drc/drcBasicTests_au.gds";
std::string output = this->tmp_file ("tmp.gds");
@ -60,7 +61,7 @@ TEST(1)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (_this, layout, au, db::NoNormalization);
}
TEST(2)

View File

@ -20,16 +20,17 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbReader.h"
#include "dbTestSupport.h"
#include "lymMacro.h"
TEST(1)
{
std::string rs = ut::testsrc ();
std::string rs = tl::testsrc ();
rs += "/testdata/drc/drcSimpleTests_1.drc";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/drc/drcSimpleTests_au1.gds";
std::string output = this->tmp_file ("tmp.gds");
@ -58,18 +59,18 @@ TEST(1)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (_this, layout, au, db::NoNormalization);
}
TEST(2)
{
std::string rs = ut::testsrc ();
std::string rs = tl::testsrc ();
rs += "/testdata/drc/drcSimpleTests_2.drc";
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/drc/drctest.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/drc/drcSimpleTests_au2.gds";
std::string output = this->tmp_file ("tmp.gds");
@ -98,18 +99,18 @@ TEST(2)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (_this, layout, au, db::NoNormalization);
}
TEST(3)
{
std::string rs = ut::testsrc ();
std::string rs = tl::testsrc ();
rs += "/testdata/drc/drcSimpleTests_3.drc";
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/drc/drctest.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/drc/drcSimpleTests_au3.gds";
std::string output = this->tmp_file ("tmp.gds");
@ -138,5 +139,5 @@ TEST(3)
reader.read (layout);
}
this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (_this, layout, au, db::NoNormalization);
}

View File

@ -20,19 +20,20 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbReader.h"
#include "dbTestSupport.h"
#include "lymMacro.h"
void runtest (ut::TestBase *_this, int mode)
void runtest (tl::TestBase *_this, int mode)
{
std::string rs = ut::testsrc ();
std::string rs = tl::testsrc ();
rs += "/testdata/drc/drcSuiteTests.drc";
std::string input = ut::testsrc ();
std::string input = tl::testsrc ();
input += "/testdata/drc/drctest.gds";
std::string au = ut::testsrc ();
std::string au = tl::testsrc ();
au += "/testdata/drc/drcSuiteTests_au";
au += tl::to_string (mode);
au += ".gds";
@ -64,7 +65,7 @@ void runtest (ut::TestBase *_this, int mode)
reader.read (layout);
}
_this->compare_layouts (layout, au, ut::NoNormalization);
db::compare_layouts (_this, layout, au, db::NoNormalization);
}
TEST(1)

View File

@ -11,7 +11,7 @@ SOURCES = \
drcSimpleTests.cc \
drcSuiteTests.cc \
INCLUDEPATH += $$DRC_INC $$TL_INC $$RDB_INC $$DB_INC $$GSI_INC $$LYM_INC $$UT_INC
DEPENDPATH += $$DRC_INC $$TL_INC $$RDB_INC $$DB_INC $$GSI_INC $$LYM_INC $$UT_INC
INCLUDEPATH += $$DRC_INC $$TL_INC $$RDB_INC $$DB_INC $$GSI_INC $$LYM_INC
DEPENDPATH += $$DRC_INC $$TL_INC $$RDB_INC $$DB_INC $$GSI_INC $$LYM_INC
LIBS += -L$$DESTDIR_UT -lklayout_drc -lklayout_rdb -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_lym -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_drc -lklayout_rdb -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_lym

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
edtBasicTests.cc \
INCLUDEPATH += $$EDT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$EDT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$EDT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$EDT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_edt -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_edt -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -26,19 +26,20 @@
#include "dbOASISWriter.h"
#include "dbLoadLayoutOptions.h"
#include "dbReader.h"
#include "dbTestSupport.h"
#include <utHead.h>
#include "tlUnitTest.h"
#include <stdlib.h>
static void run_test (ut::TestBase *_this, const char *dir)
static void run_test (tl::TestBase *_this, const char *dir)
{
db::LoadLayoutOptions options;
db::Layout layout;
{
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/pcb/";
fn += dir;
fn += "/import.pcb";
@ -47,7 +48,7 @@ static void run_test (ut::TestBase *_this, const char *dir)
reader.read (layout, options);
}
_this->compare_layouts (layout, ut::testsrc_private () + "/testdata/pcb/" + dir + "/au.oas.gz", ut::WriteOAS, 1);
db::compare_layouts (_this, layout, tl::testsrc_private () + "/testdata/pcb/" + dir + "/au.oas.gz", db::WriteOAS, 1);
}
TEST(1)

View File

@ -28,12 +28,12 @@
#include "extDEFImporter.h"
#include "extLEFImporter.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <cstdlib>
#include <QDir>
static void run_test (ut::TestBase *_this, const char *lef_dir, const char *filename, const char *au)
static void run_test (tl::TestBase *_this, const char *lef_dir, const char *filename, const char *au)
{
ext::LEFDEFReaderOptions tc;
tc.set_via_geometry_datatype (0);
@ -63,7 +63,7 @@ static void run_test (ut::TestBase *_this, const char *lef_dir, const char *file
if (ex.test ("def:")) {
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/lefdef/";
fn += lef_dir;
fn += "/";
@ -76,7 +76,7 @@ static void run_test (ut::TestBase *_this, const char *lef_dir, const char *file
} else if (ex.test ("lef:")) {
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/lefdef/";
fn += lef_dir;
fn += "/";
@ -120,7 +120,7 @@ static void run_test (ut::TestBase *_this, const char *lef_dir, const char *file
if (au) {
std::string fn (ut::testsrc_private ());
std::string fn (tl::testsrc_private ());
fn += "/testdata/lefdef/";
fn += lef_dir;
fn += "/";

View File

@ -21,13 +21,14 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
#include "extNetTracerDialog.h"
#include "extNetTracerIO.h"
#include "extNetTracer.h"
#include "dbRecursiveShapeIterator.h"
#include "dbLayoutDiff.h"
#include "dbTestSupport.h"
#include "dbWriter.h"
static ext::NetTracerConnectionInfo connection (const std::string &a, const std::string &v, const std::string &b)
@ -89,13 +90,13 @@ static ext::Net trace (ext::NetTracer &tracer, const db::Layout &layout, const d
return ext::Net (tracer, db::ICplxTrans (), layout, cell.cell_index (), std::string (), std::string (), tracer_data);
}
void run_test (ut::TestBase *_this, const std::string &file, const ext::NetTracerTechnologyComponent &tc, const db::LayerProperties &lp_start, const db::Point &p_start, const std::string &file_au, const char *net_name = 0)
void run_test (tl::TestBase *_this, const std::string &file, const ext::NetTracerTechnologyComponent &tc, const db::LayerProperties &lp_start, const db::Point &p_start, const std::string &file_au, const char *net_name = 0)
{
db::Manager m;
db::Layout layout_org (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/net_tracer/";
fn += file;
tl::InputStream stream (fn);
@ -115,21 +116,21 @@ void run_test (ut::TestBase *_this, const std::string &file, const ext::NetTrace
db::Layout layout_net;
net.export_net (layout_net, layout_net.cell (layout_net.add_cell ("NET")));
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/net_tracer/";
fn += file_au;
CHECKPOINT ();
_this->compare_layouts (layout_net, fn, ut::WriteOAS);
db::compare_layouts (_this, layout_net, fn, db::WriteOAS);
}
void run_test2 (ut::TestBase *_this, const std::string &file, const ext::NetTracerTechnologyComponent &tc, const db::LayerProperties &lp_start, const db::Point &p_start, const db::LayerProperties &lp_stop, const db::Point &p_stop, const std::string &file_au, const char *net_name = 0)
void run_test2 (tl::TestBase *_this, const std::string &file, const ext::NetTracerTechnologyComponent &tc, const db::LayerProperties &lp_start, const db::Point &p_start, const db::LayerProperties &lp_stop, const db::Point &p_stop, const std::string &file_au, const char *net_name = 0)
{
db::Manager m;
db::Layout layout_org (&m);
{
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/net_tracer/";
fn += file;
tl::InputStream stream (fn);
@ -149,12 +150,12 @@ void run_test2 (ut::TestBase *_this, const std::string &file, const ext::NetTrac
db::Layout layout_net;
net.export_net (layout_net, layout_net.cell (layout_net.add_cell ("NET")));
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/net_tracer/";
fn += file_au;
CHECKPOINT ();
_this->compare_layouts (layout_net, fn, ut::WriteOAS);
db::compare_layouts (_this, layout_net, fn, db::WriteOAS);
}
TEST(1)

View File

@ -11,15 +11,15 @@ SOURCES = \
extLEFDEFImport.cc \
extNetTracer.cc \
INCLUDEPATH += $$EXT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$EXT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$EXT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$EXT_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
# Note: this accounts for UI-generated headers placed into the output folders in
# shadow builds:
INCLUDEPATH += $$DESTDIR_UT/ext/ext $$DESTDIR_UT/laybasic/laybasic
DEPENDPATH += $$DESTDIR_UT/ext/ext $$DESTDIR_UT/laybasic/laybasic
LIBS += -L$$DESTDIR_UT -lklayout_ext -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_ext -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi
# TODO: ideally this should not be there:
INCLUDEPATH += $$DESTDIR_UT/lay/lay

View File

@ -27,7 +27,7 @@
#include "dbBox.h"
#include "dbEdge.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <stdlib.h>
#include <math.h>

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
gsiExpression.cc \
INCLUDEPATH += $$TL_INC $$GSI_INC $$GSI_TEST_INC $$UT_INC $$DB_INC
DEPENDPATH += $$TL_INC $$GSI_INC $$GSI_TEST_INC $$UT_INC $$DB_INC
INCLUDEPATH += $$TL_INC $$GSI_INC $$GSI_TEST_INC $$DB_INC
DEPENDPATH += $$TL_INC $$GSI_INC $$GSI_TEST_INC $$DB_INC
LIBS += -L$$DESTDIR_UT -lklayout_tl -lklayout_gsi -lgsi_test -lklayout_ut -lklayout_db
LIBS += -L$$DESTDIR_UT -lklayout_tl -lklayout_gsi -lgsi_test -lklayout_db

View File

@ -23,7 +23,7 @@
#include "imgObject.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
imgObject.cc \
INCLUDEPATH += $$IMG_INC $$DB_INC $$TL_INC $$LAYBASIC_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$IMG_INC $$DB_INC $$TL_INC $$LAYBASIC_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$IMG_INC $$DB_INC $$TL_INC $$LAYBASIC_INC $$GSI_INC
DEPENDPATH += $$IMG_INC $$DB_INC $$TL_INC $$LAYBASIC_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_img -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_img -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -6,13 +6,11 @@ TEMPLATE = subdirs
SUBDIRS = \
klayout_main \
unit_tests \
tl/tl \
tl/unit_tests \
tl \
gsi/gsi \
gsi/gsi_test \
gsi/unit_tests \
db/db \
db/unit_tests \
db \
rdb \
lym \
laybasic \
@ -22,7 +20,6 @@ SUBDIRS = \
edt \
ext \
lib \
ut \
plugins \
buddies \
drc \
@ -30,10 +27,9 @@ SUBDIRS = \
LANG_DEPENDS =
equals(HAVE_RUBY, "1") {
SUBDIRS += rba/rba rba/unit_tests
rba-rba.depends += gsi/gsi
LANG_DEPENDS += rba/rba
rba-unit_tests.depends += ut gsi/gsi_test
SUBDIRS += rba
LANG_DEPENDS += rba
rba.depends += gsi/gsi gsi/gsi_test
} else {
SUBDIRS += rbastub
rbastub.depends += gsi/gsi
@ -41,32 +37,30 @@ equals(HAVE_RUBY, "1") {
}
equals(HAVE_PYTHON, "1") {
SUBDIRS += pya/pya pya/unit_tests
pya-pya.depends += gsi/gsi
LANG_DEPENDS += pya/pya
pya-unit_tests.depends += ut gsi/gsi_test
SUBDIRS += pya
LANG_DEPENDS += pya
pya-unit_tests.depends += gsi/gsi gsi/gsi_test
} else {
SUBDIRS += pyastub
pyastub.depends += gsi/gsi
LANG_DEPENDS += pyastub
}
gsi-gsi.depends += tl/tl
gsi-gsi_test.depends += tl/tl gsi/gsi
db-db.depends += gsi/gsi
rdb.depends += db/db ut
gsi-gsi.depends += tl
gsi-gsi_test.depends += tl gsi/gsi
db.depends += gsi/gsi
rdb.depends += db
laybasic.depends += rdb
ant.depends += laybasic
img.depends += laybasic
edt.depends += laybasic
drc.depends += rdb lym
lym.depends += gsi/gsi ut $$LANG_DEPENDS
lym.depends += gsi/gsi $$LANG_DEPENDS
lay.depends += laybasic ant img edt lym
ext.depends += lay
lib.depends += db/db ut
buddies.depends += db/db ut
ut.depends += db/db $$LANG_DEPENDS
lib.depends += db
buddies.depends += db
equals(HAVE_QTBINDINGS, "1") {
SUBDIRS += gsiqt
@ -74,12 +68,10 @@ equals(HAVE_QTBINDINGS, "1") {
laybasic.depends += gsiqt
}
# YES. It's tl-unit_tests (for tl/unit_tests)
tl-unit_tests.depends += ut
gsi-unit_tests.depends += ut gsi/gsi_test
db-unit_tests.depends += ut
# YES. It's gsi-unit_tests (for gsi/unit_tests)
gsi-unit_tests.depends += gsi/gsi_test
plugins.depends += lay ext lib ut
plugins.depends += lay ext lib
klayout_main.depends += plugins drc
unit_tests.depends += plugins drc
@ -87,4 +79,3 @@ unit_tests.depends += plugins drc
RESOURCES += \
laybasic/layResources.qrc \
ant/layResources.qrc

View File

@ -25,7 +25,7 @@
#include "laySaltGrains.h"
#include "laySalt.h"
#include "tlFileUtils.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include <QDir>
#include <QSignalSpy>

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
laySalt.cc \
INCLUDEPATH += $$LAY_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$LAY_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$LAY_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$LAY_INC $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_lay -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_lay -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -22,7 +22,7 @@
#include "utHead.h"
#include "tlUnitTest.h"
#include "layAnnotationShapes.h"
#include "dbBox.h"
#include "dbEdge.h"

View File

@ -24,7 +24,7 @@
#include "layBitmap.h"
#include "utHead.h"
#include "tlUnitTest.h"
static std::string
to_string (const lay::Bitmap &bm)

View File

@ -25,13 +25,12 @@
#include "layBitmap.h"
#include "layDitherPattern.h"
#include "layLineStyles.h"
#include "tlUnitTest.h"
#include <QImage>
#include <QColor>
#include <QMutex>
#include <utHead.h>
std::string
to_string (const QImage &img, unsigned int mask)
{

View File

@ -25,10 +25,9 @@
#include "layLayerProperties.h"
#include "layLayoutView.h"
#include "tlXMLParser.h"
#include "tlUnitTest.h"
#include "dbLayout.h"
#include <utHead.h>
#include <iostream>
#include <sstream>
@ -1070,7 +1069,7 @@ TEST (11)
}
void
test_list (ut::TestBase *_this, lay::LayerPropertiesConstIterator &iter)
test_list (tl::TestBase *_this, lay::LayerPropertiesConstIterator &iter)
{
lay::LayerPropertiesConstIterator i0 (iter);
size_t nc = 0;

View File

@ -24,7 +24,7 @@
#include "layParsedLayerSource.h"
#include "dbLayout.h"
#include "dbCell.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST (1)
{

View File

@ -25,7 +25,7 @@
#include "layRenderer.h"
#include "layBitmapRenderer.h"
#include "layBitmap.h"
#include "utHead.h"
#include "tlUnitTest.h"
static std::string
to_string (const lay::Bitmap &bm)

View File

@ -23,7 +23,7 @@
#include "laySnap.h"
#include "layLayoutView.h"
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -15,8 +15,8 @@ SOURCES = \
layRenderer.cc \
laySnap.cc \
INCLUDEPATH += $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$TL_INC $$LAYBASIC_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_laybasic -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
libBasicTests.cc \
INCLUDEPATH += $$LIB_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$LIB_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$LIB_INC $$TL_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$LIB_INC $$TL_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_lib -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_lib -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -21,7 +21,7 @@
*/
#include "utHead.h"
#include "tlUnitTest.h"
TEST(1)
{

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
lymBasicTests.cc \
INCLUDEPATH += $$LYM_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$LYM_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$LYM_INC $$TL_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$LYM_INC $$TL_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_lym -lklayout_tl -lklayout_db -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_lym -lklayout_tl -lklayout_db -lklayout_gsi

View File

@ -26,9 +26,9 @@
#include "pya.h"
#include "gsiTest.h"
#include "utHead.h"
#include "tlUnitTest.h"
static void run_pythontest (ut::TestBase *_this, const std::string &fn);
static void run_pythontest (tl::TestBase *_this, const std::string &fn);
TEST (1)
{
@ -39,9 +39,11 @@ TEST (1)
EXPECT_EQ (gsi::has_class ("QApplication"), true);
#endif
tl_assert (pya::PythonInterpreter::instance ());
bool err = false;
try {
ut::python_interpreter ()->eval_string ("raise Exception(\"an error\")");
pya::PythonInterpreter::instance ()->eval_string ("raise Exception(\"an error\")");
} catch (tl::ScriptError &ex) {
EXPECT_EQ (ex.basic_msg (), std::string ("an error"));
EXPECT_EQ (ex.cls () == std::string ("exceptions.Exception") || ex.cls () == std::string ("Exception"), true);
@ -52,7 +54,7 @@ TEST (1)
err = false;
try {
ut::python_interpreter ()->eval_string ("Quatsch");
pya::PythonInterpreter::instance ()->eval_string ("Quatsch");
} catch (tl::ScriptError &ex) {
EXPECT_EQ (ex.basic_msg (), std::string ("name 'Quatsch' is not defined"));
EXPECT_EQ (ex.cls () == std::string ("exceptions.NameError") || ex.cls () == std::string ("NameError"), true);
@ -61,10 +63,10 @@ TEST (1)
EXPECT_EQ (err, true);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/python/basic.py";
try {
ut::python_interpreter ()->load_file (fn.c_str ());
pya::PythonInterpreter::instance ()->load_file (fn.c_str ());
gsi_test::E::reset_inst ();
} catch (tl::ExitException &ex) {
gsi_test::E::reset_inst ();
@ -75,13 +77,15 @@ TEST (1)
}
}
void run_pythontest (ut::TestBase *_this, const std::string &fn)
void run_pythontest (tl::TestBase *_this, const std::string &fn)
{
std::string fp (ut::testsrc ());
tl_assert (pya::PythonInterpreter::instance ());
std::string fp (tl::testsrc ());
fp += "/testdata/python/";
fp += fn;
try {
ut::python_interpreter ()->load_file (fp.c_str ());
pya::PythonInterpreter::instance ()->load_file (fp.c_str ());
} catch (tl::ExitException &ex) {
EXPECT_EQ (ex.status (), 0);
} catch (...) {

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
pya.cc
INCLUDEPATH += $$GSI_TEST_INC $$PYA_INC $$DB_INC $$TL_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$GSI_TEST_INC $$PYA_INC $$DB_INC $$TL_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$GSI_TEST_INC $$PYA_INC $$DB_INC $$TL_INC $$GSI_INC
DEPENDPATH += $$GSI_TEST_INC $$PYA_INC $$DB_INC $$TL_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lgsi_test -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lgsi_test -lklayout_db -lklayout_tl -lklayout_gsi

View File

@ -28,7 +28,7 @@
// On Windows, ruby.h is not compatible with windows.h which is included by utHead - at least not if
// windows.h is included before ruby.h ...
#include "utHead.h"
#include "tlUnitTest.h"
TEST (1)
{
@ -39,9 +39,11 @@ TEST (1)
EXPECT_EQ (gsi::has_class ("QApplication"), true);
#endif
tl_assert (rba::RubyInterpreter::instance ());
bool err = false;
try {
ut::ruby_interpreter ()->eval_string ("raise \"an error\"");
rba::RubyInterpreter::instance ()->eval_string ("raise \"an error\"");
} catch (tl::Exception &ex) {
EXPECT_EQ (std::string (ex.msg (), 0, 8), std::string ("an error"));
err = true;
@ -49,10 +51,10 @@ TEST (1)
EXPECT_EQ (err, true);
ut::ruby_interpreter ()->eval_string ("puts 'Special chars: <&>'");
rba::RubyInterpreter::instance ()->eval_string ("puts 'Special chars: <&>'");
err = false;
try {
ut::ruby_interpreter ()->eval_string ("Quatsch");
rba::RubyInterpreter::instance ()->eval_string ("Quatsch");
} catch (tl::Exception &ex) {
EXPECT_EQ (std::string (ex.msg (), 0, 30) == std::string ("uninitialized constant Quatsch") ||
std::string (ex.msg (), 0, 38) == std::string ("uninitialized constant Object::Quatsch"),
@ -62,10 +64,10 @@ TEST (1)
EXPECT_EQ (err, true);
std::string fn (ut::testsrc ());
std::string fn (tl::testsrc ());
fn += "/testdata/ruby/basic.rb";
try {
ut::ruby_interpreter ()->load_file (fn.c_str ());
rba::RubyInterpreter::instance ()->load_file (fn.c_str ());
gsi_test::E::reset_inst ();
} catch (tl::ExitException &ex) {
gsi_test::E::reset_inst ();
@ -76,12 +78,14 @@ TEST (1)
}
}
void run_rubytest (ut::TestBase * /*_this*/, const std::string &fn)
void run_rubytest (tl::TestBase * /*_this*/, const std::string &fn)
{
std::string fp (ut::testsrc ());
tl_assert (rba::RubyInterpreter::instance ());
std::string fp (tl::testsrc ());
fp += "/testdata/ruby/";
fp += fn;
ut::ruby_interpreter ()->load_file (fp.c_str ());
rba::RubyInterpreter::instance ()->load_file (fp.c_str ());
}
#define RUBYTEST(n, file) \

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
rba.cc
INCLUDEPATH += $$GSI_TEST_INC $$RBA_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$GSI_TEST_INC $$RBA_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$GSI_TEST_INC $$RBA_INC $$TL_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$GSI_TEST_INC $$RBA_INC $$TL_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lgsi_test -lklayout_tl -lklayout_db -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lgsi_test -lklayout_tl -lklayout_db -lklayout_gsi

View File

@ -23,7 +23,7 @@
#include "rdb.h"
#include "utHead.h"
#include "tlUnitTest.h"
#include "dbBox.h"
#include "dbEdge.h"
@ -217,7 +217,7 @@ TEST(4)
TEST(5)
{
std::string tmp_file = ut::TestBase::tmp_file ("tmp_5.lyrdb");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_5.lyrdb");
{
rdb::Database db;
@ -360,7 +360,7 @@ TEST(5)
TEST(5a)
{
std::string tmp_file = ut::TestBase::tmp_file ("tmp_5a.lyrdb");
std::string tmp_file = tl::TestBase::tmp_file ("tmp_5a.lyrdb");
{
rdb::Database db;

View File

@ -9,8 +9,8 @@ include($$PWD/../../lib_ut.pri)
SOURCES = \
rdb.cc \
INCLUDEPATH += $$RDB_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
DEPENDPATH += $$RDB_INC $$TL_INC $$DB_INC $$GSI_INC $$UT_INC
INCLUDEPATH += $$RDB_INC $$TL_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$RDB_INC $$TL_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_rdb -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_ut
LIBS += -L$$DESTDIR_UT -lklayout_rdb -lklayout_db -lklayout_tl -lklayout_gsi

Some files were not shown because too many files have changed in this diff Show More