29#include <boost/test/unit_test.hpp>
45 SetPgm(
new MOCK_PGM_BASE() );
47 boost::unit_test::framework::master_test_suite().p_name.value =
"Common Eeschema module tests";
49 wxApp::SetInstance(
new wxAppConsole );
51 bool ok = wxInitialize( boost::unit_test::framework::master_test_suite().argc,
52 boost::unit_test::framework::master_test_suite().argv );
64int main(
int argc,
char* argv[] )
66 int ret = boost::unit_test::unit_test_main( &
init_unit_test, argc, argv );
bool InitPgm(bool aHeadless=false, bool aSkipPyInit=false, bool aIsUnitTest=false)
Initialize this program.
virtual SETTINGS_MANAGER & GetSettingsManager() const
T * RegisterSettings(T *aSettings, bool aLoadNow=true)
Takes ownership of the pointer passed in.
bool init_unit_test()
Main file for the Eeschema tests to be compiled.
void wxAssertThrower(const wxString &aFile, int aLine, const wxString &aFunc, const wxString &aCond, const wxString &aMsg)
void SetPgm(PGM_BASE *pgm)
PGM_BASE & Pgm()
The global Program "get" accessor.