|
KiCad PCB EDA Suite
|
Test suite for import of cadstar *.cpa footprints and board files. More...
#include <pcbnew_utils/board_test_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew/pcb_io/cadstar/pcb_io_cadstar_archive.h>#include <pcbnew/pcb_io/cadstar/cadstar_pcb_archive_parser.h>#include <pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_track.h>#include <zone.h>#include <wx/log.h>Go to the source code of this file.
Classes | |
| struct | CADSTAR_IMPORT_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (CadstarFootprintImport) | |
| Compare all footprints with their KiCad reference footprint TODO: Refactor this code so it can be made common to all importers! | |
| BOOST_AUTO_TEST_CASE (CadstarRevision7FormatImport) | |
| Test that CADSTAR Revision 7 format files without ROUTEWIDTH nodes can be imported. | |
| BOOST_AUTO_TEST_CASE (UnknownReassignShapeIsSkipped) | |
| A PADREASSIGN/VIAREASSIGN whose shape node is unknown (e.g. | |
Test suite for import of cadstar *.cpa footprints and board files.
Definition in file test_cadstar_footprints.cpp.
| BOOST_AUTO_TEST_CASE | ( | CadstarFootprintImport | ) |
Compare all footprints with their KiCad reference footprint TODO: Refactor this code so it can be made common to all importers!
(right now this is copy/paste from EAGLE)
Definition at line 59 of file test_cadstar_footprints.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), KI_TEST::CheckFootprint(), KI_TEST::GetPcbnewTestDataDir(), FOOTPRINT::GetReference(), and FOOTPRINT::GetValue().
| BOOST_AUTO_TEST_CASE | ( | CadstarRevision7FormatImport | ) |
Test that CADSTAR Revision 7 format files without ROUTEWIDTH nodes can be imported.
This tests the fix for GitLab issue #17783.
Definition at line 112 of file test_cadstar_footprints.cpp.
References BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), pcbIUScale, and BOARD::Tracks().
| BOOST_AUTO_TEST_CASE | ( | UnknownReassignShapeIsSkipped | ) |
A PADREASSIGN/VIAREASSIGN whose shape node is unknown (e.g.
from a newer CADSTAR version) must warn and continue rather than throwing, and must not report a (default-circle) shape so the caller can skip the bogus reassignment instead of corrupting the pad geometry.
Definition at line 158 of file test_cadstar_footprints.cpp.
References XNODE::AddAttribute(), CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::HasShape, CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::HasShape, CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::Parse().