KiCad PCB EDA Suite
|
Public Member Functions | |
TEST_SIM_REGRESSIONS_FIXTURE () | |
~TEST_SIM_REGRESSIONS_FIXTURE () | |
wxFileName | GetSchematicPath (const wxString &aBaseName) override |
wxString | GetNetlistPath (bool aTest=false) override |
unsigned | GetNetlistOptions () override |
void | CompareNetlists () override |
void | CompareNetlists () override |
void | TestOpPoint (double aRefValue, const std::string &aVectorName, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestOpPoint (double aRefValue, const std::string &aVectorName, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestPoint (const std::string &aXVectorName, double aXValue, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestPoint (const std::string &aXVectorName, double aXValue, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestTranPoint (double aTime, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestTranPoint (double aTime, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestACPoint (double aFrequency, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
void | TestACPoint (double aFrequency, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR) |
wxString | GetResultsPath (bool aTest=false) |
wxString | GetResultsPath (bool aTest=false) |
void | WriteNetlist () |
void | Cleanup () |
void | TestNetlist (const wxString &aBaseName) |
Public Attributes | |
bool | m_SavesDissipations = false |
bool | m_SaveVoltages = true |
bool | m_SaveCurrents = true |
std::shared_ptr< SPICE_SIMULATOR > | m_simulator |
std::shared_ptr< wxString > | m_log |
std::unique_ptr< SPICE_TEST_REPORTER > | m_reporter |
bool | m_abort |
Protected Member Functions | |
virtual void | LoadSchematic (const wxString &aRelativePath) |
Protected Attributes | |
SCHEMATIC | m_schematic |
IO_RELEASER< SCH_IO > | m_pi |
SETTINGS_MANAGER | m_manager |
Definition at line 33 of file test_sim_regressions.cpp.
|
inline |
Definition at line 36 of file test_sim_regressions.cpp.
|
inline |
Definition at line 41 of file test_sim_regressions.cpp.
|
inherited |
Definition at line 80 of file eeschema_test_utils.cpp.
|
inlineoverridevirtualinherited |
Implements TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >.
Definition at line 108 of file eeschema/test_netlist_exporter_spice.h.
References NGSPICE::Command(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath(), NGSPICE::LoadNetlist(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_abort, TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_log, TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_reporter, TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator, netlist, NGSPICE::Run(), and SPICE_SIMULATOR::SetReporter().
|
inlineoverridevirtualinherited |
Implements TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >.
Definition at line 107 of file spice/test_netlist_exporter_spice.h.
References NGSPICE::Command(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath(), NGSPICE::IsRunning(), NGSPICE::LoadNetlist(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_abort, TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_log, TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_reporter, TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator, netlist, NGSPICE::Run(), and SPICE_SIMULATOR::SetReporter().
|
inlineoverridevirtual |
Reimplemented from TEST_NETLIST_EXPORTER_SPICE_FIXTURE.
Definition at line 65 of file test_sim_regressions.cpp.
References m_SaveCurrents, m_SavesDissipations, m_SaveVoltages, NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_EVENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES, and NETLIST_EXPORTER_SPICE::OPTION_SIM_COMMAND.
|
inlineoverridevirtual |
Reimplemented from TEST_NETLIST_EXPORTER_SPICE_FIXTURE.
Definition at line 54 of file test_sim_regressions.cpp.
References PROJECT::GetProjectFullName(), KI_TEST::SCHEMATIC_TEST_FIXTURE::m_schematic, and SCHEMATIC::Prj().
|
inlineinherited |
Definition at line 263 of file eeschema/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath().
|
inlineinherited |
Definition at line 276 of file spice/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath().
|
inlineoverridevirtual |
Reimplemented from TEST_NETLIST_EXPORTER_SPICE_FIXTURE.
Definition at line 45 of file test_sim_regressions.cpp.
References KI_TEST::GetEeschemaTestDataDir(), and FILEEXT::KiCadSchematicFileExtension.
|
protectedvirtualinherited |
Definition at line 56 of file eeschema_test_utils.cpp.
References FILEEXT::ProjectFileExtension, and PROJECT::SCH_SYMBOL_LIBS.
Referenced by TEST_SCH_REFERENCE_LIST_FIXTURE::loadTestCase().
|
inlineinherited |
Definition at line 256 of file eeschema/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint().
|
inlineinherited |
Definition at line 269 of file spice/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint().
|
inherited |
Definition at line 82 of file eeschema_test_utils.cpp.
|
inlineinherited |
Definition at line 176 of file eeschema/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator.
|
inlineinherited |
Definition at line 189 of file spice/test_netlist_exporter_spice.h.
References NGSPICE::GetRealVector(), and TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator.
|
inlineinherited |
Definition at line 192 of file eeschema/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator.
Referenced by TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestACPoint(), and TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestTranPoint().
|
inlineinherited |
Definition at line 205 of file spice/test_netlist_exporter_spice.h.
References NGSPICE::GetGainVector(), NGSPICE::GetRealVector(), and TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator.
|
inlineinherited |
Definition at line 249 of file eeschema/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint().
|
inlineinherited |
Definition at line 262 of file spice/test_netlist_exporter_spice.h.
References TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint().
|
inherited |
Definition at line 76 of file eeschema_test_utils.cpp.
|
inherited |
Definition at line 284 of file eeschema/test_netlist_exporter_spice.h.
Referenced by TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists().
|
inherited |
Definition at line 282 of file eeschema/test_netlist_exporter_spice.h.
Referenced by TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists(), and TEST_NETLIST_EXPORTER_SPICE_FIXTURE::~TEST_NETLIST_EXPORTER_SPICE_FIXTURE().
|
protectedinherited |
Definition at line 62 of file eeschema_test_utils.h.
|
protectedinherited |
Definition at line 61 of file eeschema_test_utils.h.
|
inherited |
Definition at line 283 of file eeschema/test_netlist_exporter_spice.h.
Referenced by TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists().
bool TEST_SIM_REGRESSIONS_FIXTURE::m_SaveCurrents = true |
Definition at line 86 of file test_sim_regressions.cpp.
Referenced by GetNetlistOptions().
bool TEST_SIM_REGRESSIONS_FIXTURE::m_SavesDissipations = false |
Definition at line 84 of file test_sim_regressions.cpp.
Referenced by GetNetlistOptions().
bool TEST_SIM_REGRESSIONS_FIXTURE::m_SaveVoltages = true |
Definition at line 85 of file test_sim_regressions.cpp.
Referenced by GetNetlistOptions().
|
protectedinherited |
Definition at line 60 of file eeschema_test_utils.h.
Referenced by TEST_SCH_REFERENCE_LIST_FIXTURE::getAdditionalRefs(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath(), GetNetlistPath(), and TEST_SCH_REFERENCE_LIST_FIXTURE::getSymbolByKIID().
|
inherited |
Definition at line 281 of file eeschema/test_netlist_exporter_spice.h.
Referenced by TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestOpPoint(), and TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint().