Skip to content

Commit

Permalink
Actualized test_arg_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
artanokhov committed Sep 11, 2024
1 parent a649a42 commit 5a7bf4d
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions utils/tests/test_arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
pytest.param(
{
'mode': 'build',
'package_url': 'openvino_dev_p_2022.1.0.320.zip',
'package_url': 'openvino_genai_ubuntu22_2024.5.0.0.dev20240905_x86_64.tar.gz',
'source': 'local',
},
{
Expand All @@ -72,57 +72,57 @@
pytest.param(
{
'mode': 'build',
'package_url': 'openvino_dev_p_2022.1.0.320.zip',
'package_url': 'openvino_genai_ubuntu22_2024.5.0.0.dev20240905_x86_64.tar.gz',
'source': 'local',
'tag_postfix': '_qqq',
},
{
'device': ['cpu', 'gpu'],
'dockerfile_name': 'openvino_cg_dev_2022.1.0.dockerfile',
'dockerfile_name': 'openvino_cg_dev_2024.3.0.dockerfile',
'python': 'python38',
'tags': ['ubuntu18_dev:2022.1.0.320', 'ubuntu18_dev:latest', 'ubuntu18_dev:2022.1.0.320_qqq'],
'tags': ['ubuntu18_dev:2022.1.0.320', 'ubuntu18_dev:latest', 'ubuntu18_dev:2024.5.0.0.dev20240905_qqq'],
'distribution': 'dev',
'install_type': 'copy',
'product_version': '2022.1.0',
'product_version': '2024.5.0.0.dev20240905',
},
id='check tag postfix',
),
pytest.param(
{
'mode': 'build',
'package_url': 'openvino_dev_p_2022.1.0.320.zip',
'source': 'local',
'os': 'winserver2019',
'pre_stage_msbuild': 'msbuild2019_online',
},
{
'device': ['cpu'],
'dockerfile_name': 'openvino_c_dev_2022.1.0.dockerfile',
'python': 'python38',
'tags': ['winserver2019_dev:2022.1.0.320', 'winserver2019_dev:latest'],
'distribution': 'dev',
'product_version': '2022.1.0',
},
id='winserver2019',
),
pytest.param(
{
'mode': 'build',
'package_url': 'openvino_dev_p_2022.1.0.320.zip',
'distribution': 'base',
'file': 'openvino_c_base_2022.1.dockerfile',
'source': 'local',
},
{
'device': ['cpu'],
'dockerfile_name': 'openvino_c_base_2022.1.0.dockerfile',
'python': 'python38',
'tags': ['ubuntu18_base_cpu:2022.1.0', 'ubuntu18_base_cpu:latest'],
'distribution': 'base',
'product_version': '2022.1.0',
},
id='ubuntu base',
),
# pytest.param(
# {
# 'mode': 'build',
# 'package_url': 'openvino_dev_p_2022.1.0.320.zip',
# 'source': 'local',
# 'os': 'winserver2019',
# 'pre_stage_msbuild': 'msbuild2019_online',
# },
# {
# 'device': ['cpu'],
# 'dockerfile_name': 'openvino_c_dev_2022.1.0.dockerfile',
# 'python': 'python38',
# 'tags': ['winserver2019_dev:2022.1.0.320', 'winserver2019_dev:latest'],
# 'distribution': 'dev',
# 'product_version': '2022.1.0',
# },
# id='winserver2019',
# ),
# pytest.param(
# {
# 'mode': 'build',
# 'package_url': 'openvino_dev_p_2022.1.0.320.zip',
# 'distribution': 'base',
# 'file': 'openvino_c_base_2022.1.dockerfile',
# 'source': 'local',
# },
# {
# 'device': ['cpu'],
# 'dockerfile_name': 'openvino_c_base_2022.1.0.dockerfile',
# 'python': 'python38',
# 'tags': ['ubuntu18_base_cpu:2022.1.0', 'ubuntu18_base_cpu:latest'],
# 'distribution': 'base',
# 'product_version': '2022.1.0',
# },
# id='ubuntu base',
# ),
pytest.param(
{
'mode': 'build',
Expand Down Expand Up @@ -160,35 +160,35 @@
pytest.param(
{
'mode': 'build',
'package_url': 'l_openvino_toolkit_dev_ubuntu18_p_2022.1.0.dev20211216.tgz',
'package_url': 'openvino_genai_ubuntu22_2024.5.0.0.dev20240905_x86_64.tar.gz',
'source': 'local',
},
{
'device': ['cpu', 'gpu'],
'python': 'python38',
'dockerfile_name': 'openvino_cg_dev_2022.1.0.dev20211216.dockerfile',
'tags': ['ubuntu18_dev:2022.1.0.dev20211216', 'ubuntu18_dev:latest'],
'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dev20240905.dockerfile',
'tags': ['ubuntu22_dev:2024.5.0.0.dev20240905', 'ubuntu22_dev:latest'],
'distribution': 'dev',
'product_version': '2022.1.0.dev20211216',
'build_id': '2022.1.0.dev20211216',
'product_version': '2024.5.0.0.dev20240905',
'build_id': '2024.5.0.0.dev20240905',
},
id='dev product version',
),
pytest.param(
{
'mode': 'build',
'package_url': 'openvino_dev_p_2022.1.0.320.zip',
'package_url': 'openvino_genai_ubuntu22_2024.5.0.0.tar.gz',
'source': 'local',
'tags': ['my_tag:latest'],
'device': ['cpu', 'hddl'],
'device': ['cpu', 'gpu'],
},
{
'device': ['cpu', 'hddl'],
'device': ['cpu', 'gpu'],
'python': 'python38',
'dockerfile_name': 'openvino_ch_dev_2022.1.0.dockerfile',
'dockerfile_name': 'openvino_ch_dev_2024.5.0.dockerfile',
'tags': ['my_tag:latest'],
'distribution': 'dev',
'product_version': '2022.1.0',
'product_version': '2024.5.0.0',
},
id='set tags and device manually',
),
Expand Down Expand Up @@ -235,17 +235,17 @@
pytest.param(
{
'mode': 'all',
'package_url': 'openvino_dev_p_2022.1.0.320.zip',
'package_url': 'openvino_genai_ubuntu22_2024.5.0.0_x86_64.tar.gz',
'source': 'local',
'registry': 'https://deploy',
},
{
'device': ['cpu', 'gpu'],
'python': 'python38',
'tags': ['ubuntu18_dev:2022.1.0.320', 'ubuntu18_dev:latest'],
'dockerfile_name': 'openvino_cg_dev_2022.1.0.dockerfile',
'tags': ['ubuntu22_dev:2024.5.0.0', 'ubuntu22_dev:latest'],
'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dockerfile',
'distribution': 'dev',
'product_version': '2022.1.0',
'product_version': '2024.5.0.0',
},
id='Successful all',
),
Expand Down

0 comments on commit 5a7bf4d

Please sign in to comment.