xref: /llvm-project/compiler-rt/test/fuzzer/full-coverage.test (revision 8a86860207f0d5c794a2b8c0b384001710e5d036)
1# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.
2UNSUPPORTED: target={{.*windows.*}}
3# FIXME: See coverage.test.  Using UNSUPPORTED here due to random failures.
4UNSUPPORTED: target=s390x{{.*}}
5RUN: %cpp_compiler %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -O0 -shared -o %dynamiclib1
6RUN: %cpp_compiler %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -O0 -shared -o %dynamiclib2
7RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest
8
9RUN: %run %t-DSOTest -print_full_coverage=1 %S/dso-cov-input.txt 2>&1 | FileCheck %s
10CHECK: FULL COVERAGE:
11CHECK-DAG: U{{( [0-9]+)*}}
12CHECK-DAG: C{{( [0-9]+)*}}
13CHECK-DAG: U{{( [0-9]+)*}}
14CHECK-DAG: U{{( [0-9]+)*}}
15CHECK-DAG: C{{( [0-9]+)*}}
16CHECK-DAG: U{{( [0-9]+)*}}
17