File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
RUN: sycl-ls --verbose > vanilla_verbose.out
4
4
RUN: sycl-ls > vanilla.out
5
5
6
+ RUN: env ONEAPI_DEVICE_SELECTOR="opencl:*" sycl-ls > ods_opencl.out
7
+ RUN: env SYCL_DEVICE_ALLOWLIST="BackendName:opencl" sycl-ls > sda_opencl.out
8
+ RUN: diff ods_opencl.out sda_opencl.out
9
+
6
10
-- Check the functioning of '--ignore-device-selectors' CLI option.
7
11
8
12
RUN: env ONEAPI_DEVICE_SELECTOR="opencl:*" sycl-ls --ignore-device-selectors > ods_ignore_device_selector.out
@@ -16,3 +20,8 @@ RUN: diff vanilla.out sda_ignore_device_selector.out
16
20
17
21
RUN: env SYCL_DEVICE_ALLOWLIST="BackendName:opencl" sycl-ls --ignore-device-selectors --verbose > sda_ignore_device_selector_v.out
18
22
RUN: diff vanilla_verbose.out sda_ignore_device_selector_v.out
23
+
24
+ -- Check illegal CLI option with sycl-ls.
25
+
26
+ RUN: not sycl-ls --some-random-option &> error_msg.txt ; FileCheck --input-file error_msg.txt --check-prefix CHECK_ERROR_MSG %s
27
+ CHECK_ERROR_MSG: Usage: sycl-ls [--verbose] [--ignore-device-selectors]
You can’t perform that action at this time.
0 commit comments