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>
47 lines
1.4 KiB
INI
47 lines
1.4 KiB
INI
## @file
|
|
# UEFI Boot Services Table Library for unit tests implementation.
|
|
#
|
|
# Copyright (c) Microsoft Corporation
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = UefiBootServicesTableLibUnitTest
|
|
MODULE_UNI_FILE = UefiBootServicesTableLibTest.uni
|
|
FILE_GUID = 725E1CCD-07F1-4964-9A3E-9AA6DCC51DE6
|
|
MODULE_TYPE = UEFI_DRIVER
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = UefiBootServicesTableLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER SMM_CORE
|
|
|
|
CONSTRUCTOR = UefiBootServicesTableLibUnitTestConstructor
|
|
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 EBC
|
|
#
|
|
|
|
[Sources]
|
|
UefiBootServicesTableLibUnitTest.h
|
|
UefiBootServicesTableLibUnitTest.c
|
|
UefiBootServicesTableLibUnitTestEventTimer.c
|
|
UefiBootServicesTableLibUnitTestImage.c
|
|
UefiBootServicesTableLibUnitTestMemory.c
|
|
UefiBootServicesTableLibUnitTestProtocol.h
|
|
UefiBootServicesTableLibUnitTestProtocol.c
|
|
UefiBootServicesTableLibUnitTestMisc.c
|
|
UefiBootServicesTableLibUnitTestTpl.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
BaseMemoryLib
|
|
DebugLib
|
|
MemoryAllocationLib
|
|
UnitTestLib
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
TimerExtra.uni
|