60 +
"plugins/altium/eDP_adapter_dvt1_source/eDP_adapter_dvt1.PcbDoc";
62 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
65 m_altiumPlugin.LoadBoard( dataPath, board.get(),
nullptr );
70 BOOST_CHECK( board->GetNetCount() > 0 );
71 BOOST_CHECK( board->Footprints().size() > 0 );
87 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
89 m_altiumPlugin.LoadBoard( dataPath, board.get(),
nullptr );
94 std::shared_ptr<NET_SETTINGS> netSettings = board->GetDesignSettings().m_NetSettings;
99 auto& patternAssignments = netSettings->GetNetclassPatternAssignments();
102 BOOST_REQUIRE_MESSAGE( patternAssignments.size() > 0,
103 "Test file must have netclass pattern assignments" );
107 bool foundAssignedNet =
false;
111 if( net->GetNetCode() <= 0 )
115 NETCLASS* directNetclass = net->GetNetClass();
118 std::shared_ptr<NETCLASS> effectiveNetclass =
119 netSettings->GetEffectiveNetClass( net->GetNetname() );
126 directNetclass !=
nullptr,
127 wxString::Format(
"Net '%s' should have a direct netclass assignment",
128 net->GetNetname() ) );
132 foundAssignedNet =
true;
138 wxString::Format(
"Net '%s' should not have default netclass, "
139 "expected effective class or component",
140 net->GetNetname() ) );
147 "At least one net should have a non-default netclass assigned" );
General utilities for PCB file IO for QA programs.
A collection of nets and the parameters used to route or test these nets.
static const char Default[]
the name of the default NETCLASS
const wxString GetName() const
Gets the name of this (maybe aggregate) netclass in a format for internal usage or for export to exte...
Handle the data for a net.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
ALTIUM_PCB_IMPORT_FIXTURE()
PCB_IO_ALTIUM_DESIGNER m_altiumPlugin
BOOST_AUTO_TEST_CASE(BoardLoadNoAssertions)
Test basic board loading - verifies that the Altium import doesn't trigger any assertions during the ...
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
BOOST_CHECK_MESSAGE(totalMismatches==0, std::to_string(totalMismatches)+" board(s) with strategy disagreements")