Skip to content
Commit 530f5b09 authored by Zhiguang Liu's avatar Zhiguang Liu Committed by mergify[bot]
Browse files

UnitTestFrameworkPkg: Add UnitTestPeiServicesTablePointerLib



This library supports a PeiServicesTablePointerLib implementation
that allows code dependent upon PeiServicesTable to operate in an
isolated execution environment such as within the context of a
host-based unit test framework.

The unit test should initialize the PeiServicesTable database with
any required elements (e.g. PPIs, Hob etc.) prior to the services
being invoked by code under test.

It is strongly recommended to clean any global databases by using
EFI_PEI_SERVICES.ResetSystem2 after every unit test so the tests
execute in a predictable manner from a clean state.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: default avatarMichael Kubacki <mikuback@linux.microsoft.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: default avatarRay Ni <ray.ni@intel.com>
Signed-off-by: default avatarZhiguang Liu <zhiguang.liu@intel.com>
parent 8314a858
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment