Adds a host-based specific implementation of UefiBootServicesTableLib. This library implements relatively simple versions of the functionality in the actual boot services implementation and does not depend on dynamic linking to the boot services table. Most unit tests can install the dependencies their code under test depends on prior to invocation and uninstall those dependencies after the test to test code that directly depends on boot services. Cc: Andrew Fish <afish@apple.com> Cc: Kang Gao <kang.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Benjamin You <benjamin.you@intel.com> Cc: Liu Yun <yun.y.liu@intel.com> Cc: Ankit Sinha <ankit.sinha@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Liming Gao <gaoliming@byosoft.com.cn> Acked-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Ankit Sinha <ankit.sinha@intel.com>
29 lines
908 B
Plaintext
29 lines
908 B
Plaintext
## @file
|
|
# PrmPkg DSC file used to build host-based unit tests.
|
|
#
|
|
# Copyright (c) Microsoft Corporation.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
PLATFORM_NAME = PrmPkgHostTest
|
|
PLATFORM_GUID = 5BCCFC54-2162-42FB-ABCA-5B8D0DC4013C
|
|
PLATFORM_VERSION = 0.1
|
|
DSC_SPECIFICATION = 0x00010005
|
|
OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)/HostTest
|
|
SUPPORTED_ARCHITECTURES = IA32|X64
|
|
BUILD_TARGETS = NOOPT
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
!include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
|
|
|
|
[LibraryClasses]
|
|
UefiBootServicesTableLib|PrmPkg/Test/UnitTest/Library/UefiBootServicesTableLibUnitTest/UefiBootServicesTableLibUnitTest.inf
|
|
|
|
[Components]
|
|
#
|
|
# Unit test helper libraries
|
|
#
|
|
PrmPkg/Test/UnitTest/Library/UefiBootServicesTableLibUnitTest/UefiBootServicesTableLibUnitTest.inf
|