49 "Fake Board file (KiCad *Legacy* / EAGLE file ext)",
50 "plugins/fakeboard.brd",
54 "Fake Board file (KiCad file ext)",
55 "plugins/fakeboard.kicad_pcb",
59 "Fake Board file (PCAD file ext)",
60 "plugins/fakeboard.pcb",
64 "Fake Board file (CADSTAR file ext)",
65 "plugins/fakeboard.cpa",
69 "Fake Board file (Altium Circuit Studio file ext)",
70 "plugins/fakeboard.CSPcbDoc",
74 "Fake Board file (Altium Circuit Maker file ext)",
75 "plugins/fakeboard.CMPcbDoc",
79 "Fake Board file (Altium Designer file ext)",
80 "plugins/fakeboard.PcbDoc",
85 "Fake Board file (Solid Works PCB file ext)",
86 "plugins/fakeboard.SWPcbDoc",
95 "Basic KiCad *Legacy* board file",
96 "plugins/legacy_demos/flat_hierarchy/flat_hierarchy.brd",
100 "Basic KiCad board file",
101 "complex_hierarchy.kicad_pcb",
105 "Basic Eagle board file",
106 "plugins/eagle/Adafruit-AHT20-PCB/Adafruit AHT20 Temperature & Humidity.brd",
110 "Basic PCAD board file",
111 "plugins/pcad/pcad_4layer_glyph_test_ascii.PCB",
115 "Basic CADSTAR board file",
116 "plugins/cadstar/route_offset/minimal_route_offset_curved_track.cpa",
120 "Basic EasyEDA Std board json file",
121 "plugins/easyeda/PCB_USBMETER-PD QC修改版_2023-09-02.json",
125 "Basic EasyEDA Std backup file",
126 "plugins/easyeda/BackupProjects_ESP32-PICO-D4_smart_watch.zip",
130 "Basic EasyEDA Pro zip board project",
131 "plugins/easyedapro/Scanning Tunneling Microscope OpenSTM ControlBoard.zip",
135 "Basic EasyEDA Pro epro project",
136 "plugins/easyedapro/ProProject_Yuzuki Chameleon_2023-09-02.epro",
140 "Basic Altium Designer board file",
141 "plugins/altium/eDP_adapter_dvt1_source/eDP_adapter_dvt1.PcbDoc",
154 "Non-Library file (KiCad *Legacy* / EAGLE file ext)",
155 "plugins/fakeboard.brd",
159 "Non-Library file (KiCad file ext)",
160 "plugins/fakeboard.kicad_pcb",
164 "Non-Library file (PCAD file ext)",
165 "plugins/fakeboard.pcb",
169 "Non-Library file (CADSTAR file ext)",
170 "plugins/fakeboard.cpa",
174 "Non-Library file (Altium Circuit Studio file ext)",
175 "plugins/fakeboard.CSPcbDoc",
179 "Non-Library file (Altium Circuit Maker file ext)",
180 "plugins/fakeboard.CMPcbDoc",
184 "Non-Library file (Altium Designer file ext)",
185 "plugins/fakeboard.PcbDoc",
190 "Non-Library file (Solid Works PCB file ext)",
191 "plugins/fakeboard.SWPcbDoc",
200 "Basic KiCad footprint .pretty library",
201 "plugins/eagle/lbr/SparkFun-GPS.pretty",
205 "Basic Eagle library file",
206 "plugins/eagle/lbr/SparkFun-GPS.lbr",
210 "Basic CADSTAR PCB Archive library file",
211 "plugins/cadstar/lib/footprint-with-thermal-pad.cpa",
215 "Basic EasyEDA Std board json file",
216 "plugins/easyeda/PCB_USBMETER-PD QC修改版_2023-09-02.json",
220 "Basic EasyEDA Std backup file",
221 "plugins/easyeda/BackupProjects_ESP32-PICO-D4_smart_watch.zip",
225 "Basic EasyEDA Pro zip board project",
226 "plugins/easyedapro/Scanning Tunneling Microscope OpenSTM ControlBoard.zip",
230 "Basic EasyEDA Pro epro project",
231 "plugins/easyedapro/ProProject_Yuzuki Chameleon_2023-09-02.epro",
235 "Altium Designer 'Espressif ESP32-WROOM-32.PcbLib' library file",
236 "plugins/altium/pcblib/Espressif ESP32-WROOM-32.PcbLib",
240 "Altium Designer 'Tracks.v6.PcbLib' library file",
241 "plugins/altium/pcblib/Tracks.v6.PcbLib",
253 BOOST_TEST_CONTEXT( c.m_case_name )
272 BOOST_TEST_CONTEXT( c.m_case_name )
290 BOOST_TEST_CONTEXT( c.m_case_name )
297 for(
auto& entry : pluginEntries )
299 BOOST_TEST_CONTEXT( entry.m_name )
302 bool expectValidHeader = c.m_expected_type == entry.m_type;
304 BOOST_CHECK_EQUAL( plugin->CanReadBoard( dataPath ), expectValidHeader );
General utilities for PCB file IO for QA programs.
const std::vector< ENTRY > & AllPlugins() const
static PLUGIN_REGISTRY * Instance()
static PCB_IO * PluginFind(PCB_FILE_T aFileType)
Return a #PLUGIN which the caller can use to import, export, save, or load design documents.
PCB_FILE_T
The set of file types that the PCB_IO_MGR knows about, and for which there has been a plugin written,...
@ KICAD_SEXP
S-expression Pcbnew file format.
@ LEGACY
Legacy Pcbnew file formats prior to s-expression.
static PCB_FILE_T FindPluginTypeFromBoardPath(const wxString &aFileName, int aCtl=0)
Return a plugin type given a path for a board file.
static PCB_FILE_T GuessPluginTypeFromLibPath(const wxString &aLibPath, int aCtl=0)
Return a plugin type given a footprint library's libPath.
std::unique_ptr< T > IO_RELEASER
Helper to hold and release an IO_BASE object when exceptions are thrown.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
std::string m_file_rel_path
PCB_IO_MGR::PCB_FILE_T m_expected_type
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
static const std::vector< PCB_IO_PLUGIN_CASE > BoardPluginCases
BOOST_AUTO_TEST_CASE(FindBoardPluginType)
static const std::vector< PCB_IO_PLUGIN_CASE > LibraryPluginCases