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