25#include <boost/test/data/test_case.hpp>
37struct GRAPHICS_LOAD_TEST_CASE
42 bool m_expectedFilled;
49 std::vector<GRAPHICS_LOAD_TEST_CASE> m_generatorCases;
52const std::vector<GRAPHICS_LOAD_BOARD_TEST_CASE> GraphicsLoad_testCases{
56 "graphics_load_save_v20240108",
61 "65596b4f-7b03-48e9-8be7-5824316ea7fd",
66 "cf265305-49c9-43d8-bb2a-ad34997b22d6",
71 "d0669ae2-442f-427f-af0f-bc3008af779a",
76 "fd1649a3-9a92-4dd3-96b4-88469cb257ba",
88 const auto doBoardTest = [&](
const BOARD& aBoard )
90 for(
const GRAPHICS_LOAD_TEST_CASE& testCase : testCase.m_generatorCases )
93 "Checking for graphic with UUID: " << testCase.m_searchUuid.AsString() );
104 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_DATA_TEST_CASE(GraphicsLoad, boost::unit_test::data::make(GraphicsLoad_testCases), testCase)
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers