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

Test suite for import of Altium PCB files. More...

Go to the source code of this file.

Classes

struct  ALTIUM_PCB_IMPORT_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (BoardLoadNoAssertions)
 Test basic board loading - verifies that the Altium import doesn't trigger any assertions during the load process.
 
 BOOST_AUTO_TEST_CASE (NetclassAssignment)
 Test that netclass pattern assignments result in direct netclass assignments on nets.
 

Detailed Description

Test suite for import of Altium PCB files.

Definition in file test_altium_pcb_import.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( BoardLoadNoAssertions )

Test basic board loading - verifies that the Altium import doesn't trigger any assertions during the load process.

This catches regressions in layer mapping and other import issues.

Definition at line 57 of file test_altium_pcb_import.cpp.

References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( NetclassAssignment )

Test that netclass pattern assignments result in direct netclass assignments on nets.

This is a regression test for https://gitlab.com/kicad/code/kicad/-/issues/15584

Validates that when an Altium board with netclasses is imported, the nets are directly assigned to their netclasses (not just through pattern resolution).

Definition at line 82 of file test_altium_pcb_import.cpp.

References BOOST_REQUIRE(), NETCLASS::Default, NETCLASS::GetName(), and KI_TEST::GetPcbnewTestDataDir().