public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Saloni Kasbekar" <saloni.kasbekar@intel.com>
To: "Douglas Flick [MSFT]" <doug.edk2@gmail.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Clark-williams, Zachary" <zachary.clark-williams@intel.com>
Subject: Re: [edk2-devel] [PATCH v2 02/15] NetworkPkg: : Add Unit tests to CI and create Host Test DSC
Date: Thu, 1 Feb 2024 19:36:24 +0000	[thread overview]
Message-ID: <SN7PR11MB8281279C1992C9AE8A38EB8CF1432@SN7PR11MB8281.namprd11.prod.outlook.com> (raw)
In-Reply-To: <a910e506b5e4842948f9ea2ff3f790f6be49b5cd.1706219324.git.doug.edk2@gmail.com>

Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>

-----Original Message-----
From: Douglas Flick [MSFT] <doug.edk2@gmail.com> 
Sent: Thursday, January 25, 2024 1:55 PM
To: devel@edk2.groups.io
Cc: Douglas Flick [MSFT] <doug.edk2@gmail.com>; Kasbekar, Saloni <saloni.kasbekar@intel.com>; Clark-williams, Zachary <zachary.clark-williams@intel.com>
Subject: [PATCH v2 02/15] NetworkPkg: : Add Unit tests to CI and create Host Test DSC

Adds Host Based testing to the NetworkPkg

Cc: Saloni Kasbekar <saloni.kasbekar@intel.com>
Cc: Zachary Clark-williams <zachary.clark-williams@intel.com>

Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com>
---
 NetworkPkg/Test/NetworkPkgHostTest.dsc | 98 ++++++++++++++++++++++++++
 NetworkPkg/NetworkPkg.ci.yaml          |  7 +-
 2 files changed, 104 insertions(+), 1 deletion(-)  create mode 100644 NetworkPkg/Test/NetworkPkgHostTest.dsc

diff --git a/NetworkPkg/Test/NetworkPkgHostTest.dsc b/NetworkPkg/Test/NetworkPkgHostTest.dsc
new file mode 100644
index 000000000000..1aeca5c5b353
--- /dev/null
+++ b/NetworkPkg/Test/NetworkPkgHostTest.dsc
@@ -0,0 +1,98 @@
+## @file+# NetworkPkgHostTest DSC file used to build host-based unit tests.+#+# Copyright (c) Microsoft Corporation.<BR>+# SPDX-License-Identifier: BSD-2-Clause-Patent+#+##+[Defines]+  PLATFORM_NAME           = NetworkPkgHostTest+  PLATFORM_GUID           = 3b68324e-fc07-4d49-9520-9347ede65879+  PLATFORM_VERSION        = 0.1+  DSC_SPECIFICATION       = 0x00010005+  OUTPUT_DIRECTORY        = Build/NetworkPkg/HostTest+  SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64+  BUILD_TARGETS           = NOOPT+  SKUID_IDENTIFIER        = DEFAULT++!include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc+[Packages]+  MdePkg/MdePkg.dec+  UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec++[Components]+  #+  # Build HOST_APPLICATION that tests NetworkPkg+  #++# Despite these library classes being listed in [LibraryClasses] below, they are not needed for the host-based unit tests.+[LibraryClasses]+  NetLib|NetworkPkg/Library/DxeNetLib/DxeNetLib.inf+  DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf+  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf+  DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf+  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf+  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf+  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf+  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf+  UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf+  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf+  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf+  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf+  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf+  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf+  UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf+  TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf+  PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf+  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf+  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf+  DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf+  SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf+  RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf+  VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf+!ifdef CONTINUOUS_INTEGRATION+  BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf+  TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf+!else+  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf+  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf+  TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf+!endif+  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf+  FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf+  FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf+  SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf+  IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf++!if $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022+[LibraryClasses.X64]+  # Provide StackCookie support lib so that we can link to /GS exports for VS builds+  RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf+!endif++[LibraryClasses.common.UEFI_DRIVER]+  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf+  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf+  DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf+[LibraryClasses.common.UEFI_APPLICATION]+  DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf+  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf+[LibraryClasses.ARM, LibraryClasses.AARCH64]+  #+  # It is not possible to prevent ARM compiler calls to generic intrinsic functions.+  # This library provides the instrinsic functions generated by a given compiler.+  # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.+  #+!if $(TOOL_CHAIN_TAG) != VS2017 and $(TOOL_CHAIN_TAG) != VS2015 and $(TOOL_CHAIN_TAG) != VS2019+  NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf+!endif+  NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf+[LibraryClasses.ARM]+  RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf+[LibraryClasses.RISCV64]+  RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf++[PcdsFixedAtBuild]+  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2+  gEfiNetworkPkgTokenSpaceGuid.PcdDhcp6UidType|0x4diff --git a/NetworkPkg/NetworkPkg.ci.yaml b/NetworkPkg/NetworkPkg.ci.yaml
index 07dc7abd6938..076424eb6065 100644
--- a/NetworkPkg/NetworkPkg.ci.yaml
+++ b/NetworkPkg/NetworkPkg.ci.yaml
@@ -24,6 +24,9 @@
     "CompilerPlugin": {         "DscPath": "NetworkPkg.dsc"     },+    "HostUnitTestCompilerPlugin": {+        "DscPath": "Test/NetworkPkgHostTest.dsc"+    },     "CharEncodingCheck": {         "IgnoreFiles": []     },@@ -35,7 +38,9 @@
             "CryptoPkg/CryptoPkg.dec"         ],         # For host based unit tests-        "AcceptableDependencies-HOST_APPLICATION":[],+        "AcceptableDependencies-HOST_APPLICATION":[+            UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec+        ],         # For UEFI shell based apps         "AcceptableDependencies-UEFI_APPLICATION":[             "ShellPkg/ShellPkg.dec"-- 
