Merged PR 5318: Renaming Test apps for consistency and test automation

Renamed all the UEFI shell tests to match `*TestApp.efi`. Renamed the `.inf`s to match.

Built tests and ran on Athos: all tests ran without issue.
This commit is contained in:
Barrett Karstens 2022-05-24 20:28:46 +00:00
Родитель 23fc5240bb
Коммит e9d9572b2c
32 изменённых файлов: 1588 добавлений и 1588 удалений

Просмотреть файл

@ -146,7 +146,7 @@
AdvLoggerPkg/Library/AdvancedLoggerLib/Smm/AdvancedLoggerLib.inf
AdvLoggerPkg/Library/AdvancedLoggerLib/SmmCore/AdvancedLoggerLib.inf
AdvLoggerPkg/Library/AdvLoggerSmmAccessLib/AdvLoggerSmmAccessLib.inf
AdvLoggerPkg/UnitTests/LineParser/LineParserTest.inf
AdvLoggerPkg/UnitTests/LineParser/LineParserTestApp.inf
AdvLoggerPkg/Library/AdvancedLoggerHdwPortLibNull/AdvancedLoggerHdwPortLibNull.inf
AdvLoggerPkg/Library/AdvancedLoggerHdwPortLib/AdvancedLoggerHdwPortLib.inf
AdvLoggerPkg/Library/AdvLoggerSerialPortLib/AdvLoggerSerialPortLib.inf

Просмотреть файл

@ -23,7 +23,7 @@
#
[Sources]
LineParserTest.c
LineParserTestApp.c
[Packages]
MdePkg/MdePkg.dec

Просмотреть файл

@ -23,7 +23,7 @@
#
[Sources]
DeviceIdTest.c
DeviceIdTestApp.c
[Packages]
MdePkg/MdePkg.dec

Просмотреть файл

@ -147,7 +147,7 @@
# MsWheaPkg/Library/MsWheaEarlyStorageLib/MsWheaEarlyStorageLib.inf
MfciPkg/Private/Library/MfciPolicyParsingLibNull/MfciPolicyParsingLibNull.inf
MfciPkg/Private/Library/MfciPolicyParsingLib/MfciPolicyParsingLib.inf
MfciPkg/UnitTests/MfciPolicyParsingUnitTest/MfciPolicyParsingUnitTest.inf
MfciPkg/UnitTests/MfciPolicyParsingUnitTest/MfciPolicyParsingUnitTestApp.inf
[Components.IA32]
# MsWheaPkg/MsWheaReport/Pei/MsWheaReportPei.inf

Просмотреть файл

@ -7,7 +7,7 @@
[Defines]
INF_VERSION = 0x00010017
BASE_NAME = MfciPolicyParsingLibUnitTest
BASE_NAME = MfciPolicyParsingLibUnitTestApp
FILE_GUID = B0F19A87-DA19-44E9-A63C-72D3D9A56614
MODULE_TYPE = UEFI_APPLICATION
VERSION_STRING = 1.0
@ -20,7 +20,7 @@
#
[Sources]
MfciPolicyParsingUnitTest.c
MfciPolicyParsingUnitTestApp.c
[Packages]
MdePkg/MdePkg.dec

Просмотреть файл

@ -45,7 +45,7 @@ Check the **UntTests** folder at the root of the package.
| Library Tests | Link to Documentation |
| --- | --- |
| **Json Test:** | [Json Test](..\UnitTests/JsonTest/ReadMe.md) |
| **MathLib UnitTests:** | [MathLib UnitTests](..\UnitTests/MathLibUnitTests/ReadMe.md) |
| **MathLib UnitTests:** | [MathLib UnitTests](..\UnitTests/MathLibUnitTest/ReadMe.md) |
---

Просмотреть файл

@ -200,7 +200,7 @@
MsCorePkg/Universal/StatusCodeHandler/Serial/Smm/SerialStatusCodeHandlerSmm.inf
MsCorePkg/Universal/StatusCodeHandler/Serial/Smm/SerialStatusCodeHandlerStandaloneMm.inf
MsCorePkg/IncompatiblePciDevices/NoOptionRomsAllowed/NoOptionRomsAllowed.inf
MsCorePkg/UnitTests/MathLibUnitTest/MathLibUnitTest.inf
MsCorePkg/UnitTests/MathLibUnitTest/MathLibUnitTestApp.inf
MsCorePkg/Library/JsonLiteParser/JsonLiteParser.inf
MsCorePkg/UnitTests/JsonTest/JsonTestApp.inf
MsCorePkg/Library/DeviceSpecificBusInfoLibNull/DeviceSpecificBusInfoLibNull.inf

Просмотреть файл

@ -6,7 +6,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "MathLibUnitTests.h"
#include "MathLibUnitTestApp.h"
#include "TestData.h"
#include <Library/MathLib.h>
#include <Library/UnitTestLib.h>

Просмотреть файл

@ -21,7 +21,7 @@
#
[Sources]
MathLibUnitTests.c
MathLibUnitTestApp.c
TestData.h
[Packages]

Просмотреть файл

