|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <jobs/job_export_pcb_3d.h>#include <jobs/job_export_pcb_ipc2581.h>#include <jobs/job_export_pcb_odb.h>#include <jobs/job_export_pcb_plot.h>#include <jobs/job_export_sch_netlist.h>#include <jobs/job_export_sch_plot.h>#include <jobs/job_pcb_render.h>#include <json_common.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <string_utils.h>#include <filesystem>#include <fstream>#include <clocale>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (OdbVariantFileTokenKeepsNamesAndRemovesSeparators) | |
| BOOST_AUTO_TEST_CASE (OdbLegacyVariantKeyStillLoads) | |
| BOOST_AUTO_TEST_CASE (FabJobMissingKeysKeepDefaults) | |
| BOOST_AUTO_TEST_CASE (FabV10JobsLoadUnchanged) | |
| BOOST_AUTO_TEST_CASE (Ipc2581NightlyContentKeysStillLoad) | |
| BOOST_AUTO_TEST_CASE (OdbMappedMpnFieldRoundTrips) | |
| BOOST_AUTO_TEST_CASE (OdbExportOptionsRoundTrip) | |
| BOOST_AUTO_TEST_CASE (OdbInvalidLayerOverrideRetainsAutomaticMetadata) | |
| BOOST_AUTO_TEST_CASE (OdbLayerOverrideUtf8IgnoresProcessLocale) | |
| BOOST_AUTO_TEST_CASE (Ipc2581CheckZonesOptionExists) | |
| BOOST_AUTO_TEST_CASE (Pcb3dVariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (PcbPlotVariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (PcbOdbVariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (PcbIpc2581VariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (Ipc2581ExplicitEmptySectionsRoundTrip) | |
| BOOST_AUTO_TEST_CASE (PcbRenderVariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (SchNetlistVariantNamesRoundTrip) | |
| BOOST_AUTO_TEST_CASE (SchPlotVariantNamesRoundTrip) | |
| BOOST_AUTO_TEST_CASE | ( | FabJobMissingKeysKeepDefaults | ) |
Definition at line 75 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB_EXPORT_PCB_FAB::FromJson(), JOB_EXPORT_PCB_IPC2581::FromJson(), JOB_EXPORT_PCB_FAB::m_variantNames, and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | FabV10JobsLoadUnchanged | ) |
Definition at line 109 of file test_job_export_pcb_variants.cpp.
References JOB_EXPORT_PCB_ODB::ABSOLUTE_COORDS, BOOST_REQUIRE(), JOB_EXPORT_PCB_FAB::FromJson(), JOB_EXPORT_PCB_IPC2581::FromJson(), KI_TEST::GetTestDataRootDir(), JOB_EXPORT_PCB_FAB::INCLUDE, JOB_EXPORT_PCB_IPC2581::INCLUDE, JOB_EXPORT_PCB_FAB::m_colMfgPn, JOB_EXPORT_PCB_FAB::m_dataSet, JOB_EXPORT_PCB_ODB::m_layerOverrides, JOB_EXPORT_PCB_FAB::m_netNames, JOB_EXPORT_PCB_ODB::m_origin, JOB_EXPORT_PCB_ODB::m_productName, JOB_EXPORT_PCB_IPC2581::m_refDes, JOB_EXPORT_PCB_FAB::m_sections, JOB_EXPORT_PCB_FAB::ToJson(), and JOB_EXPORT_PCB_FAB::USERDEF.
| BOOST_AUTO_TEST_CASE | ( | Ipc2581CheckZonesOptionExists | ) |
Definition at line 284 of file test_job_export_pcb_variants.cpp.
References JOB_EXPORT_PCB_IPC2581::FromJson(), roundTrip(), and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | Ipc2581ExplicitEmptySectionsRoundTrip | ) |
Definition at line 365 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB_EXPORT_PCB_IPC2581::FromJson(), JOB_EXPORT_PCB_FAB::m_sections, roundTrip(), and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | Ipc2581NightlyContentKeysStillLoad | ) |
Definition at line 156 of file test_job_export_pcb_variants.cpp.
References JOB_EXPORT_PCB_FAB::ANONYMIZE, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JOB_EXPORT_PCB_FAB::DataSetToken(), empty(), JOB_EXPORT_PCB_FAB::FromJson(), JOB_EXPORT_PCB_IPC2581::FromJson(), JOB_EXPORT_PCB_FAB::INCLUDE, JOB_EXPORT_PCB_IPC2581::INCLUDE, JOB_EXPORT_PCB_FAB::m_dataSet, JOB_EXPORT_PCB_FAB::m_netNames, JOB_EXPORT_PCB_IPC2581::m_refDes, JOB_EXPORT_PCB_FAB::m_sections, JOB_EXPORT_PCB_IPC2581::OMIT, and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | OdbExportOptionsRoundTrip | ) |
Definition at line 220 of file test_job_export_pcb_variants.cpp.
References JOB_EXPORT_PCB_FAB::FromJson(), roundTrip(), and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | OdbInvalidLayerOverrideRetainsAutomaticMetadata | ) |
Definition at line 248 of file test_job_export_pcb_variants.cpp.
References JOB_EXPORT_PCB_FAB::FromJson(), JOB_EXPORT_PCB_ODB::m_layerOverrides, and UNDEFINED_LAYER.
| BOOST_AUTO_TEST_CASE | ( | OdbLayerOverrideUtf8IgnoresProcessLocale | ) |
Definition at line 263 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), F_Cu, JOB_EXPORT_PCB_ODB::m_layerOverrides, and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | OdbLegacyVariantKeyStillLoads | ) |
| BOOST_AUTO_TEST_CASE | ( | OdbMappedMpnFieldRoundTrips | ) |
Definition at line 200 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB_EXPORT_PCB_FAB::FromJson(), JOB_EXPORT_PCB_IPC2581::FromJson(), JOB_EXPORT_PCB_FAB::m_colMfgPn, and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | OdbVariantFileTokenKeepsNamesAndRemovesSeparators | ) |
Definition at line 42 of file test_job_export_pcb_variants.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), ExpandVariantOutputPath(), GetDefaultVariantName(), and GetVariantFileToken().
| BOOST_AUTO_TEST_CASE | ( | Pcb3dVariantRoundTrip | ) |
Definition at line 295 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB::FromJson(), JOB_EXPORT_PCB_3D::m_variant, and JOB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | PcbIpc2581VariantRoundTrip | ) |
Definition at line 347 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB_EXPORT_PCB_IPC2581::FromJson(), JOB_EXPORT_PCB_FAB::m_variantNames, and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | PcbOdbVariantRoundTrip | ) |
Definition at line 329 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB_EXPORT_PCB_FAB::FromJson(), JOB_EXPORT_PCB_FAB::m_variantNames, and JOB_EXPORT_PCB_FAB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | PcbPlotVariantRoundTrip | ) |
Definition at line 312 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB::FromJson(), JOB_EXPORT_PCB_PLOT::m_variant, JOB_EXPORT_PCB_PLOT::PDF, and JOB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | PcbRenderVariantRoundTrip | ) |
Definition at line 394 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), JOB::FromJson(), JOB_PCB_RENDER::m_variant, and JOB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | SchNetlistVariantNamesRoundTrip | ) |
Definition at line 411 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JOB::FromJson(), JOB_EXPORT_SCH_NETLIST::m_variantNames, and JOB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | SchPlotVariantNamesRoundTrip | ) |
Definition at line 432 of file test_job_export_pcb_variants.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JOB::FromJson(), JOB_EXPORT_SCH_PLOT::m_variantNames, and JOB::ToJson().