llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/lit.cfg
raw| 1 | import lit.formats |
| 2 | import os |
| 3 | |
| 4 | config.name = "per-test-coverage-by-lit-cfg" |
| 5 | config.suffixes = [".py"] |
| 6 | config.test_format = lit.formats.ShTest( |
| 7 | execute_external=eval(lit_config.params.get("execute_external")), |
| 8 | preamble_commands=["%{python} %s | FileCheck -DINDEX=0 %s"] |
| 9 | ) |
| 10 | lit_config.per_test_coverage = True |
| 11 | config.substitutions.append(("%{python}", '"%s"' % (sys.executable))) |