Added tests for shapes_of_terminal

This commit is contained in:
Matthias Koefferlein
2024-06-06 20:47:55 +02:00
parent 3e4775aabb
commit 04caf13d8d
4 changed files with 131 additions and 0 deletions
+42
View File
@@ -1869,3 +1869,45 @@ TEST(120_ShapesOfPin)
db::compare_layouts (_this, layout, au, db::NoNormalization);
}
TEST(121_ShapesOfTerminal)
{
std::string rs = tl::testdata ();
rs += "/drc/drcSimpleTests_121.drc";
// apart from that it's a variant of 14b ...
std::string input = tl::testdata ();
input += "/drc/drcSimpleTests_121.gds";
std::string au = tl::testdata ();
au += "/drc/drcSimpleTests_au121.gds";
std::string output = this->tmp_file ("tmp.gds");
{
// Set some variables
lym::Macro config;
config.set_text (tl::sprintf (
"$drc_test_source = '%s'\n"
"$drc_test_target = '%s'\n"
, input, output)
);
config.set_interpreter (lym::Macro::Ruby);
EXPECT_EQ (config.run (), 0);
}
lym::Macro drc;
drc.load_from (rs);
EXPECT_EQ (drc.run (), 0);
db::Layout layout;
{
tl::InputStream stream (output);
db::Reader reader (stream);
reader.read (layout);
}
db::compare_layouts (_this, layout, au, db::NoNormalization);
}