From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.22023.1669291933939246591 for ; Thu, 24 Nov 2022 04:12:14 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=D1G54eNf; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: yun.lou@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669291934; x=1700827934; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wSDjMJx1l9hYuPGlT2bJJ6EvEzcMZURXUR32iUKg+Ec=; b=D1G54eNfIk9Et0uIIAtqiS9OyQqmcN2pkOiN3bNsbYBo+0bsWdh7lilg mNgqEfZoKE0+RAG3XizH3Z6Xp850UO/klmaqobnS4LgDfkEsmvVBT6Rsa pnZ9dvC+yHacGYBiuhhh2clg4xBN/etAv7E+JXj8gaVJb3x9rrRYW2BcK ZZa/305nOaxHm0g+GkpWwDj6AYrRB/M8MImDQgYFrN5L5zUwb2wK+3rqH XrQILr+u6rvPlX456Fh8Hoz+6fXGHMUJnQMU0YZqWDkIzEFhYHlBVcZwE 4I4UEgyBGEhEBpTNMyKRdMmK3GI2/MQ70B97Vk7r9JklOgqqruNPrjgZM A==; X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="315438911" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="315438911" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 04:12:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="767062400" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="767062400" Received: from shwdeopenlab102.ccr.corp.intel.com ([10.239.56.236]) by orsmga004.jf.intel.com with ESMTP; 24 Nov 2022 04:12:02 -0800 From: "Jason Lou" To: devel@edk2.groups.io Cc: Jason Lou , Ray Ni , Eric Dong , Laszlo Ersek , Rahul Kumar Subject: [PATCH v1 1/2] UefiCpuPkg/Test: Move EfiMpServiceProtocol UT in a separate function Date: Thu, 24 Nov 2022 20:11:57 +0800 Message-Id: <20221124121158.2812-1-yun.lou@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jason Lou Move the implementation of EfiMpServiceProtocol unit tests in a separate function in preparation for developing the UEFI application and dynamic command for the same unit tests. Signed-off-by: Jason Lou Reviewed-by: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolUnit= Test.c | 30 +++++++++++++++----- UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUnitTestCom= mom.h | 2 +- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpService= ProtocolUnitTest.c b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiM= pServiceProtocolUnitTest.c index 57f8ba3c06..5fe6369960 100644 --- a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtoco= lUnitTest.c +++ b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtoco= lUnitTest.c @@ -187,18 +187,16 @@ MpServicesUnitTestWhoAmI ( }=0D =0D /**=0D - Standard DXE driver or UEFI application entry point for unit test execut= ion from DXE or UEFI Shell.=0D - Initialize the unit test framework, suite, and unit tests for the EfiMpS= erviceProtocol and run the unit test.=0D + Initialize the unit test framework, suite and unit tests for the EfiMpSe= rviceProtocol and run the unit tests.=0D =0D - @param[in] ImageHandle The firmware allocated handle for the EFI ima= ge.=0D - @param[in] SystemTable A pointer to the EFI System Table.=0D + @retval EFI_SUCCESS Initialize the unit test framework, suite, uni= t tests and run the unit tests successfully.=0D + @retval Others Initialize the unit test framework, suite, uni= t tests or run the unit tests unsuccessfully.=0D =0D **/=0D EFI_STATUS=0D EFIAPI=0D -DxeEntryPoint (=0D - IN EFI_HANDLE ImageHandle,=0D - IN EFI_SYSTEM_TABLE *SystemTable=0D +EfiMpServiceProtocolUnitTest (=0D + VOID=0D )=0D {=0D EFI_STATUS Status;=0D @@ -242,3 +240,21 @@ EXIT: =0D return Status;=0D }=0D +=0D +/**=0D + Standard DXE driver or UEFI application entry point for unit test execut= ion from DXE or UEFI Shell.=0D + Initialize the unit test framework, suite, and unit tests for the EfiMpS= erviceProtocol and run the unit test.=0D +=0D + @param[in] ImageHandle The firmware allocated handle for the EFI ima= ge.=0D + @param[in] SystemTable A pointer to the EFI System Table.=0D +=0D +**/=0D +EFI_STATUS=0D +EFIAPI=0D +DxeEntryPoint (=0D + IN EFI_HANDLE ImageHandle,=0D + IN EFI_SYSTEM_TABLE *SystemTable=0D + )=0D +{=0D + return EfiMpServiceProtocolUnitTest ();=0D +}=0D diff --git a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpService= sUnitTestCommom.h b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMp= ServicesUnitTestCommom.h index abbbd2faba..d2b1633b4d 100644 --- a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUnitTe= stCommom.h +++ b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUnitTe= stCommom.h @@ -1,5 +1,5 @@ /** @file=0D - Common header file for EfiMpServiceProtocolUnitTest DXE driver.=0D + Common header file for EdkiiPeiMpServices2Ppi and EfiMpServiceProtocol u= nit test.=0D =0D Copyright (c) 2022, Intel Corporation. All rights reserved.
=0D =0D --=20 2.28.0.windows.1