aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-cov/threads.test
blob: a51406ca14efa9de26afdb044ca4a667a72e6fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Coverage/profile data recycled from the showLineExecutionCounts.cpp test.
//
// RUN: rm -rf %t.dir
// RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -j 1 -o %t.dir/1 -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -num-threads 2 -o %t.dir/2 -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -o %t.dir/3 -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs
//
// RUN: diff %t.dir/1/index.txt %t.dir/2/index.txt
// RUN: diff %t.dir/1/coverage/tmp/showLineExecutionCounts.cpp.txt %t.dir/2/coverage/tmp/showLineExecutionCounts.cpp.txt
// RUN: diff %t.dir/1/index.txt %t.dir/3/index.txt
// RUN: diff %t.dir/1/coverage/tmp/showLineExecutionCounts.cpp.txt %t.dir/3/coverage/tmp/showLineExecutionCounts.cpp.txt