KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue25010.cpp File Reference
#include <qa_utils/file_utils.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <base_units.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <jobs/job_export_pcb_pos.h>
#include <pad.h>
#include <exporters/gerber_placefile_writer.h>
#include <pcbnew_utils/board_test_utils.h>
#include <wx/ffile.h>
#include <wx/filename.h>

Go to the source code of this file.

Functions

static FOOTPRINTaddFootprint (BOARD &aBoard, const wxString &aReference)
 
 BOOST_AUTO_TEST_CASE (GerberFormatSupportsPopulationFilters)
 The format capability table drives the dialog's checkbox enable state.
 
 BOOST_AUTO_TEST_CASE (GerberPlaceFileHonorsExclusions)
 End to end check that the Gerber X3 writer drops the footprints the dialog now lets the user exclude.
 

Function Documentation

◆ addFootprint()

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( GerberFormatSupportsPopulationFilters )

The format capability table drives the dialog's checkbox enable state.

Gerber X3 cannot filter on pad technology, but it can drop DNP and BOM-excluded footprints.

Definition at line 71 of file test_issue25010.cpp.

References filter, and JOB_EXPORT_PCB_POS::FormatSupportsFilter().

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( GerberPlaceFileHonorsExclusions )

End to end check that the Gerber X3 writer drops the footprints the dialog now lets the user exclude.

Definition at line 97 of file test_issue25010.cpp.

References addFootprint(), BOOST_REQUIRE(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), F_Cu, KI_TEST::SCOPED_TEMP_DIR::PathStr(), FOOTPRINT::SetDNP(), FOOTPRINT::SetExcludedFromBOM(), and FOOTPRINT::SetExcludedFromPosFiles().