summaryrefslogtreecommitdiff
path: root/BaseTools/Tests/conftest.py
AgeCommit message (Collapse)AuthorFilesLines
2026-06-22BaseTools/Tests: Add unit and functional tests for XIP rebaseMichael D Kinney1-0/+17
Add TestGenFvXip.py with 19 parameterized subtests covering the complete XIP rebase decision matrix: - 11 unit subtests validating DetermineXipEnabled() with RuleComplexFile and RuleSimpleFile objects covering Xip attribute parsing (TRUE/FALSE/None, case insensitive, boolean vs string). - 8 functional subtests that run real edk2 builds with generated DSC/FDF files exercising all ForceRebase/BaseAddress/Xip combinations. Each test verifies: 1. FV INF file contains correct ,XIP suffixes 2. FV map file shows correct rebase status (Fixed Flash Address) 3. PE/COFF ImageBase in the FV binary matches expected value Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>