38 BOOST_ASSERT( netlistReader );
39 BOOST_REQUIRE_NO_THROW( netlistReader->LoadNetlist() );
46 BOOST_ASSERT( netlistReader );
47 BOOST_REQUIRE_NO_THROW( netlistReader->LoadNetlist() );
51 BOOST_REQUIRE_EQUAL( golden.
GetCount(),
test.GetCount() );
53 for(
unsigned i = 0; i < golden.
GetCount(); i++ )
59 BOOST_REQUIRE_NE( refComp,
nullptr );
69 BOOST_REQUIRE_NE( pathComp,
nullptr );
77 for(
unsigned net = 0; net < goldenComp->
GetNetCount(); net++ )
108 BOOST_CHECK_NE( m_pi.get(),
nullptr );
114 TestNetlist(
"test_global_promotion" );
120 TestNetlist(
"test_global_promotion_2" );
126 TestNetlist(
"video" );
132 TestNetlist(
"complex_hierarchy" );
141 for(
bool useEngine : {
false,
true } )
146 TestNetlist(
"weak_vector_bus_disambiguation" );
154 TestNetlist(
"bus_junctions" );
160 TestNetlist(
"test_hier_renaming" );
166 TestNetlist(
"noconnects" );
172 TestNetlist(
"prefix_bus_alias" );
178 TestNetlist(
"group_bus_matching" );
184 TestNetlist(
"top_level_hier_pins" );
190 TestNetlist(
"bus_entries" );
196 TestNetlist(
"test_hier_no_connect" );
202 TestNetlist(
"bus_connection" );
207 TestNetlist(
"issue14657" );
212 TestNetlist(
"hierarchy_aliases" );
217 TestNetlist(
"issue14818" );
222 TestNetlist(
"issue16003" );
227 TestNetlist(
"issue16439" );
232 TestNetlist(
"component_classes" );
237 TestNetlist(
"hierarchical_component_classes" );
243 TestNetlist(
"jumpers" );
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
Used to store the component pin name to net name (and pin function) associations stored in a netlist.
const wxString & GetNetName() const
const wxString & GetPinFunction() const
const wxString & GetPinName() const
const wxString & GetPinType() const
Store all of the related component information found in a netlist.
const COMPONENT_NET & GetNet(unsigned aIndex) const
const KIID_PATH & GetPath() const
const wxString & GetReference() const
const std::vector< KIID > & GetKIIDs() const
unsigned GetNetCount() const
std::unordered_set< wxString > & GetComponentClassNames()
static NETLIST_READER * GetNetlistReader(NETLIST *aNetlist, const wxString &aNetlistFileName, const wxString &aCompFootprintFileName=wxEmptyString)
Attempt to determine the net list file type of aNetlistFileName and return the appropriate NETLIST_RE...
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD.
unsigned GetCount() const
COMPONENT * GetComponent(unsigned aIndex)
Return the COMPONENT at aIndex.
RAII class that sets an value at construction and resets it to the original value at destruction.
virtual wxString GetNetlistPath(bool aTest=false)
void CompareNetlists() override
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(FindPlugin)
BOOST_TEST_CONTEXT("Test Clearance")