20#include <boost/test/unit_test.hpp>
38struct ALTIUM_SCH_IMPORT_FIXTURE
40 ALTIUM_SCH_IMPORT_FIXTURE() : m_schematic( nullptr )
42 m_settingsManager.LoadProject(
"" );
43 m_schematic.SetProject( &m_settingsManager.Prj() );
47 ~ALTIUM_SCH_IMPORT_FIXTURE() { m_schematic.Reset(); }
49 wxString dataFile(
const wxString& aName )
const
52 +
"/plugins/altium/issue22943/" )
56 SETTINGS_MANAGER m_settingsManager;
63BOOST_FIXTURE_TEST_SUITE( AltiumSchImport, ALTIUM_SCH_IMPORT_FIXTURE )
79 wxArrayString libNames;
82 std::set<wxString> libSymbolNames( libNames.begin(), libNames.end() );
85 std::vector<SCH_SYMBOL*> fromMountingHoles;
92 fromMountingHoles.push_back( sym );
100 const LIB_ID& libId = sym->GetLibId();
101 BOOST_CHECK( libId.
IsValid() );
104 <<
"' does not resolve in mounting_holes.SchLib" );
EE_TYPE OfType(KICAD_T aType) const
A logical library item identifier and consists of various portions much like a URI.
bool IsValid() const
Check if this LID_ID is valid.
const wxString GetUniStringLibItemName() const
Get strings for display messages in dialogs.
const wxString GetUniStringLibNickname() const
SCH_SHEET * LoadSchematicFile(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load information from some input file format that this SCH_IO implementation knows about,...
void EnumerateSymbolLib(wxArrayString &aSymbolNameList, const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Populate a list of LIB_SYMBOL alias names contained within the library aLibraryPath.
Base class for any item which can be embedded within the SCHEMATIC container class,...
EE_RTREE & Items()
Get the full RTree, usually for iterating.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
SCH_SCREEN * GetScreen() const
const LIB_ID & GetLibId() const override
std::string GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
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")