bolt/deps/llvm-18.1.8/llvm/utils/lit/tests/Inputs/per-test-coverage/per-test-coverage.py
2025-02-14 19:21:04 +01:00

12 lines
354 B
Python

# Check that the environment variable is set correctly
# RUN: %{python} %s | FileCheck -DINDEX=1 %s
# RUN: %{python} %s | FileCheck -DINDEX=2 %s
# Python script to read the environment variable
# and print its value
import os
llvm_profile_file = os.environ.get('LLVM_PROFILE_FILE')
print(llvm_profile_file)
# CHECK: per-test-coverage[[INDEX]].profraw