Skip to content

Commit

Permalink
TEMP: Staging for HostTest entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Barkelew committed Sep 27, 2020
1 parent 3445751 commit 4ce5210
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
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;
}
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
1 change: 1 addition & 0 deletions UnitTestFrameworkPkg/Test/UnitTestFrameworkPkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf
UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.inf
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.inf
UnitTestFrameworkPkg/Library/HostUnitTestEntryPoint/HostUnitTestEntryPoint.inf
3 changes: 2 additions & 1 deletion UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
],
## Both file path and directory path are accepted.
"IgnoreFiles": [
"Library/CmockaLib/cmocka"
"Library/CmockaLib/cmocka",
"Library/HostUnitTestEntryPoint/HostUnitTestEntryPoint.c"
]
},
## options defined .pytool/Plugin/CompilerPlugin
Expand Down

0 comments on commit 4ce5210

Please sign in to comment.