30#include <boost/test/unit_test.hpp>
42#include <wx/filename.h>
51 projectPath.AppendDir(
"issue23403" );
52 projectPath.SetName(
"issue23403" );
56 m_schematic = std::make_unique<SCHEMATIC>(
nullptr );
74 if( !aTopSheet || !aTopSheet->
GetScreen() )
104 dataDir.AppendDir(
"issue23403" );
107 wxFileName topFile( dataDir.GetPath(),
"top_level_sheet_1",
110 BOOST_REQUIRE_MESSAGE( rootFile.FileExists(),
111 "Test data missing: " + rootFile.GetFullPath().ToStdString() );
112 BOOST_REQUIRE_MESSAGE( topFile.FileExists(),
113 "Test data missing: " + topFile.GetFullPath().ToStdString() );
126 BOOST_REQUIRE_MESSAGE( screen1 !=
nullptr,
127 "First top-level sheet should contain shared1 sub-sheet" );
128 BOOST_REQUIRE_MESSAGE( screen2 !=
nullptr,
129 "Second top-level sheet should contain shared1 sub-sheet" );
132 "Both top-level sheets must share the same SCH_SCREEN for shared1" );
135 "Shared screen ref count should be at least 2, got "
EE_TYPE OfType(KICAD_T aType) const
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Container for project specific data.
A SCH_IO derivation for loading schematic files using the new s-expression file format.
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,...
Base class for any item which can be embedded within the SCHEMATIC container class,...
EE_RTREE & Items()
Get the full RTree, usually for iterating.
const wxString & GetFileName() const
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
SCH_SCREEN * GetScreen() const
static const std::string ProjectFileExtension
static const std::string KiCadSchematicFileExtension
std::string GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
std::vector< FAB_LAYER_COLOR > dummy
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
static SCH_SCREEN * findSubSheetScreen(SCH_SHEET *aTopSheet, const wxString &aSubFileName)
BOOST_CHECK_MESSAGE(totalMismatches==0, std::to_string(totalMismatches)+" board(s) with strategy disagreements")
Definition of file extensions used in Kicad.