Skip to content

Commit e01b506

Browse files
committed
Add missing lit cfg files
1 parent 561887a commit e01b506

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

lit.cfg.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import os
2+
3+
import lit.formats
4+
from lit.TestingConfig import TestingConfig
5+
6+
# Imagine that, all your variables defined and with types!
7+
assert isinstance(config := eval("config"), TestingConfig)
8+
9+
config.name = "Lighthouse test suite"
10+
config.test_format = lit.formats.ShTest(True)
11+
config.test_source_root = os.path.dirname(__file__)
12+
config.test_exec_root = os.path.dirname(__file__) + "/lit.out"
13+
14+
config.substitutions.append(("%PYTHON", "uv run"))
15+
if filecheck_path := os.environ.get("FILECHECKPATH"):
16+
config.substitutions.append(("FileCheck", filecheck_path))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.excludes = ["MLPModel"]

python/examples/lit.local.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.suffixes = {'.py'}

0 commit comments

Comments
 (0)