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 | 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) |
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 | |
std::unique_ptr< 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 111 of file test_netlist_exporter_spice.h.
References BOOST_REQUIRE(), 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 KI_TEST::SCHEMATIC_TEST_FIXTURE::m_schematic.
|
inlineinherited |
Definition at line 284 of file 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 54 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 277 of file 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 197 of file test_netlist_exporter_spice.h.
References BOOST_TEST_CONTEXT(), NGSPICE::GetRealVector(), and TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator.
|
inlineinherited |
Definition at line 213 of file test_netlist_exporter_spice.h.
References BOOST_TEST_CONTEXT(), NGSPICE::GetGainVector(), NGSPICE::GetRealVector(), and 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 270 of file 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 305 of file test_netlist_exporter_spice.h.
Referenced by TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists().
|
inherited |
Definition at line 303 of file 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.
Referenced by TEST_SCH_GROUP_FIXTURE::CreateTestSchematic().
|
protectedinherited |
Definition at line 61 of file eeschema_test_utils.h.
|
inherited |
Definition at line 304 of file 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_GROUP_FIXTURE::CreateTestSchematic(), TEST_SCH_REFERENCE_LIST_FIXTURE::getAdditionalRefs(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath(), GetNetlistPath(), TEST_SCH_REFERENCE_LIST_FIXTURE::getSymbolByKIID(), and TEST_SCH_REFERENCE_LIST_UNITS_FIXTURE::setupRefDesTracker().
|
inherited |
Definition at line 302 of file 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().