Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing pipeline for Host Unittest #193

Open
wants to merge 387 commits into
base: edk2-ci
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
387 commits
Select commit Hold shift + click to select a range
d24b066
Mostly through documentation. Progress checkpoint.
Nov 22, 2019
19fbb7b
Finish the documentation.
Nov 22, 2019
9749008
TEMP: Workaround edk2toolext problem.
Nov 22, 2019
e0f8261
BaseTools:fix regression issue for platform .map file
zhijufan Nov 22, 2019
290a485
StandaloneMmPkg: Fix build failure - Bug 2253
samimujawar Nov 25, 2019
bbb5b0d
MdeModulePkg/Variable: Initialize local variable "Variable"
Nov 21, 2019
bd85bf5
MdeModulePkg/Variable: Initialize local variable "RtPtrTrack"
Nov 21, 2019
fe6142f
MdeModulePkg/VariableSmmRuntimeDxe.inf: list local header "Variable.h"
lersek Nov 21, 2019
b49a6c8
CryptoPkg/OpensslLib: improve INF file consistency
lersek Nov 21, 2019
4d613fe
CryptoPkg/OpensslLib.inf: list OpenSSL local header "ms/uplink.h"
lersek Nov 21, 2019
4f47eaf
NetworkPkg: Fixes to static code analysis hits
Nov 28, 2019
46f6752
MdeModulePkg/MdeModulePkg.uni: Add missing strings for PCD
shenglei10 Nov 13, 2019
0844a16
NetworkPkg/NetworkPkg.uni: Add missing strings for PCD
shenglei10 Nov 14, 2019
0a58c9a
UefiCpuPkg/UefiCpuPkg.uni: Add missing strings for PCD
shenglei10 Nov 14, 2019
9c33f16
UefiCpuPkg: Update the coding styles
shenglei10 Nov 14, 2019
c8ff8e0
BaseTools:Enhance the way to handling included dsc file
zhijufan Dec 3, 2019
6cc63ae
MdeModulePkg: LzmaCustomDecompressLib.inf don't support EBC anymore
LiuZhiguang001 Dec 4, 2019
c9416ef
MdeModulePkg: Add ARM/Aarch64 support which were missing
LiuZhiguang001 Dec 4, 2019
d5cf0fb
ShellPkg: acpiview: Add support for parsing FACS
samimujawar Nov 22, 2019
965dbf9
ShellPkg: acpiview: IORT Spec Rev D updates
samimujawar Nov 25, 2019
2926498
ShellPkg/edit: typo "%d Lines Wrote"
xypron Nov 24, 2019
94d4efb
ShellPkg/UefiHandleParsingLib: Fix error allocate pool
ZhichaoGao Jul 15, 2019
0f9395d
ArmPkg: Dispatch deferred images after EndOfDxe
samimujawar Apr 11, 2019
e8b9296
.pytool: Avoid "is" with a literal Python 3.8 warnings in CI plugins
philmd Dec 5, 2019
490a62b
BaseTools: Avoid "is" with a literal Python 3.8 warnings
philmd Dec 5, 2019
9caaa79
UefiCpuPkg/PiSmmCpuDxeSmm: Avoid allocate Token every time
ydong10 Dec 6, 2019
62a7565
EmbeddedPkg/NonCoherentDmaLib: implement support for DMA range limits
Nov 21, 2019
49054b6
EmbeddedPkg: implement EDK2 IoMmu protocol wrapping DmaLib
Nov 21, 2019
804666c
Maintainers: assume co-maintainership of StandaloneMmPkg
Dec 6, 2019
13c5e34
BaseTools: Add build option for dependency file generation
BobCF Dec 2, 2019
e6edbe3
BaseTools: Generate dependent files for ASL and ASM files
BobCF Nov 20, 2019
cb27781
BaseTools: Update build_rule.txt to generate dependent files.
BobCF Dec 2, 2019
0c3e8e9
BaseTools: Enhance Basetool for incremental build
BobCF Nov 20, 2019
91f6c53
BaseTools: store more complete output files in binary cache
shijunjing Oct 21, 2019
3bfbc91
BaseTools: enhance the CacheCopyFile method arg names
shijunjing Oct 21, 2019
fc8b8de
BaseTools: Leverage compiler output to optimize binary cache
shijunjing Nov 19, 2019
a80032d
BaseTools: Remove redundant binary cache file
shijunjing Nov 19, 2019
7e55cf6
SecurityPkg/Tcg2Smm: Measure the table before patch.
jyao1 Dec 7, 2019
97eedf5
IntelFsp2WrapperPkg: Fix various typos
Coeur Dec 4, 2019
d39d126
MdeModulePkg PeiCore: Fix typos
makubacki Nov 21, 2019
d3add11
MdeModulePkg PeiCore: Improve comment semantics
makubacki Nov 21, 2019
2fe25a7
ArmPkg/MmCommunicationDxe: relay architected PI events to MM context
Mar 5, 2019
bfb141c
MdePkg/Include: Add DCC and BCM2835 SPCR UART types
pbatard Dec 10, 2019
8af0e76
Convert all strings from Unicode to ASCII.
Dec 12, 2019
d706274
Swap MD5 for CRC32. Hopefully good enough for a fingerprint.
Dec 13, 2019
f88bd23
Remove unnecessary pragmas.
Dec 13, 2019
150b758
Move the UnitTestPkg dependency to HOST-APPLICATION only.
Dec 13, 2019
58297b6
Move all HostLibrary files into the Test directory.
Dec 13, 2019
74913ff
Move the Test DSC into the Test directory.
Dec 13, 2019
40bf9d3
Drop extraneous package name strings. Can be assembled in the report …
Dec 13, 2019
66aac12
Change all Fws into Frameworks.
Dec 14, 2019
b4a8a27
Changes to build on GCC.
Dec 14, 2019
7f752fc
Drop an accidental change that should have never made it in.
Dec 14, 2019
78fb6b0
BaseTools: Fix build failure when multiple build targets given
BobCF Dec 11, 2019
69ebe82
BaseTools:replaces the two offending quotes by ascii quotes
zhijufan Dec 17, 2019
c5d6a57
Maintainers.txt: Update email address and role
Dec 11, 2019
01b6090
BaseTools: Resolve a issue of Incremental build
BobCF Dec 16, 2019
d2e70c3
Change the name of the UnitTestPkg to UnitTestFrameworkPkg.
Dec 18, 2019
233bf98
Prepare for the big move.
Dec 18, 2019
1c70c99
Add Cmocka as a submodule.
Dec 18, 2019
b7e4054
Drop EDK2_TEST as a CI dependency.
Dec 18, 2019
459ed82
Add Cmocka as a RequiredSubmodule.
Dec 18, 2019
163e40e
Settle on an idea for the TerminationLib.
Dec 18, 2019
764386d
Shuffle some more things around. Need to do some build testing.
Dec 19, 2019
c7a0aca
MdePkg/Spdm: fix Nonce structure error.
jyao1 Dec 18, 2019
95bb203
ShellPkg/ShellProtocol: Return error code while fail parsing cmd-line
ZhichaoGao Nov 29, 2019
09816e2
TestBaseSafeIntLib builds again.
Dec 19, 2019
42cabb6
Clean up a few more interfaces.
Dec 19, 2019
af9d862
DSC and DEC issues are resolved. Need to get build working.
Dec 19, 2019
665afcc
MdePkg PciExpress21: PCI_REG_PCIE_DEVICE_CONTROL2 struct has 17 bits
dbanasze Dec 17, 2019
16acc61
Everything builds again! Only a few things left to check.
Dec 20, 2019
ec4bd55
Clarify sizes and update the way the dynamic structure elements are d…
Dec 20, 2019
796b380
MdePkg: Use __builtin_offset with CLANGPDB toolchain
al3xtjames Nov 28, 2019
ec8c74e
MdePkg/Tcg: Add new definition in TCG PFP spec.
jyao1 Dec 18, 2019
33daa3c
Move the public files into the public.
Dec 20, 2019
c315c52
Expose the LogLib dependency.
Dec 20, 2019
09cf334
Fix the LogLib dependency.
Dec 20, 2019
bf92129
Clean up one last thing about how the Size works.
Dec 20, 2019
6e9c3b0
Add documentation for building a single test.
Dec 20, 2019
caa9174
edksetup.bat stuck on unicode locale Windows
Dec 20, 2019
a457823
UefiCpuPkg/PiSmmCpuDxeSmm: Remove dependence between APs
ydong10 Dec 23, 2019
123b720
UefiCpuPkg/PiSmmCpuDxeSmm: Fix buffer overflow issue.
ydong10 Dec 23, 2019
a5abd9c
BaseTools/Scripts: Add sendemail.transferEncoding to SetupGit.py
nate-desimone Dec 6, 2019
0d6df2c
Move the Cmocka implementations of UnitTestLib and UnitTestAssertLib …
Dec 31, 2019
3e3b28b
Clean up a couple CI errors.
Dec 31, 2019
999463c
UefiCpuPkg/MpInitLib: Collect processors' CPUID & Platform ID info
hwu25 Dec 19, 2019
d786a17
UefiCpuPkg/MpInitLib: Reduce the size when loading microcode patches
hwu25 Dec 19, 2019
2539099
UefiCpuPkg: Add definitions for EDKII microcode patch HOB
hwu25 Dec 23, 2019
e1ed557
UefiCpuPkg/MpInitLib: Produce EDKII microcode patch HOB
hwu25 Dec 23, 2019
88bd066
UefiCpuPkg/MpInitLib: Relocate microcode patch fields in CPU_MP_DATA
hwu25 Dec 25, 2019
fd30b00
UefiCpuPkg/MpInitLib: Remove redundant microcode fields in CPU_MP_DATA
hwu25 Dec 24, 2019
33a3293
UefiPayloadPkg/BootManager: Add PS2 keyboard support
Dec 18, 2019
b948a49
UefiCpuPkg/PiSmmCpuDxeSmm: Pre-allocate PROCEDURE_TOKEN buffer
ydong10 Dec 27, 2019
1014f94
Combine all external headers into a single UnitTestLib.h header.
Jan 2, 2020
1f66b17
Drop the Cmocka submodule to prepare for library moving.
Jan 2, 2020
cbcd135
Combine FrameworkLibrary and Library directories.
Jan 2, 2020
0739585
Consolidate and reorganize Framework Libraries.
Jan 2, 2020
571a88c
UnitTestFrameworkPkg/UnitTestAssertLibcomcka: Use snprintf()
mdkinney Jan 2, 2020
1525c7d
UnitTestFrameworkPkg/OsServiceLibHost: Fix GCC build issue
mdkinney Jan 2, 2020
2275128
UnitTestFrameworkPkg/UniTestLib: Fix GCC build issue
mdkinney Jan 2, 2020
dc5f1d2
UnitTestFrameworkPkg/UniTestLibcmocha: Fix GCC build issue
mdkinney Jan 2, 2020
cccd10a
UnitTestFrameworkPkg/UnitTestAssertLibcmocha: Remove [BuildOptions]
mdkinney Jan 2, 2020
52f3558
MdePkg/Test: Improve MdePkgTest.dsc compiler compatibility
mdkinney Jan 2, 2020
c8de68b
Remove OsServiceLib class and instance
mdkinney Jan 3, 2020
76b4fae
MdePkg/Test: Remove BaseLibHost and BaseMemoryLibHost
mdkinney Jan 3, 2020
76cba4b
UnitTestFrameworkPkg/Library: Add Posix libs
mdkinney Jan 3, 2020
218299f
UnitTestFrameworkPkg: Rename FrameworkInclude to PrivateInclude
mdkinney Jan 3, 2020
eecfd41
UnitTestFrameworkPkg/Library: Rename UEFI to Uefi
mdkinney Jan 3, 2020
bd77e86
UnitTestFrameworkPkg: Make case of 'Cmocka' consistent
mdkinney Jan 3, 2020
a414332
UnitTestFrameworkPkg: Fix trailing whitespace and line endings
mdkinney Jan 3, 2020
110af9c
MdePkg/Test: Fix trailing whitespace and line endings
mdkinney Jan 3, 2020
8d62b6f
MdePkg/Test: Fix code style issues
mdkinney Jan 4, 2020
8c885c6
Bug - Incorrect case for submodule causing setup to fail
spbrogan Jan 3, 2020
9dea978
Unpin extensions dependency as it should use latest pip
spbrogan Jan 3, 2020
5794bf7
Remove stuart_ci_setup as this solution doesn't require it
spbrogan Jan 4, 2020
584632e
UnitTestFrameworkPkg: Tem disable build of Posix libs
mdkinney Jan 4, 2020
49accde
MdeModulePkg/SdMmcPciHcDxe: Hook SwitchClockFreq after SD clock start
malbecki Dec 20, 2019
f68cb23
MdeModulePkg/SdMmcPciHcDxe: Add function to start SD clock
malbecki Dec 20, 2019
df73a69
SecurityPkg/Guid: Add TCG 800-155 event GUID definition.
jyao1 Dec 30, 2019
4fa2585
SecurityPkg/Tcg2Dxe: Add Tcg2Dxe to support 800-155 event.
jyao1 Dec 30, 2019
f273905
MdeModulePkg/Smbios: Done measure Smbios multiple times.
jyao1 Dec 31, 2019
166830d
MdeModulePkg/dec: add PcdTcgPfpMeasurementRevision PCD
jyao1 Dec 31, 2019
40801ac
MdeModulePkg/Smbios: Add TCG PFP rev 105 support.
jyao1 Dec 31, 2019
0286fe8
SecurityPkg/Tcg2Pei: Add TCG PFP 105 support.
jyao1 Dec 31, 2019
f9c2c71
MdeModulePkg/Usb/EfiKey: Fix endpoint selection
MrChromebox Jan 6, 2020
d0d38ce
MdeModulePkg/Usb/UsbMouse: Fix endpoint selection
MrChromebox Jan 6, 2020
6cfb6da
MdeModulePkg/UsbMouseAbsolutePointer: Fix endpoint selection
MrChromebox Jan 6, 2020
4a1aeca
.mailmap: Add a stub with documentation
philmd Jan 6, 2020
ba54103
.mailmap: Add an entry for Aaron Li
philmd Jan 6, 2020
0ce7f25
.mailmap: Add an entry for Antoine Coeur
philmd Jan 6, 2020
83e78fe
.mailmap: Add an entry for Ard Biesheuvel
philmd Jan 6, 2020
caa6584
.mailmap: Add an entry for Ashley DeSimone
philmd Jan 6, 2020
d42046e
.mailmap: Add an entry for Baraneedharan Anbazhagan
philmd Jan 6, 2020
31d60b9
.mailmap: Add an entry for Chasel Chiu
philmd Jan 6, 2020
0d141df
.mailmap: Add an entry for Christopher J Zurcher
philmd Jan 6, 2020
52b6a7c
.mailmap: Add an entry for Eric Dong
philmd Jan 6, 2020
e2a8eae
.mailmap: Add an entry for Erik Bjorge
philmd Jan 6, 2020
082208a
.mailmap: Add an entry for Hao Wu
philmd Jan 6, 2020
59bbab3
.mailmap: Add an entry for Hot Tian
philmd Jan 6, 2020
1bbbd6a
.mailmap: Add an entry for Jiewen Yao
philmd Jan 6, 2020
5556529
.mailmap: Add an entry for Jim Dailey
philmd Jan 6, 2020
f235838
.mailmap: Add an entry for Laszlo Ersek
philmd Jan 6, 2020
44c9a93
.mailmap: Add an entry for Liming Gao
philmd Jan 6, 2020
a85cdb9
.mailmap: Add an entry for Maciej Rabeda
philmd Jan 6, 2020
9b2e99e
.mailmap: Add an entry for Marc-Andre Lureau
philmd Jan 6, 2020
76fc038
.mailmap: Add an entry for Marvin Haeuser
philmd Jan 6, 2020
8ef8175
.mailmap: Add an entry for Maurice Ma
philmd Jan 6, 2020
43f2c9f
.mailmap: Add an entry for Michael Kubacki
philmd Jan 6, 2020
266efa6
.mailmap: Add an entry for Ming Tan
philmd Jan 6, 2020
21429c1
.mailmap: Add an entry for Nikolai Saoukh
philmd Jan 6, 2020
a292d6c
.mailmap: Add an entry for Philippe Mathieu-Daude
philmd Jan 6, 2020
80f7c1b
.mailmap: Add an entry for Ray Ni
philmd Jan 6, 2020
ad12178
.mailmap: Add an entry for Samer El-Haj-Mahmoud
philmd Jan 6, 2020
088573c
.mailmap: Add an entry for Shenglei Zhang
philmd Jan 6, 2020
0e660ee
.mailmap: Add an entry for Star Zeng
philmd Jan 6, 2020
76b5158
.mailmap: Add an entry for Vitaly Cheptsov
philmd Jan 6, 2020
c751368
.mailmap: Add an entry for Vladimir Olovyannikov
philmd Jan 6, 2020
d96c7be
.mailmap: Add an entry for Yonghong Zhu
philmd Jan 6, 2020
0ef6fbb
.mailmap: Add an entry for Yu-Chen Lin
philmd Jan 6, 2020
cc617b6
edksetup.bat: Simplify the step to use CLANGPDB
LiuZhiguang001 Dec 20, 2019
4bb34b6
Revert "UefiCpuPkg/PiSmmCpuDxeSmm: Fix buffer overflow issue."
ydong10 Jan 7, 2020
70911f1
UefiCpuPkg/PiSmmCpuDxeSmm: improve the coding style
ydong10 Jan 7, 2020
08a475d
UefiCpuPkg: Remove alignment check when calculate microcode size.
sfu5 Jan 3, 2020
396e791
UefiCpuPkg: Always load microcode patch on AP processor.
sfu5 Jan 3, 2020
c9d7262
CryptoPkg: Support for SHA384 & SHA512 RSA signing schemes
gar-pk9 Jan 2, 2020
972d887
MdeModulePkg: Add EDK2 Platform Boot Manager Protocol
ashishsingha Dec 24, 2019
fb8e74b
UnitTestFrameworkPkg/Library/HostCmocha: Simplify build options
Jan 6, 2020
b6cd657
UnitTestFrameworkPkg: Clean ups
mdkinney Jan 8, 2020
2649a73
BaseTools/PatchCheck.py: Ignore CR and LF characters in subject length
philmd Jan 2, 2020
cf3ad97
OvmfPkg: reorganize TPM2 support in DSC/FDF files
Jan 8, 2020
f55477f
OvmfPkg: use HII type PCDs for TPM2 config related variables
Jan 8, 2020
04bee6d
Merge remote-tracking branch 'edk2/master' into edk2-host-test_v2
Jan 9, 2020
49a1aab
Standardize all copyrights and headers.
Jan 9, 2020
5897511
Remove an unnecessary package dependency.
Jan 9, 2020
3c1f52e
Get back to CI parity.
Jan 9, 2020
a09d24a
Comment on all of UnitTestLib.h
Jan 9, 2020
4633143
Revert the ignore for the new Test examples and drop into the main pa…
Jan 9, 2020
d7f039f
Clean up the UnitTestFrameworkPkg.dsc file and move the Samples into …
Jan 9, 2020
324c255
Combine all existing samples into a single source file.
Jan 9, 2020
089f090
Add a DXE instance of the SampleTest.
Jan 9, 2020
e187925
UefiCpuPkg/PiSmmCpuDxeSmm: Add missed comments for parameter.
ydong10 Jan 9, 2020
df851da
MdePkg: Do not use CreateEventEx unless required
Jan 7, 2020
859046e
MdePkg BaseLib.h: Update IA32_CR4 strut to include all public fields
jlvoelz Dec 23, 2019
1f0d809
UefiCpuPkg/CpuCommonFeaturesLib: SMXE bit of CR4 should set
jlvoelz Dec 23, 2019
8ffa47f
BaseTools/PatchCheck.py: Extract email check code to EmailAddressCheck
philmd Jan 9, 2020
8f38b08
BaseTools/PatchCheck.py: Check the committer email address
philmd Jan 9, 2020
8120390
BaseTools/PatchCheck.py: Let EmailAddressCheck describe email checked
philmd Jan 9, 2020
c0328cf
BaseTools/PatchCheck.py: Check the patch author email address
philmd Jan 9, 2020
e3ccf1c
Add a host-based test DSC for UnitTestFrameworkPkg.
Jan 10, 2020
c7c964b
MdePkg: Add header file for Firmware Interface Table specification.
sfu5 Jan 8, 2020
dd01704
UefiCpuPkg: Shadow microcode patch according to FIT microcode entry.
sfu5 Jan 8, 2020
7d3d87e
MdeModulePkg: remove EnterS3WithImmediateWake () from ResetSystemLib
Jan 6, 2020
6eacb85
PcAtChipsetPkg: remove EnterS3WithImmediateWake () from ResetSystemLib
Jan 6, 2020
eaea26b
UefiPayloadPkg: remove EnterS3WithImmediateWake () from ResetSystemLib
Jan 6, 2020
2d9950a
OvmfPkg: remove EnterS3WithImmediateWake () from ResetSystemLib
Jan 6, 2020
9d1c9d0
ArmVirtPkg: remove EnterS3WithImmediateWake () from ResetSystemLib
Jan 6, 2020
953260b
Fix compat between teardown functions and Cmocka.
Jan 10, 2020
269de47
Standardize the AssertCmocka calls.
Jan 11, 2020
38c56a3
MdePkg/Include/Library: Rollback UnitTestLib change
mdkinney Jan 11, 2020
05c517f
UnitTestFrameworkPkg/UnitTestLib: Add cmocka gasket
mdkinney Jan 11, 2020
27f44ea
MdeModulePkg/SdMmcPciHcDxe: Fix unknown doxygen tag error
malbecki Jan 10, 2020
072b9c2
BaseTools:Change the case rules for ECC check pointer names
zhijufan Jan 10, 2020
4465cd1
BaseTools:Fix GenFds issue for BuildOption replace GenFdsOption
zhijufan Jan 10, 2020
e8a1d85
Update Cmocka gasket to set the CurrentTest in the Framework so that …
Jan 13, 2020
46ad45e
Add a log message to the SampleUnitTest.
Jan 13, 2020
b112ec2
BaseTools/Scripts/PatchCheck: Address false error conditions
mdkinney Jan 9, 2020
64c91e8
Resolve Python 3.8 warnings.
Jan 13, 2020
a56af23
MdeModulePkg/UefiBootManagerLib: log reserved mem allocation failure
lersek Jan 8, 2020
4cca792
NetworkPkg/HttpDxe: fix 32-bit truncation in HTTPS download
lersek Jan 8, 2020
f550dac
Update DSC check and Host Dsc Check to align
spbrogan Jan 14, 2020
c0d545c
Fix spelling errors in UnitTestFrameworkPkg and fix other typos
spbrogan Jan 14, 2020
e3756ba
ArmPkg/ArmSmcPsciResetSystemLib: remove EnterS3WithImmediateWake ()
Jan 6, 2020
a6a835b
ArmPlatformPkg/PrePeiCore: enable VFP at startup
Jan 6, 2020
94057f7
MdeModulePkg/Setup: Update opcode number variable type to UINTN
brianrhaug-intel Jan 14, 2020
07352d7
Print message so that it shows up in log
spbrogan Jan 15, 2020
f6f66e0
BaseTools/Capsule: Add capsule dependency support
Li-Aaron Jan 10, 2020
710ff74
ShellPkg: acpiview: Update SRAT parser to ACPI 6.3
KrzysztofKoch1 Jan 8, 2020
7d180f9
Tweak the documentation to align with new state of code.
Jan 15, 2020
63653ff
MdePkg Base.h: Use correct style to check the defined macro
lgao4 Jan 16, 2020
3756d3a
Add inital port of BaseLib UnitTest that supports base64 encode/decod…
spbrogan Jan 15, 2020
4cfb180
Update Base64 Unit Test
spbrogan Jan 16, 2020
97fb055
Bug fix for reallocate pool
spbrogan Jan 16, 2020
1862a36
Add more context to cmocka log hack
spbrogan Jan 16, 2020
302eb57
MdeModulePkg/Variable: Fix VarErrorFlag RT cache offset calculation
makubacki Jan 13, 2020
8064a0a
Add a Cmocka test for DxeResetSystem to demo mocking and advanced fea…
Jan 17, 2020
27cd81f
Rather than depend on a "Framework" local variable, change the Assert…
Jan 17, 2020
d438fc8
Update docs with advanced testing instructions and known limitations.
Jan 17, 2020
a523556
UefiCpuPkg/PiSmmCpuDxeSmm: fix 2M->4K page splitting regression for PDEs
lersek Jan 9, 2020
80e3d15
Merge branch 'master' into edk2-host-test_v2
Jan 17, 2020
47873d6
Drop a test case that no longer aligns with upstream.
Jan 17, 2020
61278d5
Add a valid dependency to fix CI tests.
Jan 17, 2020
335851f
Remove GetActiveFrameworkHandle from the public interface.
Jan 17, 2020
078df5e
Fix the ADO jobs.
Jan 17, 2020
4f9db3c
UnitTestFrameworkPkg/UnitTestLib: Simplify assert APIs
mdkinney Jan 17, 2020
5a675d8
MdePkg/Include/UnitTestLib: Make all handle types unique
mdkinney Jan 17, 2020
2c073bc
UnitTestFrameworkPlg/UnitTestLib: Clean up handle usage
mdkinney Jan 17, 2020
e7dda6a
MdeModulePkg/DxeResetSystemLib/UnitTest: Add UefiRuntimeServicesLib i…
mdkinney Jan 18, 2020
9a1a021
UnitTestFrameworkPkg: Remove MockLibraryClassLibNull
mdkinney Jan 18, 2020
67e9484
Remove UNIT_TEST_FRAMEWORK_HANDLE parameter
mdkinney Jan 18, 2020
6e1ebc6
Fix misspelling
mdkinney Jan 18, 2020
c458e7e
Complete fix of misplelled word 'Moch' to 'Mock'
mdkinney Jan 18, 2020
966e3a5
Add Mock library to the HostApplication DSC.
Jan 21, 2020
24c158d
Fix a spelling error.
Jan 21, 2020
598c0fe
Update BaseSafeIntLib test cases to reflect the correct implementatio…
Jan 21, 2020
f7449d6
UnitTestFrameworkPkg: General cleanups
mdkinney Jan 21, 2020
4523df7
UnitTestFrameworkPkg/UnitTestLib: Remove unused local Framework
mdkinney Jan 21, 2020
ef82a8f
MdeModulePkg/DxeResetSystemLib/Test: Update mock ResetSystem() API to…
mdkinney Jan 21, 2020
1f0a850
UnitTestFrameworkPkg: More clean ups
mdkinney Jan 22, 2020
007cc2b
Fix spelling errors
mdkinney Jan 22, 2020
7b4972e
Clean up the way the ASSERT macros work with complex parameters.
Jan 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## @file
# Azure Pipeline build file for a build using ubuntu and GCC5
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
pr:
- master

