diff options
author | John Harrison <John.C.Harrison@Intel.com> | 2022-06-07 14:17:46 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-06-14 12:03:16 -0700 |
commit | 0a9f42d2e0bb0dac3517c5cf0b52c50d5b5f9122 (patch) | |
tree | 943964df8343bef3ed008f8930db5dea46dcde79 | |
parent | ec935f8548e1e289175cbf9bdfbfe6e341720570 (diff) |
tests/i915/query: Add descriptions to existing tests
None of the query tests had a description. So make some up.
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
-rw-r--r-- | tests/i915/i915_query.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/i915/i915_query.c b/tests/i915/i915_query.c index 246a979a..6c73f60a 100644 --- a/tests/i915/i915_query.c +++ b/tests/i915/i915_query.c @@ -923,34 +923,41 @@ igt_main devid = intel_get_drm_devid(fd); } + igt_describe("Test response to an invalid query call"); igt_subtest("query-garbage") test_query_garbage(fd); + igt_describe("Test response to invalid DRM_I915_QUERY_TOPOLOGY_INFO query"); igt_subtest("query-topology-garbage-items") { igt_require(query_topology_supported(fd)); test_query_topology_garbage_items(fd); } + igt_describe("Guardband test for DRM_I915_QUERY_TOPOLOGY_INFO query"); igt_subtest("query-topology-kernel-writes") { igt_require(query_topology_supported(fd)); test_query_topology_kernel_writes(fd); } + igt_describe("Verify DRM_I915_QUERY_TOPOLOGY_INFO query fails when it is not supported"); igt_subtest("query-topology-unsupported") { igt_require(!query_topology_supported(fd)); test_query_topology_unsupported(fd); } + igt_describe("Compare new DRM_I915_QUERY_TOPOLOGY_INFO query with legacy (sub)slice getparams"); igt_subtest("query-topology-coherent-slice-mask") { igt_require(query_topology_supported(fd)); test_query_topology_coherent_slice_mask(fd); } + igt_describe("More compare new DRM_I915_QUERY_TOPOLOGY_INFO query with legacy (sub)slice getparams"); igt_subtest("query-topology-matches-eu-total") { igt_require(query_topology_supported(fd)); test_query_topology_matches_eu_total(fd); } + igt_describe("Verify DRM_I915_QUERY_TOPOLOGY_INFO query against hardcoded known values for certain platforms"); igt_subtest("query-topology-known-pci-ids") { igt_require(query_topology_supported(fd)); igt_require(IS_HASWELL(devid) || IS_BROADWELL(devid) || @@ -959,16 +966,19 @@ igt_main test_query_topology_known_pci_ids(fd, devid); } + igt_describe("Test DRM_I915_QUERY_GEOMETRY_SUBSLICES query"); igt_subtest("test-query-geometry-subslices") { igt_require(query_geometry_subslices_supported(fd)); test_query_geometry_subslices(fd); } + igt_describe("Dodgy returned data tests for DRM_I915_QUERY_MEMORY_REGIONS"); igt_subtest("query-regions-garbage-items") { igt_require(query_regions_supported(fd)); test_query_regions_garbage_items(fd); } + igt_describe("Basic tests for DRM_I915_QUERY_MEMORY_REGIONS"); igt_subtest("query-regions-sanity-check") { igt_require(query_regions_supported(fd)); test_query_regions_sanity_check(fd); @@ -979,9 +989,11 @@ igt_main igt_require(query_engine_info_supported(fd)); } + igt_describe("Negative tests for DRM_I915_QUERY_ENGINE_INFO"); igt_subtest("engine-info-invalid") engines_invalid(fd); + igt_describe("Positive tests for DRM_I915_QUERY_ENGINE_INFO"); igt_subtest("engine-info") engines(fd); } |