62 std::string dataPath =
65 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
67 m_fabmasterPlugin.LoadBoard( dataPath, board.get(),
nullptr );
72 BOOST_REQUIRE_GT( board->Footprints().size(), 0 );
78 for(
const FOOTPRINT* fp : board->Footprints() )
80 totalPads += fp->Pads().size();
83 BOOST_CHECK_MESSAGE( totalPads > 0,
84 "Footprints should have pads when REFDES is empty in PIN section" );
101 std::string dataPath =
104 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
106 m_fabmasterPlugin.LoadBoard( dataPath, board.get(),
nullptr );
111 int zonesWithNets = 0;
113 for(
ZONE* zone : board->Zones() )
115 if( zone->GetNetCode() > 0 )
122 BOOST_CHECK_MESSAGE( zonesWithNets > 0,
123 "Static shape zones with nets should be preserved" );
General utilities for PCB file IO for QA programs.
Handle a list of polygons defining a copper zone.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
PCB_IO_FABMASTER m_fabmasterPlugin
FABMASTER_IMPORT_FIXTURE()
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_CASE(EmptyRefdesInPins)
Test that footprints with pads are properly imported when the REFDES column is empty in the PIN secti...
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()