jobs:
- template: templates/pr-gate-build-job.yml
parameters:
tool_chain_tag: 'GCC5'
vm_image: 'ubuntu-latest'
arch_list: "IA32,X64,ARM,AARCH64"

35 changes: 35 additions & 0 deletions .azurepipelines/Ubuntu-PatchCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## @file
# Azure Pipielines YML file that evalues the patch series in a PR using the
# python script BaseTools/Scripts/PatchCheck.py.
#
# NOTE: This example monitors pull requests against the edk2-ci branch. Most
# environments would replace 'edk2-ci' with 'master'.
#
# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
# https://github.com/tianocore
#
##

trigger: none

pr:
- master

pool:
vmImage: 'ubuntu-latest'

steps:
- checkout: self
clean: true

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7.x'
architecture: 'x64'

- script: |
git fetch origin $(System.PullRequest.TargetBranch):$(System.PullRequest.TargetBranch)
python BaseTools/Scripts/PatchCheck.py $(System.PullRequest.TargetBranch)..$(System.PullRequest.SourceCommitId)
displayName: 'Use PatchCheck.py to verify patch series in pull request'
18 changes: 18 additions & 0 deletions .azurepipelines/Windows-VS2019.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## @file
# Azure Pipeline build file for a build using Windows and VS2019
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master

