13 lines · python
1# Check that the environment variable is set correctly2# RUN: %{python} %s | FileCheck -DINDEX=1 %s3# RUN: %{python} %s | FileCheck -DINDEX=2 %s4 5# Python script to read the environment variable6# and print its value7import os8 9llvm_profile_file = os.environ.get('LLVM_PROFILE_FILE')10print(llvm_profile_file)11 12# CHECK: per-test-coverage[[INDEX]].profraw13