36#include <wx/filename.h>
46 +
"issue24211/issue24211.kicad_pro" );
58 +
"issue24211/issue24211.kicad_pcb";
81 FOOTPRINT* l1 = board->FindFootprintByReference( wxT(
"L1" ) );
117 std::set<wxString> firedRules;
120 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I&,
int,
123 if( aItem->GetViolatingRule() )
124 firedRules.insert( aItem->GetViolatingRule()->m_Name );
131 for(
const wxString& r : firedRules )
134 BOOST_CHECK_MESSAGE( firedRules.count( wxT(
"pcblint_buck_feedback_away_from_switch_node" ) ),
135 "Netclass-based custom rule did not fire" );
138 firedRules.count( wxT(
"pcblint_inductor_sensitive_trace_keepout_no_track" ) ),
139 "Component-class-based custom rule did not fire after BOARD_LOADER::Load" );
General utilities for PCB file IO for QA programs.
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
std::shared_ptr< DRC_ENGINE > m_DRCEngine
static std::unique_ptr< BOARD > Load(const wxString &aFileName, PCB_IO_MGR::PCB_FILE_T aFormat, PROJECT *aProject, const OPTIONS &aOptions)
A lightweight representation of a component class.
bool ContainsClassName(const wxString &className) const
Determines if this (effective) component class contains a specific constituent class.
const wxString & GetName() const
Fetches the full name of this component class.
void RunTests(EDA_UNITS aUnits, bool aReportAllTrackErrors, bool aTestFootprints, BOARD_COMMIT *aCommit=nullptr)
Run the DRC tests.
void SetViolationHandler(DRC_VIOLATION_HANDLER aHandler)
Set an optional DRC violation handler (receives DRC_ITEMs and positions).
@ KICAD_SEXP
S-expression Pcbnew file format.
Container for project specific data.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
wxString boardPath() const
SETTINGS_MANAGER m_settingsManager
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_MESSAGE(dc.CacheTableInfo(table, { "part_id", "val" }), dc.GetLastError())
BOOST_REQUIRE(res.columns()==1)
BOOST_FIXTURE_TEST_CASE(DRCIssue24211ComponentClassesAfterLoad, DRC_ISSUE_24211_FIXTURE)
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
VECTOR2< int32_t > VECTOR2I