xref: /llvm-project/llvm/utils/lit/tests/Inputs/per-test-coverage/per-test-coverage.py (revision 9e739fdb85ac672f3e25e971d96e71823e07ebda)
1# Check that the environment variable is set correctly
2# RUN: %{python} %s | FileCheck -DINDEX=1 %s
3# RUN: %{python} %s | FileCheck -DINDEX=2 %s
4
5# Python script to read the environment variable
6# and print its value
7import os
8
9llvm_profile_file = os.environ.get('LLVM_PROFILE_FILE')
10print(llvm_profile_file)
11
12# CHECK: per-test-coverage[[INDEX]].profraw
13