-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Val: video test stubs and media-proxy related fixtures (#304)
* Add: stub for fixtures relating to media_proxy process lifecycle (spawning, killing) * Add: removal of sent file at the end of test to avoid disk full errors * Add: tests of mock for cluster and st2110 video transfers * Fix: wrong connection.st2110.transport value * Add: todos for further code extension * in tests/validation: Extending copyright with 2024-2025 * in tests/validation: Removing 'Intel(R)' from Media Communications Mesh
- Loading branch information
1 parent
498b832
commit 8935e44
Showing
20 changed files
with
168 additions
and
50 deletions.
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) |