forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEMP: Staging for HostTest entry point
- Loading branch information
Bret Barkelew
committed
Sep 27, 2020
1 parent
3445751
commit 4ce5210
Showing
4 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
UnitTestFrameworkPkg/Library/HostUnitTestEntryPoint/HostUnitTestEntryPoint.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** @file -- HostUnitTestEntryPoint.c | ||
An entry point lib to be consumed by host-based unit tests. | ||
Turns a standard C entry point into one that passes ECC. | ||
Copyright (c) Microsoft Corporation. | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#include <Uefi.h> | ||
|
||
VOID | ||
EFIAPI | ||
UnitTestMain ( | ||
VOID | ||
); | ||
|
||
/** | ||
Standard C entry point. | ||
**/ | ||
INT32 | ||
main ( | ||
VOID | ||
) | ||
{ | ||
UnitTestMain (); | ||
return 0; | ||
} |
25 changes: 25 additions & 0 deletions
25
UnitTestFrameworkPkg/Library/HostUnitTestEntryPoint/HostUnitTestEntryPoint.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## @file HostUnitTestEntryPoint.inf | ||
# An entry point lib to be consumed by host-based unit tests. | ||
# Turns a standard C entry point into one that passes ECC. | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
|
||
|
||
[Defines] | ||
INF_VERSION = 0x00010017 | ||
BASE_NAME = HostUnitTestEntryPoint | ||
# MODULE_UNI_FILE = HostUnitTestEntryPoint.uni | ||
FILE_GUID = 4979EEC0-C671-4132-B6ED-CC9D7C35AE83 | ||
VERSION_STRING = 1.0 | ||
MODULE_TYPE = HOST_APPLICATION | ||
LIBRARY_CLASS = HostUnitTestEntryPoint|HOST_APPLICATION | ||
|
||
|
||
[Sources] | ||
HostUnitTestEntryPoint.c | ||
|
||
|
||
[Packages] | ||
MdePkg/MdePkg.dec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters