1 RUN: llvm-profdata merge %S/Inputs/name_whitelist.proftext -o %t.profdata
3 RUN: 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
4 RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_WHITELIST %s
5 RUN: FileCheck -input-file=%t.one_list -check-prefix=ONE_WHITELIST_NEG %s
6 ONE_WHITELIST: _Z5func1v:
7 ONE_WHITELIST: _Z5func2v:
8 ONE_WHITELIST_NEG-NOT: _Z5func3v:
9 ONE_WHITELIST_NEG-NOT: _Z5func4v:
10 ONE_WHITELIST_NEG-NOT: _Z5func5v:
11 ONE_WHITELIST_NEG-NOT: _Z5func6v:
13 RUN: 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
14 RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_WHITELIST %s
15 RUN: FileCheck -input-file=%t.two_list -check-prefix=TWO_WHITELIST_NEG %s
16 TWO_WHITELIST: _Z5func1v:
17 TWO_WHITELIST: _Z5func2v:
18 TWO_WHITELIST: _Z5func3v:
19 TWO_WHITELIST: _Z5func4v:
20 TWO_WHITELIST_NEG-NOT: _Z5func5v:
21 TWO_WHITELIST_NEG-NOT: _Z5func6v: