• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: llvm-profdata merge %S/Inputs/name_whitelist.proftext -o %t.profdata
2
3RUN: llvm-cov show %S/Inputs/name_whitelist.covmapping -instr-profile=%t.profdata -path-equivalence=/tmp,%S/Inputs -name-whitelist=%S/Inputs/whitelist1.txt %S/Inputs/name_whitelist.cpp > %t.one_list
4RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_WHITELIST %s
5RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_WHITELIST_NEG %s
6ONE_WHITELIST: _Z5func1v:
7ONE_WHITELIST: _Z5func2v:
8ONE_WHITELIST_NEG-NOT: _Z5func3v:
9ONE_WHITELIST_NEG-NOT: _Z5func4v:
10ONE_WHITELIST_NEG-NOT: _Z5func5v:
11ONE_WHITELIST_NEG-NOT: _Z5func6v:
12
13RUN: llvm-cov show %S/Inputs/name_whitelist.covmapping -instr-profile=%t.profdata -path-equivalence=/tmp,%S/Inputs -name-whitelist=%S/Inputs/whitelist1.txt -name-whitelist=%S/Inputs/whitelist2.txt %S/Inputs/name_whitelist.cpp  > %t.two_list
14RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_WHITELIST %s
15RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_WHITELIST_NEG %s
16TWO_WHITELIST: _Z5func1v:
17TWO_WHITELIST: _Z5func2v:
18TWO_WHITELIST: _Z5func3v:
19TWO_WHITELIST: _Z5func4v:
20TWO_WHITELIST_NEG-NOT: _Z5func5v:
21TWO_WHITELIST_NEG-NOT: _Z5func6v:
22