|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <algorithm>#include <cmath>#include <fstream>#include <map>#include <memory>#include <filesystem>#include <set>#include <wx/image.h>#include <wx/imagpng.h>#include <wx/mstream.h>#include <base_units.h>#include <board.h>#include <board_design_settings.h>#include <footprint.h>#include <font/font.h>#include <gr_text.h>#include <pcb_track.h>#include <generators/pcb_tuning_pattern.h>#include <generators/pcb_via_stack.h>#include <generators/pcb_via_stitch.h>#include <constraints/pcb_constraint.h>#include <pad.h>#include <padstack.h>#include <pcb_barcode.h>#include <pcb_group.h>#include <pcb_dimension.h>#include <pcb_drill_chart.h>#include <pcb_drill_map.h>#include <pcb_grid_item.h>#include <pcb_reference_image.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_textbox.h>#include <board_stackup_manager/board_stackup.h>#include <zone.h>#include <zone_settings.h>#include <nlohmann/json.hpp>#include <netinfo.h>#include <project.h>#include <ki_exception.h>#include <downgrade/board_downgrade.h>#include <downgrade_scan.h>#include <downgrade_target.h>#include <drc_rules_downgrade.h>#include <drc/drc_rule.h>#include <drc/drc_rule_parser.h>#include <project/project_file_downgrade.h>#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <settings/settings_manager.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 | |
| BOOST_AUTO_TEST_CASE (EmptyBoardIsClean) | |
| BOOST_AUTO_TEST_CASE (EllipseIsLoweredForKicad10) | |
| BOOST_AUTO_TEST_CASE (EllipseKeptForNewerTarget) | |
| BOOST_AUTO_TEST_CASE (EllipseTransformedToPolygon) | |
| BOOST_AUTO_TEST_CASE (UnfilledEllipseKeepsOutline) | |
| BOOST_AUTO_TEST_CASE (EllipseArcKeepsInk) | |
| BOOST_AUTO_TEST_CASE (KnockoutTextBoxLoweredForKicad9) | |
| BOOST_AUTO_TEST_CASE (TableCellKnockoutLoweredForKicad10) | |
| BOOST_AUTO_TEST_CASE (FootprintTableCellKnockoutLowered) | |
| BOOST_AUTO_TEST_CASE (RoundedRectangleLoweredForKicad9) | |
| BOOST_AUTO_TEST_CASE (CustomFootprintStackupBlocksKicad9) | |
| BOOST_AUTO_TEST_CASE (ZoneLayerPropertiesDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (BoardZoneDefaultsRoundTripAndDowngrade) | |
| BOOST_AUTO_TEST_CASE (ScaledFootprintBlocksExport) | |
| BOOST_AUTO_TEST_CASE (ViaProtectionDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (DielectricModelDroppedForKicad10) | |
| BOOST_AUTO_TEST_CASE (GroupDesignBlockLinkDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (ExtrudedBodyDroppedForKicad10) | |
| BOOST_AUTO_TEST_CASE (ThievingZoneBlocksKicad10) | |
| BOOST_AUTO_TEST_CASE (BackdrillBlocksKicad9) | |
| BOOST_AUTO_TEST_CASE (BoardExportIgnoresAPredictableStagingSymlink) | |
| BOOST_AUTO_TEST_CASE (BlockedBoardExportWritesNothing) | |
| BOOST_AUTO_TEST_CASE (PadSimTypeDroppedForKicad10) | |
| BOOST_AUTO_TEST_CASE (PostMachiningDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (PressFitDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (SkipViaLoweredForKicad9) | |
| BOOST_AUTO_TEST_CASE (ExportToKicad10PreservesGeometry) | |
| BOOST_AUTO_TEST_CASE (ExportToKicad9PreservesGeometry) | |
| BOOST_AUTO_TEST_CASE (BuriedViaLoweredForKicad9) | |
| BOOST_AUTO_TEST_CASE (ZoneDefaultsDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (BarcodeLoweredToPolygonsForKicad9) | |
| BOOST_AUTO_TEST_CASE (BarcodeProjectVariablesResolvedBeforeExport) | |
| BOOST_AUTO_TEST_CASE (FootprintBarcodeLoweredForKicad9) | |
| BOOST_AUTO_TEST_CASE (FootprintFileDowngradeRoundTrips) | |
| BOOST_AUTO_TEST_CASE (FootprintFileV10RoundTrips) | |
| BOOST_AUTO_TEST_CASE (FootprintPressFitDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (SaveWithTargetVersionStampsOlder) | |
| BOOST_AUTO_TEST_CASE (NullFieldSlotDoesNotCrashV9Writer) | |
| BOOST_AUTO_TEST_CASE (StaleGroupMemberNotWrittenForV10) | |
| BOOST_AUTO_TEST_CASE (SkipViaModeWrittenForV9) | |
| BOOST_AUTO_TEST_CASE (ImageScaleMigratedForV9) | |
| BOOST_AUTO_TEST_CASE (VerifyGateCatchesUnsupportedTokens) | |
| BOOST_AUTO_TEST_CASE (DrcRulesFilterForKicad9) | |
| BOOST_AUTO_TEST_CASE (DrcRuleNamesAndExpressionLiteralsDoNotTriggerDrops) | |
| BOOST_AUTO_TEST_CASE (SpacedTimeAndAngleUnitsAreDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (DrcRulesFilterForKicad10) | |
| BOOST_AUTO_TEST_CASE (DrcRulesWithCommentsRemainIntact) | |
| BOOST_AUTO_TEST_CASE (InvalidDrcCommentAndUnbalancedSyntaxFailClosed) | |
| BOOST_AUTO_TEST_CASE (DrcRulesMatchIndependentOlderReferences) | |
| BOOST_AUTO_TEST_CASE (VariantFlattenedIntoBoard) | |
| BOOST_AUTO_TEST_CASE (ProjectFileDowngradeForKicad9) | |
| BOOST_AUTO_TEST_CASE (EmptyNativeProjectSectionsDoNotRequireConsent) | |
| BOOST_AUTO_TEST_CASE (SavedProjectTuningAndClassChoicesStillRequireConsent) | |
| BOOST_AUTO_TEST_CASE (FutureComponentClassSchemaBlocksWithoutMutation) | |
| BOOST_AUTO_TEST_CASE (WrongShapeProjectFileDoesNotThrow) | |
| BOOST_AUTO_TEST_CASE (EmptyNetChainClassesSilent) | |
| BOOST_AUTO_TEST_CASE (NonDefaultTuningModelSettingsAreReportedForKicad10) | |
| BOOST_AUTO_TEST_CASE (ProjectFileDowngradeForKicad10) | |
| BOOST_AUTO_TEST_CASE (EllipseArcRingHasNoHoles) | |
| BOOST_AUTO_TEST_CASE (FootprintImageScaleCompensatedOnBoard) | |
| BOOST_AUTO_TEST_CASE (FootprintImageScaleCompensatedInLibrary) | |
| BOOST_AUTO_TEST_CASE (DuplicatePadJumperFlagDroppedForKicad9) | |
| BOOST_AUTO_TEST_CASE (FootprintFileKeepsZoneLayers) | |
| BOOST_AUTO_TEST_CASE (LibraryFilesDowngradeFailsClosed) | |
| BOOST_AUTO_TEST_CASE (DesignFileFilter) | |
| BOOST_AUTO_TEST_CASE (DenylistCoversCurrentFormat) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsOmitsGraphicsWithoutReplacements) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsOmitsFillAndCellContentsOnly) | |
| BOOST_AUTO_TEST_CASE (HatchedCopperAndInkFillsAreReportedSeparately) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsKeepsHatchedCopperAsSolidFill) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsOmitsRoundedPadPrimitives) | |
| BOOST_AUTO_TEST_CASE (ViaApproximationsSurviveDropPolicy) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsKeepsTargetSupportedFeatures) | |
| BOOST_AUTO_TEST_CASE (DropApproximationsCannotBypassBlockRules) | |
| BOOST_AUTO_TEST_CASE (LibraryReplacementsWaitForTheDesignTransaction) | |
| BOOST_AUTO_TEST_CASE (DirectoryDestinationStopsAllTransactionReplacements) | |
| BOOST_AUTO_TEST_CASE (ConcurrentTransactionsUseDifferentOwnedStagingFiles) | |
| BOOST_AUTO_TEST_CASE (TransactionSymlinkReplacementLeavesLinkedSourcesUnchanged) | |
| static void | checkFeature (const COMPATIBILITY_REPORT &aReport, const wxString &aName, DOWNGRADE_BUCKET aBucket, int aCount) |
| BOOST_AUTO_TEST_CASE (GeometricConstraintsDropWithoutMovingBoardOrFootprintGeometry) | |
| BOOST_AUTO_TEST_CASE (GridAndDrillDrawingLossesAreReportedBeforeRemoval) | |
| BOOST_AUTO_TEST_CASE (NewGeneratorsLoseEditabilityAndKeepCopperAndOuterGroups) | |
| BOOST_AUTO_TEST_CASE (NativeViaGeneratorFixtureExportsCopperAndOwnershipForBothTargetsAndPolicies) | |
| BOOST_AUTO_TEST_CASE (NativeTuningFixturesPreserveCopperAndEraEditabilityForBothPolicies) | |
| BOOST_AUTO_TEST_CASE (UnreviewedTuningPropertiesBlockBothTargetsAndPolicies) | |
| BOOST_AUTO_TEST_CASE (HistoricalTuningWritersRejectUnsafeDirectSerialization) | |
| BOOST_AUTO_TEST_CASE (HistoricalWritersRejectDirectViaGeneratorsAtomically) | |
| BOOST_AUTO_TEST_CASE (NativeGroupPlacementFixtureKeepsGeometryAndOwnershipForBothPolicies) | |
| BOOST_AUTO_TEST_CASE (GroupPlacementLinkageUsesTheSameFootprintPolicy) | |
| BOOST_AUTO_TEST_CASE (GroupPlacementGuardIgnoresOrdinaryGroupsAndQuotedText) | |
| BOOST_AUTO_TEST_CASE (InertGroupPlacementMetadataDoesNotRequireConsent) | |
| BOOST_AUTO_TEST_CASE (UnreviewedGeneratorKindBlocksBothPolicies) | |
| BOOST_AUTO_TEST_CASE (LineEndingsLowerPrintedInkOrDropOnlyEmbellishments) | |
| BOOST_AUTO_TEST_CASE (DashedEndedLinesBlockApproximationButAllowDroppingEndings) | |
| BOOST_AUTO_TEST_CASE (CustomPropertiesBakeOnlyAffectedVariablesBeforeRemoval) | |
| BOOST_AUTO_TEST_CASE (UnresolvedPropertyVariablesBlockBothPolicies) | |
| BOOST_AUTO_TEST_CASE (UsedProjectVariablesBakeInFootprintContextAndUnusedDefinitionsDoNotBlock) | |
| BOOST_AUTO_TEST_CASE (CachedBoardVariableDependenciesBakeInFootprintContext) | |
| BOOST_AUTO_TEST_CASE (MixedPropertyTextKeepsEscapedLiteralsAndSupportedVariables) | |
| BOOST_AUTO_TEST_CASE (NewExpressionUnitAliasIsBakedWithoutFreezingOtherVariables) | |
| BOOST_AUTO_TEST_CASE (UnresolvedAffectedExpressionsBlockBothPolicies) | |
| BOOST_AUTO_TEST_CASE (EscapedTextControlsBlockKicad9AndRemainLiteralInKicad10) | |
| BOOST_AUTO_TEST_CASE (TitleBlockExpressionsBakeBeforeDependentFootprintText) | |
| BOOST_AUTO_TEST_CASE (TitleBlockUnresolvablePropertyContextBlocksBothPolicies) | |
| BOOST_AUTO_TEST_CASE (TitleBlockSelfReferenceDoesNotHideUsedProjectDependencies) | |
| BOOST_AUTO_TEST_CASE (AffectedTableExpressionsUseNativeCellCoordinates) | |
| BOOST_AUTO_TEST_CASE (FootprintFileUsesTheSamePostMasterPoliciesAsBoardFootprints) | |
| BOOST_AUTO_TEST_CASE (SimulationExclusionsFollowSelectedVariantAndReportTheirLoss) | |
| BOOST_AUTO_TEST_CASE (LegacyBoldWidthsPreserveNestedTextAndDoNotMutateSource) | |
| BOOST_AUTO_TEST_CASE (ComplexPadstackFrontAndInnerCustomOptionsRoundTripToKicad10) | |
| BOOST_AUTO_TEST_CASE (CurrentProjectSchemasAndSupportedDrcExclusionsMigrateForBothTargets) | |
| BOOST_AUTO_TEST_CASE (UnrepresentableDrcExclusionsDropWithReports) | |
| BOOST_AUTO_TEST_CASE (PostMasterProjectSettingsReportOnlyMeaningfulLosses) | |
| BOOST_AUTO_TEST_CASE (NewTuningBridgeDelayIsRemovedAndReportedForKicad10) | |
| BOOST_AUTO_TEST_CASE (NativeNetChainClassMapReportsOnlyNonemptyMappings) | |
| BOOST_AUTO_TEST_CASE (NewDrcConstraintsAndFunctionsAreFilteredWithoutLiteralFalsePositives) | |
| BOOST_AUTO_TEST_CASE (DrcPostTargetPropertiesAreGuardedInConditionsAndAssertions) | |
Variables | |
| static const DOWNGRADE_TARGET & | kicad9 = KI_TEST::RequireDowngradeTarget( wxT( "9.0" ) ) |
| static const DOWNGRADE_TARGET & | kicad10 = KI_TEST::RequireDowngradeTarget( wxT( "10.0" ) ) |
| BOOST_AUTO_TEST_CASE | ( | AffectedTableExpressionsUseNativeCellCoordinates | ) |
Definition at line 3671 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, EDA_TEXT::GetText(), kicad10, FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and table.
| BOOST_AUTO_TEST_CASE | ( | BackdrillBlocksKicad9 | ) |
Definition at line 469 of file test_board_downgrade.cpp.
References BOARD::Add(), BLOCK, BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), kicad10, kicad9, pcbIUScale, and via.
| BOOST_AUTO_TEST_CASE | ( | BarcodeLoweredToPolygonsForKicad9 | ) |
Definition at line 729 of file test_board_downgrade.cpp.
References std::abs(), BOARD::Add(), SHAPE_POLY_SET::Area(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), BOARD::Drawings(), ERROR_INSIDE, expected, F_SilkS, BOARD_ITEM::GetLayer(), PCB_SHAPE::GetLayer(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), kicad10, kicad9, LOWER, PCB_BARCODE_T, PCB_SHAPE_T, pcbIUScale, POLY, PCB_BARCODE::SetBarcodeText(), PCB_BARCODE::SetHeight(), PCB_BARCODE::SetLayer(), PCB_BARCODE::SetWidth(), and PCB_BARCODE::TransformShapeToPolygon().
| BOOST_AUTO_TEST_CASE | ( | BarcodeProjectVariablesResolvedBeforeExport | ) |
Definition at line 775 of file test_board_downgrade.cpp.
References std::abs(), BOARD::Add(), SHAPE_POLY_SET::Area(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ERROR_INSIDE, expected, ExportBoardToOlderVersion(), F_SilkS, FOR_CANVAS, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), EDA_SHAPE::GetPolyShape(), SETTINGS_MANAGER::GetProject(), EDA_SHAPE::GetShape(), PCB_BARCODE::GetShownText(), kicad9, PCB_IO::LoadBoard(), SETTINGS_MANAGER::LoadProject(), PCB_BARCODE_T, PCB_SHAPE_T, pcbIUScale, POLY, project, QR_CODE, result, PCB_IO_KICAD_SEXPR::SaveBoard(), PCB_BARCODE::SetBarcodeKind(), PCB_BARCODE::SetBarcodeText(), PCB_BARCODE::SetHeight(), PCB_BARCODE::SetLayer(), BOARD::SetProject(), PCB_BARCODE::SetShowText(), PCB_BARCODE::SetWidth(), and PCB_BARCODE::TransformShapeToPolygon().
| BOOST_AUTO_TEST_CASE | ( | BlockedBoardExportWritesNothing | ) |
Definition at line 528 of file test_board_downgrade.cpp.
References BOARD::Add(), ZONE::AppendCorner(), COPPER_THIEVING, ExportBoardToOlderVersion(), F_Cu, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), COMPATIBILITY_REPORT::IsBlocked(), kicad10, pcbIUScale, PCB_IO_KICAD_SEXPR::SaveBoard(), ZONE::SetFillMode(), and ZONE::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | BoardExportIgnoresAPredictableStagingSymlink | ) |
Definition at line 483 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), ExportBoardToOlderVersion(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), kicad9, PCB_IO::LoadBoard(), and PCB_IO_KICAD_SEXPR::SaveBoard().
| BOOST_AUTO_TEST_CASE | ( | BoardZoneDefaultsRoundTripAndDowngrade | ) |
Definition at line 324 of file test_board_downgrade.cpp.
References B_Cu, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COMPATIBILITY_REPORT::Count(), DROP, ExportBoardToOlderVersion(), F_Cu, find, BOARD::GetDesignSettings(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), COMPATIBILITY_REPORT::IsLossy(), kicad10, kicad9, PCB_IO::LoadBoard(), BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties, KI_TEST::ReadGoldenText(), and PCB_IO_KICAD_SEXPR::SaveBoard().
| BOOST_AUTO_TEST_CASE | ( | BuriedViaLoweredForKicad9 | ) |
Definition at line 699 of file test_board_downgrade.cpp.
References BOARD::Add(), BLIND, BOOST_CHECK_EQUAL(), BURIED, ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), kicad9, LOWER, and via.
| BOOST_AUTO_TEST_CASE | ( | CachedBoardVariableDependenciesBakeInFootprintContext | ) |
Definition at line 3518 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, EDA_TEXT::GetText(), kicad10, BOARD::SetProperties(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | ComplexPadstackFrontAndInnerCustomOptionsRoundTripToKicad10 | ) |
Definition at line 3858 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), LSET::AllCuMask(), BOOST_REQUIRE(), CONVEXHULL, CUSTOM, PADSTACK::CUSTOM, F_Cu, FOOTPRINT, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), In1_Cu, kicad10, PCB_IO::LoadBoard(), OVAL, PAD, pad, path, PTH, result, SaveBoardForTarget(), SEGMENT, BOARD::SetCopperLayerCount(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | ConcurrentTransactionsUseDifferentOwnedStagingFiles | ) |
Definition at line 2169 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), DOWNGRADE_FILE_TRANSACTION::Discard(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), and DOWNGRADE_FILE_TRANSACTION::Stage().
| BOOST_AUTO_TEST_CASE | ( | CurrentProjectSchemasAndSupportedDrcExclusionsMigrateForBothTargets | ) |
Definition at line 3897 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), DowngradeProjectFileJson(), COMPATIBILITY_REPORT::IsLossy(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | CustomFootprintStackupBlocksKicad9 | ) |
Definition at line 287 of file test_board_downgrade.cpp.
References BOARD::Add(), BLOCK, BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), CUSTOM_LAYERS, FOOTPRINT, kicad10, kicad9, and FOOTPRINT::SetStackupMode().
| BOOST_AUTO_TEST_CASE | ( | CustomPropertiesBakeOnlyAffectedVariablesBeforeRemoval | ) |
Definition at line 3433 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), checkFeature(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DowngradeFootprintInPlace(), DROP, FOOTPRINT, EDA_TEXT::GetText(), EDA_ITEM::HasCustomProperties(), kicad10, FOOTPRINT::Reference(), EDA_ITEM::SetCustomProperty(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | DashedEndedLinesBlockApproximationButAllowDroppingEndings | ) |
Definition at line 3415 of file test_board_downgrade.cpp.
References BOARD::Add(), ARROW, ClassifyBoardForDowngrade(), DASH, DowngradeBoardInPlace(), EDA_SHAPE::GetEndEndingStyle(), EDA_SHAPE::GetLineStyle(), kicad10, NONE, SEGMENT, PCB_SHAPE::SetEnd(), EDA_SHAPE::SetEndEndingStyle(), EDA_SHAPE::SetLineStyle(), PCB_SHAPE::SetStart(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | DenylistCoversCurrentFormat | ) |
Definition at line 1773 of file test_board_downgrade.cpp.
References BoardDowngradeCoveredVersion(), BOOST_CHECK_EQUAL(), and SEXPR_BOARD_FILE_VERSION.
| BOOST_AUTO_TEST_CASE | ( | DesignFileFilter | ) |
Definition at line 1751 of file test_board_downgrade.cpp.
References IsDowngradeDesignFile().
| BOOST_AUTO_TEST_CASE | ( | DielectricModelDroppedForKicad10 | ) |
Definition at line 404 of file test_board_downgrade.cpp.
References BOARD_STACKUP::Add(), BOOST_CHECK_EQUAL(), BS_ITEM_TYPE_DIELECTRIC, ClassifyBoardForDowngrade(), CONSTANT, DJORDJEVIC_SARKAR, DowngradeBoardInPlace(), DROP, BOARD::GetDesignSettings(), BOARD_STACKUP_ITEM::GetDielectricModel(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), kicad10, and BOARD_STACKUP_ITEM::SetDielectricModel().
| BOOST_AUTO_TEST_CASE | ( | DirectoryDestinationStopsAllTransactionReplacements | ) |
Definition at line 2129 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DOWNGRADE_FILE_TRANSACTION::Commit(), directory, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), DOWNGRADE_FILE_TRANSACTION::GetRecoveryError(), and DOWNGRADE_FILE_TRANSACTION::Stage().
| BOOST_AUTO_TEST_CASE | ( | DrcPostTargetPropertiesAreGuardedInConditionsAndAssertions | ) |
Definition at line 4084 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), FilterDrcRulesForTarget(), kicad10, kicad9, and result.
| BOOST_AUTO_TEST_CASE | ( | DrcRuleNamesAndExpressionLiteralsDoNotTriggerDrops | ) |
Definition at line 1140 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), FilterDrcRulesForTarget(), kicad10, kicad9, and result.
| BOOST_AUTO_TEST_CASE | ( | DrcRulesFilterForKicad10 | ) |
Definition at line 1179 of file test_board_downgrade.cpp.
References FilterDrcRulesForTarget(), kicad10, and result.
| BOOST_AUTO_TEST_CASE | ( | DrcRulesFilterForKicad9 | ) |
Definition at line 1107 of file test_board_downgrade.cpp.
References FilterDrcRulesForTarget(), kicad9, and result.
| BOOST_AUTO_TEST_CASE | ( | DrcRulesMatchIndependentOlderReferences | ) |
Definition at line 1245 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FilterDrcRulesForTarget(), KI_TEST::GetPcbnewTestDataDir(), kicad10, kicad9, DRC_RULES_PARSER::Parse(), KI_TEST::ReadGoldenText(), reporter, result, and RPT_SEVERITY_ERROR.
| BOOST_AUTO_TEST_CASE | ( | DrcRulesWithCommentsRemainIntact | ) |
Definition at line 1197 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), CLEARANCE_CONSTRAINT, FilterDrcRulesForTarget(), kicad10, kicad9, DRC_RULES_PARSER::Parse(), reporter, result, RPT_SEVERITY_ERROR, and TRACK_WIDTH_CONSTRAINT.
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsCannotBypassBlockRules | ) |
Definition at line 2054 of file test_board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), COPPER_THIEVING, kicad10, and ZONE::SetFillMode().
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsKeepsHatchedCopperAsSolidFill | ) |
Definition at line 1919 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_TEST_CONTEXT(), DowngradeBoardInPlace(), F_Cu, F_SilkS, FILLED_SHAPE, FOOTPRINT, HATCH, kicad9, NO_FILL, RECTANGLE, EDA_SHAPE::SetFillMode(), and PCB_SHAPE::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsKeepsTargetSupportedFeatures | ) |
Definition at line 2023 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BURIED, ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), BOARD::Drawings(), EDA_SHAPE::GetCornerRadius(), EDA_SHAPE::GetFillMode(), PCB_VIA::GetViaType(), HATCH, BOARD_ITEM::IsKnockout(), kicad10, PCB_VIA::Padstack(), pcbIUScale, RECTANGLE, PCB_SHAPE::SetCornerRadius(), PCB_SHAPE::SetEnd(), EDA_SHAPE::SetFillMode(), BOARD_ITEM::SetIsKnockout(), PADSTACK::SetUnconnectedLayerMode(), PCB_VIA::SetViaType(), START_END_ONLY, BOARD::Tracks(), and PADSTACK::UnconnectedLayerMode().
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsOmitsFillAndCellContentsOnly | ) |
Definition at line 1845 of file test_board_downgrade.cpp.
References BOARD::Add(), DowngradeBoardInPlace(), DowngradeFootprintInPlace(), F_SilkS, FOOTPRINT, EDA_SHAPE::GetFillMode(), EDA_SHAPE::GetShape(), EDA_TEXT::GetText(), HATCH, BOARD_ITEM::IsKnockout(), kicad9, NO_FILL, pcbIUScale, RECTANGLE, EDA_SHAPE::SetFillMode(), BOARD_ITEM::SetIsKnockout(), PCB_SHAPE::SetLayer(), EDA_TEXT::SetText(), and table.
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsOmitsGraphicsWithoutReplacements | ) |
Definition at line 1780 of file test_board_downgrade.cpp.
References BOARD::Add(), BOARD_ITEM_CONTAINER::Add(), BOOST_CHECK_EQUAL(), CIRCLE, ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DowngradeFootprintInPlace(), DROP, ELLIPSE, ELLIPSE_ARC, FOOTPRINT, group, kicad9, LOWER, EDA_ITEM::m_Uuid, normal, pcbIUScale, RECTANGLE, PCB_SHAPE::SetCornerRadius(), PCB_SHAPE::SetEnd(), BOARD_ITEM::SetIsKnockout(), and EDA_TEXT::SetText().
| BOOST_AUTO_TEST_CASE | ( | DropApproximationsOmitsRoundedPadPrimitives | ) |
Definition at line 1960 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), CIRCLE, ClassifyBoardForDowngrade(), CUSTOM, DowngradeBoardInPlace(), DowngradeFootprintInPlace(), DROP, F_Cu, FOOTPRINT, kicad9, PAD, pad, FOOTPRINT::Pads(), pcbIUScale, RECTANGLE, PCB_SHAPE::SetCornerRadius(), and PCB_SHAPE::SetEnd().
| BOOST_AUTO_TEST_CASE | ( | DuplicatePadJumperFlagDroppedForKicad9 | ) |
Definition at line 1634 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, FOOTPRINT, FOOTPRINT::GetDuplicatePadNumbersAreJumpers(), kicad9, and FOOTPRINT::SetDuplicatePadNumbersAreJumpers().
| BOOST_AUTO_TEST_CASE | ( | EllipseArcKeepsInk | ) |
Definition at line 165 of file test_board_downgrade.cpp.
References std::abs(), BOARD::Add(), ANGLE_0, ANGLE_90, SHAPE_POLY_SET::Area(), BOOST_REQUIRE(), DowngradeBoardInPlace(), ELLIPSE_ARC, EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), kicad10, pcbIUScale, POLY, PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseEndAngle(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseStartAngle(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | EllipseArcRingHasNoHoles | ) |
Definition at line 1558 of file test_board_downgrade.cpp.
References std::abs(), BOARD::Add(), ANGLE_0, ANGLE_360, SHAPE_POLY_SET::Area(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DowngradeBoardInPlace(), ELLIPSE_ARC, EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), SHAPE_POLY_SET::HoleCount(), kicad10, SHAPE_POLY_SET::OutlineCount(), pcbIUScale, POLY, PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseEndAngle(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseStartAngle(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | EllipseIsLoweredForKicad10 | ) |
Definition at line 100 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Count(), ELLIPSE, COMPATIBILITY_REPORT::IsLossy(), kicad10, and LOWER.
| BOOST_AUTO_TEST_CASE | ( | EllipseKeptForNewerTarget | ) |
Definition at line 113 of file test_board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), ELLIPSE, and COMPATIBILITY_REPORT::IsLossy().
| BOOST_AUTO_TEST_CASE | ( | EllipseTransformedToPolygon | ) |
Definition at line 125 of file test_board_downgrade.cpp.
References BOARD::Add(), DowngradeBoardInPlace(), ELLIPSE, EDA_SHAPE::GetShape(), kicad10, pcbIUScale, POLY, PCB_SHAPE::SetEnd(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | EmptyBoardIsClean | ) |
Definition at line 87 of file test_board_downgrade.cpp.
References BOOST_AUTO_TEST_CASE(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Entries(), COMPATIBILITY_REPORT::IsBlocked(), COMPATIBILITY_REPORT::IsLossy(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | EmptyNativeProjectSectionsDoNotRequireConsent | ) |
Definition at line 1339 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, empty(), COMPATIBILITY_REPORT::IsBlocked(), COMPATIBILITY_REPORT::IsLossy(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | EmptyNetChainClassesSilent | ) |
Definition at line 1484 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, and kicad10.
| BOOST_AUTO_TEST_CASE | ( | EscapedTextControlsBlockKicad9AndRemainLiteralInKicad10 | ) |
Definition at line 3585 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, FOR_CANVAS, PCB_FIELD::GetShownText(), kicad10, kicad9, FOOTPRINT::SetKeywords(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | ExportToKicad10PreservesGeometry | ) |
Definition at line 627 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ExportBoardToOlderVersion(), FOOTPRINT::GetOrientation(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), FOOTPRINT::GetPosition(), FOOTPRINT::GetReference(), kicad10, PCB_IO::LoadBoard(), FOOTPRINT::Pads(), and source.
| BOOST_AUTO_TEST_CASE | ( | ExportToKicad9PreservesGeometry | ) |
Definition at line 664 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), ExportBoardToOlderVersion(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), FOOTPRINT::GetPosition(), kicad9, PCB_IO::LoadBoard(), FOOTPRINT::Pads(), and source.
| BOOST_AUTO_TEST_CASE | ( | ExtrudedBodyDroppedForKicad10 | ) |
Definition at line 436 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, FOOTPRINT::EnsureExtrudedBody(), FOOTPRINT, FOOTPRINT::HasExtrudedBody(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | FootprintBarcodeLoweredForKicad9 | ) |
Definition at line 835 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), F_SilkS, FOOTPRINT, EDA_SHAPE::GetShape(), FOOTPRINT::GraphicalItems(), kicad9, LOWER, PCB_BARCODE_T, PCB_SHAPE_T, pcbIUScale, POLY, PCB_BARCODE::SetBarcodeText(), PCB_BARCODE::SetHeight(), PCB_BARCODE::SetLayer(), and PCB_BARCODE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | FootprintFileDowngradeRoundTrips | ) |
Definition at line 867 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), DowngradeFootprintInPlace(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO_KICAD_SEXPR::ImportFootprint(), kicad9, and SaveFootprintForTarget().
| BOOST_AUTO_TEST_CASE | ( | FootprintFileKeepsZoneLayers | ) |
Definition at line 1651 of file test_board_downgrade.cpp.
References LSET::AllCuMask(), SHAPE_POLY_SET::Append(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CONVERTED, DowngradeFootprintFileToTemp(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), PCB_IO_KICAD_SEXPR::ImportFootprint(), kicad10, kicad9, SHAPE_POLY_SET::NewOutline(), ZONE::Outline(), pcbIUScale, SaveFootprintForTarget(), and ZONE::SetLayerSet().
| BOOST_AUTO_TEST_CASE | ( | FootprintFileUsesTheSamePostMasterPoliciesAsBoardFootprints | ) |
Definition at line 3691 of file test_board_downgrade.cpp.
References FOOTPRINT::Add(), PCB_CONSTRAINT::AddMember(), ARROW, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CONVERTED, DowngradeFootprintFileToTemp(), F_SilkS, PCB_IO_KICAD_SEXPR::FootprintSave(), EDA_SHAPE::GetEndEndingStyle(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), EDA_SHAPE::GetShape(), HORIZONTAL, PCB_IO_KICAD_SEXPR::ImportFootprint(), kicad10, kicad9, EDA_ITEM::m_Uuid, name, NONE, PCB_SHAPE_T, POLY, SEGMENT, EDA_ITEM::SetCustomProperty(), PCB_SHAPE::SetEnd(), EDA_SHAPE::SetEndEndingStyle(), FOOTPRINT::SetExcludedFromSim(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetReference(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), PCB_SHAPE::SetWidth(), source, and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | FootprintFileV10RoundTrips | ) |
Definition at line 896 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), DowngradeFootprintInPlace(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO_KICAD_SEXPR::ImportFootprint(), kicad10, and SaveFootprintForTarget().
| BOOST_AUTO_TEST_CASE | ( | FootprintImageScaleCompensatedInLibrary | ) |
Definition at line 1612 of file test_board_downgrade.cpp.
References BOOST_REQUIRE(), DowngradeFootprintInPlace(), REFERENCE_IMAGE::GetImage(), REFERENCE_IMAGE::GetImageScale(), BITMAP_BASE::GetLegacyPPI(), BITMAP_BASE::GetPPI(), image, kicad9, KI_TEST::MakePngWithFractionalPixelsPerCm(), REFERENCE_IMAGE::ReadImageFile(), and REFERENCE_IMAGE::SetImageScale().
| BOOST_AUTO_TEST_CASE | ( | FootprintImageScaleCompensatedOnBoard | ) |
Definition at line 1588 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_REQUIRE(), DowngradeBoardInPlace(), FOOTPRINT, REFERENCE_IMAGE::GetImage(), REFERENCE_IMAGE::GetImageScale(), BITMAP_BASE::GetLegacyPPI(), BITMAP_BASE::GetPPI(), image, kicad9, KI_TEST::MakePngWithFractionalPixelsPerCm(), REFERENCE_IMAGE::ReadImageFile(), and REFERENCE_IMAGE::SetImageScale().
| BOOST_AUTO_TEST_CASE | ( | FootprintPressFitDroppedForKicad9 | ) |
Definition at line 926 of file test_board_downgrade.cpp.
References FOOTPRINT::Add(), DowngradeFootprintInPlace(), FOOTPRINT, kicad9, NONE, PAD, pad, and PRESSFIT.
| BOOST_AUTO_TEST_CASE | ( | FootprintTableCellKnockoutLowered | ) |
Definition at line 239 of file test_board_downgrade.cpp.
References FOOTPRINT::Add(), DowngradeFootprintInPlace(), FOOTPRINT, BOARD_ITEM::IsKnockout(), kicad10, pcbIUScale, BOARD_ITEM::SetIsKnockout(), and table.
| BOOST_AUTO_TEST_CASE | ( | FutureComponentClassSchemaBlocksWithoutMutation | ) |
Definition at line 1444 of file test_board_downgrade.cpp.
References DowngradeProjectFileJson(), COMPATIBILITY_REPORT::IsBlocked(), kicad10, kicad9, and source.
| BOOST_AUTO_TEST_CASE | ( | GeometricConstraintsDropWithoutMovingBoardOrFootprintGeometry | ) |
Definition at line 2261 of file test_board_downgrade.cpp.
References BOARD::Add(), PCB_CONSTRAINT::AddMember(), BOOST_CHECK_EQUAL(), checkFeature(), ClassifyBoardForDowngrade(), BOARD::Constraints(), FOOTPRINT::Constraints(), DowngradeBoardInPlace(), DROP, FOOTPRINT, HORIZONTAL, kicad10, kicad9, EDA_ITEM::m_Uuid, SEGMENT, PCB_SHAPE::SetEnd(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | GridAndDrillDrawingLossesAreReportedBeforeRemoval | ) |
Definition at line 2305 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), checkFeature(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), BOARD::Drawings(), DROP, BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetDrillSymbolProfile(), kicad10, DRILL_SYMBOL_PROFILE::SetName(), BOARD::Tracks(), and via.
| BOOST_AUTO_TEST_CASE | ( | GroupDesignBlockLinkDroppedForKicad9 | ) |
Definition at line 420 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, group, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | GroupPlacementGuardIgnoresOrdinaryGroupsAndQuotedText | ) |
Definition at line 3304 of file test_board_downgrade.cpp.
References FindUnsupportedBoardToken(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | GroupPlacementLinkageUsesTheSameFootprintPolicy | ) |
Definition at line 3274 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeFootprintInPlace(), DROP, FOOTPRINT, GROUP_PLACEMENT, kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | HatchedCopperAndInkFillsAreReportedSeparately | ) |
Definition at line 1888 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Count(), DROP, COMPATIBILITY_REPORT::Entries(), F_Cu, F_SilkS, HATCH, kicad9, LOWER, RECTANGLE, EDA_SHAPE::SetFillMode(), and PCB_SHAPE::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | HistoricalTuningWritersRejectUnsafeDirectSerialization | ) |
Definition at line 2988 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), FindUnsupportedBoardToken(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad10, kicad9, and SaveBoardForTarget().
| BOOST_AUTO_TEST_CASE | ( | HistoricalWritersRejectDirectViaGeneratorsAtomically | ) |
Definition at line 3013 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad10, kicad9, KI_TEST::ReadGoldenText(), and SaveBoardForTarget().
| BOOST_AUTO_TEST_CASE | ( | ImageScaleMigratedForV9 | ) |
Definition at line 1047 of file test_board_downgrade.cpp.
References BOARD::Add(), KIID::AsStdString(), BOOST_REQUIRE(), DowngradeBoardInPlace(), REFERENCE_IMAGE::GetImage(), REFERENCE_IMAGE::GetImageScale(), BITMAP_BASE::GetLegacyPPI(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), BITMAP_BASE::GetPPI(), PCB_REFERENCE_IMAGE::GetReferenceImage(), image, kicad9, EDA_ITEM::m_Uuid, KI_TEST::MakePngWithFractionalPixelsPerCm(), REFERENCE_IMAGE::ReadImageFile(), SaveBoardForTarget(), KI_TEST::SerializedImageScale(), and REFERENCE_IMAGE::SetImageScale().
| BOOST_AUTO_TEST_CASE | ( | InertGroupPlacementMetadataDoesNotRequireConsent | ) |
Definition at line 3314 of file test_board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), GROUP_PLACEMENT, kicad9, and SHEETNAME.
| BOOST_AUTO_TEST_CASE | ( | InvalidDrcCommentAndUnbalancedSyntaxFailClosed | ) |
Definition at line 1231 of file test_board_downgrade.cpp.
References FilterDrcRulesForTarget(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | KnockoutTextBoxLoweredForKicad9 | ) |
Definition at line 190 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), BOARD_ITEM::IsKnockout(), kicad10, kicad9, LOWER, and BOARD_ITEM::SetIsKnockout().
| BOOST_AUTO_TEST_CASE | ( | LegacyBoldWidthsPreserveNestedTextAndDoNotMutateSource | ) |
Definition at line 3763 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PCB_DIMENSION_BASE::ChangeOverrideText(), FOOTPRINT, EDA_TEXT::GetFont(), KIFONT::FONT::GetFont(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), EDA_TEXT::GetText(), EDA_TEXT::GetTextThickness(), PCB_TEXT::GetTextThickness(), EDA_TEXT::IsBold(), KIFONT::FONT::IsOutline(), kicad10, kicad9, PCB_IO::LoadBoard(), KI_TEST::ReadGoldenText(), RECURSE, SaveBoardForTarget(), EDA_TEXT::SetBold(), PCB_DIMENSION_BASE::SetEnd(), EDA_TEXT::SetFont(), PCB_DIM_ALIGNED::SetHeight(), PCB_DIMENSION_BASE::SetStart(), EDA_TEXT::SetText(), PCB_TEXT::SetTextThickness(), table, text, and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | LibraryFilesDowngradeFailsClosed | ) |
Definition at line 1691 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CONVERTED, DowngradeLibraryFilesInPlace(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), and REFUSED.
| BOOST_AUTO_TEST_CASE | ( | LibraryReplacementsWaitForTheDesignTransaction | ) |
Definition at line 2064 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DOWNGRADE_FILE_TRANSACTION::Commit(), convert, CONVERTED, directory, DowngradeLibraryFilesInPlace(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), library, and DOWNGRADE_FILE_TRANSACTION::Stage().
| BOOST_AUTO_TEST_CASE | ( | LineEndingsLowerPrintedInkOrDropOnlyEmbellishments | ) |
Definition at line 3358 of file test_board_downgrade.cpp.
References BOARD::Add(), SHAPE_POLY_SET::Area(), ARROW, checkFeature(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), BOARD::Drawings(), DROP, ERROR_INSIDE, F_SilkS, FOOTPRINT, FOOTPRINT::GraphicalItems(), kicad10, LOWER, NONE, SEGMENT, PCB_SHAPE::SetEnd(), EDA_SHAPE::SetEndEnding(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), PCB_SHAPE::SetWidth(), SHAPE_POLY_SET::Simplify(), and EDA_SHAPE::TransformWithLineEndingsToPolygon().
| BOOST_AUTO_TEST_CASE | ( | MixedPropertyTextKeepsEscapedLiteralsAndSupportedVariables | ) |
Definition at line 3533 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, FOR_CANVAS, EDA_TEXT::GetText(), kicad10, EDA_ITEM::SetCustomProperty(), FOOTPRINT::SetKeywords(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), text, and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | NativeGroupPlacementFixtureKeepsGeometryAndOwnershipForBothPolicies | ) |
Definition at line 3053 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), checkFeature(), SHAPE_POLY_SET::CHole(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Count(), SHAPE_POLY_SET::COutline(), DROP, COMPATIBILITY_REPORT::Entries(), ExportBoardToOlderVersion(), F_Cu, FindUnsupportedBoardToken(), PCB_IO_KICAD_SEXPR::FormatBoardToFormatter(), ZONE::GetBoardOutline(), ZONE::GetDoNotAllowFootprints(), ZONE::GetDoNotAllowPads(), ZONE::GetDoNotAllowTracks(), ZONE::GetDoNotAllowVias(), ZONE::GetDoNotAllowZoneFills(), ZONE::GetFilledPolysList(), ZONE::GetIsRuleArea(), BOARD_ITEM::GetLayer(), PAD::GetLayerSet(), ZONE::GetLayerSet(), BOARD_CONNECTED_ITEM::GetNetname(), PAD::GetOrientation(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), ZONE::GetPlacementAreaEnabled(), ZONE::GetPlacementAreaSource(), ZONE::GetPlacementAreaSourceType(), PAD::GetPosition(), PCB_TEXT::GetPosition(), PAD::GetRoundRectRadiusRatio(), PAD::GetShape(), PAD::GetSize(), STRING_FORMATTER::GetString(), EDA_TEXT::GetText(), ZONE::GetZoneName(), group, GROUP_PLACEMENT, SHAPE_POLY_SET::HoleCount(), COMPATIBILITY_REPORT::IsBlocked(), ZONE::IsFilled(), ZONE::IsIsland(), kicad10, kicad9, PCB_IO::LoadBoard(), SETTINGS_MANAGER::LoadProject(), LOWER, SHAPE_POLY_SET::OutlineCount(), pad, KI_TEST::ReadGoldenText(), SaveBoardForTarget(), LSET::Seq(), SHEETNAME, and source.
| BOOST_AUTO_TEST_CASE | ( | NativeNetChainClassMapReportsOnlyNonemptyMappings | ) |
Definition at line 4016 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, empty(), COMPATIBILITY_REPORT::IsLossy(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | NativeTuningFixturesPreserveCopperAndEraEditabilityForBothPolicies | ) |
Definition at line 2671 of file test_board_downgrade.cpp.
References BOARD::Add(), EDA_GROUP::AddItem(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), checkFeature(), ClassifyBoardForDowngrade(), PCB_TRACK::Clone(), COMPATIBILITY_REPORT::Count(), PCB_GENERATOR::DeepClone(), DROP, COMPATIBILITY_REPORT::Entries(), ExportBoardToOlderVersion(), BOARD::FindNet(), FindUnsupportedBoardToken(), PCB_IO_KICAD_SEXPR::FormatBoardToFormatter(), STRING_ANY_MAP::get_to(), PCB_TRACK::GetEnd(), EDA_GROUP::GetItems(), PCB_TRACK::GetLayerSet(), PCB_ARC::GetMid(), NETINFO_ITEM::GetNetCode(), BOARD_CONNECTED_ITEM::GetNetname(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), PCB_TUNING_PATTERN::GetProperties(), PCB_TUNING_PATTERN::GetSettings(), PCB_TRACK::GetStart(), STRING_FORMATTER::GetString(), PCB_TRACK::GetWidth(), BOARD::GroupsSanityCheck(), COMPATIBILITY_REPORT::IsBlocked(), kicad10, kicad9, PCB_IO::LoadBoard(), LOWER, PNS::MEANDER_SETTINGS::m_isTimeDomain, EDA_ITEM::m_Uuid, PCB_TRACE_T, pcbIUScale, OUTPUTFORMATTER::Quotew(), KI_TEST::ReadGoldenText(), PCB_IO_KICAD_SEXPR::SaveBoard(), BOARD::SetCopperLayerCount(), BOARD::SetEnabledLayers(), EDA_GROUP::SetName(), NETINFO_ITEM::SetParent(), BOARD::Tracks(), and EDA_ITEM::Type().
| BOOST_AUTO_TEST_CASE | ( | NativeViaGeneratorFixtureExportsCopperAndOwnershipForBothTargetsAndPolicies | ) |
Definition at line 2378 of file test_board_downgrade.cpp.
References LSET::AllCuMask(), PADSTACK::BackOuterLayers(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), checkFeature(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Count(), PADSTACK::Drill(), DROP, COMPATIBILITY_REPORT::Entries(), ExportBoardToOlderVersion(), F_Cu, FindUnsupportedBoardToken(), PCB_IO_KICAD_SEXPR::FormatBoardToFormatter(), PADSTACK::FrontOuterLayers(), PCB_TRACK::GetEnd(), PCB_VIA_STACK::GetEndLayer(), PCB_VIA_STITCH::GetGuardedNetCode(), EDA_GROUP::GetItems(), BOARD_CONNECTED_ITEM::GetLayer(), PCB_TRACK::GetLayerSet(), EDA_GROUP::GetName(), BOARD_CONNECTED_ITEM::GetNetname(), EDA_ITEM::GetParentGroup(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), KI_TEST::GetPcbnewTestDataDir(), PCB_TRACK::GetStart(), PCB_VIA_STACK::GetStartLayer(), STRING_FORMATTER::GetString(), PCB_VIA_STACK::GetStyle(), EDA_TEXT::GetText(), PCB_TRACK::GetWidth(), GUARD, PADSTACK::MASK_LAYER_PROPS::has_covering, PADSTACK::MASK_LAYER_PROPS::has_plugging, In2_Cu, PADSTACK::DRILL_PROPS::is_capped, PADSTACK::DRILL_PROPS::is_filled, COMPATIBILITY_REPORT::IsBlocked(), kicad10, kicad9, PCB_IO::LoadBoard(), LOWER, EDA_ITEM::m_Uuid, MICROVIA, PCB_TRACE_T, PCB_VIA_T, KI_TEST::ReadGoldenText(), source, STACKED, STITCH, text, EDA_ITEM::Type(), and via.
| BOOST_AUTO_TEST_CASE | ( | NewDrcConstraintsAndFunctionsAreFilteredWithoutLiteralFalsePositives | ) |
Definition at line 4037 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), FilterDrcRulesForTarget(), kicad10, kicad9, and result.
| BOOST_AUTO_TEST_CASE | ( | NewExpressionUnitAliasIsBakedWithoutFreezingOtherVariables | ) |
Definition at line 3554 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, EDA_TEXT::GetText(), kicad10, FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | NewGeneratorsLoseEditabilityAndKeepCopperAndOuterGroups | ) |
Definition at line 2332 of file test_board_downgrade.cpp.
References BOARD::Add(), EDA_GROUP::AddItem(), BOOST_CHECK_EQUAL(), checkFeature(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, F_Cu, BOARD::Generators(), EDA_GROUP::GetItems(), kicad10, BOARD::Tracks(), and via.
| BOOST_AUTO_TEST_CASE | ( | NewTuningBridgeDelayIsRemovedAndReportedForKicad10 | ) |
Definition at line 3998 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, and kicad10.
| BOOST_AUTO_TEST_CASE | ( | NonDefaultTuningModelSettingsAreReportedForKicad10 | ) |
Definition at line 1498 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, COMPATIBILITY_REPORT::IsLossy(), and kicad10.
| BOOST_AUTO_TEST_CASE | ( | NullFieldSlotDoesNotCrashV9Writer | ) |
Definition at line 963 of file test_board_downgrade.cpp.
References KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad9, and SaveFootprintForTarget().
| BOOST_AUTO_TEST_CASE | ( | PadSimTypeDroppedForKicad10 | ) |
Definition at line 556 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, FOOTPRINT, kicad10, NONE, PAD, pad, and SOURCE.
| BOOST_AUTO_TEST_CASE | ( | PostMachiningDroppedForKicad9 | ) |
Definition at line 574 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), COUNTERBORE, DowngradeBoardInPlace(), DROP, FOOTPRINT, kicad9, PAD, and pad.
| BOOST_AUTO_TEST_CASE | ( | PostMasterProjectSettingsReportOnlyMeaningfulLosses | ) |
Definition at line 3963 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, COMPATIBILITY_REPORT::IsLossy(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | PressFitDroppedForKicad9 | ) |
Definition at line 592 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, FOOTPRINT, kicad9, NONE, PAD, pad, and PRESSFIT.
| BOOST_AUTO_TEST_CASE | ( | ProjectFileDowngradeForKicad10 | ) |
Definition at line 1525 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, and kicad10.
| BOOST_AUTO_TEST_CASE | ( | ProjectFileDowngradeForKicad9 | ) |
Definition at line 1290 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, COMPATIBILITY_REPORT::IsLossy(), and kicad9.
| BOOST_AUTO_TEST_CASE | ( | RoundedRectangleLoweredForKicad9 | ) |
Definition at line 258 of file test_board_downgrade.cpp.
References std::abs(), BOARD::Add(), SHAPE_LINE_CHAIN::Area(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), kicad10, kicad9, LOWER, M_PI, NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), pcbIUScale, POLY, RECTANGLE, PCB_SHAPE::SetCornerRadius(), PCB_SHAPE::SetEnd(), EDA_SHAPE::SetFillMode(), PCB_SHAPE::SetStart(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | SavedProjectTuningAndClassChoicesStillRequireConsent | ) |
Definition at line 1398 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, empty(), COMPATIBILITY_REPORT::IsBlocked(), COMPATIBILITY_REPORT::IsLossy(), kicad10, kicad9, and source.
| BOOST_AUTO_TEST_CASE | ( | SaveWithTargetVersionStampsOlder | ) |
Definition at line 943 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad10, PCB_IO::LoadBoard(), and SaveBoardForTarget().
| BOOST_AUTO_TEST_CASE | ( | ScaledFootprintBlocksExport | ) |
Definition at line 373 of file test_board_downgrade.cpp.
References BOARD::Add(), BLOCK, BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), COMPATIBILITY_REPORT::Count(), FOOTPRINT, COMPATIBILITY_REPORT::IsBlocked(), kicad10, and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | SimulationExclusionsFollowSelectedVariantAndReportTheirLoss | ) |
Definition at line 3742 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::AddVariant(), checkFeature(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, FlattenBoardVariant(), FOOTPRINT, FOOTPRINT::GetVariants(), FOOTPRINT::IsExcludedFromSim(), kicad10, name, FOOTPRINT::SetExcludedFromSim(), and FOOTPRINT_VARIANT::SetExcludedFromSim().
| BOOST_AUTO_TEST_CASE | ( | SkipViaLoweredForKicad9 | ) |
Definition at line 610 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), kicad9, LOWER, REMOVE_EXCEPT_START_AND_END, START_END_ONLY, and via.
| BOOST_AUTO_TEST_CASE | ( | SkipViaModeWrittenForV9 | ) |
Definition at line 1014 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_REQUIRE(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), kicad9, PCB_IO::LoadBoard(), PCB_VIA::Padstack(), PCB_VIA_T, REMOVE_EXCEPT_START_AND_END, SaveBoardForTarget(), START_END_ONLY, PADSTACK::UnconnectedLayerMode(), and via.
| BOOST_AUTO_TEST_CASE | ( | SpacedTimeAndAngleUnitsAreDroppedForKicad9 | ) |
Definition at line 1158 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), FilterDrcRulesForTarget(), kicad10, kicad9, DRC_RULES_FILTER_RESULT::m_dropped, DRC_RULES_FILTER_RESULT::m_error, and DRC_RULES_FILTER_RESULT::m_text.
| BOOST_AUTO_TEST_CASE | ( | StaleGroupMemberNotWrittenForV10 | ) |
Definition at line 981 of file test_board_downgrade.cpp.
References BOARD::Add(), KIID::AsString(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), group, kicad10, EDA_ITEM::m_Uuid, SaveBoardForTarget(), and SEGMENT.
| BOOST_AUTO_TEST_CASE | ( | TableCellKnockoutLoweredForKicad10 | ) |
Definition at line 207 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PCB_TABLE::AddCell(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, BOARD_ITEM::IsKnockout(), kicad10, LOWER, pcbIUScale, PCB_TABLE::SetColCount(), BOARD_ITEM::SetIsKnockout(), and table.
| BOOST_AUTO_TEST_CASE | ( | ThievingZoneBlocksKicad10 | ) |
Definition at line 453 of file test_board_downgrade.cpp.
References BOARD::Add(), BLOCK, BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), COPPER_THIEVING, DowngradeBoardInPlace(), ZONE::IsCopperThieving(), kicad10, and ZONE::SetFillMode().
| BOOST_AUTO_TEST_CASE | ( | TitleBlockExpressionsBakeBeforeDependentFootprintText | ) |
Definition at line 3610 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), checkFeature(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, FOOTPRINT, EDA_TEXT::GetText(), TITLE_BLOCK::GetTitle(), BOARD::GetTitleBlock(), kicad10, FOOTPRINT::SetReference(), EDA_TEXT::SetText(), TITLE_BLOCK::SetTitle(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | TitleBlockSelfReferenceDoesNotHideUsedProjectDependencies | ) |
Definition at line 3640 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ClassifyBoardForDowngrade(), FOOTPRINT, FOR_CANVAS, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), SETTINGS_MANAGER::GetProject(), PCB_FIELD::GetShownText(), BOARD::GetTitleBlock(), kicad10, SETTINGS_MANAGER::LoadProject(), project, BOARD::SetProject(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), TITLE_BLOCK::SetTitle(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | TitleBlockUnresolvablePropertyContextBlocksBothPolicies | ) |
Definition at line 3630 of file test_board_downgrade.cpp.
References ClassifyBoardForDowngrade(), BOARD::GetTitleBlock(), kicad10, and TITLE_BLOCK::SetComment().
| BOOST_AUTO_TEST_CASE | ( | TransactionSymlinkReplacementLeavesLinkedSourcesUnchanged | ) |
Definition at line 2193 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), DOWNGRADE_FILE_TRANSACTION::Commit(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), and DOWNGRADE_FILE_TRANSACTION::Stage().
| BOOST_AUTO_TEST_CASE | ( | UnfilledEllipseKeepsOutline | ) |
Definition at line 140 of file test_board_downgrade.cpp.
References std::abs(), BOARD::Add(), SHAPE_LINE_CHAIN::Area(), BOOST_REQUIRE(), DowngradeBoardInPlace(), ELLIPSE, EDA_SHAPE::GetFillMode(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), kicad10, M_PI, NO_FILL, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), pcbIUScale, POLY, PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), EDA_SHAPE::SetFillMode(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | UnrepresentableDrcExclusionsDropWithReports | ) |
Definition at line 3934 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), COMPATIBILITY_REPORT::Count(), DowngradeProjectFileJson(), DROP, empty(), kicad10, kicad9, and unknown.
| BOOST_AUTO_TEST_CASE | ( | UnresolvedAffectedExpressionsBlockBothPolicies | ) |
Definition at line 3567 of file test_board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), FOOTPRINT, kicad10, EDA_ITEM::SetCustomProperty(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | UnresolvedPropertyVariablesBlockBothPolicies | ) |
Definition at line 3468 of file test_board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), FOOTPRINT, kicad10, EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | UnreviewedGeneratorKindBlocksBothPolicies | ) |
Definition at line 3338 of file test_board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), PCB_VIA_STITCH::GetGeneratorType(), kicad10, and PCB_VIA_STITCH::PCB_VIA_STITCH().
| BOOST_AUTO_TEST_CASE | ( | UnreviewedTuningPropertiesBlockBothTargetsAndPolicies | ) |
Definition at line 2943 of file test_board_downgrade.cpp.
References BOARD::Add(), BLOCK, checkFeature(), ClassifyBoardForDowngrade(), BOARD::Generators(), KI_TEST::TEMPORARY_DIRECTORY::GetPath(), PCB_TUNING_PATTERN::GetProperties(), kicad10, kicad9, path, PCB_TUNING_PATTERN::PCB_TUNING_PATTERN(), SaveBoardForTarget(), and STRING_ANY_MAP::set().
| BOOST_AUTO_TEST_CASE | ( | UsedProjectVariablesBakeInFootprintContextAndUnusedDefinitionsDoNotBlock | ) |
Definition at line 3480 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FOOTPRINT, KI_TEST::TEMPORARY_DIRECTORY::GetPath(), SETTINGS_MANAGER::GetProject(), kicad10, SETTINGS_MANAGER::LoadProject(), project, EDA_ITEM::SetCustomProperty(), BOARD::SetProject(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), and FOOTPRINT::Value().
| BOOST_AUTO_TEST_CASE | ( | VariantFlattenedIntoBoard | ) |
Definition at line 1269 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::AddVariant(), BOOST_REQUIRE(), FlattenBoardVariant(), FOOTPRINT, FOOTPRINT::GetField(), FOOTPRINT::IsDNP(), FOOTPRINT::SetDNP(), FOOTPRINT_VARIANT::SetDNP(), and FOOTPRINT_VARIANT::SetFieldValue().
| BOOST_AUTO_TEST_CASE | ( | VerifyGateCatchesUnsupportedTokens | ) |
Definition at line 1088 of file test_board_downgrade.cpp.
References FindUnsupportedBoardToken(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | ViaApproximationsSurviveDropPolicy | ) |
Definition at line 1990 of file test_board_downgrade.cpp.
References BOARD::Add(), BLIND, BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), BURIED, ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, PCB_VIA::GetViaType(), kicad9, LOWER, PCB_VIA::Padstack(), REMOVE_EXCEPT_START_AND_END, PADSTACK::SetUnconnectedLayerMode(), PCB_VIA::SetViaType(), START_END_ONLY, THROUGH, BOARD::Tracks(), and PADSTACK::UnconnectedLayerMode().
| BOOST_AUTO_TEST_CASE | ( | ViaProtectionDroppedForKicad9 | ) |
Definition at line 388 of file test_board_downgrade.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, kicad9, and via.
| BOOST_AUTO_TEST_CASE | ( | WrongShapeProjectFileDoesNotThrow | ) |
Definition at line 1464 of file test_board_downgrade.cpp.
References DowngradeProjectFileJson(), kicad10, and kicad9.
| BOOST_AUTO_TEST_CASE | ( | ZoneDefaultsDroppedForKicad9 | ) |
Definition at line 715 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, F_Cu, BOARD::GetDesignSettings(), kicad9, and BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties.
| BOOST_AUTO_TEST_CASE | ( | ZoneLayerPropertiesDroppedForKicad9 | ) |
Definition at line 301 of file test_board_downgrade.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), DROP, F_Cu, FOOTPRINT, ZONE_LAYER_PROPERTIES::hatching_offset, kicad9, and ZONE::LayerProperties().
|
static |
Definition at line 2243 of file test_board_downgrade.cpp.
References BOOST_CHECK_EQUAL(), and COMPATIBILITY_REPORT::Entries().
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(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 83 of file test_board_downgrade.cpp.
|
static |
Definition at line 82 of file test_board_downgrade.cpp.