[Rebase & FF] Supporting unit test that runs on AArch64#1613
[Rebase & FF] Supporting unit test that runs on AArch64#1613kuqin12 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
|
An edk2 PR is created here: tianocore/edk2#12070 |
|
This PR has been automatically marked as stale because it has not had activity in 60 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
This pull request has been automatically been closed because it did not have any activity in 60 days and no follow up within 7 days after being marked stale. Thank you for your contributions. |
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