-
Notifications
You must be signed in to change notification settings - Fork 164
[Rebase & FF] Supporting unit test that runs on AArch64 #1613
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
Open
kuqin12
wants to merge
11
commits into
microsoft:release/202502
Choose a base branch
from
kuqin12:unit_test_arm64_2502
base: release/202502
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+77
−12
Conversation
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
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
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