23#include <boost/test/unit_test.hpp>
49 SetPgm(
new MOCK_PGM_BASE() );
51 boost::unit_test::framework::master_test_suite().p_name.value =
"Pcbnew module tests";
53 wxApp::SetInstance(
new wxAppConsole );
55 bool ok = wxInitialize( boost::unit_test::framework::master_test_suite().argc,
56 boost::unit_test::framework::master_test_suite().argv );
66 const MOCK_PGM_BASE&
program =
static_cast<MOCK_PGM_BASE&
>(
Pgm() );
74int main(
int argc,
char* argv[] )
78 int ret = boost::unit_test::unit_test_main( &
init_unit_test, argc, argv );
Install a temporary directory for the process to use for temporary files, which is (usually) removed ...
Several PCB importers (DipTrace, Eagle, PADS) write a .kicad_dru sidecar next to the board file they ...
bool InitPgm(bool aHeadless=false, bool aIsUnitTest=false)
Initialize this program.
virtual SETTINGS_MANAGER & GetSettingsManager() const
T * RegisterSettings(T *aSettings, bool aLoadNow=true)
Take ownership of the pointer passed in.
bool LoadProject(const wxString &aFullPath, bool aSetActive=true)
Load a project or sets up a new project with a specified path.
void wxAssertThrower(const wxString &aFile, int aLine, const wxString &aFunc, const wxString &aCond, const wxString &aMsg)
BOOST_TEST_GLOBAL_FIXTURE(KI_SIGNAL_HANDLER_FIXTURE)
void SetPgm(PGM_BASE *pgm)
PGM_BASE & Pgm()
The global program "get" accessor.