KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KI_TEST::STALE_DRU_SIDECAR_FIXTURE Class Reference

Several PCB importers (DipTrace, Eagle, PADS) write a .kicad_dru sidecar next to the board file they load. More...

#include <board_test_utils.h>

Public Member Functions

 STALE_DRU_SIDECAR_FIXTURE ()
 
 ~STALE_DRU_SIDECAR_FIXTURE ()
 

Static Private Member Functions

static std::set< std::string > scan ()
 

Private Attributes

std::set< std::string > m_preexisting
 

Detailed Description

Several PCB importers (DipTrace, Eagle, PADS) write a .kicad_dru sidecar next to the board file they load.

Tests load boards from the shared read-only data tree, so without cleanup each run leaves those sidecars behind in the source tree. Installed once as a Boost global fixture, this records every .kicad_dru already present under the pcbnew test data directory at module startup and removes any that appear during the run. Removing only newly written files keeps the many committed .kicad_dru DRC inputs intact.

Definition at line 128 of file board_test_utils.h.

Constructor & Destructor Documentation

◆ STALE_DRU_SIDECAR_FIXTURE()

KI_TEST::STALE_DRU_SIDECAR_FIXTURE::STALE_DRU_SIDECAR_FIXTURE ( )
inline

Definition at line 131 of file board_test_utils.h.

References m_preexisting, and scan().

◆ ~STALE_DRU_SIDECAR_FIXTURE()

KI_TEST::STALE_DRU_SIDECAR_FIXTURE::~STALE_DRU_SIDECAR_FIXTURE ( )
inline

Definition at line 133 of file board_test_utils.h.

References m_preexisting, path, and scan().

Member Function Documentation

◆ scan()

static std::set< std::string > KI_TEST::STALE_DRU_SIDECAR_FIXTURE::scan ( )
inlinestaticprivate

Member Data Documentation

◆ m_preexisting

std::set<std::string> KI_TEST::STALE_DRU_SIDECAR_FIXTURE::m_preexisting
private

Definition at line 160 of file board_test_utils.h.

Referenced by STALE_DRU_SIDECAR_FIXTURE(), and ~STALE_DRU_SIDECAR_FIXTURE().


The documentation for this class was generated from the following file: