-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL][E2E] Add option to build tests on run-only mode if marked as REQUIRES: build-and-run-mode
#16306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL][E2E] Add option to build tests on run-only mode if marked as REQUIRES: build-and-run-mode
#16306
Changes from 2 commits
a61495f
ca76a74
ad80c2e
09db374
fbbbd8e
d30d2a5
1b79472
3f80c04
5d8ce83
7c98bf7
caaeaf1
0d4d13c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,10 +154,14 @@ def execute(self, test, litConfig): | |
| if isinstance(script, lit.Test.Result): | ||
| return script | ||
|
|
||
| unsplit_test = False | ||
| if "build-and-run-mode" in test.requires: | ||
| unsplit_test = True | ||
|
|
||
| devices_for_test = [] | ||
| triples = set() | ||
| if test.config.test_mode == "build-only": | ||
| if "build-and-run-mode" in test.requires or "true" in test.unsupported: | ||
| if unsplit_test or "true" in test.unsupported: | ||
| return lit.Test.Result( | ||
| lit.Test.UNSUPPORTED, "Test unsupported for this environment" | ||
| ) | ||
|
|
@@ -232,7 +236,7 @@ def get_extra_env(sycl_devices): | |
| continue | ||
|
|
||
| # Filter commands based on split-mode | ||
| is_run_line = any( | ||
| is_run_line = unsplit_test or any( | ||
|
||
| i in directive.command | ||
| for i in ["%{run}", "%{run-unfiltered-devices}", "%if run-mode"] | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ | |
| elif config.test_mode == "run-only": | ||
| lit_config.note("run-only test mode enabled, only executing tests") | ||
| config.available_features.add("run-mode") | ||
| config.available_features.add("build-and-run-mode") | ||
|
||
| elif config.test_mode == "build-only": | ||
| lit_config.note("build-only test mode enabled, only compiling tests") | ||
| config.sycl_devices = [] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why, but something in me has a really huge dislike towards "unsplit" anywhere in regard to this feature...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to
ignore_line_filtering, is that better?