KiCad PCB EDA Suite
|
Test suite for saving and loading schematics with virtual root pattern. More...
#include <boost/test/unit_test.hpp>
#include <eeschema_test_utils.h>
#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>
#include <sch_screen.h>
#include <sch_sheet.h>
#include <sch_symbol.h>
#include <schematic.h>
#include <kiid.h>
#include <sch_file_versions.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
Go to the source code of this file.
Classes | |
struct | SAVE_LOAD_FIXTURE |
Functions | |
BOOST_AUTO_TEST_CASE (TestSaveLoadSimpleSchematic) | |
Test that we can save and reload a schematic with the virtual root pattern and that symbol instances are preserved correctly. | |
BOOST_AUTO_TEST_CASE (TestSaveLoadHierarchicalSchematic) | |
Test saving/loading a hierarchical schematic. | |
BOOST_AUTO_TEST_CASE (TestLoadLegacyHierarchicalSchematic) | |
Test that symbol instances are properly loaded and preserved from a legacy hierarchical schematic This tests loading a schematic that was converted from the legacy format and has complex hierarchy with the same sub-sheet used multiple times (shared sheet) | |
Test suite for saving and loading schematics with virtual root pattern.
Definition in file test_save_load_schematic.cpp.
BOOST_AUTO_TEST_CASE | ( | TestLoadLegacyHierarchicalSchematic | ) |
Test that symbol instances are properly loaded and preserved from a legacy hierarchical schematic This tests loading a schematic that was converted from the legacy format and has complex hierarchy with the same sub-sheet used multiple times (shared sheet)
Definition at line 248 of file test_save_load_schematic.cpp.
References KIID::AsString(), KIID_PATH::AsString(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), SCH_SHEET_LIST::CheckForMissingSymbolInstances(), KI_TEST::GetEeschemaTestDataDir(), SCH_SYMBOL::GetInstance(), SCH_SHEET::GetName(), FILEEXT::KiCadSchematicFileExtension, SCH_IO_KICAD_SEXPR::LoadSchematicFile(), SCH_SYMBOL_INSTANCE::m_Path, SCH_SYMBOL_INSTANCE::m_Reference, EDA_ITEM::m_Uuid, path, SCH_IO_KICAD_SEXPR::SaveSchematicFile(), and SCH_SYMBOL_T.
BOOST_AUTO_TEST_CASE | ( | TestSaveLoadHierarchicalSchematic | ) |
Test saving/loading a hierarchical schematic.
Definition at line 175 of file test_save_load_schematic.cpp.
References SCH_SCREEN::Append(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_IO_KICAD_SEXPR::LoadSchematicFile(), SCH_IO_KICAD_SEXPR::SaveSchematicFile(), SCH_SCREEN::SetFileName(), SCH_SHEET::SetFileName(), SCH_SHEET::SetName(), and SCH_SHEET::SetScreen().
BOOST_AUTO_TEST_CASE | ( | TestSaveLoadSimpleSchematic | ) |
Test that we can save and reload a schematic with the virtual root pattern and that symbol instances are preserved correctly.
Definition at line 95 of file test_save_load_schematic.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), SCH_SHEET_PATH::empty(), SCH_SHEET_PATH::Last(), SCH_IO_KICAD_SEXPR::LoadSchematicFile(), EDA_ITEM::m_Uuid, niluuid, SCH_IO_KICAD_SEXPR::SaveSchematicFile(), and SCH_SCREEN::SetFileName().