pr:
- master

jobs:
- template: templates/pr-gate-build-job.yml
parameters:
tool_chain_tag: 'VS2019'
vm_image: 'windows-latest'
arch_list: "IA32,X64"
37 changes: 37 additions & 0 deletions .azurepipelines/templates/basetools-build-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## @file
# File templates/basetools-build-job.yml
#
# template file to build basetools
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
parameters:
tool_chain_tag: ''

steps:
- ${{ if contains(parameters.tool_chain_tag, 'GCC') }}:
- bash: sudo apt-get update
displayName: Update apt
condition: and(gt(variables.pkg_count, 0), succeeded())

- bash: sudo apt-get install gcc g++ make uuid-dev
displayName: Install required tools
condition: and(gt(variables.pkg_count, 0), succeeded())

- task: CmdLine@1
displayName: Build Base Tools from source
inputs:
filename: python
arguments: BaseTools/Edk2ToolsBuild.py -t ${{ parameters.tool_chain_tag }}
condition: and(gt(variables.pkg_count, 0), succeeded())

- task: CopyFiles@2
displayName: "Copy base tools build log"
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
SourceFolder: 'BaseTools/BaseToolsBuild'
contents: |
BASETOOLS_BUILD*.*
flattenFolders: true
condition: and(gt(variables.pkg_count, 0), succeededOrFailed())
80 changes: 80 additions & 0 deletions .azurepipelines/templates/pr-gate-build-job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
## @file
# File templates/pr-gate-build-job.yml
#
# template file used to build supported packages.
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

