Files
David Galiffi 32f9fa6ca5 Enable some simple ROCpd testing (#834)
* Add for rocpd testing and output validation

Add for transpose, video-decode, jpeg-decode, roctx, and openmp-target
Add JSON check to pre-commit-config

Co-authored-by: Marjan Antic <Marjan.Antic@amd.com>

* Remove redundant environment variable

* Fix spelling typo

* Fix typo in error message

* Fix memory_allocation query

* Incorperate feedback from review. Handle case where there are multiple matching "name_prefix" tables.

* Fix environment settings in `rocprof-sys-testing.cmake`

Accidently removed in previous refactoring.

* Formatting python file

---------

Co-authored-by: Marjan Antic <Marjan.Antic@amd.com>
2025-10-20 17:40:10 -04:00

54 строки
2.1 KiB
JSON

{
"required_tables": [
{
"name": "rocpd_string",
"required_columns": [
"id",
"guid",
"string"
],
"validation_queries": [
{
"comparison": "greater_than",
"description": "Check if 'timer sampling' exists in string entries",
"error_message": "'timer sampling' string not found in rocpd_string",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string LIKE '%timer_sampling%';"
},
{
"comparison": "equals",
"description": "Verify no empty string values",
"error_message": "Empty or NULL string entries found in view_rocpd_string",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM rocpd_string WHERE string IS NULL OR TRIM(string) = '';"
}
]
},
{
"name": "regions",
"required_columns": [
"guid",
"category",
"id",
"name"
],
"validation_queries": [
{
"comparison": "greater_than",
"description": "Check that category column contains more than 1000 'timer_sampling' entries",
"error_message": "Less than 1001 'timer_sampling' entries found in category column of regions",
"expected_result": 1000,
"query": "SELECT COUNT(*) FROM regions WHERE category = 'timer_sampling';"
},
{
"comparison": "equals",
"description": "Verify no NULL or empty values in guid column",
"error_message": "NULL or empty guid values found in regions",
"expected_result": 0,
"query": "SELECT COUNT(*) FROM regions WHERE guid IS NULL OR TRIM(guid) = '';"
}
]
}
]
}