|
KiCad PCB EDA Suite
|
#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/sprint_layout/pcb_io_sprint_layout.h>#include <pcbnew/pcb_io/sprint_layout/sprint_layout_parser.h>#include <set>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_shape.h>#include <geometry/seg.h>#include <pcb_track.h>#include <netinfo.h>#include <zone.h>Go to the source code of this file.
Classes | |
| struct | SPRINT_LAYOUT_IMPORT_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (CanReadLay6File) | |
| BOOST_AUTO_TEST_CASE (RejectsNonSprintLayoutFile) | |
| BOOST_AUTO_TEST_CASE (RejectsNonExistentFile) | |
| BOOST_AUTO_TEST_CASE (Gpio2nescBoardLoad) | |
| BOOST_AUTO_TEST_CASE (ReedDoorbellBoardLoad) | |
| BOOST_AUTO_TEST_CASE (MdbRs232BoardLoad) | |
| BOOST_AUTO_TEST_CASE (LoadBoardAppendToExisting) | |
| BOOST_AUTO_TEST_CASE (BoardHasOutline) | |
| BOOST_AUTO_TEST_CASE (PadsInsideBoardOutline) | |
| BOOST_AUTO_TEST_CASE (BoardHasCopperLayers) | |
| BOOST_AUTO_TEST_CASE (CachedLibraryFootprints) | |
| BOOST_AUTO_TEST_CASE (PadsHaveAttributes) | |
| BOOST_AUTO_TEST_CASE (PadPositionsHavePositiveY) | |
| BOOST_AUTO_TEST_CASE (DrawingsExistOnCopperAndSilk) | |
| BOOST_AUTO_TEST_CASE (AllTestFilesLoadWithoutCrash) | |
| BOOST_AUTO_TEST_CASE (OutlineEdgesAreNotRepeated) | |
| BOOST_AUTO_TEST_CASE (ZonesHaveLayers) | |
| BOOST_AUTO_TEST_CASE (MmJoy2BoardLoad) | |
| BOOST_AUTO_TEST_CASE (SmallDualRgbBoardLoad) | |
| BOOST_AUTO_TEST_CASE (MdbMasterRev2aBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyBpfBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyRfAmpBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyVfoBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyBufferBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyMainboardBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyPowerSupplyBoardLoad) | |
| BOOST_AUTO_TEST_CASE (Ku14194RevBBoardLoad) | |
| BOOST_AUTO_TEST_CASE (AntennaSwitchBoardLoad) | |
| BOOST_AUTO_TEST_CASE (TfccBoardLoad) | |
| BOOST_AUTO_TEST_CASE (Amiga2000BoardLoad) | |
| BOOST_AUTO_TEST_CASE (AllBoardsHaveConsistentPadCoordinates) | |
| BOOST_AUTO_TEST_CASE (MultiBoardFileHasFiveBoards) | |
| BOOST_AUTO_TEST_CASE (MultiBoardSelectByIndex) | |
| BOOST_AUTO_TEST_CASE (MultiBoardCallbackInvoked) | |
| BOOST_AUTO_TEST_CASE (MultiBoardCallbackCancelThrows) | |
| BOOST_AUTO_TEST_CASE (SingleBoardFileSkipsCallback) | |
| BOOST_AUTO_TEST_CASE (Pic12F629SmdPadPositions) | |
| BOOST_AUTO_TEST_CASE | ( | AllBoardsHaveConsistentPadCoordinates | ) |
Definition at line 609 of file test_sprint_layout_import.cpp.
References std::abs(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), KI_TEST::GetPcbnewTestDataDir(), pad, pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AllTestFilesLoadWithoutCrash | ) |
Definition at line 343 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_TEST_CONTEXT(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | Amiga2000BoardLoad | ) |
Definition at line 588 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | AntennaSwitchBoardLoad | ) |
Definition at line 560 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | BoardHasCopperLayers | ) |
Definition at line 227 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | BoardHasOutline | ) |
Definition at line 140 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), Edge_Cuts, PCB_SHAPE::GetLayer(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | CachedLibraryFootprints | ) |
Definition at line 238 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | CanReadLay6File | ) |
Definition at line 54 of file test_sprint_layout_import.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK(), KI_TEST::GetPcbnewTestDataDir(), and path.
| BOOST_AUTO_TEST_CASE | ( | DrawingsExistOnCopperAndSilk | ) |
Definition at line 313 of file test_sprint_layout_import.cpp.
References B_Cu, B_SilkS, BOOST_REQUIRE(), F_Cu, F_SilkS, KI_TEST::GetPcbnewTestDataDir(), In1_Cu, and In2_Cu.
| BOOST_AUTO_TEST_CASE | ( | Gpio2nescBoardLoad | ) |
Definition at line 78 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyBpfBoardLoad | ) |
Definition at line 472 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyBufferBoardLoad | ) |
Definition at line 508 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyMainboardBoardLoad | ) |
Definition at line 520 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyPowerSupplyBoardLoad | ) |
Definition at line 532 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyRfAmpBoardLoad | ) |
Definition at line 484 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyVfoBoardLoad | ) |
Definition at line 496 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | Ku14194RevBBoardLoad | ) |
Definition at line 548 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | LoadBoardAppendToExisting | ) |
Definition at line 113 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), and PCB_IO::LoadAndAppendBoard().
| BOOST_AUTO_TEST_CASE | ( | MdbMasterRev2aBoardLoad | ) |
Definition at line 455 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | MdbRs232BoardLoad | ) |
Definition at line 101 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | MmJoy2BoardLoad | ) |
Definition at line 421 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardCallbackCancelThrows | ) |
Definition at line 736 of file test_sprint_layout_import.cpp.
References KI_TEST::GetPcbnewTestDataDir(), PCB_IO::LoadBoard(), and PROJECT_CHOOSER_PLUGIN::RegisterCallback().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardCallbackInvoked | ) |
Definition at line 707 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO::LoadBoard(), and PROJECT_CHOOSER_PLUGIN::RegisterCallback().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardFileHasFiveBoards | ) |
Definition at line 667 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SPRINT_LAYOUT_PARSER::GetFileData(), KI_TEST::GetPcbnewTestDataDir(), and SPRINT_LAYOUT_PARSER::ParseBoard().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardSelectByIndex | ) |
Definition at line 680 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), SPRINT_LAYOUT_PARSER::GetFileData(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO::LoadBoard(), and SPRINT_LAYOUT_PARSER::ParseBoard().
| BOOST_AUTO_TEST_CASE | ( | OutlineEdgesAreNotRepeated | ) |
Definition at line 378 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), Edge_Cuts, EDA_SHAPE::GetEnd(), KI_TEST::GetPcbnewTestDataDir(), EDA_SHAPE::GetStart(), PCB_SHAPE_T, and SEG::Reversed().
| BOOST_AUTO_TEST_CASE | ( | PadPositionsHavePositiveY | ) |
Definition at line 288 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), and pad.
| BOOST_AUTO_TEST_CASE | ( | PadsHaveAttributes | ) |
Definition at line 256 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), pad, PTH, and SMD.
| BOOST_AUTO_TEST_CASE | ( | PadsInsideBoardOutline | ) |
Definition at line 166 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), BOX2< Vec >::Contains(), Edge_Cuts, PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetLayer(), KI_TEST::GetPcbnewTestDataDir(), BOX2< Vec >::Inflate(), BOX2< Vec >::Merge(), pad, and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | Pic12F629SmdPadPositions | ) |
Definition at line 779 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), BOX2< Vec >::Contains(), Edge_Cuts, PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetLayer(), KI_TEST::GetPcbnewTestDataDir(), BOX2< Vec >::Inflate(), BOX2< Vec >::Merge(), pad, pcbIUScale, and SMD.
| BOOST_AUTO_TEST_CASE | ( | ReedDoorbellBoardLoad | ) |
Definition at line 89 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | RejectsNonExistentFile | ) |
Definition at line 68 of file test_sprint_layout_import.cpp.
References BOOST_CHECK().
| BOOST_AUTO_TEST_CASE | ( | RejectsNonSprintLayoutFile | ) |
Definition at line 61 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | SingleBoardFileSkipsCallback | ) |
Definition at line 753 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO::LoadBoard(), and PROJECT_CHOOSER_PLUGIN::RegisterCallback().
| BOOST_AUTO_TEST_CASE | ( | SmallDualRgbBoardLoad | ) |
Definition at line 443 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | TfccBoardLoad | ) |
Definition at line 572 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | ZonesHaveLayers | ) |
Definition at line 404 of file test_sprint_layout_import.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), and UNDEFINED_LAYER.