]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf
UefiCpuPkg: Add Unit tests for DxeCpuExceptionHandlerLib
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / UnitTest / DxeCpuExceptionHandlerLibUnitTest.inf
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf b/UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf
new file mode 100644 (file)
index 0000000..e3dbe7b
--- /dev/null
@@ -0,0 +1,58 @@
+## @file\r
+# Unit tests of the DxeCpuExceptionHandlerLib instance.\r
+#\r
+# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+##\r
+\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = CpuExceptionHandlerDxeTest\r
+  FILE_GUID                      = D76BFD9C-0B6D-46BD-AD66-2BBB6FA7031A\r
+  MODULE_TYPE                    = DXE_DRIVER\r
+  VERSION_STRING                 = 1.0\r
+  ENTRY_POINT                    = CpuExceptionHandlerTestEntry\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = X64\r
+#\r
+[Sources.X64]\r
+  X64/ArchExceptionHandlerTestAsm.nasm\r
+  X64/ArchExceptionHandlerTest.c\r
+\r
+[Sources.common]\r
+  CpuExceptionHandlerTest.h\r
+  CpuExceptionHandlerTestCommon.c\r
+  DxeCpuExceptionHandlerUnitTest.c\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+  MdeModulePkg/MdeModulePkg.dec\r
+  UefiCpuPkg/UefiCpuPkg.dec\r
+\r
+[LibraryClasses]\r
+  BaseLib\r
+  BaseMemoryLib\r
+  DebugLib\r
+  UnitTestLib\r
+  MemoryAllocationLib\r
+  CpuExceptionHandlerLib\r
+  UefiDriverEntryPoint\r
+  HobLib\r
+  UefiBootServicesTableLib\r
+  CpuPageTableLib\r
+\r
+[Guids]\r
+  gEfiHobMemoryAllocStackGuid\r
+\r
+[Pcd]\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard       ## CONSUMES\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize           ## CONSUMES\r
+\r
+[Protocols]\r
+  gEfiMpServiceProtocolGuid\r
+\r
+[Depex]\r
+  gEfiMpServiceProtocolGuid\r