enabling sancov tests on linux x86_64 only

Differential Revision: http://reviews.llvm.org/D14728

llvm-svn: 253354
This commit is contained in:
Mike Aizatsky 2015-11-17 18:25:21 +00:00
parent e780735f3d
commit bc4d11920b
3 changed files with 5 additions and 0 deletions

View File

@ -275,6 +275,7 @@ for pattern in [r"\bbugpoint\b(?!-)",
NOJUNK + r"\bopt\b",
r"\bFileCheck\b",
r"\bobj2yaml\b",
NOJUNK + r"\bsancov\b",
r"\byaml2obj\b",
r"\byaml-bench\b",
r"\bverify-uselistorder\b",
@ -358,6 +359,8 @@ else:
# Some tests are "generic" and require a valid default triple
if config.target_triple:
config.available_features.add("default_triple")
if re.match(r'^x86_64.*-linux', config.target_triple):
config.available_features.add("x86_64-linux")
# Native compilation: host arch == default triple arch
# FIXME: Consider cases that target can be executed

View File

@ -1,3 +1,4 @@
REQUIRES: x86_64-linux
RUN: sancov -obj %p/Inputs/test-linux_x86_64 -covered_functions %p/Inputs/test-linux_x86_64.sancov | FileCheck %s
RUN: sancov -obj %p/Inputs/test-linux_x86_64 -covered_functions %p/Inputs/test-linux_x86_64-1.sancov | FileCheck --check-prefix=MULTIPLE_FILES %s
RUN: sancov -obj %p/Inputs/test-linux_x86_64 -demangle=0 -covered_functions %p/Inputs/test-linux_x86_64.sancov | FileCheck --check-prefix=NO_DEMANGLE %s

View File

@ -1,3 +1,4 @@
REQUIRES: x86_64-linux
RUN: sancov -obj %p/Inputs/test-linux_x86_64 -print %p/Inputs/test-linux_x86_64.sancov | FileCheck %s
CHECK: 0x4db18b