parameters:
tool_chain_tag: ''
vm_image: ''
arch_list: ''

# Build step
jobs:

- job: Build_${{ parameters.tool_chain_tag }}

#Use matrix to speed up the build process
strategy:
matrix:
TARGET_MDE_CPU:
Build.Pkgs: 'MdePkg,UefiCpuPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
TARGET_MDEMODULE_DEBUG:
Build.Pkgs: 'MdeModulePkg'
Build.Targets: 'DEBUG,NOOPT'
TARGET_MDEMODULE_RELEASE:
Build.Pkgs: 'MdeModulePkg'
Build.Targets: 'RELEASE,NO-TARGET'
TARGET_NETWORK:
Build.Pkgs: 'NetworkPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
TARGET_OTHER:
Build.Pkgs: 'PcAtChipsetPkg,ShellPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
TARGET_FMP_FAT_TEST:
Build.Pkgs: 'FmpDevicePkg,FatPkg,UnitTestFrameworkPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
TARGET_CRYPTO:
Build.Pkgs: 'CryptoPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
TARGET_SECURITY:
Build.Pkgs: 'SecurityPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'

workspace:
clean: all

pool:
vmImage: ${{ parameters.vm_image }}

steps:
- template: pr-gate-steps.yml
parameters:
tool_chain_tag: ${{ parameters.tool_chain_tag }}
build_pkgs: $(Build.Pkgs)
build_targets: $(Build.Targets)
build_archs: ${{ parameters.arch_list }}

