From 2888bb8e49f7616df73783a06fe0cd4b1f5c90fa Mon Sep 17 00:00:00 2001 From: Karl W Schulz Date: Tue, 27 Feb 2024 11:24:44 -0600 Subject: [PATCH] update analyze_workload test names for consistency with other pytest files Signed-off-by: Karl W Schulz [ROCm/rocprofiler-compute commit: 95c6d9d98cd59d62379e63806d70a94ebb4cf746] --- .../tests/test_analyze_workloads.py | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/projects/rocprofiler-compute/tests/test_analyze_workloads.py b/projects/rocprofiler-compute/tests/test_analyze_workloads.py index 004f493cb0..7a946dc0f7 100644 --- a/projects/rocprofiler-compute/tests/test_analyze_workloads.py +++ b/projects/rocprofiler-compute/tests/test_analyze_workloads.py @@ -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",