llvm-project/compiler-rt/test/fuzzer/full-coverage.test
Aiden Grossman c12f08f645 Reapply "[compiler-rt] Remove %T from shared object substitutions (#155302)"
This reverts commit 05e31438ac9491cfc72c48664480796de874c860.

There was quite a bit of churn with this patch, everytime related to the executable
no longer being in the same directory as the shared objects. This reland ensures
that all of the executables in the tests touched are in the same directory as the
shared objects in the substitutions.
2025-09-21 19:49:08 +00:00

18 lines
822 B
Plaintext

# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.
UNSUPPORTED: target={{.*windows.*}}
# FIXME: See coverage.test. Using UNSUPPORTED here due to random failures.
UNSUPPORTED: target=s390x{{.*}}
RUN: mkdir -p %t.dir && cd %t.dir
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.dir/DSOTest
RUN: %run %t.dir/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]+)*}}