From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=sakar.arora@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 9BF5921B02822 for ; Tue, 6 Nov 2018 00:48:29 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 255F880D; Tue, 6 Nov 2018 00:48:29 -0800 (PST) Received: from u201365.usa.Arm.com (a75592.asiapac.arm.com [10.162.22.94]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C8EE53F5BD; Tue, 6 Nov 2018 00:48:27 -0800 (PST) From: Sakar Arora To: edk2-devel@lists.01.org Cc: Supreeth.Venkatesh@arm.com, prasanth.pulla@arm.com Date: Tue, 6 Nov 2018 14:17:42 +0530 Message-Id: <1541494066-16288-8-git-send-email-sakar.arora@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541494066-16288-1-git-send-email-sakar.arora@arm.com> References: <1541494066-16288-1-git-send-email-sakar.arora@arm.com> Subject: [edk2-test][RFC PATCH 08/12] uefi-sct/SctPkg: sbbr: UEFI Version Verification Test X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 X-List-Received-Date: Tue, 06 Nov 2018 08:48:29 -0000 From: Randy Jones Check if EFI Specification Version is 2.5 or greater. Change-Id: I7a602e52ac833f18dc791ca992f55e1f1996bc60 Signed-off-by: Randy Jones --- uefi-sct/SctPkg/CommonGenFramework.sh | 3 + .../BlackBoxTest/EfiSpecVerLvlBBTest.inf | 84 +++++ .../BlackBoxTest/EfiSpecVerLvlBBTestFunction.c | 130 +++++++ .../BlackBoxTest/EfiSpecVerLvlBBTestFunction.h | 71 ++++ .../BlackBoxTest/EfiSpecVerLvlBBTestMain.c | 127 +++++++ .../BlackBoxTest/EfiSpecVerLvlBBTestMain.h | 84 +++++ .../Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c | 61 ++++ .../Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h | 66 ++++ uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc | 402 +++++++++++---------- 9 files changed, 829 insertions(+), 199 deletions(-) create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h diff --git a/uefi-sct/SctPkg/CommonGenFramework.sh b/uefi-sct/SctPkg/CommonGenFramework.sh index ab35c5a..7058111 100755 --- a/uefi-sct/SctPkg/CommonGenFramework.sh +++ b/uefi-sct/SctPkg/CommonGenFramework.sh @@ -367,6 +367,9 @@ then # UEFI Boot Services - SBBR v1.0 3.4 cp $ProcessorType/SbbrBootServicesBBTest.efi $Framework/Test/ > NUL + # Check if EFI Specification Version is 2.5 or greater + cp $ProcessorType/EfiSpecVerLvlBBTest.efi $Framework/Test/ > NUL + # Runtime Services Tests - SBBR v1.0 Appendix B cp $ProcessorType/VariableServicesBBTest.efi $Framework/Test/ > NUL cp $ProcessorType/TimeServicesBBTest.efi $Framework/Test/ > NUL diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf new file mode 100644 index 0000000..daa4d44 --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf @@ -0,0 +1,84 @@ +# +# The material contained herein is not a license, either +# expressly or impliedly, to any intellectual property owned +# or controlled by any of the authors or developers of this +# material or to any contribution thereto. The material +# contained herein is provided on an "AS IS" basis and, to the +# maximum extent permitted by applicable law, this information +# is provided AS IS AND WITH ALL FAULTS, and the authors and +# developers of this material hereby disclaim all other +# warranties and conditions, either express, implied or +# statutory, including, but not limited to, any (if any) +# implied warranties, duties or conditions of merchantability, +# of fitness for a particular purpose, of accuracy or +# completeness of responses, of results, of workmanlike +# effort, of lack of viruses and of lack of negligence, all +# with regard to this material and any contribution thereto. +# Designers must not rely on the absence or characteristics of +# any features or instructions marked "reserved" or +# "undefined." The Unified EFI Forum, Inc. reserves any +# features or instructions so marked for future definition and +# shall have no responsibility whatsoever for conflicts or +# incompatibilities arising from future changes to them. ALSO, +# THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, +# QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR +# NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY +# CONTRIBUTION THERETO. +# +# IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR +# ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR +# THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST +# PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, +# CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER +# UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY +# WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS +# DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# Copyright 2006 - 2016 Unified EFI, Inc. All +# Rights Reserved, subject to all existing rights in all +# matters included within this Test Suite, to which United +# EFI, Inc. makes no claim of right. +# +# Copyright (c) 2016, ARM Ltd. All rights reserved.
+# +# +#/*++ +# +# Module Name: +# +# EfiSpecVerLvlBBTest.inf +# +# Abstract: +# +# Component description file for SBBR EFI Specification Version Level test. +# +#--*/ + +[Defines] + INF_VERSION = 0x00010019 + BASE_NAME = EfiSpecVerLvlBBTest + FILE_GUID = f865a18a-9b47-420d-97ae-676d8016a513 + MODULE_TYPE = UEFI_DRIVER + VERSION_STRING = 1.0 + ENTRY_POINT = InitializeBBTestEfiSpecVerLvl + +[Sources.common] + EfiSpecVerLvlBBTestFunction.c + EfiSpecVerLvlBBTestMain.c + Guid.c + +[Packages] + ArmPkg/ArmPkg.dec + MdePkg/MdePkg.dec + SctPkg/SctPkg.dec + SctPkg/UEFI/UEFI.dec + +[LibraryClasses] + ArmLib + EfiTestLib + SctLib + UefiDriverEntryPoint + +[Protocols] + gBlackBoxEfiBlockIoProtocolGuid \ No newline at end of file diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c new file mode 100644 index 0000000..3985b4a --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c @@ -0,0 +1,130 @@ +/*++ + The material contained herein is not a license, either + expressly or impliedly, to any intellectual property owned + or controlled by any of the authors or developers of this + material or to any contribution thereto. The material + contained herein is provided on an "AS IS" basis and, to the + maximum extent permitted by applicable law, this information + is provided AS IS AND WITH ALL FAULTS, and the authors and + developers of this material hereby disclaim all other + warranties and conditions, either express, implied or + statutory, including, but not limited to, any (if any) + implied warranties, duties or conditions of merchantability, + of fitness for a particular purpose, of accuracy or + completeness of responses, of results, of workmanlike + effort, of lack of viruses and of lack of negligence, all + with regard to this material and any contribution thereto. + Designers must not rely on the absence or characteristics of + any features or instructions marked "reserved" or + "undefined." The Unified EFI Forum, Inc. reserves any + features or instructions so marked for future definition and + shall have no responsibility whatsoever for conflicts or + incompatibilities arising from future changes to them. ALSO, + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY + CONTRIBUTION THERETO. + + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF + THE POSSIBILITY OF SUCH DAMAGES. + + Copyright 2006 - 2016 Unified EFI, Inc. All + Rights Reserved, subject to all existing rights in all + matters included within this Test Suite, to which United + EFI, Inc. makes no claim of right. + + Copyright (c) 2016, ARM Ltd. All rights reserved.
+ +--*/ +/*++ + +Module Name: + + EfiSpecVerLvlBBTestFunction.c + +Abstract: + + Test case definitions for EfiSpecVerLvl test. + +--*/ + +#include + +#include "EfiSpecVerLvlBBTestMain.h" +#include "Guid.h" +#include "SctLib.h" +#include "EfiSpecVerLvlBBTestFunction.h" + +/** Entrypoint for EFI Specification Version Level Test. + * + * @param This a pointer of EFI_BB_TEST_PROTOCOL. + * @param ClientInterface a pointer to the interface to be tested. + * @param TestLevel test "thoroughness" control. + * @param SupportHandle a handle containing protocols required. + * @return EFI_SUCCESS Finish the test successfully. + */ + +// +// SBBR 3.3.1 +// + +EFI_STATUS +BBTestEfiSpecVerLvlTest ( + IN EFI_BB_TEST_PROTOCOL *This, + IN VOID *ClientInterface, + IN EFI_TEST_LEVEL TestLevel, + IN EFI_HANDLE SupportHandle + ) +{ + + EFI_STANDARD_TEST_LIBRARY_PROTOCOL *StandardLib; + EFI_STATUS Status; + UINTN CurHrRev; + + // Get the Standard Library Interface + Status = gtBS->HandleProtocol ( + SupportHandle, + &gEfiStandardTestLibraryGuid, + (VOID **) &StandardLib + ); + if (EFI_ERROR (Status)) { + return Status; + } + + CurHrRev = gtBS->Hdr.Revision; // Reading revision of the EFI Specification. + + // Check if EFI Specification version is less than 2.5 + if (gtBS->Hdr.Revision < EFI_2_50_SYSTEM_TABLE_REVISION){ + StandardLib->RecordAssertion ( + StandardLib, + EFI_TEST_ASSERTION_FAILED, + gTestGenericFailureGuid, + L"EFI Specification Version is below 2.5", + L"%a:%d:Current EFI Header Rev=0x%X", + __FILE__, + __LINE__, + CurHrRev + ); + return EFI_INCOMPATIBLE_VERSION; + } else { + StandardLib->RecordAssertion ( + StandardLib, + EFI_TEST_ASSERTION_PASSED, + gEfiSpecVerLvlAssertion01Guid, + L"TestEfiSpecVerLvl", + L"%a:%d:Current EFI Header Rev=0x%X", + __FILE__, + __LINE__, + CurHrRev + ); + + return EFI_SUCCESS; + } +} diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h new file mode 100644 index 0000000..0ea7aa7 --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h @@ -0,0 +1,71 @@ +/*++ + The material contained herein is not a license, either + expressly or impliedly, to any intellectual property owned + or controlled by any of the authors or developers of this + material or to any contribution thereto. The material + contained herein is provided on an "AS IS" basis and, to the + maximum extent permitted by applicable law, this information + is provided AS IS AND WITH ALL FAULTS, and the authors and + developers of this material hereby disclaim all other + warranties and conditions, either express, implied or + statutory, including, but not limited to, any (if any) + implied warranties, duties or conditions of merchantability, + of fitness for a particular purpose, of accuracy or + completeness of responses, of results, of workmanlike + effort, of lack of viruses and of lack of negligence, all + with regard to this material and any contribution thereto. + Designers must not rely on the absence or characteristics of + any features or instructions marked "reserved" or + "undefined." The Unified EFI Forum, Inc. reserves any + features or instructions so marked for future definition and + shall have no responsibility whatsoever for conflicts or + incompatibilities arising from future changes to them. ALSO, + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY + CONTRIBUTION THERETO. + + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF + THE POSSIBILITY OF SUCH DAMAGES. + + Copyright 2006 - 2016 Unified EFI, Inc. All + Rights Reserved, subject to all existing rights in all + matters included within this Test Suite, to which United + EFI, Inc. makes no claim of right. + + Copyright (c) 2016, ARM Ltd. All rights reserved.
+ +--*/ +/*++ + +Module Name: + + EfiSpecVerLvlBBTestFunction.h + +Abstract: + + Contains definitions and prototypes used in the test functions. + +--*/ + +#ifndef _EFISPECVERLVL_BB_TEST_FUNCTION_H_ +#define _EFISPECVERLVL_BB_TEST_FUNCTION_H_ + +#include + +EFI_STATUS +BBTestEfiSpecVerLvlTest ( + IN EFI_BB_TEST_PROTOCOL *This, + IN VOID *ClientInterface, + IN EFI_TEST_LEVEL TestLevel, + IN EFI_HANDLE SupportHandle + ); + +#endif /* _EFISPECVERLVL_BB_TEST_FUNCTION_H_ */ diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c new file mode 100644 index 0000000..754644c --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c @@ -0,0 +1,127 @@ +/*++ + The material contained herein is not a license, either + expressly or impliedly, to any intellectual property owned + or controlled by any of the authors or developers of this + material or to any contribution thereto. The material + contained herein is provided on an "AS IS" basis and, to the + maximum extent permitted by applicable law, this information + is provided AS IS AND WITH ALL FAULTS, and the authors and + developers of this material hereby disclaim all other + warranties and conditions, either express, implied or + statutory, including, but not limited to, any (if any) + implied warranties, duties or conditions of merchantability, + of fitness for a particular purpose, of accuracy or + completeness of responses, of results, of workmanlike + effort, of lack of viruses and of lack of negligence, all + with regard to this material and any contribution thereto. + Designers must not rely on the absence or characteristics of + any features or instructions marked "reserved" or + "undefined." The Unified EFI Forum, Inc. reserves any + features or instructions so marked for future definition and + shall have no responsibility whatsoever for conflicts or + incompatibilities arising from future changes to them. ALSO, + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY + CONTRIBUTION THERETO. + + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF + THE POSSIBILITY OF SUCH DAMAGES. + + Copyright 2006 - 2016 Unified EFI, Inc. All + Rights Reserved, subject to all existing rights in all + matters included within this Test Suite, to which United + EFI, Inc. makes no claim of right. + + Copyright (c) 2016, ARM Ltd. All rights reserved.
+ +--*/ +/*++ + +Module Name: + + EfiSpecVerLvlBBTestMain.c + +Abstract: + + Test driver for SBBR system environment configuration tests. + +--*/ + +#include "SctLib.h" +#include "EfiSpecVerLvlBBTestFunction.h" +#include "EfiSpecVerLvlBBTestMain.h" + +EFI_BB_TEST_PROTOCOL_FIELD gBBTestProtocolField = { + EFISPECVERLVL_TEST_REVISION, + EFISPECVERLVL_TEST_GUID, + L"SBBR UEFI Specification Version Level Test", + L"Check the UEFI Specification Version Level to make sure it conforms to ARM SBBR." +}; + +EFI_GUID gSupportProtocolGuid[2] = { + EFI_STANDARD_TEST_LIBRARY_GUID, + EFI_NULL_GUID +}; + +EFI_BB_TEST_ENTRY_FIELD gBBTestEntryField[] = { + { + EFISPECVERLVL_GUID, + L"TestEfiSpecVerLvl", + L"Check the EFI Specification Version Level.", + EFI_TEST_LEVEL_DEFAULT, + gSupportProtocolGuid, + EFI_TEST_CASE_AUTO, + BBTestEfiSpecVerLvlTest + }, + EFI_NULL_GUID +}; + +EFI_BB_TEST_PROTOCOL *gBBTestProtocolInterface; + +/** The driver's Unload function. + * @param ImageHandle The test driver image handle + * @return EFI_SUCCESS Indicates the interface was uninstalled +*/ +EFI_STATUS +BBTestEfiSpecVerLvlUnload ( + IN EFI_HANDLE ImageHandle + ) +{ + return EfiUninstallAndFreeBBTestInterface ( + ImageHandle, + gBBTestProtocolInterface + ); +} + +/** Creates/installs the BlackBox Interface and emanating Entry Point node list. + * @param ImageHandle The test driver image handle + * @param SystemTable Pointer to System Table + * @return EFI_SUCCESS Indicates the interface was installed + * @return EFI_OUT_OF_RESOURCES Indicates space for the new handle could not be allocated + * @return EFI_INVALID_PARAMETER One of the parameters has an invalid value. + */ +EFI_STATUS +InitializeBBTestEfiSpecVerLvl ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + + EfiInitializeTestLib (ImageHandle, SystemTable); + + return EfiInitAndInstallBBTestInterface ( + &ImageHandle, + &gBBTestProtocolField, + gBBTestEntryField, + BBTestEfiSpecVerLvlUnload, + &gBBTestProtocolInterface + ); +} diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h new file mode 100644 index 0000000..49fd7bb --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h @@ -0,0 +1,84 @@ +/*++ + The material contained herein is not a license, either + expressly or impliedly, to any intellectual property owned + or controlled by any of the authors or developers of this + material or to any contribution thereto. The material + contained herein is provided on an "AS IS" basis and, to the + maximum extent permitted by applicable law, this information + is provided AS IS AND WITH ALL FAULTS, and the authors and + developers of this material hereby disclaim all other + warranties and conditions, either express, implied or + statutory, including, but not limited to, any (if any) + implied warranties, duties or conditions of merchantability, + of fitness for a particular purpose, of accuracy or + completeness of responses, of results, of workmanlike + effort, of lack of viruses and of lack of negligence, all + with regard to this material and any contribution thereto. + Designers must not rely on the absence or characteristics of + any features or instructions marked "reserved" or + "undefined." The Unified EFI Forum, Inc. reserves any + features or instructions so marked for future definition and + shall have no responsibility whatsoever for conflicts or + incompatibilities arising from future changes to them. ALSO, + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY + CONTRIBUTION THERETO. + + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF + THE POSSIBILITY OF SUCH DAMAGES. + + Copyright 2006 - 2016 Unified EFI, Inc. All + Rights Reserved, subject to all existing rights in all + matters included within this Test Suite, to which United + EFI, Inc. makes no claim of right. + + Copyright (c) 2016, ARM Ltd. All rights reserved.
+ +--*/ +/*++ + +Module Name: + + EfiSpecVerLvlBBTestMain.h + +Abstract: + + Contains definitions for test information and test GUIDs. + +--*/ + +#ifndef _EFISPECVERLVL_TEST_MAIN_H_ +#define _EFISPECVERLVL_TEST_MAIN_H_ + +#include "Efi.h" +#include + + +#define EFISPECVERLVL_TEST_REVISION 0x00010000 + +#define EFISPECVERLVL_TEST_GUID \ + {0xd6e40d12, 0x7a51, 0x4454, {0xb4, 0xfd, 0x4c, 0x93, 0x88, 0x7e, 0xd6, 0xcf}} + +EFI_STATUS +InitializeBBTestEfiSpecVerLvl ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ); + +// +// Entry GUIDs +// + +#define EFISPECVERLVL_GUID \ + {0x6e46b2e2, 0x2535, 0x4c8e, {0x82, 0x5a, 0x84, 0x5d, 0xc2, 0xbe, 0xed, 0xdf}} + + +#endif /* _EFISPECVERLVL_TEST_MAIN_H_ */ diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c new file mode 100644 index 0000000..52c6d90 --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c @@ -0,0 +1,61 @@ +/*++ + The material contained herein is not a license, either + expressly or impliedly, to any intellectual property owned + or controlled by any of the authors or developers of this + material or to any contribution thereto. The material + contained herein is provided on an "AS IS" basis and, to the + maximum extent permitted by applicable law, this information + is provided AS IS AND WITH ALL FAULTS, and the authors and + developers of this material hereby disclaim all other + warranties and conditions, either express, implied or + statutory, including, but not limited to, any (if any) + implied warranties, duties or conditions of merchantability, + of fitness for a particular purpose, of accuracy or + completeness of responses, of results, of workmanlike + effort, of lack of viruses and of lack of negligence, all + with regard to this material and any contribution thereto. + Designers must not rely on the absence or characteristics of + any features or instructions marked "reserved" or + "undefined." The Unified EFI Forum, Inc. reserves any + features or instructions so marked for future definition and + shall have no responsibility whatsoever for conflicts or + incompatibilities arising from future changes to them. ALSO, + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY + CONTRIBUTION THERETO. + + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF + THE POSSIBILITY OF SUCH DAMAGES. + + Copyright 2006 - 2016 Unified EFI, Inc. All + Rights Reserved, subject to all existing rights in all + matters included within this Test Suite, to which United + EFI, Inc. makes no claim of right. + + Copyright (c) 2016, ARM Ltd. All rights reserved.
+ +--*/ +/*++ + +Module Name: + + Guid.c + +Abstract: + + GUID assignments for test progress assertions. + +--*/ + +#include "Efi.h" +#include "Guid.h" + +EFI_GUID gEfiSpecVerLvlAssertion01Guid = EFISPECVERLVL_ASSERTION_001_GUID; diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h new file mode 100644 index 0000000..b554961 --- /dev/null +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h @@ -0,0 +1,66 @@ +/*++ + The material contained herein is not a license, either + expressly or impliedly, to any intellectual property owned + or controlled by any of the authors or developers of this + material or to any contribution thereto. The material + contained herein is provided on an "AS IS" basis and, to the + maximum extent permitted by applicable law, this information + is provided AS IS AND WITH ALL FAULTS, and the authors and + developers of this material hereby disclaim all other + warranties and conditions, either express, implied or + statutory, including, but not limited to, any (if any) + implied warranties, duties or conditions of merchantability, + of fitness for a particular purpose, of accuracy or + completeness of responses, of results, of workmanlike + effort, of lack of viruses and of lack of negligence, all + with regard to this material and any contribution thereto. + Designers must not rely on the absence or characteristics of + any features or instructions marked "reserved" or + "undefined." The Unified EFI Forum, Inc. reserves any + features or instructions so marked for future definition and + shall have no responsibility whatsoever for conflicts or + incompatibilities arising from future changes to them. ALSO, + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY + CONTRIBUTION THERETO. + + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF + THE POSSIBILITY OF SUCH DAMAGES. + + Copyright 2006 - 2016 Unified EFI, Inc. All + Rights Reserved, subject to all existing rights in all + matters included within this Test Suite, to which United + EFI, Inc. makes no claim of right. + + Copyright (c) 2016, ARM Ltd. All rights reserved.
+ +--*/ +/*++ + +Module Name: + + Guid.h + +Abstract: + + Definitions of GUIDs used for test progress assertions. + +--*/ + +#ifndef _EFISPECVERSION_GUID_H_ +#define _EFISPECVERSION_GUID_H_ + +#define EFISPECVERLVL_ASSERTION_001_GUID \ +{0x14932290, 0x563b, 0x4d20, {0x95, 0xa7, 0xee, 0xc0, 0x2d, 0xbb, 0x1b, 0x13}} + +extern EFI_GUID gEfiSpecVerLvlAssertion01Guid; + +#endif /* _EFISPECVERSION_GUID_H_ */ diff --git a/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc b/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc index d3fafb6..931b8da 100644 --- a/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc +++ b/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc @@ -1,190 +1,192 @@ -# -# The material contained herein is not a license, either -# expressly or impliedly, to any intellectual property owned -# or controlled by any of the authors or developers of this -# material or to any contribution thereto. The material -# contained herein is provided on an "AS IS" basis and, to the -# maximum extent permitted by applicable law, this information -# is provided AS IS AND WITH ALL FAULTS, and the authors and -# developers of this material hereby disclaim all other -# warranties and conditions, either express, implied or -# statutory, including, but not limited to, any (if any) -# implied warranties, duties or conditions of merchantability, -# of fitness for a particular purpose, of accuracy or -# completeness of responses, of results, of workmanlike -# effort, of lack of viruses and of lack of negligence, all -# with regard to this material and any contribution thereto. -# Designers must not rely on the absence or characteristics of -# any features or instructions marked "reserved" or -# "undefined." The Unified EFI Forum, Inc. reserves any -# features or instructions so marked for future definition and -# shall have no responsibility whatsoever for conflicts or -# incompatibilities arising from future changes to them. ALSO, -# THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, -# QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR -# NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY -# CONTRIBUTION THERETO. -# -# IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR -# ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR -# THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST -# PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, -# CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER -# UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY -# WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS -# DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF -# THE POSSIBILITY OF SUCH DAMAGES. -# -# Copyright 2006 - 2016 Unified EFI, Inc. All -# Rights Reserved, subject to all existing rights in all -# matters included within this Test Suite, to which United -# EFI, Inc. makes no claim of right. -# -# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
-# -# -#/*++ -# -# Module Name: -# -# SBBR_SCT.dsc -# -# Abstract: -# -# This is a build description file used to build the test modules of SBBR SCT. -# -# Notes: -# -# The info in this file is broken down into sections. The start of a section -# is designated by a "[" in the first column. So the [=====] separater ends -# a section. -# -#--*/ - -################################################################################ -# -# Defines Section - statements that will be processed to create a Makefile. -# -################################################################################ -[Defines] - PLATFORM_NAME = SbbrSct - PLATFORM_GUID = d513138b-9d4a-479c-8058-4a5160018663 - PLATFORM_VERSION = 0.1 - DSC_SPECIFICATION = 0x00010005 - OUTPUT_DIRECTORY = Build/SbbrSct - SUPPORTED_ARCHITECTURES = AARCH64 - BUILD_TARGETS = DEBUG|RELEASE - SKUID_IDENTIFIER = DEFAULT - - DEFINE GCC_VER_MACRO = -D EFI_SPECIFICATION_VERSION=0x00020028 -D TIANO_RELEASE_VERSION=0x00080006 - DEFINE MSFT_VER_MACRO = /D EFI_SPECIFICATION_VERSION=0x00020028 /D TIANO_RELEASE_VERSION=0x00080006 - - -################################################################################ -# -# SKU Identification section - list of all SKU IDs supported by this -# Platform. -# -################################################################################ -[SkuIds] - 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required. - -[BuildOptions] - *_*_AARCH64_CC_FLAGS = -D EFIAARCH64 -I$(WORKSPACE)/MdePkg/Include/AArch64 $(GCC_VER_MACRO) - GCC:*_*_AARCH64_CC_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) -ffreestanding -nostdinc -nostdlib -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error - *_*_AARCH64_VFRPP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) - *_*_AARCH64_APP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) - *_*_AARCH64_PP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) - RVCT:*_*_AARCH64_DLINK_FLAGS = --muldefweak - - DEBUG_*_*_CC_FLAGS = -DEFI_DEBUG - RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG - -[Libraries] - SctPkg/Library/SctLib/SctLib.inf - SctPkg/Library/SctGuidLib/SctGuidLib.inf - SctPkg/Library/EfiTestLib/EfiTestLib.inf - - SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf - - MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf - -[Libraries.ARM] - ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf - -[Libraries.AARCH64] - ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf - -[LibraryClasses.common] - UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf - UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf - UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf - BaseLib|MdePkg/Library/BaseLib/BaseLib.inf - BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf - DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf - PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf - MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf - UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf - UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf - HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf - PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf - UefiLib|MdePkg/Library/UefiLib/UefiLib.inf - DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf - - SctLib|SctPkg/Library/SctLib/SctLib.inf - NetLib|SctPkg/Library/NetLib/NetLib.inf - EntsLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf - EasLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasDispatcher/Eas.inf - EfiTestLib|SctPkg/Library/EfiTestLib/EfiTestLib.inf - -[LibraryClasses.ARM] - NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf - -[LibraryClasses.AARCH64] - NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf +# +# The material contained herein is not a license, either +# expressly or impliedly, to any intellectual property owned +# or controlled by any of the authors or developers of this +# material or to any contribution thereto. The material +# contained herein is provided on an "AS IS" basis and, to the +# maximum extent permitted by applicable law, this information +# is provided AS IS AND WITH ALL FAULTS, and the authors and +# developers of this material hereby disclaim all other +# warranties and conditions, either express, implied or +# statutory, including, but not limited to, any (if any) +# implied warranties, duties or conditions of merchantability, +# of fitness for a particular purpose, of accuracy or +# completeness of responses, of results, of workmanlike +# effort, of lack of viruses and of lack of negligence, all +# with regard to this material and any contribution thereto. +# Designers must not rely on the absence or characteristics of +# any features or instructions marked "reserved" or +# "undefined." The Unified EFI Forum, Inc. reserves any +# features or instructions so marked for future definition and +# shall have no responsibility whatsoever for conflicts or +# incompatibilities arising from future changes to them. ALSO, +# THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, +# QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR +# NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY +# CONTRIBUTION THERETO. +# +# IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR +# ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR +# THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST +# PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, +# CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER +# UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY +# WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS +# DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF +# THE POSSIBILITY OF SUCH DAMAGES. +# +# Copyright 2006 - 2016 Unified EFI, Inc. All +# Rights Reserved, subject to all existing rights in all +# matters included within this Test Suite, to which United +# EFI, Inc. makes no claim of right. +# +# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
+# +# Copyright (c) 2016, ARM Ltd. All rights reserved.
+# +# +#/*++ +# +# Module Name: +# +# SBBR_SCT.dsc +# +# Abstract: +# +# This is a build description file used to build the test modules of SBBR SCT. +# +# Notes: +# +# The info in this file is broken down into sections. The start of a section +# is designated by a "[" in the first column. So the [=====] separater ends +# a section. +# +#--*/ + +################################################################################ +# +# Defines Section - statements that will be processed to create a Makefile. +# +################################################################################ +[Defines] + PLATFORM_NAME = SbbrSct + PLATFORM_GUID = d513138b-9d4a-479c-8058-4a5160018663 + PLATFORM_VERSION = 0.1 + DSC_SPECIFICATION = 0x00010005 + OUTPUT_DIRECTORY = Build/SbbrSct + SUPPORTED_ARCHITECTURES = AARCH64 + BUILD_TARGETS = DEBUG|RELEASE + SKUID_IDENTIFIER = DEFAULT + + DEFINE GCC_VER_MACRO = -D EFI_SPECIFICATION_VERSION=0x00020028 -D TIANO_RELEASE_VERSION=0x00080006 + DEFINE MSFT_VER_MACRO = /D EFI_SPECIFICATION_VERSION=0x00020028 /D TIANO_RELEASE_VERSION=0x00080006 + + +################################################################################ +# +# SKU Identification section - list of all SKU IDs supported by this +# Platform. +# +################################################################################ +[SkuIds] + 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required. + +[BuildOptions] + *_*_AARCH64_CC_FLAGS = -D EFIAARCH64 -I$(WORKSPACE)/MdePkg/Include/AArch64 $(GCC_VER_MACRO) + GCC:*_*_AARCH64_CC_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) -ffreestanding -nostdinc -nostdlib -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error + *_*_AARCH64_VFRPP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) + *_*_AARCH64_APP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) + *_*_AARCH64_PP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) + RVCT:*_*_AARCH64_DLINK_FLAGS = --muldefweak + + DEBUG_*_*_CC_FLAGS = -DEFI_DEBUG + RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG + +[Libraries] + SctPkg/Library/SctLib/SctLib.inf + SctPkg/Library/SctGuidLib/SctGuidLib.inf + SctPkg/Library/EfiTestLib/EfiTestLib.inf + + SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf + + MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + +[Libraries.ARM] + ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf + +[Libraries.AARCH64] + ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf + +[LibraryClasses.common] + UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf + UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf + UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf + HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + + SctLib|SctPkg/Library/SctLib/SctLib.inf + NetLib|SctPkg/Library/NetLib/NetLib.inf + EntsLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf + EasLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasDispatcher/Eas.inf + EfiTestLib|SctPkg/Library/EfiTestLib/EfiTestLib.inf + +[LibraryClasses.ARM] + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf + +[LibraryClasses.AARCH64] + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf - -############################################################################### -# -# These are the components that will be built by the master makefile -# -############################################################################### - -[Components] - -# -# The default package -# -DEFINE PACKAGE=Default - -# -# Components -# - -# -# Following are the SCT suite & related drivers -# - -SctPkg/TestInfrastructure/SCT/Framework/Sct.inf -SctPkg/TestInfrastructure/SCT/Drivers/StandardTest/StandardTest.inf -SctPkg/TestInfrastructure/SCT/Drivers/TestProfile/TestProfile.inf -SctPkg/TestInfrastructure/SCT/Drivers/TestRecovery/TestRecovery.inf -SctPkg/TestInfrastructure/SCT/Drivers/TestLogging/TestLogging.inf - -# -# Related SCT applications -# - -SctPkg/Application/InstallSct/InstallSct.inf -SctPkg/Application/StallForKey/StallForKey.inf - -SctPkg/SCRT/SCRTApp/SCRTApp.inf -SctPkg/SCRT/SCRTDriver/SCRTDriver.inf - -# -# Test cases for SBBR SCT -# - + +############################################################################### +# +# These are the components that will be built by the master makefile +# +############################################################################### + +[Components] + +# +# The default package +# +DEFINE PACKAGE=Default + +# +# Components +# + +# +# Following are the SCT suite & related drivers +# + +SctPkg/TestInfrastructure/SCT/Framework/Sct.inf +SctPkg/TestInfrastructure/SCT/Drivers/StandardTest/StandardTest.inf +SctPkg/TestInfrastructure/SCT/Drivers/TestProfile/TestProfile.inf +SctPkg/TestInfrastructure/SCT/Drivers/TestRecovery/TestRecovery.inf +SctPkg/TestInfrastructure/SCT/Drivers/TestLogging/TestLogging.inf + +# +# Related SCT applications +# + +SctPkg/Application/InstallSct/InstallSct.inf +SctPkg/Application/StallForKey/StallForKey.inf + +SctPkg/SCRT/SCRTApp/SCRTApp.inf +SctPkg/SCRT/SCRTDriver/SCRTDriver.inf + +# +# Test cases for SBBR SCT +# + # Boot Services Tests - SBBR v1.0 Appendix A # ## 1. EFI_RAISE_TPL @@ -239,13 +241,15 @@ SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServ ## 42. EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES SctPkg/TestCase/UEFI/EFI/BootServices/ProtocolHandlerServices/BlackBoxTest/ProtocolHandlerBBTest.inf # End of Boot Services Tests - SBBR v1.0 Appendix A - -# + +# # UEFI System Environment and Configuration Tests - SBBR v1.0 3.3 # SctPkg/TestCase/UEFI/EFI/Generic/SbbrSysEnvConfig/BlackBoxTest/SysEnvConfigBBTest.inf #End of UEFI System Environment and Configuration Tests - SBBR v1.0 3.3 - +# +# Check if EFI Specification Version is 2.5 or greater +SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf # # UEFI Boot Services - SBBR v1.0 3.4 # @@ -286,13 +290,13 @@ SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompliantBBTest_ue # End of UEFI Required Protocols Tests - SBBR Appendix C # -# Dependency files -# - -# -# Support Files -# -SctPkg/TestInfrastructure/SCT/Framework/ENTS/Eftp/Eftp.inf -SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/SerialMonitor/SerialMonitor.inf -SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/ManagedNetworkMonitor/ManagedNetworkMonitor.inf -SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/IP4NetworkMonitor/IP4NetworkMonitor.inf +# Dependency files +# + +# +# Support Files +# +SctPkg/TestInfrastructure/SCT/Framework/ENTS/Eftp/Eftp.inf +SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/SerialMonitor/SerialMonitor.inf +SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/ManagedNetworkMonitor/ManagedNetworkMonitor.inf +SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/IP4NetworkMonitor/IP4NetworkMonitor.inf -- 2.7.4