Check if test exists before adding validation (#1478)

* Check if test exists before adding validation

* Adjust validation parameters for rocpd_string

Signed-off-by: David Galiffi <David.Galiffi@amd.com>

---------

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
David Galiffi
2025-10-22 12:19:38 -04:00
gecommit door GitHub
bovenliggende 3808f7ea76
commit e453705d9b
9 gewijzigde bestanden met toevoegingen van 24 en 24 verwijderingen
@@ -46,7 +46,7 @@
"comparison": "greater_than",
"description": "Verify that 'rocm_rocjpeg_api' string is present in the table",
"error_message": "'rocm_rocjpeg_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_rocjpeg_api%';"
}
]
@@ -121,10 +121,10 @@
],
"validation_queries": [
{
"comparison": "greater_than_or_equal",
"comparison": "greater_than",
"description": "Verify that 'rocm_hip_api' string is present in the table",
"error_message": "'rocm_hip_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_hip_api%';"
}
]
@@ -36,10 +36,10 @@
],
"validation_queries": [
{
"comparison": "greater_than_or_equal",
"comparison": "greater_than",
"description": "Verify that 'rocm_ompt_api' string is present in the table",
"error_message": "'rocm_ompt_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_ompt_api%';"
}
]
@@ -87,10 +87,10 @@
],
"validation_queries": [
{
"comparison": "greater_than_or_equal",
"comparison": "greater_than",
"description": "Verify that 'rocm_hsa_api' string is present in the table",
"error_message": "'rocm_hsa_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_hsa_api%';"
}
]
@@ -38,10 +38,10 @@
],
"validation_queries": [
{
"comparison": "equals",
"description": "Verify that 'rocm_marker_api' appears in category 11 times in 'regions' table",
"error_message": "Expected 11 'rocm_marker_api' entries in the 'regions' table",
"expected_result": 11,
"comparison": "greater_than_or_equal",
"description": "Verify that 'rocm_marker_api' appears in category 10 times in 'regions' table",
"error_message": "Less than 10 'rocm_marker_api' entries in the 'regions' table",
"expected_result": 10,
"query": "SELECT COUNT(*) FROM regions WHERE category = 'rocm_marker_api';"
},
{
@@ -91,17 +91,17 @@
],
"validation_queries": [
{
"comparison": "greater_than_or_equal",
"comparison": "greater_than",
"description": "Verify that 'rocm_marker_api' string is present in the table",
"error_message": "'rocm_marker_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_marker_api%';"
},
{
"comparison": "greater_than",
"description": "Verify that 'roctx' string is present in the table",
"error_message": "'roctx' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%roctx%';"
}
]
@@ -73,7 +73,7 @@
"comparison": "greater_than",
"description": "Verify that 'rocm_hip_api' string is present in the table",
"error_message": "'rocm_hip_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_hip_api%';"
}
]
@@ -144,7 +144,7 @@
"comparison": "greater_than",
"description": "Verify that 'rocm_hsa_api' string is present in the table",
"error_message": "'rocm_hsa_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_hsa_api%';"
}
]
@@ -73,7 +73,7 @@
"comparison": "greater_than",
"description": "Verify that 'rocm_rocdecode_api' string is present in the table",
"error_message": "'rocm_rocdecode_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_rocdecode_api%';"
}
]
@@ -148,10 +148,10 @@
],
"validation_queries": [
{
"comparison": "greater_than_or_equal",
"comparison": "greater_than",
"description": "Verify that 'rocm_hip_api' string is present in the table",
"error_message": "'rocm_hip_api' string not found in the table rocpd_string",
"expected_result": 1,
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%rocm_hip_api%';"
}
]
@@ -90,7 +90,7 @@ rocprofiler_systems_add_validation_test(
ARGS -l rocDecCreateVideoParser -c 2 -d 1 ${_vcn_counter_names} -p
)
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU})
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU} AND TEST video-decode-sampling)
set_property(TEST video-decode-sampling APPEND PROPERTY LABELS rocpd)
rocprofiler_systems_add_validation_test(
@@ -126,7 +126,7 @@ rocprofiler_systems_add_validation_test(
ARGS -l rocJpegCreate -c 1 -d 1 ${_jpeg_counter_names} -p
)
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU})
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU} AND TEST jpeg-decode-sampling)
set_property(TEST jpeg-decode-sampling APPEND PROPERTY LABELS rocpd)
rocprofiler_systems_add_validation_test(
@@ -95,7 +95,7 @@ rocprofiler_systems_add_validation_test(
-p
)
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU})
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU} AND TEST openmp-target-sampling)
set_property(TEST openmp-target-sampling APPEND PROPERTY LABELS rocpd)
rocprofiler_systems_add_validation_test(
@@ -164,7 +164,7 @@ endif()
#
# -------------------------------------------------------------------------------------- #
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU})
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU} AND TEST transpose-sampling)
set_property(TEST transpose-sampling APPEND PROPERTY LABELS rocpd)
rocprofiler_systems_add_validation_test(
@@ -106,7 +106,7 @@ rocprofiler_systems_add_validation_test(
ARGS -l ${ROCTX_LABEL} -c ${ROCTX_COUNT} -d ${ROCTX_DEPTH} -p
)
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU})
if(${ENABLE_ROCPD_TEST} AND ${_VALID_GPU} AND TEST transpose-sampling)
set_property(TEST roctx-api-sampling APPEND PROPERTY LABELS rocpd)
rocprofiler_systems_add_validation_test(