From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 54B9DAC1BEB for ; Thu, 25 Jan 2024 23:06:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=lMVGysz8Bre2sGmBy9KfTpssCDxB6GyBKB14RDPg+qI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706223991; v=1; b=D3LJkP0uuZPyIWHqUkcVUZziCocYy7VqPIHiBdTuUTgr4wAMK9IjdsY2WDaDHRk9DfxByoEZ JKX+fI2u7IMmD7tfiX82IDdR/2AXwB0oCAtKYa/z/coixDN1n3Z9VKwsC78nQM1YKc3vBK9qgdn xOwAZRANO/OAoGfoqLeUzrlo= X-Received: by 127.0.0.2 with SMTP id 5M6wYY7687511xYyJyL8e9sz; Thu, 25 Jan 2024 15:06:31 -0800 X-Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.web11.776.1706223989993277994 for ; Thu, 25 Jan 2024 15:06:30 -0800 X-Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5cedfc32250so4264850a12.0 for ; Thu, 25 Jan 2024 15:06:29 -0800 (PST) X-Gm-Message-State: JwVmV3OC9FsSncxELYXhoW2ex7686176AA= X-Google-Smtp-Source: AGHT+IFdaotrjI+QR+uCXR5Fm+4wYt4h8kT+yh9mMtReWcjsZrg3+RoxuWME5a9SRPVQ8YMhWqP1vw== X-Received: by 2002:a05:6a21:32a4:b0:19a:1656:bc5f with SMTP id yt36-20020a056a2132a400b0019a1656bc5fmr464978pzb.2.1706223989037; Thu, 25 Jan 2024 15:06:29 -0800 (PST) X-Received: from localhost.localdomain ([24.17.138.83]) by smtp.gmail.com with ESMTPSA id jh1-20020a170903328100b001d752c4f180sm16779plb.94.2024.01.25.15.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 15:06:28 -0800 (PST) From: "Doug Flick via groups.io" To: devel@edk2.groups.io Cc: "Douglas Flick [MSFT]" , Saloni Kasbekar , Zachary Clark-williams Subject: [edk2-devel] [PATCH v2 02/15] NetworkPkg: : Add Unit tests to CI and create Host Test DSC Date: Thu, 25 Jan 2024 13:54:44 -0800 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dougflick@microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=D3LJkP0u; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Adds Host Based testing to the NetworkPkg Cc: Saloni Kasbekar Cc: Zachary Clark-williams Signed-off-by: Doug Flick [MSFT] --- 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/Netwo= rkPkgHostTest.dsc new file mode 100644 index 000000000000..1aeca5c5b353 --- /dev/null +++ b/NetworkPkg/Test/NetworkPkgHostTest.dsc @@ -0,0 +1,98 @@ +## @file=0D +# NetworkPkgHostTest DSC file used to build host-based unit tests.=0D +#=0D +# Copyright (c) Microsoft Corporation.
=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +##=0D +[Defines]=0D + PLATFORM_NAME =3D NetworkPkgHostTest=0D + PLATFORM_GUID =3D 3b68324e-fc07-4d49-9520-9347ede65879=0D + PLATFORM_VERSION =3D 0.1=0D + DSC_SPECIFICATION =3D 0x00010005=0D + OUTPUT_DIRECTORY =3D Build/NetworkPkg/HostTest=0D + SUPPORTED_ARCHITECTURES =3D IA32|X64|AARCH64=0D + BUILD_TARGETS =3D NOOPT=0D + SKUID_IDENTIFIER =3D DEFAULT=0D +=0D +!include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D + UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec=0D +=0D +[Components]=0D + #=0D + # Build HOST_APPLICATION that tests NetworkPkg=0D + #=0D +=0D +# Despite these library classes being listed in [LibraryClasses] below, th= ey are not needed for the host-based unit tests.=0D +[LibraryClasses]=0D + NetLib|NetworkPkg/Library/DxeNetLib/DxeNetLib.inf=0D + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf=0D + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf=0D + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf=0D + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf=0D + HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf=0D + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAll= ocationLib.inf=0D + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf=0D + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf=0D + UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntry= Point.inf=0D + UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiA= pplicationEntryPoint.inf=0D + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBoo= tServicesTableLib.inf=0D + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf=0D + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/U= efiRuntimeServicesTableLib.inf=0D + UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServic= esLib.inf=0D + UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManag= erLib.inf=0D + TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplat= e.inf=0D + PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibN= ull.inf=0D + PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeC= offGetEntryPointLib.inf=0D + DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf=0D + DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableL= ib.inf=0D + SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf=0D + RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf=0D + VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf=0D +!ifdef CONTINUOUS_INTEGRATION=0D + BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf=0D + TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf=0D +!else=0D + BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf=0D + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf=0D + TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf=0D +!endif=0D + DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseD= ebugPrintErrorLevelLib.inf=0D + FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf=0D + FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf= =0D + SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf=0D + IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf=0D +=0D +!if $(TOOL_CHAIN_TAG) =3D=3D VS2019 or $(TOOL_CHAIN_TAG) =3D=3D VS2022=0D +[LibraryClasses.X64]=0D + # Provide StackCookie support lib so that we can link to /GS exports for= VS builds=0D + RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf=0D +!endif=0D +=0D +[LibraryClasses.common.UEFI_DRIVER]=0D + HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf=0D + ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeRepor= tStatusCodeLib.inf=0D + DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf=0D +[LibraryClasses.common.UEFI_APPLICATION]=0D + DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf=0D + ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf=0D +[LibraryClasses.ARM, LibraryClasses.AARCH64]=0D + #=0D + # It is not possible to prevent ARM compiler calls to generic intrinsic = functions.=0D + # This library provides the instrinsic functions generated by a given co= mpiler.=0D + # [LibraryClasses.ARM] and NULL mean link this library into all ARM imag= es.=0D + #=0D +!if $(TOOL_CHAIN_TAG) !=3D VS2017 and $(TOOL_CHAIN_TAG) !=3D VS2015 and $(= TOOL_CHAIN_TAG) !=3D VS2019=0D + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf=0D +!endif=0D + NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf=0D +[LibraryClasses.ARM]=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D +[LibraryClasses.RISCV64]=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D +=0D +[PcdsFixedAtBuild]=0D + gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2=0D + gEfiNetworkPkgTokenSpaceGuid.PcdDhcp6UidType|0x4=0D diff --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": {=0D "DscPath": "NetworkPkg.dsc"=0D },=0D + "HostUnitTestCompilerPlugin": {=0D + "DscPath": "Test/NetworkPkgHostTest.dsc"=0D + },=0D "CharEncodingCheck": {=0D "IgnoreFiles": []=0D },=0D @@ -35,7 +38,9 @@ "CryptoPkg/CryptoPkg.dec"=0D ],=0D # For host based unit tests=0D - "AcceptableDependencies-HOST_APPLICATION":[],=0D + "AcceptableDependencies-HOST_APPLICATION":[=0D + UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec=0D + ],=0D # For UEFI shell based apps=0D "AcceptableDependencies-UEFI_APPLICATION":[=0D "ShellPkg/ShellPkg.dec"=0D --=20 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114464): https://edk2.groups.io/g/devel/message/114464 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] -=-=-=-=-=-=-=-=-=-=-=-