-print_full_coverage=1 produces a detailed branch coverage dump when run on a single file. Uses same infrastructure as -print_coverage flag, but prints all branches (regardless of coverage status) in an easy-to-parse format. Usage: For internal use with machine learning fuzzing models which require detailed coverage information on seed files to generate mutations. Differential Revision: https://reviews.llvm.org/D85928
16 lines
670 B
Plaintext
16 lines
670 B
Plaintext
# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.
|
|
UNSUPPORTED: windows
|
|
XFAIL: s390x
|
|
RUN: %cpp_compiler %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -O0 -shared -o %dynamiclib1
|
|
RUN: %cpp_compiler %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -O0 -shared -o %dynamiclib2
|
|
RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest
|
|
|
|
RUN: %run %t-DSOTest -print_full_coverage=1 %S/dso-cov-input.txt 2>&1 | FileCheck %s
|
|
CHECK: FULL COVERAGE:
|
|
CHECK-DAG: U{{( [0-9]+)*}}
|
|
CHECK-DAG: C{{( [0-9]+)*}}
|
|
CHECK-DAG: U{{( [0-9]+)*}}
|
|
CHECK-DAG: U{{( [0-9]+)*}}
|
|
CHECK-DAG: C{{( [0-9]+)*}}
|
|
CHECK-DAG: U{{( [0-9]+)*}}
|