- job: FINISHED
dependsOn: Build_${{ parameters.tool_chain_tag }}
condition: succeeded()
steps:
- checkout: none
- script: |
echo FINISHED
sleep 10
displayName: FINISHED

- job: FAILED
dependsOn: Build_${{ parameters.tool_chain_tag }}
condition: failed()
steps:
- checkout: none
- script: |
echo FAILED
sleep 10
displayName: FAILED
130 changes: 130 additions & 0 deletions .azurepipelines/templates/pr-gate-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
## @file
# File templates/pr-gate-steps.yml
#
# template file containing the steps to build
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

parameters:
tool_chain_tag: ''
build_pkgs: ''
build_targets: ''
build_archs: ''

steps:
- checkout: self
clean: true
fetchDepth: 1

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7.x'
architecture: 'x64'

- script: pip install -r pip-requirements.txt --upgrade
displayName: 'Install/Upgrade pip modules'

# Set default
- bash: |
echo "##vso[task.setvariable variable=pkgs_to_build]${{ parameters.build_pkgs }}"
echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}"

# trim the package list if this is a PR
- task: CmdLine@1
displayName: Check if ${{ parameters.build_pkgs }} need testing
inputs:
filename: stuart_pr_eval
arguments: -c .pytool/CISettings.py -p ${{ parameters.build_pkgs }} --pr-target origin/$(System.PullRequest.targetBranch) --output-csv-format-string "##vso[task.setvariable variable=pkgs_to_build;isOutpout=true]{pkgcsv}" --output-count-format-string "##vso[task.setvariable variable=pkg_count;isOutpout=true]{pkgcount}"
condition: eq(variables['Build.Reason'], 'PullRequest')

