|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <cctype>#include <fstream>#include <iterator>#include <memory>#include <set>#include <string>#include <utility>#include <vector>#include <base_units.h>#include <board.h>#include <board_design_settings.h>#include <board_stackup_manager/board_stackup.h>#include <footprint.h>#include <constraints/pcb_constraint.h>#include <generators/pcb_via_stack.h>#include <generators/pcb_via_stitch.h>#include <io/kicad/legacy_format.h>#include <mmh3_hash.h>#include <netinfo.h>#include <pad.h>#include <pcb_barcode.h>#include <pcb_group.h>#include <pcb_grid_item.h>#include <pcb_drill_chart.h>#include <pcb_drill_map.h>#include <pcb_point.h>#include <pcb_reference_image.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_textbox.h>#include <pcb_track.h>#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <zone.h>#include <downgrade/board_downgrade.h>#include <downgrade_scan.h>#include <downgrade_target.h>#include <settings/settings_manager.h>#include <pcbnew_utils/board_file_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <qa_utils/downgrade_oracle_utils.h>#include <qa_utils/downgrade_golden_utils.h>Go to the source code of this file.
Functions | |
| static void | checkExportUsesOnlyKnownTokens (const DOWNGRADE_TARGET &aTarget, const std::string &aTokenFileName) |
| BOOST_AUTO_TEST_CASE (BoardToKicad9UsesOnlyKnownTokens) | |
| BOOST_AUTO_TEST_CASE (BoardToKicad10UsesOnlyKnownTokens) | |
| static PCB_REFERENCE_IMAGE * | addTransformFeatures (BOARD &aBoard) |
| static void | checkBoardTransformCoverage (const COMPATIBILITY_REPORT &aReport, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate) |
| static void | checkTransformedBoardUsesOnlyKnownTokens (const DOWNGRADE_TARGET &aTarget, const std::string &aTokenFileName) |
| BOOST_AUTO_TEST_CASE (TransformedBoardToKicad9UsesOnlyKnownTokens) | |
| BOOST_AUTO_TEST_CASE (TransformedBoardToKicad10UsesOnlyKnownTokens) | |
| static void | checkNativeBoardGolden (const DOWNGRADE_TARGET &aTarget, const std::string &aRelease, const std::string &aBoard, const std::string &aReference, size_t aExpectedDrops, size_t aExpectedLowerings, bool aDropInsteadOfApproximate=false) |
| BOOST_AUTO_TEST_CASE (BoardMatchesNativeKicad9Golden) | |
| BOOST_AUTO_TEST_CASE (BoardMatchesNativeKicad10Golden) | |
| BOOST_AUTO_TEST_CASE (LoweredGraphicsMatchNativeKicad9Golden) | |
| BOOST_AUTO_TEST_CASE (GraphicsMatchNativeKicad10Golden) | |
| BOOST_AUTO_TEST_CASE (DroppedGraphicsMatchNativeKicad9Golden) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsKeepsNativeKicad10GraphicsGolden) | |
| static void | checkNativeFootprintGolden (const DOWNGRADE_TARGET &aTarget, const std::string &aRelease, const std::string &aReference, bool aDropInsteadOfApproximate=false) |
| static void | checkCustomPadArcSurvives (const DOWNGRADE_TARGET &aTarget) |
| BOOST_AUTO_TEST_CASE (CustomPadArcSurvivesExportToKicad9) | |
| BOOST_AUTO_TEST_CASE (CustomPadArcSurvivesExportToKicad10) | |
| BOOST_AUTO_TEST_CASE (ModernBoardMetadataMatchesNativeKicad9Golden) | |
| BOOST_AUTO_TEST_CASE (ModernBoardMetadataMatchesNativeKicad10Golden) | |
| BOOST_AUTO_TEST_CASE (BoardMetadataMatchesNativeKicad9Golden) | |
| BOOST_AUTO_TEST_CASE (BoardMetadataMatchesNativeKicad10Golden) | |
| BOOST_AUTO_TEST_CASE (FootprintMatchesNativeKicad9Golden) | |
| BOOST_AUTO_TEST_CASE (FootprintMatchesNativeKicad10Golden) | |
| BOOST_AUTO_TEST_CASE (RequiredReleaseLookupFailsForMissingId) | |
| BOOST_AUTO_TEST_CASE (GoldenComparisonDetectsDesignAndSettingsChanges) | |
| BOOST_AUTO_TEST_CASE (HistoricalPlotSettingsDoNotUseCurrentFormatters) | |
| BOOST_AUTO_TEST_CASE (HistoricalCustomPaperUsesReleasePrecision) | |
| BOOST_AUTO_TEST_CASE (UnsupportedPlotSelectionIsReportedAndReset) | |
| static std::string | historicalTextEffects (const EDA_TEXT &aText, bool aV9, int aControlBits=0) |
| BOOST_AUTO_TEST_CASE (HistoricalTextEffectsKeepReleaseHideAndAttributes) | |
| BOOST_AUTO_TEST_CASE (HistoricalTextThicknessKeepsAutomaticZeroAndExplicitWidths) | |
| BOOST_AUTO_TEST_CASE (HistoricalDefaultTextFormattingKeepsNative10AutomaticWidthPredicate) | |
| BOOST_AUTO_TEST_CASE (HistoricalTitleAndStrokeKeepPinnedCommonGrammar) | |
| BOOST_AUTO_TEST_CASE (HistoricalEmbeddedFilesKeepEmptyReleasePolicy) | |
| BOOST_AUTO_TEST_CASE (HistoricalEmbeddedFilesKeepValidDataAndNativeChunkDelimiters) | |
| static std::string | historicalEmbeddedFiles (const EMBEDDED_FILES &aFiles, bool aV9, bool aWriteData) |
| static std::string | releaseEmbeddedChecksum (const std::vector< char > &aPayload) |
| BOOST_AUTO_TEST_CASE (HistoricalEmbeddedFilesRestoreReleaseChecksumsForAllTailLengths) | |
| BOOST_AUTO_TEST_CASE (HistoricalEmbeddedFilesDecodeEncodedOnlyAttachmentsWithoutMutatingSource) | |
| BOOST_AUTO_TEST_CASE (HistoricalEmbeddedFilesRejectMalformedEncodedOnlyAttachments) | |
| BOOST_AUTO_TEST_CASE (HistoricalEmbeddedFilesRestoreCommittedWorksheetChecksums) | |
Variables | |
| static const DOWNGRADE_TARGET & | kicad9 = KI_TEST::RequireDowngradeTarget( wxT( "9.0" ) ) |
| static const DOWNGRADE_TARGET & | kicad10 = KI_TEST::RequireDowngradeTarget( wxT( "10.0" ) ) |
|
static |
Definition at line 121 of file test_downgrade_oracle.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PCB_CONSTRAINT::AddMember(), PAD::AddPrimitive(), FOOTPRINT::AddVariant(), PADSTACK::ALL_LAYERS, ANGLE_0, ANGLE_90, ZONE::AppendCorner(), ARROW, BOOST_REQUIRE(), BS_ITEM_TYPE_DIELECTRIC, BURIED, COUNTERBORE, CUSTOM, DJORDJEVIC_SARKAR, BOARD::Drawings(), PADSTACK::Drill(), Dwgs_User, ELLIPSE, ELLIPSE_ARC, FOOTPRINT::EnsureExtrudedBody(), F_Cu, F_SilkS, FILLED_SHAPE, FOOTPRINT, BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetDrillSymbolProfile(), BOARD_STACKUP::GetList(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), group, HATCH, ZONE_LAYER_PROPERTIES::hatching_offset, HORIZONTAL, image, In1_Cu, In2_Cu, PADSTACK::DRILL_PROPS::is_capped, ZONE::LayerProperties(), EXTRUDED_3D_BODY::m_height, EDA_ITEM::m_Uuid, BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties, KI_TEST::MakePngWithFractionalPixelsPerCm(), PAD, pad, PCB_VIA::Padstack(), PCB_DRILL_CHART_T, pcbIUScale, PRESSFIT, RECTANGLE, SEGMENT, PCB_SHAPE::SetCornerRadius(), EDA_ITEM::SetCustomProperty(), FOOTPRINT_VARIANT::SetDNP(), PCB_VIA::SetDrill(), FOOTPRINT::SetDuplicatePadNumbersAreJumpers(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseEndAngle(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseStartAngle(), PCB_SHAPE::SetEnd(), EDA_SHAPE::SetEndEndingStyle(), FOOTPRINT::SetExcludedFromSim(), EDA_SHAPE::SetFillMode(), PCB_BARCODE::SetHeight(), BOARD_ITEM::SetIsKnockout(), BOARD_ITEM::SetLayer(), PCB_BARCODE::SetLayer(), PCB_SHAPE::SetLayer(), PCB_TABLE::SetLayer(), ZONE::SetLayer(), PCB_VIA::SetLayerPair(), DRILL_SYMBOL_PROFILE::SetName(), NETINFO_ITEM::SetNetChain(), PAD::SetNumber(), PAD::SetShape(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), PCB_BARCODE::SetText(), PADSTACK::SetUnconnectedLayerMode(), FOOTPRINT::SetUnitInfo(), BOARD::SetVariantNames(), PCB_VIA::SetViaType(), PCB_BARCODE::SetWidth(), PCB_SHAPE::SetWidth(), PCB_VIA::SetWidth(), SOURCE, START_END_ONLY, table, and via.
Referenced by checkTransformedBoardUsesOnlyKnownTokens().
| BOOST_AUTO_TEST_CASE | ( | BoardMatchesNativeKicad10Golden | ) |
Definition at line 494 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | BoardMatchesNativeKicad9Golden | ) |
Definition at line 487 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | BoardMetadataMatchesNativeKicad10Golden | ) |
Definition at line 617 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | BoardMetadataMatchesNativeKicad9Golden | ) |
Definition at line 611 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | BoardToKicad10UsesOnlyKnownTokens | ) |
Definition at line 115 of file test_downgrade_oracle.cpp.
References checkExportUsesOnlyKnownTokens(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | BoardToKicad9UsesOnlyKnownTokens | ) |
Definition at line 109 of file test_downgrade_oracle.cpp.
References checkExportUsesOnlyKnownTokens(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | CustomPadArcSurvivesExportToKicad10 | ) |
Definition at line 593 of file test_downgrade_oracle.cpp.
References checkCustomPadArcSurvives(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | CustomPadArcSurvivesExportToKicad9 | ) |
Definition at line 587 of file test_downgrade_oracle.cpp.
References checkCustomPadArcSurvives(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsKeepsNativeKicad10GraphicsGolden | ) |
Definition at line 518 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | DroppedGraphicsMatchNativeKicad9Golden | ) |
Definition at line 512 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | FootprintMatchesNativeKicad10Golden | ) |
Definition at line 629 of file test_downgrade_oracle.cpp.
References checkNativeFootprintGolden(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | FootprintMatchesNativeKicad9Golden | ) |
Definition at line 623 of file test_downgrade_oracle.cpp.
References checkNativeFootprintGolden(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | GoldenComparisonDetectsDesignAndSettingsChanges | ) |
Definition at line 644 of file test_downgrade_oracle.cpp.
References actual, empty(), expected, KI_TEST::GoldenSexprDifference(), and SEXPR::PARSER::Parse().
| BOOST_AUTO_TEST_CASE | ( | GraphicsMatchNativeKicad10Golden | ) |
Definition at line 506 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | HistoricalCustomPaperUsesReleasePrecision | ) |
Definition at line 715 of file test_downgrade_oracle.cpp.
References expected, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad10, kicad9, path, SaveBoardForTarget(), PAGE_INFO::SetHeightMM(), BOARD::SetPageSettings(), PAGE_INFO::SetWidthMM(), text, and User.
| BOOST_AUTO_TEST_CASE | ( | HistoricalDefaultTextFormattingKeepsNative10AutomaticWidthPredicate | ) |
Definition at line 840 of file test_downgrade_oracle.cpp.
References KICAD_FORMAT::LEGACY::IsDefaultTextV10(), pcbIUScale, and text.
| BOOST_AUTO_TEST_CASE | ( | HistoricalEmbeddedFilesDecodeEncodedOnlyAttachmentsWithoutMutatingSource | ) |
Definition at line 1068 of file test_downgrade_oracle.cpp.
References EMBEDDED_FILES::AddFile(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), EMBEDDED_FILES::CompressAndEncode(), historicalEmbeddedFiles(), EMBEDDED_FILES::OK, and releaseEmbeddedChecksum().
| BOOST_AUTO_TEST_CASE | ( | HistoricalEmbeddedFilesKeepEmptyReleasePolicy | ) |
Definition at line 906 of file test_downgrade_oracle.cpp.
References EMBEDDED_FILES::AddFile(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV10(), KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV9(), EMBEDDED_FILES::GetEmbeddedFile(), STRING_FORMATTER::GetString(), and EMBEDDED_FILES::EMBEDDED_FILE::OTHER.
| BOOST_AUTO_TEST_CASE | ( | HistoricalEmbeddedFilesKeepValidDataAndNativeChunkDelimiters | ) |
Definition at line 936 of file test_downgrade_oracle.cpp.
References EMBEDDED_FILES::AddFile(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), EMBEDDED_FILES::CompressAndEncode(), EMBEDDED_FILES::EMBEDDED_FILE::compressedEncodedData, expected, KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV10(), KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV9(), STRING_FORMATTER::GetString(), EMBEDDED_FILES::OK, and EMBEDDED_FILES::EMBEDDED_FILE::OTHER.
| BOOST_AUTO_TEST_CASE | ( | HistoricalEmbeddedFilesRejectMalformedEncodedOnlyAttachments | ) |
Definition at line 1102 of file test_downgrade_oracle.cpp.
References EMBEDDED_FILES::AddFile(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), EMBEDDED_FILES::CompressAndEncode(), historicalEmbeddedFiles(), and EMBEDDED_FILES::OK.
| BOOST_AUTO_TEST_CASE | ( | HistoricalEmbeddedFilesRestoreCommittedWorksheetChecksums | ) |
Definition at line 1136 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), historicalEmbeddedFiles(), PCB_IO::LoadBoard(), name, KI_TEST::ReadGoldenText(), releaseEmbeddedChecksum(), and source.
| BOOST_AUTO_TEST_CASE | ( | HistoricalEmbeddedFilesRestoreReleaseChecksumsForAllTailLengths | ) |
Definition at line 1016 of file test_downgrade_oracle.cpp.
References EMBEDDED_FILES::AddFile(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), EMBEDDED_FILES::CompressAndEncode(), historicalEmbeddedFiles(), EMBEDDED_FILES::OK, and releaseEmbeddedChecksum().
| BOOST_AUTO_TEST_CASE | ( | HistoricalPlotSettingsDoNotUseCurrentFormatters | ) |
Definition at line 690 of file test_downgrade_oracle.cpp.
References KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad10, kicad9, path, SaveBoardForTarget(), and text.
| BOOST_AUTO_TEST_CASE | ( | HistoricalTextEffectsKeepReleaseHideAndAttributes | ) |
Definition at line 772 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_BOTTOM, historicalTextEffects(), KICAD_FORMAT::LEGACY::OMIT_HIDE, pcbIUScale, and text.
| BOOST_AUTO_TEST_CASE | ( | HistoricalTextThicknessKeepsAutomaticZeroAndExplicitWidths | ) |
Definition at line 808 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), historicalTextEffects(), pcbIUScale, and text.
| BOOST_AUTO_TEST_CASE | ( | HistoricalTitleAndStrokeKeepPinnedCommonGrammar | ) |
Definition at line 867 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, empty(), KICAD_FORMAT::LEGACY::FormatStroke(), KICAD_FORMAT::LEGACY::FormatTitle(), TITLE_BLOCK::GetComment(), STRING_FORMATTER::GetString(), pcbIUScale, STROKE_PARAMS::SetColor(), TITLE_BLOCK::SetComment(), TITLE_BLOCK::SetCompany(), TITLE_BLOCK::SetDate(), TITLE_BLOCK::SetRevision(), TITLE_BLOCK::SetTitle(), and SOLID.
| BOOST_AUTO_TEST_CASE | ( | LoweredGraphicsMatchNativeKicad9Golden | ) |
Definition at line 500 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | ModernBoardMetadataMatchesNativeKicad10Golden | ) |
Definition at line 605 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | ModernBoardMetadataMatchesNativeKicad9Golden | ) |
Definition at line 599 of file test_downgrade_oracle.cpp.
References checkNativeBoardGolden(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | RequiredReleaseLookupFailsForMissingId | ) |
Definition at line 635 of file test_downgrade_oracle.cpp.
References KI_TEST::RequireDowngradeTarget().
| BOOST_AUTO_TEST_CASE | ( | TransformedBoardToKicad10UsesOnlyKnownTokens | ) |
Definition at line 459 of file test_downgrade_oracle.cpp.
References checkTransformedBoardUsesOnlyKnownTokens(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | TransformedBoardToKicad9UsesOnlyKnownTokens | ) |
Definition at line 453 of file test_downgrade_oracle.cpp.
References checkTransformedBoardUsesOnlyKnownTokens(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | UnsupportedPlotSelectionIsReportedAndReset | ) |
Definition at line 737 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Count(), DowngradeBoardInPlace(), DROP, GERBER, PCB_PLOT_PARAMS::GetFormat(), BOARD::GetPlotOptions(), COMPATIBILITY_REPORT::IsBlocked(), kicad10, kicad9, PNG, PCB_PLOT_PARAMS::SetFormat(), and BOARD::SetPlotOptions().
|
static |
Definition at line 310 of file test_downgrade_oracle.cpp.
References KI_TEST::CheckTransformCoverage(), and DOWNGRADE_TARGET::m_boardVersion.
Referenced by checkTransformedBoardUsesOnlyKnownTokens().
|
static |
Definition at line 545 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COMPATIBILITY_REPORT::Count(), ExportBoardToOlderVersion(), F_Cu, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO::LoadBoard(), LOWER, and KI_TEST::ReadGoldenText().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 76 of file test_downgrade_oracle.cpp.
References BOOST_REQUIRE(), checkExportUsesOnlyKnownTokens(), ExportBoardToOlderVersion(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), KI_TEST::LoadTokenSet(), and KI_TEST::UnknownSexprHeads().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 465 of file test_downgrade_oracle.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COMPATIBILITY_REPORT::Count(), DROP, ExportBoardToOlderVersion(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), KI_TEST::GoldenFileDifference(), COMPATIBILITY_REPORT::IsBlocked(), and LOWER.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 526 of file test_downgrade_oracle.cpp.
References BOOST_REQUIRE(), CONVERTED, DowngradeFootprintFileToTemp(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), and KI_TEST::GoldenFileDifference().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 355 of file test_downgrade_oracle.cpp.
References addTransformFeatures(), PADSTACK::BackOuterLayers(), BLIND, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), checkBoardTransformCoverage(), ClassifyBoardForDowngrade(), PADSTACK::Drill(), ExportBoardToOlderVersion(), PADSTACK::FrontOuterLayers(), REFERENCE_IMAGE::GetImage(), REFERENCE_IMAGE::GetImageScale(), BITMAP_BASE::GetLegacyPPI(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), BITMAP_BASE::GetPPI(), PADSTACK::MASK_LAYER_PROPS::has_covering, PADSTACK::MASK_LAYER_PROPS::has_plugging, image, In1_Cu, In2_Cu, PADSTACK::DRILL_PROPS::is_capped, PADSTACK::DRILL_PROPS::is_filled, PCB_IO::LoadBoard(), KI_TEST::LoadTokenSet(), DOWNGRADE_TARGET::m_boardVersion, DOWNGRADE_TARGET::m_id, PCB_VIA_T, KI_TEST::ReadGoldenText(), PCB_IO_KICAD_SEXPR::SaveBoard(), KI_TEST::SerializedImageScale(), KI_TEST::UnknownSexprHeads(), and via.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 995 of file test_downgrade_oracle.cpp.
References KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV10(), KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV9(), and STRING_FORMATTER::GetString().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 759 of file test_downgrade_oracle.cpp.
References KICAD_FORMAT::LEGACY::FormatTextV10(), KICAD_FORMAT::LEGACY::FormatTextV9(), STRING_FORMATTER::GetString(), and pcbIUScale.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 1008 of file test_downgrade_oracle.cpp.
References MMH3_HASH::addDataV1(), MMH3_HASH::digest(), EMBEDDED_FILES::Seed(), and HASH_128::ToString().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 73 of file test_downgrade_oracle.cpp.
|
static |
Definition at line 72 of file test_downgrade_oracle.cpp.