[llvm] r253354 - enabling sancov tests on linux x86_64 only
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 17 10:25:21 PST 2015
Author: aizatsky
Date: Tue Nov 17 12:25:21 2015
New Revision: 253354
URL: http://llvm.org/viewvc/llvm-project?rev=253354&view=rev
Log:
enabling sancov tests on linux x86_64 only
Differential Revision: http://reviews.llvm.org/D14728
Added:
llvm/trunk/test/tools/sancov/covered_functions.test
- copied, changed from r253349, llvm/trunk/test/tools/sancov/covered_functions._test
llvm/trunk/test/tools/sancov/print.test
- copied, changed from r253349, llvm/trunk/test/tools/sancov/print._test
Removed:
llvm/trunk/test/tools/sancov/covered_functions._test
llvm/trunk/test/tools/sancov/print._test
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=253354&r1=253353&r2=253354&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Tue Nov 17 12:25:21 2015
@@ -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
Removed: llvm/trunk/test/tools/sancov/covered_functions._test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/sancov/covered_functions._test?rev=253353&view=auto
==============================================================================
--- llvm/trunk/test/tools/sancov/covered_functions._test (original)
+++ llvm/trunk/test/tools/sancov/covered_functions._test (removed)
@@ -1,13 +0,0 @@
-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
-
-CHECK: Inputs{{[/\\]}}test.cpp:12 bar(std::string)
-CHECK: Inputs{{[/\\]}}test.cpp:14 main
-
-MULTIPLE_FILES: {{^}}foo.cpp:5 foo()
-MULTIPLE_FILES: {{^}}test.cpp:12 bar(std::string)
-MULTIPLE_FILES: {{^}}test.cpp:14 main
-
-NO_DEMANGLE: test.cpp:12 _Z3barSs
-NO_DEMANGLE: test.cpp:14 main
Copied: llvm/trunk/test/tools/sancov/covered_functions.test (from r253349, llvm/trunk/test/tools/sancov/covered_functions._test)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/sancov/covered_functions.test?p2=llvm/trunk/test/tools/sancov/covered_functions.test&p1=llvm/trunk/test/tools/sancov/covered_functions._test&r1=253349&r2=253354&rev=253354&view=diff
==============================================================================
--- llvm/trunk/test/tools/sancov/covered_functions._test (original)
+++ llvm/trunk/test/tools/sancov/covered_functions.test Tue Nov 17 12:25:21 2015
@@ -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
Removed: llvm/trunk/test/tools/sancov/print._test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/sancov/print._test?rev=253353&view=auto
==============================================================================
--- llvm/trunk/test/tools/sancov/print._test (original)
+++ llvm/trunk/test/tools/sancov/print._test (removed)
@@ -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
Copied: llvm/trunk/test/tools/sancov/print.test (from r253349, llvm/trunk/test/tools/sancov/print._test)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/sancov/print.test?p2=llvm/trunk/test/tools/sancov/print.test&p1=llvm/trunk/test/tools/sancov/print._test&r1=253349&r2=253354&rev=253354&view=diff
==============================================================================
--- llvm/trunk/test/tools/sancov/print._test (original)
+++ llvm/trunk/test/tools/sancov/print.test Tue Nov 17 12:25:21 2015
@@ -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
More information about the llvm-commits
mailing list