mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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>
17 lines
366 B
Python
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)"
|
|
)
|