52 std::vector<wxString> tests =
68 "issue17967/issue17967",
70 "unconnected-netnames/unconnected-netnames",
74 for(
const wxString& relPath : tests )
79 std::vector<DRC_ITEM> violations;
93 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
94 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
97 violations.push_back( *aItem );
102 if( violations.empty() )
111 std::map<KIID, EDA_ITEM*> itemMap;
112 m_board->FillItemMap( itemMap );
114 for(
const DRC_ITEM& item : violations )
120 BOOST_ERROR( wxString::Format(
"DRC regression: %s, failed (err: expected 0 found %d",
121 relPath, (
int)violations.size() ) );
131 std::map<int, SEVERITY> issue19325_ignore;
136 {
"issue1358", 2, {} },
137 {
"issue2512", 5, {} },
138 {
"issue2528", 1, {} },
139 {
"issue5750", 4, {} },
140 {
"issue5854", 3, {} },
141 {
"issue6879", 6, {} },
142 {
"issue6945", 2, {} },
143 {
"issue7241", 1, {} },
144 {
"issue7267", 5, {} },
145 {
"issue7325", 2, {} },
146 {
"issue8003", 2, {} },
147 {
"issue9081", 2, {} },
148 {
"issue12109", 8, {} },
149 {
"issue14334", 2, {} },
150 {
"issue16566", 6, {} },
151 {
"issue18142", 1, {} },
152 {
"reverse_via", 3, {} },
153 {
"intersectingzones", 1, {} },
154 {
"fill_bad", 1, {} },
155 {
"issue18878", 9, {} },
156 {
"issue19325/issue19325", 4, issue19325_ignore },
159 for(
const auto& [testName, expectedErrors, customSeverities] : tests )
166 std::vector<PCB_MARKER> markers;
167 std::vector<DRC_ITEM> violations;
175 for(
const auto [
test, severity] : customSeverities)
179 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
180 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
182 markers.emplace_back(
PCB_MARKER( aItem, aPos ) );
187 violations.push_back( *aItem );
193 if( violations.size() == expectedErrors )
202 std::map<KIID, EDA_ITEM*> itemMap;
203 m_board->FillItemMap( itemMap );
205 for(
const DRC_ITEM& item : violations )
213 BOOST_ERROR( wxString::Format(
"DRC regression: %s, failed", testName ) );
BOOST_CHECK_EQUAL(result, "25.4")