-
Notifications
You must be signed in to change notification settings - Fork 17
[Camera] Add CameraAppTestSuite for Matter Camera TCs #210
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
[Camera] Add CameraAppTestSuite for Matter Camera TCs #210
Conversation
…troller. Signed-off-by: Sathvik K Gatti <[email protected]> Signed-off-by: Suyambulingam Rathinasamy Muthupandi <[email protected]> Signed-off-by: Charles Kim <[email protected]>
Signed-off-by: Sathvik K Gatti <[email protected]> Signed-off-by: Suyambulingam Rathinasamy Muthupandi <[email protected]> Signed-off-by: Charles Kim <[email protected]>
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.
Hi @chulspro,
This camera support should probably be merged on the next release of Test Harness, the v2.13+summer2025
version.
Please change this PR's base from main
to the v2.13-develop
to test it against the latest code for the next release.
@antonio-amjr : Okay, Thank you for sharing the exact brach. I will change PR's to v2.13-develop branch. |
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.
LGTM.
Just one simple change is required in a Unit Test file (explained in sequence) and some other minor suggestions
@@ -238,7 +238,8 @@ async def run_test( | |||
[test_path], parser_config, test_parser_hooks | |||
) | |||
|
|||
if server_type == ChipServerType.CHIP_TOOL: | |||
#Reuse chip-tool adapter for camera-controller |
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.
#Reuse chip-tool adapter for camera-controller | |
# Reuse chip-tool adapter for camera-controller |
@@ -228,7 +228,7 @@ async def run_test( | |||
pics_path = f"{PICS_FILE_PATH}" | |||
self.logger.info(f"Using PICS file: {pics_path}") | |||
|
|||
if server_type == ChipServerType.CHIP_TOOL: | |||
if server_type == ChipServerType.CHIP_TOOL or server_type == ChipServerType.CHIP_CAMERA_CONTROLLER: |
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.
if server_type == ChipServerType.CHIP_TOOL or server_type == ChipServerType.CHIP_CAMERA_CONTROLLER: | |
if ( | |
server_type == ChipServerType.CHIP_TOOL | |
or server_type == ChipServerType.CHIP_CAMERA_CONTROLLER | |
): |
@@ -238,7 +238,8 @@ async def run_test( | |||
[test_path], parser_config, test_parser_hooks | |||
) | |||
|
|||
if server_type == ChipServerType.CHIP_TOOL: | |||
#Reuse chip-tool adapter for camera-controller | |||
if server_type == ChipServerType.CHIP_TOOL or server_type == ChipServerType.CHIP_CAMERA_CONTROLLER: |
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.
if server_type == ChipServerType.CHIP_TOOL or server_type == ChipServerType.CHIP_CAMERA_CONTROLLER: | |
if ( | |
server_type == ChipServerType.CHIP_TOOL | |
or server_type == ChipServerType.CHIP_CAMERA_CONTROLLER | |
): |
|
||
class YamlCameraChipTestCase(YamlTestCase, ChipTest): |
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.
class YamlCameraChipTestCase(YamlTestCase, ChipTest): | |
class YamlCameraChipTestCase(YamlTestCase, ChipTest): |
|
||
class ChipCameraYamlTestSuite(YamlTestSuite, ChipSuite): |
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.
class ChipCameraYamlTestSuite(YamlTestSuite, ChipSuite): | |
class ChipCameraYamlTestSuite(YamlTestSuite, ChipSuite): |
from .yaml_test_models import YamlTest | ||
|
||
|
||
class YamlParserException(Exception): | ||
"""Raised when an error occurs during the parser of yaml file.""" | ||
|
||
|
||
def _test_type(test: YamlTest) -> MatterTestType: | ||
def _get_types(test: YamlTest) -> tuple[MatterTestType, SuiteType]: |
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.
Please, also change the method name in the Unit Test file test_yaml_parser.py
everywhere it's used.
If possible, please run the Unit Tests to verify if anything else is missing or an issue is encountered.
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.
Sorry, I mistakenly approved the last review.
I'll leave here again my request to change the base to the v2.13-develop branch
I move this PR210 to PR214 |
Problem
Change overview
Testing