25#include <boost/test/data/test_case.hpp>
38struct FOOTPRINT_LOAD_TEST_CASE
43 bool m_expectedLocked;
51 std::vector<FOOTPRINT_LOAD_TEST_CASE> m_fpCases;
55const std::vector<FOOTPRINT_LOAD_BOARD_TEST_CASE> FootprintLoadSave_testCases{
57 "footprints_load_save",
62 "898cf321-03c7-40bb-8d78-4bc5e52986c2",
67 "0775cd70-2e84-4592-a160-456c37a8f4f6",
83 boost::unit_test::data::make( FootprintLoadSave_testCases ), testCase )
85 const auto doBoardTest = [&](
const BOARD& aBoard )
87 for(
const FOOTPRINT_LOAD_TEST_CASE& fooprintTestCase : testCase.m_fpCases )
90 << fooprintTestCase.m_footprintUuid.AsString() );
101 testCase.m_ExpectedBoardVersion );
General utilities for PCB file IO for QA programs.
Information pertinent to a Pcbnew printed circuit board.
void LoadAndTestBoardFile(const wxString aRelativePath, bool aRoundtrip, std::function< void(BOARD &)> aBoardTestFunction, std::optional< int > aExpectedBoardVersion)
Perform "some test" on a board file loaded from the path, then optionally save and reload and run the...
BOARD_ITEM & RequireBoardItemWithTypeAndId(const BOARD &aBoard, KICAD_T aItemType, const KIID &aID)
Get an item from the given board with a certain type and UUID.
BOOST_CHECK_EQUAL(ret, c.m_exp_result)
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint