mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-09 12:04:02 +00:00
[sancov] Run more sancov tests on non-x86-Linux machines
Add the $arch-registered-target features that clang uses to disable tests that require a registered backend, so that we can run the sancov tests on Windows. LLVM's lit suite did not appear to have a per-test way to do this, and I would rather not split up the sancov tests into architecture directories. Split out of https://reviews.llvm.org/D23321 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278271 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
944f96975b
commit
d3396f4e90
@ -348,6 +348,9 @@ for pattern in [r"\bllvm-go\b",
|
||||
|
||||
config.targets = frozenset(config.targets_to_build.split())
|
||||
|
||||
for arch in config.targets_to_build.split():
|
||||
config.available_features.add(arch.lower() + '-registered-target')
|
||||
|
||||
### Features
|
||||
|
||||
# Shell execution
|
||||
|
@ -1,4 +1,4 @@
|
||||
REQUIRES: x86_64-linux
|
||||
REQUIRES: x86-registered-target
|
||||
RUN: sancov -print %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
|
||||
|
||||
CHECK: 0x4e132b
|
||||
|
@ -1,4 +1,4 @@
|
||||
REQUIRES: x86_64-linux
|
||||
REQUIRES: x86-registered-target
|
||||
RUN: sancov -print-coverage-pcs %p/Inputs/test-linux_x86_64 | FileCheck %s
|
||||
|
||||
CHECK: 0x4e132b
|
||||
|
@ -1,4 +1,4 @@
|
||||
REQUIRES: x86_64-linux
|
||||
REQUIRES: x86-registered-target
|
||||
RUN: sancov -print-coverage-stats %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
|
||||
|
||||
CHECK: all-edges: 9
|
||||
|
Loading…
x
Reference in New Issue
Block a user