|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <board.h>#include <board_design_settings.h>#include <drill/drill_enumerator.h>#include <footprint.h>#include <netinfo.h>#include <pad.h>#include <pcb_shape.h>#include <pcbnew/exporters/gendrill_excellon_writer.h>#include <pcbnew/exporters/gendrill_gerber_writer.h>#include <pcbnew/pcb_io/odbpp/pcb_io_odbpp.h>#include <pcbnew/pcb_track.h>#include <pcbnew_utils/board_test_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <qa_utils/file_utils.h>#include <settings/settings_manager.h>#include <base_units.h>#include <algorithm>#include <filesystem>#include <fstream>#include <iterator>#include <map>#include <memory>#include <core/utf8.h>#include <wx/dir.h>#include <wx/ffile.h>#include <wx/filename.h>#include <wx/tokenzr.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (GerberDrillBoardDefaultsCreateProtectionFiles) | |
| BOOST_AUTO_TEST_CASE (GerberBackdrillDoesNotInheritViaProtection) | |
| BOOST_AUTO_TEST_CASE (BackdrillCamOutputs) | |
| BOOST_AUTO_TEST_CASE (FrontAndBackBackdrillCamOutputs) | |
| BOOST_AUTO_TEST_CASE (DualBackdrillSameViaCamOutputs) | |
| BOOST_AUTO_TEST_CASE (GerberDrillPrecision) | |
| BOOST_AUTO_TEST_CASE (DrillFileLayerOrderInFilename) | |
| BOOST_AUTO_TEST_CASE (DrillReportNullReporter) | |
| BOOST_AUTO_TEST_CASE (DrillReportWithTools) | |
| BOOST_AUTO_TEST_CASE (OdbPpUnfilledRectangleOnSilk) | |
| BOOST_AUTO_TEST_CASE (OdbPpDegenerateTrackArc) | |
| static wxFileName | ExportOdbTree (BOARD *aBoard, const std::filesystem::path &aParentDir) |
| static wxString | ReadOdbLayerFeatures (const wxFileName &aOdbRoot, const wxString &aLayerDir) |
| BOOST_AUTO_TEST_CASE (OdbPpUnfilledCircleAnnulus) | |
| BOOST_AUTO_TEST_CASE (OdbPpUnfilledCircleWithoutHole) | |
| BOOST_AUTO_TEST_CASE (OdbPpPlatedSlotDrill) | |
| BOOST_AUTO_TEST_CASE (DrillReportBackdrillHoleCount) | |
| BOOST_AUTO_TEST_CASE | ( | BackdrillCamOutputs | ) |
Definition at line 132 of file test_cam_backdrill.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), COUNTERSINK, EXCELLON_WRITER::CreateDrillandMapFilesSet(), GERBER_WRITER::CreateDrillandMapFilesSet(), F_Cu, In3_Cu, PADSTACK::NORMAL, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, PCB_IO_ODBPP::SaveBoard(), BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), GERBER_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), GERBER_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | DrillFileLayerOrderInFilename | ) |
Definition at line 409 of file test_cam_backdrill.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), BURIED, EXCELLON_WRITER::CreateDrillandMapFilesSet(), In2_Cu, PADSTACK::NORMAL, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | DrillReportBackdrillHoleCount | ) |
Definition at line 888 of file test_cam_backdrill.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), expected, GENDRILL_WRITER_BASE::GenDrillReportFile(), KI_TEST::LoadBoard(), KI_TEST::SCOPED_TEMP_DIR::PathStr(), EXCELLON_WRITER::SetFormat(), and EXCELLON_WRITER::SetOptions().
| BOOST_AUTO_TEST_CASE | ( | DrillReportNullReporter | ) |
Definition at line 443 of file test_cam_backdrill.cpp.
References GENDRILL_WRITER_BASE::GenDrillReportFile(), KI_TEST::SCOPED_TEMP_DIR::PathStr(), BOARD::SetCopperLayerCount(), and BOARD::SetFileName().
| BOOST_AUTO_TEST_CASE | ( | DrillReportWithTools | ) |
Definition at line 474 of file test_cam_backdrill.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), F_Cu, GENDRILL_WRITER_BASE::GenDrillReportFile(), PADSTACK::NORMAL, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | DualBackdrillSameViaCamOutputs | ) |
Definition at line 318 of file test_cam_backdrill.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), EXCELLON_WRITER::CreateDrillandMapFilesSet(), F_Cu, In1_Cu, In3_Cu, PADSTACK::NORMAL, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | FrontAndBackBackdrillCamOutputs | ) |
Definition at line 259 of file test_cam_backdrill.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), EXCELLON_WRITER::CreateDrillandMapFilesSet(), F_Cu, In1_Cu, In3_Cu, PADSTACK::NORMAL, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, BOARD::SetCopperLayerCount(), PCB_VIA::SetDrill(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), PCB_VIA::SetLayerPair(), EXCELLON_WRITER::SetOptions(), PCB_VIA::SetPadstackMode(), PCB_VIA::SetPosition(), PCB_VIA::SetSecondaryDrillEndLayer(), PCB_VIA::SetSecondaryDrillSize(), PCB_VIA::SetSecondaryDrillStartLayer(), PCB_VIA::SetTertiaryDrillEndLayer(), PCB_VIA::SetTertiaryDrillSize(), PCB_VIA::SetTertiaryDrillStartLayer(), and PCB_VIA::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | GerberBackdrillDoesNotInheritViaProtection | ) |
Definition at line 100 of file test_cam_backdrill.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), EnumerateDrillOperations(), EnumerateDrillSpans(), DRILL_QUERY::m_Span, and KI_TEST::RequireBoardFromPcbnewQAData().
| BOOST_AUTO_TEST_CASE | ( | GerberDrillBoardDefaultsCreateProtectionFiles | ) |
Definition at line 76 of file test_cam_backdrill.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and KI_TEST::RequireBoardFromPcbnewQAData().
| BOOST_AUTO_TEST_CASE | ( | GerberDrillPrecision | ) |
Definition at line 356 of file test_cam_backdrill.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), GERBER_WRITER::CreateDrillandMapFilesSet(), F_Cu, PADSTACK::NORMAL, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), GERBER_WRITER::SetFormat(), GERBER_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | OdbPpDegenerateTrackArc | ) |
Definition at line 571 of file test_cam_backdrill.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), F_Cu, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, PCB_IO_ODBPP::SaveBoard(), BOARD::SetCopperLayerCount(), PCB_TRACK::SetEnd(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_ARC::SetMid(), BOARD_CONNECTED_ITEM::SetNet(), PCB_TRACK::SetStart(), and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | OdbPpPlatedSlotDrill | ) |
Definition at line 758 of file test_cam_backdrill.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT, NPTH, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, PTH, readFile(), PCB_IO_ODBPP::SaveBoard(), BOARD::SetCopperLayerCount(), BOARD::SetFileName(), and FOOTPRINT::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | OdbPpUnfilledCircleAnnulus | ) |
Definition at line 672 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE(), ExportOdbTree(), KI_TEST::LoadBoard(), KI_TEST::SCOPED_TEMP_DIR::Path(), and ReadOdbLayerFeatures().
| BOOST_AUTO_TEST_CASE | ( | OdbPpUnfilledCircleWithoutHole | ) |
Definition at line 695 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE(), ExportOdbTree(), KI_TEST::LoadBoard(), KI_TEST::SCOPED_TEMP_DIR::Path(), and ReadOdbLayerFeatures().
| BOOST_AUTO_TEST_CASE | ( | OdbPpUnfilledRectangleOnSilk | ) |
Definition at line 514 of file test_cam_backdrill.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), F_SilkS, KI_TEST::SCOPED_TEMP_DIR::PathStr(), pcbIUScale, RECTANGLE, PCB_IO_ODBPP::SaveBoard(), BOARD::SetCopperLayerCount(), PCB_SHAPE::SetEnd(), BOARD::SetFileName(), EDA_SHAPE::SetFilled(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), and PCB_SHAPE::SetWidth().
|
static |
Definition at line 634 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE(), and PCB_IO_ODBPP::SaveBoard().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 650 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().