# build basetools
- template: basetools-build-steps.yml
parameters:
tool_chain_tag: ${{ parameters.tool_chain_tag }}

# install spell check prereqs
- template: spell-check-prereq-steps.yml

# Build repo
- task: CmdLine@1
displayName: Setup ${{ parameters.build_pkgs }} ${{ parameters.build_archs}}
inputs:
filename: stuart_setup
arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ parameters.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}}
condition: and(gt(variables.pkg_count, 0), succeeded())

- task: CmdLine@1
displayName: Update ${{ parameters.build_pkgs }} ${{ parameters.build_archs}}
inputs:
filename: stuart_update
arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ parameters.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}}
condition: and(gt(variables.pkg_count, 0), succeeded())

- task: CmdLine@1
displayName: Build and Test ${{ parameters.build_pkgs }} ${{ parameters.build_archs}}
inputs:
filename: stuart_ci_build
arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ parameters.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}}
condition: and(gt(variables.pkg_count, 0), succeeded())

# Publish Test Results to Azure Pipelines/TFS
- task: PublishTestResults@2
displayName: 'Publish junit test results'
continueOnError: true
condition: and( succeededOrFailed(),gt(variables.pkg_count, 0))
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: 'Build/TestSuites.xml'
#searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
mergeTestResults: true # Optional
testRunTitle: $(System.JobName) # Optional
#buildPlatform: # Optional
#buildConfiguration: # Optional
publishRunAttachments: true # Optional

