llvm.org GIT mirror llvm / 411fe51
[sancov] Run sancov tests on more platforms The only tests that need to be run on Linux are the ones that use C++ demangling. I'm assuming they will fail on Mac, since __cxa_demangle there won't handle the non-double-underscore prefixed mangled names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271695 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 4 years ago
7 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 FIXME: sancov relies on __cxa_demangle for demangling. Remove this when LLVM has
1 its own demangler.
2 REQUIRES: x86_64-linux
3
14 RUN: sancov -covered-functions -blacklist %p/Inputs/fun_blacklist.txt %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
25 RUN: sancov -covered-functions -blacklist %p/Inputs/src_blacklist.txt %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=CHECK1 %s
36
0 FIXME: sancov relies on __cxa_demangle for demangling. Remove this when LLVM has
1 its own demangler.
2 REQUIRES: x86_64-linux
3
14 RUN: sancov -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
25 RUN: sancov -covered-functions -strip_path_prefix=Inputs/ %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck --check-prefix=STRIP_PATH %s
36 RUN: sancov -demangle=0 -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck --check-prefix=NO_DEMANGLE %s
None REQUIRES: x86_64-linux
1 RUN: sancov -html-report %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
21
32 // It's very difficult to test html report. Do basic smoke check.
4 CHECK: {{.*/Inputs/test.cpp}}
3 CHECK: {{.*[/\\]Inputs[/\\]test.cpp}}
54
0 FIXME: sancov relies on __cxa_demangle for demangling. Remove this when LLVM has
1 its own demangler.
2 REQUIRES: x86_64-linux
3
14 RUN: sancov -not-covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
25 RUN: sancov -not-covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=CHECK1 --allow-empty %s
36
None REQUIRES: x86_64-linux
1 RUN: sancov -print %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
21
32 CHECK: 0x4e132b
None REQUIRES: x86_64-linux
1 RUN: sancov -print-coverage-pcs %p/Inputs/test-linux_x86_64 | FileCheck %s
21
32 CHECK: 0x4e132b
None REQUIRES: x86_64-linux
1 RUN: sancov -print-coverage-stats %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
21
32 CHECK: all-edges: 9