|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <core/ignore.h>#include <kiway.h>#include <pgm_base.h>#include <sch_io/sch_io.h>#include <schematic.h>#include <sch_sheet.h>#include <sch_screen.h>#include <sch_symbol.h>#include <sch_sheet_path.h>#include <settings/settings_manager.h>#include <wildcards_and_files_ext.h>#include <wx/filename.h>#include <wx/stdpaths.h>#include <libraries/library_manager.h>#include "eeschema_test_utils.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. | |
| static wxFileName | getEagleTestSchematic (const wxString &sch_file) |
| Get a schematic file from the test data eagle subdir. | |
| BOOST_AUTO_TEST_CASE (ImportHierarchy) | |
| Verify that a multi-page Eagle import produces the correct top-level sheet hierarchy. | |
| BOOST_AUTO_TEST_CASE | ( | FindPlugin | ) |
Checks that the SCH_IO manager finds the Eagle plugin.
Definition at line 48 of file test_eagle_plugin.cpp.
| BOOST_AUTO_TEST_CASE | ( | ImportHierarchy | ) |
Verify that a multi-page Eagle import produces the correct top-level sheet hierarchy.
Regression test for issue #23645: Eagle import was inserting a spurious empty default sheet at index 0 in m_topLevelSheets, causing GetTopLevelSheet(0) to return an empty sheet that then received the project filename. On save, only that empty sheet was written; on re-open all components were missing.
Definition at line 77 of file test_eagle_plugin.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), getEagleTestSchematic(), SCH_SYMBOL::GetInstances(), PGM_BASE::GetLibraryManager(), PGM_BASE::GetSettingsManager(), SCH_SCREEN::Items(), SETTINGS_MANAGER::LoadProject(), LIBRARY_MANAGER::LoadProjectTables(), EDA_ITEM::m_Uuid, niluuid, EE_RTREE::OfType(), path, Pgm(), SETTINGS_MANAGER::Prj(), project, and SCH_SYMBOL_T.
|
static |
Get a schematic file from the test data eagle subdir.
Definition at line 58 of file test_eagle_plugin.cpp.
References KI_TEST::GetEeschemaTestDataDir().
Referenced by BOOST_AUTO_TEST_CASE().