|
KiCad PCB EDA Suite
|
Test suite for import of Protel Autotrax / Easytrax (.PCB) layout files. 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 <pcbnew/pcb_io/autotrax/pcb_io_autotrax.h>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_track.h>#include <pcb_shape.h>#include <wx/filename.h>Go to the source code of this file.
Classes | |
| struct | AUTOTRAX_IMPORT_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (SniffRecognizesPcb) | |
| CanReadBoard must accept a real Autotrax file by sniffing the magic header, not just the (gEDA-shared) .PCB extension. | |
| BOOST_AUTO_TEST_CASE (SimpleBoardStructure) | |
| The simplest sample is a board of through-hole components: it must yield footprints with pads and some free tracks. | |
| BOOST_AUTO_TEST_CASE (RichBoardStructure) | |
| The richest sample exercises every record family (FT/FA/FV/FP/FS plus component CT/CA/CV/CP). | |
| BOOST_AUTO_TEST_CASE (AllSamplesLoad) | |
| Every sample must load without throwing and produce a positive board extent; none should crash the Y-axis flip or layer mapping. | |
Test suite for import of Protel Autotrax / Easytrax (.PCB) layout files.
Sample files are real, openly-available boards from the PRONOM file-format research corpus (glepore70/pronom-research, sample_files/p/pcb2), which the UK National Archives published as reference samples for the Autotrax/Easytrax format. Every file carries the "PCB FILE 4" Autotrax header.
Definition in file test_autotrax_import.cpp.
| BOOST_AUTO_TEST_CASE | ( | AllSamplesLoad | ) |
Every sample must load without throwing and produce a positive board extent; none should crash the Y-axis flip or layer mapping.
Definition at line 150 of file test_autotrax_import.cpp.
References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), name, and path.
| BOOST_AUTO_TEST_CASE | ( | RichBoardStructure | ) |
The richest sample exercises every record family (FT/FA/FV/FP/FS plus component CT/CA/CV/CP).
Verify the importer produces a non-trivial board with copper tracks, vias and footprints.
Definition at line 111 of file test_autotrax_import.cpp.
References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), path, PCB_TRACE_T, and PCB_VIA_T.
| BOOST_AUTO_TEST_CASE | ( | SimpleBoardStructure | ) |
The simplest sample is a board of through-hole components: it must yield footprints with pads and some free tracks.
Definition at line 83 of file test_autotrax_import.cpp.
References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), and path.
| BOOST_AUTO_TEST_CASE | ( | SniffRecognizesPcb | ) |
CanReadBoard must accept a real Autotrax file by sniffing the magic header, not just the (gEDA-shared) .PCB extension.
Definition at line 69 of file test_autotrax_import.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_TEST_MESSAGE(), and path.