update analyze_workload test names for consistency with other pytest files
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
[ROCm/rocprofiler-compute commit: 95c6d9d98c]
This commit is contained in:
committad av
Karl W. Schulz
förälder
7a2d860330
incheckning
2888bb8e49
@@ -21,7 +21,7 @@ omniperf = SourceFileLoader("omniperf", "src/omniperf").load_module()
|
||||
##################################################ule()
|
||||
|
||||
|
||||
def test_analyze_dispatch_invalid_MI100():
|
||||
def test_dispatch_invalid_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -32,7 +32,7 @@ def test_analyze_dispatch_invalid_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_verbose_4_MI100():
|
||||
def test_kernel_verbose_4_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -43,7 +43,7 @@ def test_analyze_kernel_verbose_4_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_no_roof_MI100():
|
||||
def test_no_roof_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv", ["omniperf", "analyze", "--path", "tests/workloads/no_roof/MI100"]
|
||||
@@ -53,7 +53,7 @@ def test_analyze_no_roof_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_verbose_5_MI100():
|
||||
def test_kernel_verbose_5_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -64,7 +64,7 @@ def test_analyze_kernel_verbose_5_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_CPC_MI100():
|
||||
def test_ipblocks_CPC_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -75,7 +75,7 @@ def test_analyze_ipblocks_CPC_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQ_SQC_TCP_CPC_MI100():
|
||||
def test_ipblocks_SQ_SQC_TCP_CPC_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -91,7 +91,7 @@ def test_analyze_ipblocks_SQ_SQC_TCP_CPC_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_verbose_2_MI100():
|
||||
def test_kernel_verbose_2_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -102,7 +102,7 @@ def test_analyze_kernel_verbose_2_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQ_MI100():
|
||||
def test_ipblocks_SQ_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -113,7 +113,7 @@ def test_analyze_ipblocks_SQ_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_substr_MI100():
|
||||
def test_kernel_substr_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -124,7 +124,7 @@ def test_analyze_kernel_substr_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_CPF_MI100():
|
||||
def test_ipblocks_CPF_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -135,7 +135,7 @@ def test_analyze_ipblocks_CPF_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_dispatch_0_1_MI100():
|
||||
def test_dispatch_0_1_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -146,7 +146,7 @@ def test_analyze_dispatch_0_1_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_verbose_0_MI100():
|
||||
def test_kernel_verbose_0_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -157,7 +157,7 @@ def test_analyze_kernel_verbose_0_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQC_MI100():
|
||||
def test_ipblocks_SQC_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -168,7 +168,7 @@ def test_analyze_ipblocks_SQC_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_join_type_grid_MI100():
|
||||
def test_join_type_grid_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -179,7 +179,7 @@ def test_analyze_join_type_grid_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_TCP_MI100():
|
||||
def test_ipblocks_TCP_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -190,7 +190,7 @@ def test_analyze_ipblocks_TCP_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_verbose_3_MI100():
|
||||
def test_kernel_verbose_3_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -201,7 +201,7 @@ def test_analyze_kernel_verbose_3_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_device_inv_int_MI100():
|
||||
def test_device_inv_int_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -212,7 +212,7 @@ def test_analyze_device_inv_int_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQ_SPI_MI100():
|
||||
def test_ipblocks_SQ_SPI_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -223,7 +223,7 @@ def test_analyze_ipblocks_SQ_SPI_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_summaries_MI100():
|
||||
def test_kernel_summaries_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -234,7 +234,7 @@ def test_analyze_kernel_summaries_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_dispatch_2_MI100():
|
||||
def test_dispatch_2_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -245,7 +245,7 @@ def test_analyze_dispatch_2_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_inv_int_MI100():
|
||||
def test_kernel_inv_int_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -256,7 +256,7 @@ def test_analyze_kernel_inv_int_MI100():
|
||||
assert e.value.code == 1
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQ_SPI_TA_TCC_CPF_MI100():
|
||||
def test_ipblocks_SQ_SPI_TA_TCC_CPF_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -272,7 +272,7 @@ def test_analyze_ipblocks_SQ_SPI_TA_TCC_CPF_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_dispatch_7_MI100():
|
||||
def test_dispatch_7_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -283,7 +283,7 @@ def test_analyze_dispatch_7_MI100():
|
||||
assert e.value.code == 1
|
||||
|
||||
|
||||
def test_analyze_kernel_inv_str_MI100():
|
||||
def test_kernel_inv_str_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -294,7 +294,7 @@ def test_analyze_kernel_inv_str_MI100():
|
||||
assert e.value.code == 1
|
||||
|
||||
|
||||
def test_analyze_ipblocks_TCC_MI100():
|
||||
def test_ipblocks_TCC_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -305,7 +305,7 @@ def test_analyze_ipblocks_TCC_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQ_TA_MI100():
|
||||
def test_ipblocks_SQ_TA_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -316,7 +316,7 @@ def test_analyze_ipblocks_SQ_TA_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SPI_MI100():
|
||||
def test_ipblocks_SPI_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -327,7 +327,7 @@ def test_analyze_ipblocks_SPI_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_SQ_CPC_MI100():
|
||||
def test_ipblocks_SQ_CPC_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -338,7 +338,7 @@ def test_analyze_ipblocks_SQ_CPC_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_dispatch_6_8_MI100():
|
||||
def test_dispatch_6_8_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -349,7 +349,7 @@ def test_analyze_dispatch_6_8_MI100():
|
||||
assert e.value.code == 1
|
||||
|
||||
|
||||
def test_analyze_dispatch_0_MI100():
|
||||
def test_dispatch_0_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -360,7 +360,7 @@ def test_analyze_dispatch_0_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_kernel_verbose_1_MI100():
|
||||
def test_kernel_verbose_1_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -371,7 +371,7 @@ def test_analyze_kernel_verbose_1_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_TA_MI100():
|
||||
def test_ipblocks_TA_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -382,7 +382,7 @@ def test_analyze_ipblocks_TA_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_ipblocks_TD_MI100():
|
||||
def test_ipblocks_TD_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
@@ -393,7 +393,7 @@ def test_analyze_ipblocks_TD_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_path_MI100():
|
||||
def test_path_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv", ["omniperf", "analyze", "--path", "tests/workloads/path/MI100"]
|
||||
@@ -403,7 +403,7 @@ def test_analyze_path_MI100():
|
||||
assert e.value.code == 0
|
||||
|
||||
|
||||
def test_analyze_join_type_kernel_MI100():
|
||||
def test_join_type_kernel_MI100():
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch(
|
||||
"sys.argv",
|
||||
|
||||
Referens i nytt ärende
Block a user