2.43.0



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114955): https://edk2.groups.io/g/devel/message/114955
Mute This Topic: https://groups.io/mt/103964977/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-02-01 19:36 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25 21:54 [edk2-devel] [PATCH v2 00/15] Security Patches for EDK II Network Stack Doug Flick via groups.io
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 01/15] NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45230 Patch Doug Flick via groups.io
2024-02-01 19:35   ` Saloni Kasbekar
2024-02-05 13:41   ` bryan-bt.tan via groups.io
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 02/15] NetworkPkg: : Add Unit tests to CI and create Host Test DSC Doug Flick via groups.io
2024-02-01 19:36   ` Saloni Kasbekar [this message]
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 03/15] NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45230 Unit Tests Doug Flick via groups.io
2024-02-01 19:40   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 04/15] NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Patch Doug Flick via groups.io
2024-02-01 19:42   ` Saloni Kasbekar
2024-02-05 13:46   ` bryan-bt.tan via groups.io
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 05/15] NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Unit Tests Doug Flick via groups.io
2024-02-01 19:49   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 06/15] NetworkPkg: Ip6Dxe: SECURITY PATCH CVE-2023-45231 Patch Doug Flick via groups.io
2024-02-01 19:52   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 07/15] NetworkPkg: Ip6Dxe: SECURITY PATCH CVE-2023-45231 Unit Tests Doug Flick via groups.io
2024-02-01 19:59   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 08/15] NetworkPkg: Ip6Dxe: SECURITY PATCH CVE-2023-45232 Patch Doug Flick via groups.io
2024-02-01 20:48   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 09/15] NetworkPkg: Ip6Dxe: SECURITY PATCH CVE-2023-45232 Unit Tests Doug Flick via groups.io
2024-02-01 21:16   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 10/15] NetworkPkg: UefiPxeBcDxe: SECURITY PATCH CVE-2023-45234 Patch Doug Flick via groups.io
2024-02-01 21:22   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 11/15] NetworkPkg: UefiPxeBcDxe: SECURITY PATCH CVE-2023-45234 Unit Tests Doug Flick via groups.io
2024-02-01 21:32   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 12/15] MdePkg: Test: Add gRT_GetTime Google Test Mock Doug Flick via groups.io
2024-01-26 19:52   ` Michael D Kinney
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 13/15] NetworkPkg: UefiPxeBcDxe: SECURITY PATCH CVE-2023-45235 Patch Doug Flick via groups.io
2024-02-01 21:37   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 14/15] NetworkPkg: UefiPxeBcDxe: SECURITY PATCH CVE-2023-45235 Unit Tests Doug Flick via groups.io
2024-02-01 22:03   ` Saloni Kasbekar
2024-01-25 21:54 ` [edk2-devel] [PATCH v2 15/15] NetworkPkg: : Adds a SecurityFix.yaml file Doug Flick via groups.io
2024-02-01 22:18   ` Saloni Kasbekar
2024-01-31  5:22 ` [edk2-devel] 回复: [edk2-stable202402][PATCH v2 00/15] Security Patches for EDK II Network Stack gaoliming via groups.io
     [not found] ` <17AF5718015C1866.16460@groups.io>
2024-02-07 14:26   ` 回复: " gaoliming via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN7PR11MB8281279C1992C9AE8A38EB8CF1432@SN7PR11MB8281.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox