42#include <wx/filename.h>
61 +
"plugins/easyedapro/LS2K0300_Footprint_2025-11-14.elibz2" );
67 std::vector<wxString> entries;
74 for(
bool more = dir.GetFirst( &
name, wxEmptyString, wxDIR_DIRS | wxDIR_FILES ); more;
75 more = dir.GetNext( &
name ) )
77 entries.push_back(
name );
80 std::sort( entries.begin(), entries.end() );
101 wxArrayString footprintNames;
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 );
142 std::vector<FOOTPRINT*> definitions = plugin->GetImportedCachedLibraryFootprints();
145 for(
FOOTPRINT* definition : definitions )
147 BOOST_CHECK( !definition->GetFPID().GetLibItemName().empty() );
General utilities for PCB file IO for QA programs.
wxString PathStr() const
Get the path to the temporary directory as a wxString.
static PCB_IO * FindPlugin(PCB_FILE_T aFileType)
Return a PCB_IO which the caller can use to import, export, save, or load design documents.
An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and fro...
std::unique_ptr< T > IO_RELEASER
Helper to hold and release an IO_BASE object when exceptions are thrown.
std::string GetTestDataRootDir()
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
static std::vector< wxString > listDirEntries(const wxString &aPath)
static wxString getEasyEdaProV3FootprintLibPath()
BOOST_AUTO_TEST_CASE(FootprintLibraryCanReadOnlyFootprintElibz2)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
static wxString getEasyEdaProV3SymbolLibPath()
static wxString getEasyEdaProV3FootprintLibPath()
BOOST_AUTO_TEST_SUITE_END()