Skip to content

Commit

Permalink
Rewrite aspect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySachkov committed Feb 23, 2024
1 parent 01c2d70 commit 9e548b8
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions test_plans/sycl_ext_oneapi_composite_device.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,21 @@ The test should also check the value returned for the descriptor:

=== New device aspects

Composite devices are not considered as root devices and therefore they won't
ever be selected by the CTS. To increase coverage, tests in this subcategory
should be additionally performed on a composite device the selected device
belongs to (if the selected device is a component device).

==== `ext_oneapi_is_composite`

The test should check that if a tested device has the aspect, then the
device should be present in a list returned by both `get_composite_devices()`
and `platform::ext_oneapi_get_composite_devices()`.
The test should ensure that all of devices returned by
`get_composite_devices()` and `platform::ext_oneapi_get_composite_devices()`
have `ext_oneapi_is_composite` aspect.

==== `ext_oneapi_is_component`

The test should check that if a tested device has the aspect, then the
device should *not* be present in a list returned by either
`get_composite_devices()` or `platform::ext_oneapi_get_composite_devices()`.
The test should ensure that none of devices returned by
`get_composite_devices()` and `platform::ext_oneapi_get_composite_devices()`
have `ext_oneapi_is_component` aspect.

The test should then attempt to partition a component device using one of
partition methods it supports and check that none of sub-devices have the
`ext_oneapi_is_component` aspect.
If the CTS selected device is a component device, then test should then attempt
to partition a component device using one of partition methods it supports and
check that none of sub-devices have the `ext_oneapi_is_component` aspect.

=== Impact on "descendent device"

Expand Down

0 comments on commit 9e548b8

Please sign in to comment.