-
Notifications
You must be signed in to change notification settings - Fork 20
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
Val: video test stubs and media-proxy related fixtures #304
Open
MateuszGrabuszynski
wants to merge
17
commits into
main
Choose a base branch
from
val-fixtures
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+159
−46
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8b4a088
:doc: change libmcm_dp.so dir path in README (#283)
KarolinaPomian 76484e3
Rewrite test app (#284)
zLukas 45364da
[VAL] Initial push for pytest engine (#273)
MateuszGrabuszynski c332faf
Merge branch 'main' into val-dev
MateuszGrabuszynski 7910275
Modifying validation app's path in CMakeLists.txt
MateuszGrabuszynski dc48155
Trying to add a fixture to kill existing media_proxies and spawn new …
MateuszGrabuszynski a6b8945
Properly marking test_video.py with fixtures
MateuszGrabuszynski 439d2a8
Revert "Properly marking test_video.py with fixtures"
MateuszGrabuszynski 4c15ff1
Escapes for paths in subprocess.run() and TODOs for media_proxy-relat…
MateuszGrabuszynski 2e0d5bd
Parametrizing test_video() with yuv_files.keys()
MateuszGrabuszynski c3835ba
Fix: wrong connection.st2110.transport value
MateuszGrabuszynski c88c7fd
Add: removal of sent file at the end of test to avoid disk full errors
MateuszGrabuszynski 012268d
Add: tests of mock for cluster and st2110 video transfers
MateuszGrabuszynski 766d8f5
Merge branch 'main' into val-fixtures
MateuszGrabuszynski 4abb4ae
Merge branch 'main' into val-fixtures
MateuszGrabuszynski 276787d
Merge branch 'main' into val-fixtures
MateuszGrabuszynski 1e78523
in tests/validation: Extending copyright with 2024-2025; Removing Int…
MateuszGrabuszynski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2024 Intel Corporation | ||
# Intel® Media Communications Mesh | ||
# Copyright 2024-2025 Intel Corporation | ||
# Media Communications Mesh | ||
|
||
LOG_FOLDER = "logs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2024-2025 Intel Corporation | ||
# Media Communications Mesh | ||
import os | ||
import pytest | ||
|
||
import Engine.client_json | ||
import Engine.connection | ||
import Engine.connection_json | ||
import Engine.engine_mcm as utils | ||
import Engine.execute | ||
import Engine.payload | ||
from Engine.media_files import yuv_files | ||
|
||
|
||
@pytest.mark.parametrize("video_type", [k for k in yuv_files.keys()]) | ||
def test_video(build_TestApp, build: str, media: str, video_type): | ||
client = Engine.client_json.ClientJson() | ||
conn_mpg = Engine.connection.Rdma() | ||
payload = Engine.payload.Video( | ||
width=yuv_files[video_type]["width"], | ||
height=yuv_files[video_type]["height"], | ||
fps=yuv_files[video_type]["fps"], | ||
pixelFormat=yuv_files[video_type]["format"], | ||
) | ||
connection = Engine.connection_json.ConnectionJson(connection=conn_mpg, payload=payload) | ||
|
||
utils.create_client_json(build, client) | ||
utils.create_connection_json(build, connection) | ||
|
||
# Use a specified file from media_files.py | ||
media_file = yuv_files[video_type]["filename"] | ||
media_file_path = os.path.join(media, media_file) | ||
|
||
utils.run_rx_tx_with_file(file_path=media_file_path, build=build) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2024-2025 Intel Corporation | ||
# Media Communications Mesh | ||
import os | ||
import pytest | ||
|
||
import Engine.client_json | ||
import Engine.connection | ||
import Engine.connection_json | ||
import Engine.engine_mcm as utils | ||
import Engine.execute | ||
import Engine.payload | ||
from Engine.media_files import yuv_files | ||
|
||
|
||
@pytest.mark.parametrize("video_type", [k for k in yuv_files.keys()]) | ||
def test_video(build_TestApp, build: str, media: str, video_type): | ||
client = Engine.client_json.ClientJson() | ||
conn_mpg = Engine.connection.St2110() | ||
payload = Engine.payload.Video( | ||
width=yuv_files[video_type]["width"], | ||
height=yuv_files[video_type]["height"], | ||
fps=yuv_files[video_type]["fps"], | ||
pixelFormat=yuv_files[video_type]["format"], | ||
) | ||
connection = Engine.connection_json.ConnectionJson(connection=conn_mpg, payload=payload) | ||
|
||
utils.create_client_json(build, client) | ||
utils.create_connection_json(build, connection) | ||
|
||
# Use a specified file from media_files.py | ||
media_file = yuv_files[video_type]["filename"] | ||
media_file_path = os.path.join(media, media_file) | ||
|
||
utils.run_rx_tx_with_file(file_path=media_file_path, build=build) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
using Pathlib is more convenient I believe
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.
Yes, it is, let me change that, thanks for the suggestion :)