KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_altium_pcblib_import.cpp File Reference

Test suite for import of *.PcbLib libraries. More...

#include <pcbnew_utils/board_test_utils.h>
#include <pcbnew_utils/board_file_utils.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <boost/test/data/test_case.hpp>
#include <pcbnew/pcb_io/altium/pcb_io_altium_designer.h>
#include <pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>
#include <board.h>
#include <footprint.h>
#include <pad.h>
#include <zone.h>

Go to the source code of this file.

Classes

struct  ALTIUM_PCBLIB_IMPORT_FIXTURE
 

Functions

 BOOST_DATA_TEST_CASE (AltiumPcbLibImport2, boost::unit_test::data::make(altium_to_kicad_footprint_property), altiumLibraryName, kicadLibraryName)
 Compare all footprints declared in a *.PcbLib file with their KiCad reference footprint.
 

Variables

static const std::vector< std::tuple< wxString, wxString > > altium_to_kicad_footprint_property
 Declares the struct as the Boost test fixture.
 

Detailed Description

Test suite for import of *.PcbLib libraries.

Definition in file test_altium_pcblib_import.cpp.

Function Documentation

◆ BOOST_DATA_TEST_CASE()

BOOST_DATA_TEST_CASE ( AltiumPcbLibImport2  ,
boost::unit_test::data::make(altium_to_kicad_footprint_property ,
altiumLibraryName  ,
kicadLibraryName   
)

Compare all footprints declared in a *.PcbLib file with their KiCad reference footprint.

Definition at line 66 of file test_altium_pcblib_import.cpp.

References KI_TEST::CheckFootprint(), KI_TEST::GetPcbnewTestDataDir(), FOOTPRINT::GetReference(), and FOOTPRINT::GetValue().

Variable Documentation

◆ altium_to_kicad_footprint_property

const std::vector<std::tuple<wxString, wxString> > altium_to_kicad_footprint_property
static
Initial value:
= {
{ "Tracks.v5.PcbLib", "Tracks.pretty" },
{ "Tracks.v6.PcbLib", "Tracks.pretty" },
{ "Espressif ESP32-WROOM-32.PcbLib", "Espressif ESP32-WROOM-32.pretty" }
}

Declares the struct as the Boost test fixture.

Definition at line 57 of file test_altium_pcblib_import.cpp.