1 #include "gate_library_test_utils.h"
4 #include "netlist_test_utils.h"
13 test_utils::init_log_channels();
14 test_utils::create_sandbox_directory();
19 test_utils::remove_sandbox_directory();
32 std::string path_lib = test_utils::create_sandbox_path(
"test.hgl");
34 ASSERT_NE(gl_original,
nullptr);
37 ASSERT_TRUE(writer.
write(gl_original, path_lib));
39 auto gl_res =
parser.parse(path_lib);
40 ASSERT_TRUE(gl_res.is_ok());
41 std::unique_ptr<GateLibrary> gl_written = gl_res.get();
42 ASSERT_NE(gl_written,
nullptr);
44 EXPECT_TRUE(test_utils::gate_libraries_are_equal(gl_original, gl_written.get()));
bool write(const GateLibrary *gate_lib, const std::filesystem::path &file_path) override
GateLibrary * get_gate_library(const std::string &file_path)
TEST_F(HGLParserTest, check_library)