@ -145,7 +145,7 @@
MsWheaPkg/MsWheaReport/Smm/MsWheaReportStandaloneMm.inf
# Check HWErrRec headers
MsWheaPkg/Test/UnitTests/Library/LibraryClass/CheckHwErrRecHeaderTestsApp.inf
MsWheaPkg/Test/UnitTests/Library/LibraryClass/CheckHwErrRecHeaderTestApp.inf
# Raises Report Status Codes
MsWheaPkg/DummyErrorDriver/DummyErrorDriver.inf

Просмотреть файл

@ -1,4 +1,4 @@
## @file CheckHwErrRecHeaderTestsApp.inf
## @file CheckHwErrRecHeaderTestApp.inf
#
# The CheckHwErrRecHeaderLib test application
#
@ -9,14 +9,14 @@
[Defines]
INF_VERSION = 0x00010006
BASE_NAME = CheckHwErrRecHeaderTestsApp
BASE_NAME = CheckHwErrRecHeaderTestApp
FILE_GUID = df5a6fad-8786-4a9d-9d02-eab39497b4a1
MODULE_TYPE = UEFI_APPLICATION
VERSION_STRING = 1.0
ENTRY_POINT = CheckHwErrRecHeaderTestsEntry
[Sources]
CheckHwErrRecHeaderTestsApp.c
CheckHwErrRecHeaderTestApp.c
[Packages]
MdePkg/MdePkg.dec

Просмотреть файл

