[igt-dev] [PATCH i-g-t 8/9] KUnit: Change subtest name from all-tests to module name
Mauro Carvalho Chehab
mauro.chehab at linux.intel.com
Mon Jun 12 13:15:00 UTC 2023
On Mon, 12 Jun 2023 14:49:15 +0200
Dominik Karol Piatkowski <dominik.karol.piatkowski at intel.com> wrote:
> Use KUnit module name instead of all-tests when no name is specified.
>
> Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski at intel.com>
> Cc: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
> Cc: Mauro Carvalho Chehab <mauro.chehab at linux.intel.com>
Works for me.
Reviewed-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> ---
> lib/igt_kmod.c | 2 +-
> tests/drm_mm.c | 42 +++++++++++++++++++++---------------------
> 2 files changed, 22 insertions(+), 22 deletions(-)
>
> diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
> index a6e751482..1511bdef4 100644
> --- a/lib/igt_kmod.c
> +++ b/lib/igt_kmod.c
> @@ -855,7 +855,7 @@ void igt_kunit(const char *module_name, const char *name, const char *opts)
> * and for documentation.
> */
> if (name == NULL)
> - name = "all-tests";
> + name = module_name;
>
> igt_subtest_with_dynamic(name)
> __igt_kunit(module_name, opts);
> diff --git a/tests/drm_mm.c b/tests/drm_mm.c
> index 089eae2b9..9a8b3f3fc 100644
> --- a/tests/drm_mm.c
> +++ b/tests/drm_mm.c
> @@ -29,123 +29,123 @@
> * Feature: mapping
> * Run type: FULL
> *
> - * SUBTEST: all-tests
> + * SUBTEST: drm_mm_test
> *
> - * SUBTEST: all-tests at align
> + * SUBTEST: drm_mm_test at align
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at align32
> + * SUBTEST: drm_mm_test at align32
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at align64
> + * SUBTEST: drm_mm_test at align64
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at bottomup
> + * SUBTEST: drm_mm_test at bottomup
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at color
> + * SUBTEST: drm_mm_test at color
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at color_evict
> + * SUBTEST: drm_mm_test at color_evict
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at color_evict_range
> + * SUBTEST: drm_mm_test at color_evict_range
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at debug
> + * SUBTEST: drm_mm_test at debug
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at evict
> + * SUBTEST: drm_mm_test at evict
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at evict_range
> + * SUBTEST: drm_mm_test at evict_range
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at frag
> + * SUBTEST: drm_mm_test at frag
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at highest
> + * SUBTEST: drm_mm_test at highest
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at init
> + * SUBTEST: drm_mm_test at init
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at insert
> + * SUBTEST: drm_mm_test at insert
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at insert_range
> + * SUBTEST: drm_mm_test at insert_range
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at lowest
> + * SUBTEST: drm_mm_test at lowest
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at replace
> + * SUBTEST: drm_mm_test at replace
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at reserve
> + * SUBTEST: drm_mm_test at reserve
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at sanitycheck
> + * SUBTEST: drm_mm_test at sanitycheck
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
> * Test category: GEM_Legacy
> *
> - * SUBTEST: all-tests at topdown
> + * SUBTEST: drm_mm_test at topdown
> * Category: Infrastructure
> * Description: drm_mm range manager SW validation
> * Functionality: DRM memory mangemnt
More information about the igt-dev
mailing list