edk2/BaseTools/Tests/conftest.py
Michael D Kinney 80bf0137c1 BaseTools/Tests: Add unit and functional tests for XIP rebase
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>
2026-06-22 15:18:12 +00:00

17 lines
366 B
Python

## @file
# pytest configuration for BaseTools tests
#
# Copyright (c) 2026, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
import pytest
def pytest_addoption(parser):
parser.addoption(
"--toolchain",
default="VS2022",
help="EDK II toolchain tag (default: VS2022)"
)