|
KiCad PCB EDA Suite
|
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 |
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.
|
inline |
Definition at line 131 of file board_test_utils.h.
References m_preexisting, and scan().
|
inline |
Definition at line 133 of file board_test_utils.h.
References m_preexisting, path, and scan().
|
inlinestaticprivate |
Definition at line 145 of file board_test_utils.h.
References KI_TEST::GetPcbnewTestDataDir().
Referenced by STALE_DRU_SIDECAR_FIXTURE(), and ~STALE_DRU_SIDECAR_FIXTURE().
|
private |
Definition at line 160 of file board_test_utils.h.
Referenced by STALE_DRU_SIDECAR_FIXTURE(), and ~STALE_DRU_SIDECAR_FIXTURE().