Skip to content

Commit 6b70797

Browse files
committed
Add method to set build/run mode
1 parent 851a90a commit 6b70797

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616

1717
# Configuration file for the 'lit' test runner.
1818

19+
# split-mode: Set if tests should run normally or with split build/run
20+
match lit_config.params.get("split-mode","both"):
21+
case "run":
22+
config.available_features.add("run-mode")
23+
case "build":
24+
config.available_features.add("build-mode")
25+
case _:
26+
config.available_features.add("run-mode")
27+
config.available_features.add("build-mode")
28+
1929
# name: The name of this test suite.
2030
config.name = "SYCL"
2131

0 commit comments

Comments
 (0)