Index: test/lit.cfg =================================================================== --- test/lit.cfg +++ test/lit.cfg @@ -275,6 +275,7 @@ 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", @@ -356,8 +357,11 @@ # LLVM can be configured with an empty default triple # Some tests are "generic" and require a valid default triple +print "***", config.target_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 Index: test/tools/sancov/covered_functions.test =================================================================== --- test/tools/sancov/covered_functions.test +++ test/tools/sancov/covered_functions.test @@ -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 Index: test/tools/sancov/print._test =================================================================== --- /dev/null +++ test/tools/sancov/print._test @@ -1,10 +0,0 @@ -RUN: sancov -obj %p/Inputs/test-linux_x86_64 -print %p/Inputs/test-linux_x86_64.sancov | FileCheck %s - -CHECK: 0x4db18b -CHECK: 0x4db2d2 -CHECK: 0x4db322 -CHECK: 0x4db376 -CHECK: 0x4db3bd -CHECK: 0x4db3f4 -CHECK: 0x4db427 -CHECK: 0x4db45a