|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <board.h>#include <footprint.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 <settings/settings_manager.h>#include <base_units.h>#include <map>#include <memory>#include <core/utf8.h>#include <wx/dir.h>#include <wx/ffile.h>#include <wx/filename.h>#include <wx/tokenzr.h>#include <wx/utils.h>Go to the source code of this file.
Functions | |
| 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) | |
| static wxFileName | ExportOdbTree (BOARD *aBoard, const wxFileName &aTempDir) |
| 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 60 of file test_cam_backdrill.cpp.
References BOARD::Add(), B_Cu, BOOST_REQUIRE(), COUNTERSINK, EXCELLON_WRITER::CreateDrillandMapFilesSet(), GERBER_WRITER::CreateDrillandMapFilesSet(), F_Cu, In3_Cu, 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 348 of file test_cam_backdrill.cpp.
References BOARD::Add(), B_Cu, BOOST_REQUIRE(), BURIED, EXCELLON_WRITER::CreateDrillandMapFilesSet(), In2_Cu, pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | DrillReportBackdrillHoleCount | ) |
Definition at line 786 of file test_cam_backdrill.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), expected, GENDRILL_WRITER_BASE::GenDrillReportFile(), KI_TEST::LoadBoard(), EXCELLON_WRITER::SetFormat(), and EXCELLON_WRITER::SetOptions().
| BOOST_AUTO_TEST_CASE | ( | DrillReportNullReporter | ) |
Definition at line 383 of file test_cam_backdrill.cpp.
References GENDRILL_WRITER_BASE::GenDrillReportFile(), BOARD::SetCopperLayerCount(), and BOARD::SetFileName().
| BOOST_AUTO_TEST_CASE | ( | DrillReportWithTools | ) |
Definition at line 416 of file test_cam_backdrill.cpp.
References BOARD::Add(), B_Cu, BOOST_REQUIRE(), F_Cu, GENDRILL_WRITER_BASE::GenDrillReportFile(), pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | DualBackdrillSameViaCamOutputs | ) |
Definition at line 252 of file test_cam_backdrill.cpp.
References BOARD::Add(), B_Cu, BOOST_REQUIRE(), EXCELLON_WRITER::CreateDrillandMapFilesSet(), F_Cu, In1_Cu, In3_Cu, pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), EXCELLON_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | FrontAndBackBackdrillCamOutputs | ) |
Definition at line 190 of file test_cam_backdrill.cpp.
References BOARD::Add(), B_Cu, BOOST_REQUIRE(), EXCELLON_WRITER::CreateDrillandMapFilesSet(), F_Cu, In1_Cu, In3_Cu, pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), EXCELLON_WRITER::SetFormat(), and EXCELLON_WRITER::SetOptions().
| BOOST_AUTO_TEST_CASE | ( | GerberDrillPrecision | ) |
Definition at line 294 of file test_cam_backdrill.cpp.
References BOARD::Add(), B_Cu, BOOST_REQUIRE(), GERBER_WRITER::CreateDrillandMapFilesSet(), F_Cu, pcbIUScale, BOARD::SetCopperLayerCount(), BOARD::SetFileName(), GERBER_WRITER::SetFormat(), GERBER_WRITER::SetOptions(), and via.
| BOOST_AUTO_TEST_CASE | ( | OdbPpPlatedSlotDrill | ) |
Definition at line 654 of file test_cam_backdrill.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT, NPTH, pcbIUScale, PTH, readFile(), PCB_IO_ODBPP::SaveBoard(), BOARD::SetCopperLayerCount(), BOARD::SetFileName(), and FOOTPRINT::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | OdbPpUnfilledCircleAnnulus | ) |
Definition at line 557 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE(), ExportOdbTree(), KI_TEST::LoadBoard(), and ReadOdbLayerFeatures().
| BOOST_AUTO_TEST_CASE | ( | OdbPpUnfilledCircleWithoutHole | ) |
Definition at line 588 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE(), ExportOdbTree(), KI_TEST::LoadBoard(), and ReadOdbLayerFeatures().
| BOOST_AUTO_TEST_CASE | ( | OdbPpUnfilledRectangleOnSilk | ) |
Definition at line 457 of file test_cam_backdrill.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), F_SilkS, 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 519 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 535 of file test_cam_backdrill.cpp.
References BOOST_REQUIRE().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().