diff options
author | Julian Lettner <yln@users.noreply.github.com> | 2025-09-24 13:31:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-24 13:31:02 -0700 |
commit | 5d511b6736d0c70a99ea38bd800be0ffe65991e7 (patch) | |
tree | e25724092ba334c329207f02ce3d3d0a58a4b704 /lldb/packages/Python/lldbsuite/test/lldbinline.py | |
parent | d235d62d65a8403f1a239720058646bcefcd3d74 (diff) | |
download | llvm-5d511b6736d0c70a99ea38bd800be0ffe65991e7.zip llvm-5d511b6736d0c70a99ea38bd800be0ffe65991e7.tar.gz llvm-5d511b6736d0c70a99ea38bd800be0ffe65991e7.tar.bz2 |
[lldb][test] Unify test infrastructure for checking CPU features (#153914)
This addresses limitations in our testing infrastructure for checking
CPU features. Before this
* `getCPUInfo()` was Linux-only, and the
* `@skipUnlessFeature` decorator was Darwin-only and did not consider
the remote (on device) testing use case.
Introduce `CPUFeature` class as an abstraction to hide the
platform-specific implementations to check for CPU features. Unify local
(on host) and remote (on device) test execution by always going through
`test.run_platform_command()` which uses LLDB's `platform shell <cmd>`
command.
Potential future cleanups: I think `@skipUnlessFeature` decorator could
be used in place of code like this:
```
if not self.isAArch64SME():
self.skipTest("SME must be present.")
if not self.isAArch64SME2():
self.skipTest("SME2 must be present.")
```
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbinline.py')
0 files changed, 0 insertions, 0 deletions