mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-22 22:11:50 +00:00

Multi-dso programs result in multiple coverage files dumped of the form '<module_name>.<pid>.sancov'. When analyzing these coverage files it is important to use correct corresponding object file. This change removes the "-obj" sancov flag and lets user specify object file names alongside coverage files. Sancov tool would match them using <module_name> part of coverage file and short file name of the object file. Corresponding changes: - compiler-rt: http://reviews.llvm.org/D17171 - docs: http://reviews.llvm.org/D17175 Differential Revision: http://reviews.llvm.org/D17169 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260628 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
685 B
Plaintext
14 lines
685 B
Plaintext
REQUIRES: x86_64-linux
|
|
RUN: sancov -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
|
|
RUN: sancov -covered-functions -strip_path_prefix=Inputs/ %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck --check-prefix=STRIP_PATH %s
|
|
RUN: sancov -demangle=0 -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck --check-prefix=NO_DEMANGLE %s
|
|
|
|
CHECK: Inputs{{[/\\]}}test.cpp:12 bar(std::string)
|
|
CHECK: Inputs{{[/\\]}}test.cpp:14 main
|
|
|
|
STRIP_PATH: {{^}}test.cpp:12 bar(std::string)
|
|
STRIP_PATH: {{^}}test.cpp:14 main
|
|
|
|
NO_DEMANGLE: test.cpp:12 _Z3barSs
|
|
NO_DEMANGLE: test.cpp:14 main
|