101 wxArrayString footprintNames;
104 BOOST_REQUIRE_EQUAL( footprintNames.GetCount(), 1 );
105 BOOST_CHECK_EQUAL( footprintNames[0], wxString( wxS(
"BGA-286_17x17_12.0x12.0mm" ) ) );
107 std::unique_ptr<FOOTPRINT> footprint =
121 const wxString archiveName = wxS(
"ProProject_LS2K0300Core_2025-11-14.epro2" );
123 const wxString tempDirPath = tempDir.
PathStr();
125 wxFileName dataFile( tempDirPath, archiveName );
126 BOOST_REQUIRE( wxCopyFile( sourceDir + archiveName, dataFile.GetFullPath() ) );
128 std::map<std::string, UTF8> properties;
129 properties[
"pcb_id"] =
"eb9fbfba682940f7a002816e66fbb3d7";
134 std::unique_ptr<BOARD> board = plugin->LoadBoard( dataFile.GetFullPath(), &properties );
139 BOOST_REQUIRE_EQUAL( entries.size(), 1 );
142 std::vector<FOOTPRINT*> definitions = plugin->GetImportedCachedLibraryFootprints();
143 BOOST_CHECK( definitions.size() > 0 );
145 for(
FOOTPRINT* definition : definitions )
147 BOOST_CHECK( !definition->GetFPID().GetLibItemName().empty() );
151 BOOST_CHECK( board->Footprints().size() > 0 );
152 BOOST_CHECK( board->GetNetCount() > 0 );
static PCB_IO * FindPlugin(PCB_FILE_T aFileType)
Return a #PLUGIN which the caller can use to import, export, save, or load design documents.
BOOST_CHECK_EQUAL(result, "25.4")