1REQUIRES: x86-registered-target && host-byteorder-little-endian
2RUN: sancov -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s --check-prefix=ALL
3RUN: 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
4RUN: 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
5RUN: sancov -print-coverage-stats %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=STATS %s
6RUN: sancov -print-coverage-stats -blacklist %p/Inputs/fun_blacklist.txt %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=STATS-BLIST %s
7
8ALL: test.cpp:12 bar(std::string)
9ALL: test.cpp:14 main
10
11CHECK-NOT: test.cpp:12 bar(std::string)
12CHECK: test.cpp:14 main
13
14CHECK1-NOT: test.cpp:12 bar(std::string)
15CHECK1-NOT: test.cpp:14 main
16
17STATS: all-edges: 9
18STATS: cov-edges: 7
19STATS: all-functions: 3
20STATS: cov-functions: 3
21
22STATS-BLIST: all-edges: 8
23STATS-BLIST: cov-edges: 6
24STATS-BLIST: all-functions: 2
25STATS-BLIST: cov-functions: 2
26
27