KiCad PCB EDA Suite
test_basic.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include <sch_io_mgr.h>
#include <kiway.h>
#include <data/fixtures_eagle_plugin.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (FindPlugin)
 Checks that the SCH_IO manager finds the Eagle plugin. More...
 
 BOOST_AUTO_TEST_CASE (Load)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( FindPlugin  )

Checks that the SCH_IO manager finds the Eagle plugin.

Definition at line 35 of file test_basic.cpp.

36 {
37  BOOST_CHECK( SCH_IO_MGR::FindPlugin( SCH_IO_MGR::SCH_EAGLE ) != NULL );
38 }
BOOST_AUTO_TEST_CASE ( Load  )

Definition at line 43 of file test_basic.cpp.

References SCH_PLUGIN::Load().

44 {
45  SCH_PLUGIN* pi = SCH_IO_MGR::FindPlugin( SCH_IO_MGR::SCH_EAGLE );
46 
47  pi->Load("/home/alejandro/Proyectos/kicad/kicad-alejandro/eeschema/qa/data/eagle_schematics/empty.sch",
48  NULL);
49 }
virtual SCH_SHEET * Load(const wxString &aFileName, KIWAY *aKiway, SCH_SHEET *aAppendToMe=NULL, const PROPERTIES *aProperties=NULL)
Load information from some input file format that this SCH_PLUGIN implementation knows about...
Definition: sch_plugin.cpp:50
Base class that schematic file and library loading and saving plugins should derive from...
Definition: sch_io_mgr.h:188