46 wxString brd_name( wxT(
"test_copper_graphics" ) );
52 std::vector<DRC_ITEM> violations;
64 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
VECTOR2I aPos,
int aLayer )
69 violations.push_back( *aItem );
74 const int expected_err_cnt = 4;
79 if( violations.size() == expected_err_cnt )
81 BOOST_CHECK_EQUAL( 1, 1 );
82 BOOST_TEST_MESSAGE(
"DRC copper graphics test passed" );
86 BOOST_CHECK_EQUAL( violations.size(), expected_err_cnt );
90 std::map<KIID, EDA_ITEM*> itemMap;
91 m_board->FillItemMap( itemMap );
93 for(
const DRC_ITEM& item : violations )
96 BOOST_ERROR( wxString::Format(
"DRC copper graphics test failed board <%s>", brd_name ) );
constexpr EDA_IU_SCALE pcbIUScale
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
std::shared_ptr< DRC_ENGINE > m_DRCEngine
std::set< wxString > m_DrcExclusions
wxString SerializeToString() const
@ DRCE_LIB_FOOTPRINT_ISSUES
@ DRCE_LIB_FOOTPRINT_MISMATCH
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
std::unique_ptr< BOARD > m_board
DRC_COPPER_GRAPHICS_TEST_FIXTURE()
SETTINGS_MANAGER m_settingsManager
BOOST_FIXTURE_TEST_CASE(DRCCopperGraphicsTest, DRC_COPPER_GRAPHICS_TEST_FIXTURE)