Skip to content

New bb tests#473

Open
aviralni wants to merge 23 commits into
oneapi-src:masterfrom
aviralni:new_bb_gtest
Open

New bb tests#473
aviralni wants to merge 23 commits into
oneapi-src:masterfrom
aviralni:new_bb_gtest

Conversation

@aviralni

Copy link
Copy Markdown
Contributor

No description provided.

aviralni added 21 commits May 25, 2026 16:03
Related-To: NEO-18602

Add following apis to python:
1. zesFrequencyGetProperties
2. zesPowerGetProperties
3. zesPowerGetUsage

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Add following apis to python:
1. zesFrequencyGetProperties
2. zesPowerGetProperties
3. zesPowerGetUsage

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Add following apis to python:
1. zesFrequencyGetProperties
2. zesPowerGetProperties
3. zesPowerGetUsage

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Add following apis to python:
1. zesFrequencyGetProperties
2. zesPowerGetProperties
3. zesPowerGetUsage

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Add following apis to python:
1. zesFrequencyGetProperties
2. zesPowerGetProperties
3. zesPowerGetUsage

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18575

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18575

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Added following APIs to python binding:

1. zesDevicePciGetProperties
2. zesDevicePciGetStats
3. zesDeviceEccAvailable
4. zesDeviceEccConfigurable
5. zesDeviceGetEccState
6. zesDeviceSetEccState
7. zesPowerGetLimitsExt
8. zesPowerSetLimitsExt
9. zesFrequencyGetAvailableClocks
10. zesFrequencyGetRange
11. zesFrequencySetRange
12. zesFrequencyGetThrottleTime

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Added following APIs to python binding:

1. zesDevicePciGetProperties
2. zesDevicePciGetStats
3. zesDeviceEccAvailable
4. zesDeviceEccConfigurable
5. zesDeviceGetEccState
6. zesDeviceSetEccState
7. zesPowerGetLimitsExt
8. zesPowerSetLimitsExt
9. zesFrequencyGetAvailableClocks
10. zesFrequencyGetRange
11. zesFrequencySetRange
12. zesFrequencyGetThrottleTime

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Added following APIs to python binding:

1. zesDevicePciGetProperties
2. zesDevicePciGetStats
3. zesDeviceEccAvailable
4. zesDeviceEccConfigurable
5. zesDeviceGetEccState
6. zesDeviceSetEccState
7. zesPowerGetLimitsExt
8. zesPowerSetLimitsExt
9. zesFrequencyGetAvailableClocks
10. zesFrequencyGetRange
11. zesFrequencySetRange
12. zesFrequencyGetThrottleTime
13. zesDevicePciGetState

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Added following APIs to python binding:

1. zesDevicePciGetProperties
2. zesDevicePciGetStats
3. zesDeviceEccAvailable
4. zesDeviceEccConfigurable
5. zesDeviceGetEccState
6. zesDeviceSetEccState
7. zesPowerGetLimitsExt
8. zesPowerSetLimitsExt
9. zesFrequencyGetAvailableClocks
10. zesFrequencyGetRange
11. zesFrequencySetRange
12. zesFrequencyGetThrottleTime
13. zesDevicePciGetState
14. zesPowerGetProperties

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Added following APIs to python binding:

1. zesDevicePciGetProperties
2. zesDevicePciGetStats
3. zesDeviceEccAvailable
4. zesDeviceEccConfigurable
5. zesDeviceGetEccState
6. zesDeviceSetEccState
7. zesPowerGetLimitsExt
8. zesPowerSetLimitsExt
9. zesFrequencyGetAvailableClocks
10. zesFrequencyGetRange
11. zesFrequencySetRange
12. zesFrequencyGetThrottleTime
13. zesDevicePciGetState
14. zesPowerGetProperties

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Related-To: NEO-18602

Added following APIs to python binding:

1. zesDevicePciGetProperties
2. zesDevicePciGetStats
3. zesDeviceEccAvailable
4. zesDeviceEccConfigurable
5. zesDeviceGetEccState
6. zesDeviceSetEccState
7. zesPowerGetLimitsExt
8. zesPowerSetLimitsExt
9. zesFrequencyGetAvailableClocks
10. zesFrequencyGetRange
11. zesFrequencySetRange
12. zesFrequencyGetThrottleTime
13. zesDevicePciGetState
14. zesPowerGetProperties
15. zesFrequencyGetProperties

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
@aviralni aviralni changed the title New bb gtest New bb tests Jun 10, 2026
aviralni added 2 commits June 10, 2026 17:36
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
@@ -0,0 +1,388 @@
##

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this to test/cts_tests/test_power_cts.py


assert found_power_support, "No power handles found on any of the devices"

def test_GivenSamePowerHandleWhenRequestingPowerPropertiesThenExpectSamePropertiesTwiceAndLimitsAreInRange(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need such tests which seems to be similar to L0 CTS?
@joshuaranjan thoughts?

if not exercised_any:
pytest.skip(
"No mutable root-device power limit descriptors were available for zesPowerSetLimitsExt"
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in BMG I think we have 2 domains GPU and MEMORY which get the energy counters from PMT. So please add a test to check if L0 return insufficient permission error for these when test is not running as root.
@joshuaranjan KMD interface might be different for different platform for same APIs, what is the plan to scale these tests?
Today on BMG power APIs might return insufficient permission and the test might pass but what about next platforms?

@shubskmr

Copy link
Copy Markdown
Contributor

please use a better commit title like
test: Add new CTS tests in pyzes

@rwmcguir

Copy link
Copy Markdown
Contributor

As a request, your commit description needs to be a little more verbose. It is not obvious for a public repository what this is about or related to. I don't know for example what a bb test is as a maintainer of the primary L0 Loader product.

@@ -0,0 +1,74 @@
##
# Copyright (C) 2026 Intel Corporation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this under test/
instead of cts_tests folder name , please make it as blackbox_tests

Rename "pyzes_black_box_test.py" to pyzes_examples.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok


import pytest

CTS_TESTS_DIR = os.path.dirname(os.path.abspath(__file__))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename all the variables.
Lets avoid CTS to avoid confusion with actual conformance tests



@pytest.fixture(scope="session")
def sysman_devices(pyzes_module):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the meaning of "conftest" ?
Is it config tests ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conformance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants