[Rebase & FF] Supporting unit test that runs on AArch64#1613
Open
kuqin12 wants to merge 11 commits intomicrosoft:release/202502from
Open
[Rebase & FF] Supporting unit test that runs on AArch64#1613kuqin12 wants to merge 11 commits intomicrosoft:release/202502from
kuqin12 wants to merge 11 commits intomicrosoft:release/202502from
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/202502 #1613 +/- ##
=================================================
Coverage ? 2.22%
=================================================
Files ? 1461
Lines ? 381067
Branches ? 4584
=================================================
Hits ? 8477
Misses ? 372517
Partials ? 73
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
eb2963e to
9c4074d
Compare
This change adds a few preprocessors to build AArch64 host based unit tests properly. An AArch64 specific instance of `gUnitTestHostBaseLib` is created to abstract the reference of arch specific special instructions. Signed-off-by: Kun Qin <kuqin12@gmail.com>
Current FunctionMockLib is relying on the subhoob module to support the backend operation by bitbanging the binary post-disassembly. However subhook module is a x64 centric module and does not support AArch64 usage. This change removes the mock function support for AArch64. The functionality will need other solutions to be properly supported. Signed-off-by: Kun Qin <kuqin12@gmail.com>
…rch64 AArch64 does not have divide-by-zero exception. This change modifies the corresponding test to work with AArch64. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the support of float operations for AArch64 host based unit tests by overriding the compiler flags. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the GCC compiler flag for AArch64 targets. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the DLINK flags for AArch64 targets to support host based unit tests to be run on native AArch64 host systems. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the AArch64 target for host based unit tests. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the AArch64 target for host based unit tests. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the AArch64 target for host based unit tests. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the AArch64 target for host based unit tests. Signed-off-by: Kun Qin <kuqin12@gmail.com>
This change adds the AArch64 target for host based unit tests. Signed-off-by: Kun Qin <kuqin12@gmail.com>
9c4074d to
ab6ef07
Compare
Contributor
Author
|
An edk2 PR is created here: tianocore/edk2#12070 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change adds support for running unit tests on AArch64 hosts, which would help to expose test cases not covered by normal X64 unit tests.
Resolves #1514.
For details on how to complete these options and their meaning refer to CONTRIBUTING.md.
How This Was Tested
This was tested on AArch64 hardware platform and passed all existing unit tests.
Integration Instructions
N/A