@ -32,7 +32,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UnitTestLib.h>
#define UNIT_TEST_APP_NAME "BootAuditTest"
#define UNIT_TEST_APP_NAME "BootAuditTestApp"
#define UNIT_TEST_APP_VERSION "1.0"
typedef struct {

Просмотреть файл

@ -22,7 +22,7 @@
#
[Sources]
BootAuditTest.c
BootAuditTestApp.c
[Packages]
MdePkg/MdePkg.dec

Просмотреть файл

@ -59,19 +59,19 @@ First, for the SMM driver and app you need to add them to your DSC file for your
```text
[Components.X64]
UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditDriver.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditApp.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditTestApp.inf
```
Next, you must add the SMM driver to a firmware volume in your FDF that can dispatch SMM modules.
```text
INF UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditApp.inf
INF UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditTestApp.inf
```
Third, after compiling your new firmware you must:
1. Flash that image on the system.
2. Copy the SmmPagingAuditApp.efi to a USB key
2. Copy the SmmPagingAuditTestApp.efi to a USB key
Then, boot your system running the new firmware to the shell and run the app. The tool will create a set of *.dat files on
the same USB key.
@ -114,22 +114,22 @@ command for detailed script instruction:
6. Double-click the HTML output file and check your results.
#### DxePagingAuditApp
#### DxePagingAuditTestApp
1. Add the following entry to platform dsc file:
```text
[Components.X64]
UefiTestingPkg/AuditTests/PagingAudit/UEFI/DxePagingAuditApp.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/DxePagingAuditTestApp.inf
```
2. Compile the newly added application and copy DxePagingAuditApp.efi to a USB key.
2. Compile the newly added application and copy DxePagingAuditTestApp.efi to a USB key.
3. Boot your system to the shell with the USB plugged in. If the USB disk is `FS0:\`, the files
should be in `FS1:\\`. Copy them to the flash drive:
```cmd
FS0:\
DxePagingAuditApp.efi
DxePagingAuditTestApp.efi
copy FS1:\*.dat FS0:\
```

Просмотреть файл

@ -1,4 +1,4 @@
/** @file -- DxePagingAuditApp.c
/** @file -- DxePagingAuditTestApp.c
This Shell App writes page table and memory map information to SFS.
Copyright (c) Microsoft Corporation.
@ -13,7 +13,7 @@ UINTN mMemoryInfoDatabaseSize = 0;
UINTN mMemoryInfoDatabaseAllocSize = 0;
/**
SmmPagingAuditAppEntryPoint
DxePagingAuditTestAppEntryPoint
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
@ -24,7 +24,7 @@ UINTN mMemoryInfoDatabaseAllocSize = 0;
**/
EFI_STATUS
EFIAPI
PagingAuditDxeAppEntryPoint (
DxePagingAuditTestAppEntryPoint (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
@ -38,4 +38,4 @@ PagingAuditDxeAppEntryPoint (
DEBUG ((DEBUG_ERROR, "%a leave - %r\n", __FUNCTION__, Status));
return EFI_SUCCESS;
} // PagingAuditDxeAppEntryPoint()
} // DxePagingAuditTestAppEntryPoint()

Просмотреть файл

@ -1,4 +1,4 @@
/** @file -- DxePagingAuditApp.c
/** @file -- DxePagingAuditDriver.c
This DXE Driver writes page table and memory map information to SFS when triggered
by an event.
@ -14,7 +14,7 @@ UINTN mMemoryInfoDatabaseSize = 0;
UINTN mMemoryInfoDatabaseAllocSize = 0;
/**
SmmPagingAuditAppEntryPoint
PagingAuditDriverEntryPoint
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.

Просмотреть файл

@ -1,4 +1,4 @@
## @file DxePagingAudit.inf
## @file DxePagingAuditDriver.inf
# This DXE Driver writes page table and memory map information to SFS when triggered
# by an event.
#

Просмотреть файл

@ -1,4 +1,4 @@
## @file DxePagingAudit.inf
## @file DxePagingAuditTestApp.inf
# This Shell App writes page table and memory map information to SFS.
#
##
@ -9,15 +9,15 @@
[Defines]
INF_VERSION = 0x00010017
BASE_NAME = DxePagingAuditApp
BASE_NAME = DxePagingAuditTestApp
FILE_GUID = 5CA3255F-0C91-4C8D-A4CF-36E8BC49D6C4
VERSION_STRING = 1.0
MODULE_TYPE = UEFI_APPLICATION
ENTRY_POINT = PagingAuditDxeAppEntryPoint
ENTRY_POINT = DxePagingAuditTestAppEntryPoint
[Sources]
Dxe/App/DxePagingAuditApp.c
Dxe/App/DxePagingAuditTestApp.c
PagingAuditCommon.c
PagingAuditCommon.h

Просмотреть файл

@ -1,4 +1,4 @@
/** @file -- DxePagingAuditApp.c
/** @file -- DxePagingAuditCommon.c
This DXE Driver writes page table and memory map information to SFS when triggered
by an event.

Просмотреть файл

@ -1,4 +1,4 @@
/** @file -- SmmPagingAuditApp.c
/** @file -- SmmPagingAuditTestApp.c
This user-facing application collects information from the SMM page tables and
writes it to files.
@ -555,7 +555,7 @@ LocateSmmCommonCommBuffer (
} // LocateSmmCommonCommBuffer()
/**
SmmPagingAuditAppEntryPoint
SmmPagingAuditTestAppEntryPoint
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
@ -566,7 +566,7 @@ LocateSmmCommonCommBuffer (
**/
EFI_STATUS
EFIAPI
SmmPagingAuditAppEntryPoint (
SmmPagingAuditTestAppEntryPoint (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
@ -588,4 +588,4 @@ SmmPagingAuditAppEntryPoint (
DEBUG ((DEBUG_INFO, "%a the app's done!\n", __FUNCTION__));
return EFI_SUCCESS;
} // SmmPagingAuditAppEntryPoint()
} // SmmPagingAuditTestAppEntryPoint()

Просмотреть файл

@ -1,5 +1,5 @@
/** @file -- SmmPagingAuditSmm.c
This is the SMM portion of the SmmPagingAuditApp driver.
/** @file -- SmmPagingAuditDriver.c
This is the SMM portion of the SmmPagingAudit driver.
It copies valid entries from the page tables into the communication buffer.
Copyright (c) Microsoft Corporation. All rights reserved.

Просмотреть файл

@ -9,15 +9,15 @@
[Defines]
INF_VERSION = 0x00010017
BASE_NAME = SmmPagingAuditApp
BASE_NAME = SmmPagingAuditTestApp
FILE_GUID = D99AE95E-7BAF-49CF-A57D-9A5BFAC68E0A
VERSION_STRING = 1.0
MODULE_TYPE = UEFI_APPLICATION
ENTRY_POINT = SmmPagingAuditAppEntryPoint
ENTRY_POINT = SmmPagingAuditTestAppEntryPoint
[Sources]
Smm/App/SmmPagingAuditApp.c
Smm/App/SmmPagingAuditTestApp.c
Smm/SmmPagingAuditCommon.h
PagingAuditCommon.c
PagingAuditCommon.h

Просмотреть файл

@ -1,4 +1,4 @@
/** @file -- DxePagingAuditApp.c
/** @file -- PagingAuditProcessor.c
Platform specific memory handler dump function. Handler(s) need to be in compliance
with existed Windows\PagingReportGenerator.py, i.e. TSEG.

Просмотреть файл

@ -119,8 +119,8 @@
# If needed on IA32, should port the functions.
UefiTestingPkg/FunctionalSystemTests/HeapGuardTest/App/HeapGuardTestApp.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/DxePagingAuditDriver.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditApp.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/DxePagingAuditApp.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/SmmPagingAuditTestApp.inf
UefiTestingPkg/AuditTests/PagingAudit/UEFI/DxePagingAuditTestApp.inf
[BuildOptions]
#force deprecated interfaces off

Просмотреть файл

@ -38,8 +38,8 @@
##
# Uefi environment unit tests
##
XmlSupportPkg/Test/UnitTest/XmlTreeLib/XmlTreeLibUnitTestsUefi.inf
XmlSupportPkg/Test/UnitTest/XmlTreeQueryLib/XmlTreeQueryLibUnitTestsUefi.inf {
XmlSupportPkg/Test/UnitTest/XmlTreeLib/XmlTreeLibUnitTestApp.inf
XmlSupportPkg/Test/UnitTest/XmlTreeQueryLib/XmlTreeQueryLibUnitTestApp.inf {
<PcdsFixedAtBuild>
#Turn off Halt on Assert and Print Assert so that libraries can
#be tested in more of a release mode environment