KiCad PCB EDA Suite
|
#include <test_netlist_exporter_spice.h>
Classes | |
class | SPICE_TEST_REPORTER |
Public Member Functions | |
TEST_NETLIST_EXPORTER_SPICE_FIXTURE () | |
~TEST_NETLIST_EXPORTER_SPICE_FIXTURE () | |
wxFileName | GetSchematicPath (const wxString &aBaseName) override |
wxString | GetNetlistPath (bool aTest=false) override |
void | CompareNetlists () override |
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 | 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) |
wxString | GetResultsPath (bool aTest=false) |
unsigned | GetNetlistOptions () override |
TEST_NETLIST_EXPORTER_SPICE_FIXTURE () | |
~TEST_NETLIST_EXPORTER_SPICE_FIXTURE () | |
wxFileName | GetSchematicPath (const wxString &aBaseName) override |
wxString | GetNetlistPath (bool aTest=false) override |
void | CompareNetlists () override |
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 | 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) |
wxString | GetResultsPath (bool aTest=false) |
unsigned | GetNetlistOptions () override |
void | WriteNetlist () |
void | Cleanup () |
void | TestNetlist (const wxString &aBaseName) |
Public Attributes | |
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 39 of file eeschema/test_netlist_exporter_spice.h.
|
inline |
Definition at line 66 of file eeschema/test_netlist_exporter_spice.h.
|
inline |
Definition at line 75 of file eeschema/test_netlist_exporter_spice.h.
References m_log.
|
inline |
Definition at line 65 of file spice/test_netlist_exporter_spice.h.
|
inline |
Definition at line 74 of file spice/test_netlist_exporter_spice.h.
References m_log.
|
inherited |
Definition at line 80 of file eeschema_test_utils.cpp.
|
inlineoverridevirtual |
Implements TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >.
Definition at line 108 of file eeschema/test_netlist_exporter_spice.h.
References NGSPICE::Command(), GetNetlistPath(), NGSPICE::LoadNetlist(), m_abort, m_log, m_reporter, m_simulator, netlist, NGSPICE::Run(), and SPICE_SIMULATOR::SetReporter().
|
inlineoverridevirtual |
Implements TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >.
Definition at line 107 of file spice/test_netlist_exporter_spice.h.
References NGSPICE::Command(), GetNetlistPath(), NGSPICE::IsRunning(), NGSPICE::LoadNetlist(), m_abort, m_log, m_reporter, m_simulator, netlist, NGSPICE::Run(), and SPICE_SIMULATOR::SetReporter().
|
inlineoverridevirtual |
Reimplemented from TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >.
Reimplemented in TEST_SIM_REGRESSIONS_FIXTURE.
Definition at line 271 of file eeschema/test_netlist_exporter_spice.h.
References 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_FIXTURE< NETLIST_EXPORTER_SPICE >.
Reimplemented in TEST_SIM_REGRESSIONS_FIXTURE.
Definition at line 284 of file spice/test_netlist_exporter_spice.h.
References 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_FIXTURE< NETLIST_EXPORTER_SPICE >.
Reimplemented in TEST_SIM_REGRESSIONS_FIXTURE.
Definition at line 97 of file eeschema/test_netlist_exporter_spice.h.
References PROJECT::GetProjectFullName(), KI_TEST::SCHEMATIC_TEST_FIXTURE::m_schematic, and SCHEMATIC::Prj().
Referenced by CompareNetlists(), and GetResultsPath().
|
inlineoverridevirtual |
Reimplemented from TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >.
Reimplemented in TEST_SIM_REGRESSIONS_FIXTURE.
Definition at line 96 of file spice/test_netlist_exporter_spice.h.
References PROJECT::GetProjectFullName(), KI_TEST::SCHEMATIC_TEST_FIXTURE::m_schematic, and SCHEMATIC::Prj().
|
inline |
Definition at line 263 of file eeschema/test_netlist_exporter_spice.h.
References GetNetlistPath().
|
inline |
Definition at line 276 of file spice/test_netlist_exporter_spice.h.
References GetNetlistPath().
|
inlineoverridevirtual |
Reimplemented from KI_TEST::SCHEMATIC_TEST_FIXTURE.
Reimplemented in TEST_SIM_REGRESSIONS_FIXTURE.
Definition at line 86 of file eeschema/test_netlist_exporter_spice.h.
References KI_TEST::GetEeschemaTestDataDir().
|
inlineoverridevirtual |
Reimplemented from KI_TEST::SCHEMATIC_TEST_FIXTURE.
Reimplemented in TEST_SIM_REGRESSIONS_FIXTURE.
Definition at line 85 of file spice/test_netlist_exporter_spice.h.
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().
|
inline |
Definition at line 256 of file eeschema/test_netlist_exporter_spice.h.
References TestPoint().
|
inline |
Definition at line 269 of file spice/test_netlist_exporter_spice.h.
References TestPoint().
|
inherited |
Definition at line 82 of file eeschema_test_utils.cpp.
|
inline |
Definition at line 176 of file eeschema/test_netlist_exporter_spice.h.
References m_simulator.
|
inline |
Definition at line 189 of file spice/test_netlist_exporter_spice.h.
References NGSPICE::GetRealVector(), and m_simulator.
|
inline |
Definition at line 192 of file eeschema/test_netlist_exporter_spice.h.
References m_simulator.
Referenced by TestACPoint(), and TestTranPoint().
|
inline |
Definition at line 205 of file spice/test_netlist_exporter_spice.h.
References NGSPICE::GetGainVector(), NGSPICE::GetRealVector(), and m_simulator.
|
inline |
Definition at line 249 of file eeschema/test_netlist_exporter_spice.h.
References TestPoint().
|
inline |
Definition at line 262 of file spice/test_netlist_exporter_spice.h.
References TestPoint().
|
inherited |
Definition at line 76 of file eeschema_test_utils.cpp.
bool TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_abort |
Definition at line 284 of file eeschema/test_netlist_exporter_spice.h.
Referenced by CompareNetlists().
std::shared_ptr< wxString > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_log |
Definition at line 282 of file eeschema/test_netlist_exporter_spice.h.
Referenced by CompareNetlists(), and ~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.
std::unique_ptr< SPICE_TEST_REPORTER > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_reporter |
Definition at line 283 of file eeschema/test_netlist_exporter_spice.h.
Referenced by CompareNetlists().
|
protectedinherited |
Definition at line 60 of file eeschema_test_utils.h.
Referenced by TEST_SCH_REFERENCE_LIST_FIXTURE::getAdditionalRefs(), GetNetlistPath(), TEST_SIM_REGRESSIONS_FIXTURE::GetNetlistPath(), and TEST_SCH_REFERENCE_LIST_FIXTURE::getSymbolByKIID().
std::shared_ptr< SPICE_SIMULATOR > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator |
Definition at line 281 of file eeschema/test_netlist_exporter_spice.h.
Referenced by CompareNetlists(), TestOpPoint(), and TestPoint().