]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Test/MdeModulePkgHostTest.dsc
MdeModulePkg: Add DxeResetSystemLib unit test
[mirror_edk2.git] / MdeModulePkg / Test / MdeModulePkgHostTest.dsc
diff --git a/MdeModulePkg/Test/MdeModulePkgHostTest.dsc b/MdeModulePkg/Test/MdeModulePkgHostTest.dsc
new file mode 100644 (file)
index 0000000..72a119d
--- /dev/null
@@ -0,0 +1,32 @@
+## @file\r
+# MdeModulePkg DSC file used to build host-based unit tests.\r
+#\r
+# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (C) Microsoft Corporation.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+[Defines]\r
+  PLATFORM_NAME           = MdeModulePkgHostTest\r
+  PLATFORM_GUID           = F74AF7C6-698C-4EBA-BA49-FF6816916354\r
+  PLATFORM_VERSION        = 0.1\r
+  DSC_SPECIFICATION       = 0x00010005\r
+  OUTPUT_DIRECTORY        = Build/MdeModulePkg/HostTest\r
+  SUPPORTED_ARCHITECTURES = IA32|X64\r
+  BUILD_TARGETS           = NOOPT\r
+  SKUID_IDENTIFIER        = DEFAULT\r
+\r
+!include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc\r
+\r
+[Components]\r
+  MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf\r
+\r
+  #\r
+  # Build MdeModulePkg HOST_APPLICATION Tests\r
+  #\r
+  MdeModulePkg/Library/DxeResetSystemLib/UnitTest/DxeResetSystemLibUnitTestHost.inf {\r
+    <LibraryClasses>\r
+      ResetSystemLib|MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.inf\r
+      UefiRuntimeServicesTableLib|MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf\r
+  }\r