KiCad PCB EDA Suite
|
A generic fixture for loading schematics and associated settings for qa tests. More...
#include <eeschema_test_utils.h>
Public Member Functions | |
SCHEMATIC_TEST_FIXTURE () | |
virtual | ~SCHEMATIC_TEST_FIXTURE () |
Protected Member Functions | |
virtual void | LoadSchematic (const wxString &aRelativePath) |
virtual wxFileName | GetSchematicPath (const wxString &aBaseName) |
Protected Attributes | |
SCHEMATIC | m_schematic |
SCH_PLUGIN * | m_pi |
SETTINGS_MANAGER | m_manager |
A generic fixture for loading schematics and associated settings for qa tests.
Definition at line 50 of file eeschema_test_utils.h.
|
inline |
Definition at line 53 of file eeschema_test_utils.h.
|
inlinevirtual |
Definition at line 59 of file eeschema_test_utils.h.
References m_pi, m_schematic, SCH_IO_MGR::ReleasePlugin(), and SCHEMATIC::Reset().
|
protectedvirtual |
Reimplemented in TEST_NETLIST_EXPORTER_SPICE_FIXTURE, TEST_NETLIST_EXPORTER_SPICE_FIXTURE, TEST_SIM_REGRESSIONS_FIXTURE, and TEST_SCH_SHEET_LIST_FIXTURE.
Definition at line 95 of file eeschema_test_utils.cpp.
References KI_TEST::GetEeschemaTestDataDir(), and KiCadSchematicFileExtension.
Referenced by LoadSchematic().
|
protectedvirtual |
Definition at line 37 of file eeschema_test_utils.cpp.
References SCHEMATIC::CurrentSheet(), PROJECT::ELEM_SCH_SYMBOL_LIBS, SCH_SCREENS::FixLegacyPowerSymbolMismatches(), SCH_PLUGIN::GetError(), SCH_SCREEN::GetFileFormatVersionAtLoad(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), GetSchematicPath(), SCH_SCREEN::GetSheetInstances(), SCHEMATIC::GetSheets(), SCH_SCREEN::GetSymbolInstances(), SETTINGS_MANAGER::LoadProject(), SCH_PLUGIN::LoadSchematicFile(), m_manager, m_pi, m_schematic, SETTINGS_MANAGER::Prj(), ProjectFileExtension, SCH_SHEET_PATH::push_back(), SCHEMATIC::Reset(), SCHEMATIC::Root(), SCHEMATIC::RootScreen(), PROJECT::SetElem(), SCHEMATIC::SetProject(), SCHEMATIC::SetRoot(), SCH_SHEET_LIST::UpdateSheetInstanceData(), and SCH_SHEET_LIST::UpdateSymbolInstanceData().
Referenced by TEST_SCH_REFERENCE_LIST_FIXTURE::loadTestCase().
|
protected |
Definition at line 71 of file eeschema_test_utils.h.
Referenced by LoadSchematic().
|
protected |
Definition at line 70 of file eeschema_test_utils.h.
Referenced by LoadSchematic(), and ~SCHEMATIC_TEST_FIXTURE().
|
protected |
Definition at line 69 of file eeschema_test_utils.h.
Referenced by TEST_SCH_REFERENCE_LIST_FIXTURE::getAdditionalRefs(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath(), TEST_SIM_REGRESSIONS_FIXTURE::GetNetlistPath(), TEST_SCH_REFERENCE_LIST_FIXTURE::getSymbolByKIID(), LoadSchematic(), and ~SCHEMATIC_TEST_FIXTURE().