Skip to content

Commit

Permalink
Test/test update (#176)
Browse files Browse the repository at this point in the history
* updated stuff

* +update

* + module tests

* +module tests

* serializer update and more

* merged into branch+

* updated hdl-parser tests

* + vhdl_parser tests

* commented out failed test

* renamed insert_gate/insert_net to assign_gate/assign_net after merge

* + parser test

* copied old hdl-writer tests

* included hdl-writer/

* +parser/writer tests

* updated tests after some changes

* started verilog parser tests

* +verilog parser tests

* added .v parser tests + removed wrong TODOs

* +verilog parser tests

* +first numeric literal tests

* allow empty value and datatype

* updated datacontainer test
  • Loading branch information
swallat authored Aug 1, 2019
1 parent 1a9f8be commit 329a5c5
Show file tree
Hide file tree
Showing 18 changed files with 6,057 additions and 1,647 deletions.
5 changes: 0 additions & 5 deletions src/netlist/data_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ bool data_container::set_data(const std::string& category, const std::string& ke
log_error("netlist", "key category or key is empty.");
return false;
}
if (value_data_type.empty() || value.empty())
{
log_error("netlist", "value data type or value is empty.");
return false;
}

m_data[std::make_tuple(category, key)] = std::make_tuple(value_data_type, value);

Expand Down
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ endif()
#add_subdirectory(basic_tests)
add_subdirectory(core)
add_subdirectory(netlist)
add_subdirectory(hdl_parser)
add_subdirectory(hdl_parser)
add_subdirectory(hdl_writer)
4 changes: 2 additions & 2 deletions tests/core/plugin_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ TEST_F(plugin_manager_test, check_load_unload_all)
EXPECT_TRUE(plugin_manager::get_plugin_names().empty());

// Load all plugins with directory hints
//plugin_manager::load_all_plugins(core_utils::get_plugin_directories()); // TODO Fails with SIGSEGV
//plugin_manager::load_all_plugins(core_utils::get_plugin_directories()); // ISSUE: Fails with SIGSEGV
plugin_manager::unload_all_plugins();

EXPECT_TRUE(plugin_manager::get_plugin_names().empty());
Expand Down Expand Up @@ -319,7 +319,7 @@ TEST_F(plugin_manager_test, check_unload)
EXPECT_FALSE(suc);
}
// TODO: some positive tests, if unload is fixed
// NOTE: do some positive tests, if unload is fixed
TEST_END
}*/
Expand Down
Loading

0 comments on commit 329a5c5

Please sign in to comment.