164d19542SShivam Guptaimport lit.formats 264d19542SShivam Guptaimport os 364d19542SShivam Gupta 464d19542SShivam Guptaconfig.name = "per-test-coverage" 564d19542SShivam Guptaconfig.suffixes = [".py"] 6*9e739fdbSJoel E. Dennyconfig.test_format = lit.formats.ShTest( 7*9e739fdbSJoel E. Denny execute_external=eval(lit_config.params.get("execute_external")), 8*9e739fdbSJoel E. Denny preamble_commands=["%{python} %s | FileCheck -DINDEX=0 %s"] 9*9e739fdbSJoel E. Denny) 1064d19542SShivam Guptaconfig.substitutions.append(("%{python}", '"%s"' % (sys.executable))) 11