# Publish Test Results to Azure Pipelines/TFS
- task: PublishTestResults@2
displayName: 'Publish host based test results for $(System.JobName)'
continueOnError: true
condition: and( succeededOrFailed(), gt(variables.pkg_count, 0))
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: 'Build/**/*.result.xml'
#searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
mergeTestResults: false # Optional
testRunTitle: ${{ parameters.build_pkgs }} # Optional
#buildPlatform: # Optional
#buildConfiguration: # Optional
publishRunAttachments: true # Optional

# Copy the build logs to the artifact staging directory
- task: CopyFiles@2
displayName: "Copy build logs"
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
SourceFolder: 'Build'
contents: |
BUILDLOG_*.txt
BUILDLOG_*.md
CI_*.txt
CI_*.md
CISETUP.txt
SETUPLOG.txt
UPDATE_LOG.txt
PREVALLOG.txt
TestSuites.xml
**/BUILD_TOOLS_REPORT.html
**/OVERRIDELOG.TXT
flattenFolders: true
condition: succeededOrFailed()

# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
continueOnError: true
displayName: "Publish build logs"
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'Build Logs $(System.JobName)'
condition: succeededOrFailed()
22 changes: 22 additions & 0 deletions .azurepipelines/templates/spell-check-prereq-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## @file
# File templates/spell-check-prereq-steps.yml
#
# template file used to install spell checking prerequisits
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

parameters:
none: ''

steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
#checkLatest: false # Optional
condition: and(gt(variables.pkg_count, 0), succeeded())

- script: npm install -g cspell
displayName: 'Install cspell npm'
condition: and(gt(variables.pkg_count, 0), succeeded())
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Build/
tags/
.DS_Store
*_extdep/
*.pyc
__pycache__/
tags/
.vscode/

# Dependencies
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "SoftFloat"]
path = ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3
url = https://github.com/ucb-bar/berkeley-softfloat-3.git
[submodule "UnitTestFrameworkPkg/Library/CmockaLib/cmocka"]
path = UnitTestFrameworkPkg/Library/CmockaLib/cmocka
url = https://git.cryptomilk.org/projects/cmocka.git
Loading