48 std::vector<std::pair<wxString, int>> tests =
53 for(
const std::pair<wxString, int>&
test : tests )
67 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
68 m_schematic->ConnectionGraph()->Recalculate( sheets,
true );
69 m_schematic->ConnectionGraph()->RunERC();
84 "Expected " <<
test.second <<
" errors in " <<
test.first.ToStdString()
85 <<
" but got " << errors.
GetCount() <<
"\n"
97 std::vector<std::pair<wxString, int>> tests = { {
"issue13212", 3 } };
99 for(
const std::pair<wxString, int>&
test : tests )
114 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
115 m_schematic->ConnectionGraph()->Recalculate( sheets,
true );
116 m_schematic->ConnectionGraph()->RunERC();
131 "Expected " <<
test.second <<
" errors in " <<
test.first.ToStdString()
132 <<
" but got " << errors.
GetCount() <<
"\n"
wxString GetTextReport()
Returns the ERC report in "text" (human readable) format.
Container for ERC settings.
std::map< int, SEVERITY > m_ERCSeverities
int TestPinToPin()
Checks the full netlist against the pin-to-pin connectivity requirements.
int TestSimilarLabels()
Checks for labels that differ only in capitalization.
int TestMultUnitPinConflicts()
Checks if shared pins on multi-unit symbols have been connected to different nets.
int TestConflictingBusAliases()
Check that there are no conflicting bus alias definitions in the schematic.
int TestNoConnectPins()
In KiCad 5 and earlier, you could connect stuff up to pins with NC electrical type.
int TestMultiunitFootprints()
Test if all units of each multiunit symbol have the same footprint assigned.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
An implementation of the RC_ITEM_LIST interface which uses the global SHEETLIST to fulfill the contra...
int GetCount(int aSeverity=-1) const override
void SetSeverities(int aSeverities) override
@ ERCE_UNCONNECTED_WIRE_ENDPOINT
A label is connected to more than one wire.
@ ERCE_GLOBLABEL_DANGLING
A global label is dangling.
@ ERCE_LIB_SYMBOL_MISMATCH
Symbol doesn't match copy in library.
@ ERCE_LIB_SYMBOL_ISSUES
Symbol not found in active libraries.
@ ERCE_SINGLE_GLOBAL_LABEL
A global label only exists once in the schematic.
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
std::vector< FAB_LAYER_COLOR > dummy
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
ERC_REGRESSION_TEST_FIXTURE()
BOOST_FIXTURE_TEST_CASE(ERCGlobalLabels, ERC_REGRESSION_TEST_FIXTURE)