-
Notifications
You must be signed in to change notification settings - Fork 5
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
gh #277 dsVideoPort L3 for an API dsSetAllmEnabled #279
base: develop
Are you sure you want to change the base?
gh #277 dsVideoPort L3 for an API dsSetAllmEnabled #279
Conversation
] | ||
|
||
# Convert input arguments to strings and update the prompts | ||
promptWithAnswers[0]["input"] = str(video_port) |
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.
could you please directly assign strings to input like below.
"input": str(video_port)
"input": str(port_index)
"input": str(mode)
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.
Actually, all other methods follow a similar approach of assigning strings to the input. Therefore, I maintained the same format in this API for consistency.
# Loop through supported video ports and verify ALLM Mode | ||
for port, index in self.testdsVideoPort.getSupportedPorts(): | ||
self.testEnablePort(port, index) | ||
# Set the ALLM Mode as Enable |
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.
could you please add stepstart form here.
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.
Actually, all other methods test cases follow a similar approach of adding stepstart . Therefore, I maintained the same format in this test_case for consistency.
for port, index in self.testdsVideoPort.getSupportedPorts(): | ||
self.testEnablePort(port, index) | ||
# Set the ALLM Mode as Enable | ||
self.testdsVideoPort.setAllmMode(port, index, 'Enable') |
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.
Here we are setting the ALLM mode , why cant we verify through the getAllmMode.
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.
Actually, the verification is performed using an AV analyzer to directly observe the ALLM status and ensure compliance with HDMI specifications. Therefore, the getAllmMode method is not utilized in this context.
src/test_l3_dsVideoPort.c
Outdated
|
||
UT_LOG_INFO("Calling dsGetAllmEnabled(IN:Handle:[0x%0X],OUT:ALLM_Status:[]) ", gHandle); | ||
status = dsGetAllmEnabled(gHandle, &AllmMode); | ||
UT_LOG_INFO("Result dsGetAllmEnabled(IN:Handle:[0x%0X],OUT:ALLM_Status:[%s]) ,dsError_t=[%s]",gHandle, AllmMode,\ |
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.
could you please make the code aligned here.
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.
Updated
src/test_l3_dsVideoPort.c
Outdated
|
||
UT_LOG_INFO("Calling dsSetAllmEnabled(IN:Handle:[0x%0X],IN:ALLM_Status:[]) ", gHandle); | ||
status = dsSetAllmEnabled(gHandle, choice); | ||
UT_LOG_INFO("Result dsSetAllmEnabled(IN:Handle:[0x%0X],IN:ALLM_Status:[%s]) ,dsError_t=[%s]",gHandle, UT_Control_GetMapString(boolMappingTable, choice),\ |
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 make the code aligned here.
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.
Updated
src/test_l3_dsVideoPort.c
Outdated
void dsVideoPort_GetAllmEnabled() | ||
{ | ||
dsError_t status = dsERR_NONE; | ||
bool AllmMode; |
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.
AllmMode ,assign with the default value.
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.
updated with default value.
bool: Result of the ALLM mode verification. | ||
""" | ||
if manual == True: | ||
#hdcpVersion = self.testdsVideoPort.getHDCPVersion() |
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.
can you please remove the commented line if it is not required.
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.
Removed the commented line.
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 check review comments
@@ -56,6 +56,7 @@ Below are top test use-case for the video port. | |||
|7|Resets the video output to `SDR` for Source |Play the `HDR` stream and verify the video content formats|`dsResetOutputToSDR()`|`Y`|`NA`|1| | |||
|8|Select preferred color depth for Source|Select the Color depth from Supported list & verify|`dsSetPreferredColorDepth()`|`Y`|`NA`|`NA`| | |||
|9|sets the background color for Source |Select the background color form supported list & verify|`dsSetBackgroundColor()`|`Y`|`NA`|`NA`| | |||
|10|Enables/Disables ALLM mode for HDMI output video port |Select the ALLM mode for HDMI output video port and verify|`dsSetAllmEnabled()`|`Y`|`NA`|`NA`| |
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 not add in ds-video-port_High-Level_TestSpec.md
please add ALLM mode test case
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.
Updated ALLm mode test case in ds-video-port_High-Level_TestSpec.md
src/test_l3_dsVideoPort.c
Outdated
if(choice < 0 || choice > 1) | ||
{ | ||
UT_LOG_ERROR("\nInvalid ALLM mode selected\n"); | ||
goto exit; |
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.
don't use goto
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.
Removed the goto and updated the code.
src/test_l3_dsVideoPort.c
Outdated
} | ||
|
||
UT_LOG_INFO("Calling dsSetAllmEnabled(IN:Handle:[0x%0X],IN:ALLM_Status:[]) ", gHandle); | ||
status = dsSetAllmEnabled(gHandle, choice); |
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.
add
DS_ASSERT(status == dsERR_NONE);
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.
added DS_ASSERT(status == dsERR_NONE);
src/test_l3_dsVideoPort.c
Outdated
|
||
UT_LOG_INFO("Calling dsGetAllmEnabled(IN:Handle:[0x%0X],OUT:ALLM_Status:[]) ", gHandle); | ||
status = dsGetAllmEnabled(gHandle, &AllmMode); | ||
UT_LOG_INFO("Result dsGetAllmEnabled(IN:Handle:[0x%0X],OUT:ALLM_Status:[%s]) ,dsError_t=[%s]",gHandle, AllmMode,\ |
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.
allmode is a bool so add
UT_Control_GetMapString(boolMappingTable, AllmMode)
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.
Added UT_Control_GetMapString(boolMappingTable, AllmMode)
dsVideoPort_getHandle(); | ||
|
||
UT_LOG_INFO("Calling dsGetAllmEnabled(IN:Handle:[0x%0X],OUT:ALLM_Status:[]) ", gHandle); | ||
status = dsGetAllmEnabled(gHandle, &AllmMode); |
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.
add
DS_ASSERT(status == dsERR_NONE);
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.
added DS_ASSERT(status == dsERR_NONE);
|
||
result = self.utMenu.select(self.testSuite, "Set AllmMode", promptWithAnswers) | ||
|
||
|
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.
add dsGetAllmEnabled() in the class ?
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.
Added dsGetAllmEnabled() in the class
""" | ||
if manual == True: | ||
#hdcpVersion = self.testdsVideoPort.getHDCPVersion() | ||
return self.testUserResponse.getUserYN(f'Is ALLM Mode (Enable/Disable) is displayed on Analyzer (Y/N): ') |
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.
Need to specify the is enabled or disabled not both
like is ALLM Mode Enabled ?
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.
updated for respective modes seperately.
#!/usr/bin/env python3 | ||
#** ***************************************************************************** | ||
# * | ||
# * If not stated otherwise in this file or this component's LICENSE file the |
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 update this test case to run all source python
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.
Updated the file dsVideoPort_RunAll_L3_SinkTest.py
Added L3 test case for dsSetAllmEnabled