60 std::unique_ptr<BOARD> testBoard = std::make_unique<BOARD>();
62 kicadPlugin.LoadBoard( dataPath +
"LayerWildcard.kicad_pcb", testBoard.get() );
65 BOOST_CHECK( testBoard->Zones().size() == 1 );
67 ZONE* z = testBoard->Zones()[0];
77 auto tmpBoard = std::filesystem::temp_directory_path() /
"Issue19775_RoundTrip.kicad_pcb";
81 std::unique_ptr<BOARD> testBoard = std::make_unique<BOARD>();
82 kicadPlugin.LoadBoard( dataPath +
"LayerEnumerate.kicad_pcb", testBoard.get() );
83 kicadPlugin.SaveBoard( tmpBoard.string(), testBoard.get() );
87 std::unique_ptr<BOARD> testBoard = std::make_unique<BOARD>();
88 kicadPlugin.LoadBoard( tmpBoard.string(), testBoard.get() );
91 BOOST_CHECK( testBoard->Zones().size() == 1 );
93 ZONE* z = testBoard->Zones()[0];
General utilities for PCB file IO for QA programs.
bool Contains(PCB_LAYER_ID aLayer) const
See if the layer set contains a PCB layer.
A #PLUGIN derivation for saving and loading Pcbnew s-expression formatted files.
Handle a list of polygons defining a copper zone.
const std::shared_ptr< SHAPE_POLY_SET > & GetFilledPolysList(PCB_LAYER_ID aLayer) const
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
PCB_IO_KICAD_SEXPR kicadPlugin
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(Issue19775_ZoneLayerWildcards)
Declares the struct as the Boost test fixture.
BOOST_TEST_CONTEXT("Test Clearance")