blob: b83d61eec595b5da87d4340ae9303a5904f2f415 [file] [log] [blame] [edit]
import lit.formats
import os
config.name = "per-test-coverage-by-lit-cfg"
config.suffixes = [".py"]
config.test_format = lit.formats.ShTest(
execute_external=eval(lit_config.params.get("execute_external")),
preamble_commands=["%{python} %s | FileCheck -DINDEX=0 %s"]
)
lit_config.per_test_coverage = True
config.substitutions.append(("%{python}", '"%s"' % (sys.executable)))