31#include <wx/filename.h>
39 + aBoardName +
".kicad_pro" );
45 BOOST_REQUIRE_MESSAGE(
project,
"Could not load project" );
49 wxString
boardPath(
const wxString& aBoardName )
const
62 std::unique_ptr<BOARD> board =
69 BOOST_CHECK( board->GetDesignSettings().m_DRCEngine );
70 BOOST_CHECK( board->GetConnectivity() );
71 BOOST_CHECK_GT( board->Drawings().size(), 0 );
82 std::unique_ptr<BOARD> board =
89 BOOST_CHECK_NE( board->GetProject(),
project );
90 BOOST_CHECK( board->GetDesignSettings().m_DRCEngine ==
nullptr );
97 +
"plugins/allegro/boards/VCU118_REV2-0/8851_HW-U1-VCU118_REV2-0_071417.kicad_pcb";
104 BOARD_ITEM* item = board->ResolveItem(
KIID(
"945ee847-b394-409c-b580-2568b3573ad8" ) );
constexpr EDA_IU_SCALE pcbIUScale
General utilities for PCB file IO for QA programs.
wxString GetNetname() const
PCB_LAYER_ID GetLayer() const override
Return the primary layer this item is on.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
static std::unique_ptr< BOARD > Load(const wxString &aFileName, PCB_IO_MGR::PCB_FILE_T aFormat, PROJECT *aProject, const OPTIONS &aOptions)
KICAD_T Type() const
Returns the type of object.
@ KICAD_SEXP
S-expression Pcbnew file format.
const VECTOR2I & GetStart() const
const VECTOR2I & GetEnd() const
virtual int GetWidth() const
Container for project specific data.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
std::unique_ptr< BOARD > ReadBoardFromFileOrStream(const std::string &aFilename, std::istream &aFallback)
Read a board from a file, or another stream, as appropriate.
bool initialize_after_load
PROJECT * loadProject(const wxString &aBoardName)
wxString boardPath(const wxString &aBoardName) const
SETTINGS_MANAGER m_settingsManager
BOOST_FIXTURE_TEST_CASE(BoardLoaderWithInit, BOARD_LOADER_TEST_FIXTURE)
BOOST_AUTO_TEST_CASE(CollinearTrackArcLoadsAsTrack)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_CHECK_EQUAL(result, "25.4")
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
VECTOR2< int32_t > VECTOR2I