Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2317348rwi; Tue, 1 Nov 2022 06:29:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ml9fxX/NALod8CFDYsXw1IGkQCAUEf53f4Cjz223ZJeIzb4HMztzE7cWdsn3S9l41mc7R X-Received: by 2002:a17:902:d512:b0:181:f1f4:fcb4 with SMTP id b18-20020a170902d51200b00181f1f4fcb4mr19817387plg.102.1667309356533; Tue, 01 Nov 2022 06:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667309356; cv=none; d=google.com; s=arc-20160816; b=EDT5B1UH2fEWpRP9BnDoZZUPKLyZneaa6Ffj5MJ8rfIyh90Hm148dAa/UWFOQln5iC Al3O6GsILvI2Lz5L1uMl4X2PYCdi/SkL98bdhNSSYb8fRchvbYXbV3ukZK03krFqzaw4 49hZVsuRYw/boZhc4jJ1lRe93V7+jMUvAsXsLzwFMK2Nr+0o54Aj3HpmEQjtv97963Dw 6s1O19Jqjd8NT0MEFdcN7qnhZWRt+mKY+quw6EvCa2Eybnb4Exk9wmMs/1dZH6PBRcxz x/ZXVplkHhCrGFT0nOFfimXJGHWtCYlancauWfQOXvIXVeob5eK1iKf2Tc7L9SKDaW67 YQLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=480CzF1WgkPx4zX3JX1xaLW/OWzaimfDfBSrHki15+U=; b=q7upx6LayPuoBriI1nouG+4/DRrzyHmfKGMXe9BwwSNhaR1pdjKoI9/mCvy4AyS0CJ hH6ai6XZLOcgKf4I2bx0xzDbfkQWFSrG4McV0vjSXBRLDVSLtEg/AdN0D+zdK+EbY8pQ i11GQUzAvzCvMK0TgZ7TjnQFgHXBQligRCGdSUBOH++Y2hooFKAdGON+HEC/oav4KWnQ cIoqyEkyHbv16nPfDuUzP5o9NnLaxGmI9bwYoo+VIcJJzi2QG4BwsMnmKExprJnPHZo1 fYMwaW1epSYmizDjeBi7/aHCjpWbHCPjtPQNAVQstZ+tq0kHj5KhZWWZVZZ0PSA8zWy8 YO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Mi/+g9Ch"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a17090abb1000b0020adba9ec02si11745806pjr.82.2022.11.01.06.29.01; Tue, 01 Nov 2022 06:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Mi/+g9Ch"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbiKANQO (ORCPT + 97 others); Tue, 1 Nov 2022 09:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbiKANQL (ORCPT ); Tue, 1 Nov 2022 09:16:11 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 477D411A34; Tue, 1 Nov 2022 06:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667308568; x=1698844568; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tT397+jp9ZyIWZq1wBaiRl8vuDNYk3uHjClfBLhU7oo=; b=Mi/+g9Che/3wlVGRaEoBnBhkqsdZ65GvmHmdaXTefqrpuHeYvX8Che6b Nq9w9mEaLIUoItTffcXfIA4pASP4dHeRPMu6/vcg0JyJvTeEguqWO896O XqC2JyCClrmQzFLFw9Mb/H37QZOaLJZhjyBVXHH3wQj8Qmx7l4dSXs82I RQrOtcuh1xq288iAPhgC9oXTESd6EpHb49MmHvPOHcP4wts7YS5uJmiCh /Kh7N54J/cnV6YMxP08XYb4nA0szS9zWEnW3U2k4nH6immCG+P92Quglo 0cCQOO5CGh64qzKG/NBrZsR5htY1Fcv/Rk3emXxw2oRQ5K4qRUOQ4KOOt Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="307855154" X-IronPort-AV: E=Sophos;i="5.95,230,1661842800"; d="scan'208";a="307855154" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 06:16:07 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="633869061" X-IronPort-AV: E=Sophos;i="5.95,230,1661842800"; d="scan'208";a="633869061" Received: from thrakatuluk.fi.intel.com (HELO platvala-desk.ger.corp.intel.com) ([10.237.72.90]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 06:16:02 -0700 Date: Tue, 1 Nov 2022 15:16:02 +0200 From: Petri Latvala To: Mauro Carvalho Chehab Cc: Isabella Basso , twoerner@gmail.com, linux-kselftest@vger.kernel.org, magalilemes00@gmail.com, maira.canal@usp.br, dlatypov@google.com, tales.aparecida@gmail.com, brendanhiggins@google.com, linux-kernel@vger.kernel.org, leandro.ribeiro@collabora.com, igt-dev@lists.freedesktop.org, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, n@nfraprado.net, davidgow@google.com, skhan@linuxfoundation.org, andrealmeid@riseup.net, kunit-dev@googlegroups.com Subject: Re: [igt-dev] [PATCH i-g-t v2 4/4] tests: DRM selftests: switch to KUnit Message-ID: References: <20220829000920.38185-1-isabbasso@riseup.net> <20220829000920.38185-5-isabbasso@riseup.net> <20221101135425.3ee12c9c@maurocar-mobl2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221101135425.3ee12c9c@maurocar-mobl2> X-Patchwork-Hint: comment X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 01, 2022 at 01:54:25PM +0100, Mauro Carvalho Chehab wrote: > On Tue, 20 Sep 2022 11:18:25 +0300 > Petri Latvala wrote: > > > On Sun, Aug 28, 2022 at 09:09:20PM -0300, Isabella Basso wrote: > > > As the DRM selftests are now using KUnit [1], update IGT tests as well. > > > > > > [1] - https://lore.kernel.org/all/20220708203052.236290-1-maira.canal@usp.br/ > > > > > > Signed-off-by: Isabella Basso > > > --- > > > tests/drm_buddy.c | 7 ++++--- > > > tests/drm_mm.c | 7 ++++--- > > > tests/kms_selftest.c | 12 +++++++++--- > > > 3 files changed, 17 insertions(+), 9 deletions(-) > > > > > > diff --git a/tests/drm_buddy.c b/tests/drm_buddy.c > > > index 06876e0c..74c06dce 100644 > > > --- a/tests/drm_buddy.c > > > +++ b/tests/drm_buddy.c > > > @@ -6,9 +6,10 @@ > > > #include "igt.h" > > > #include "igt_kmod.h" > > > > > > -IGT_TEST_DESCRIPTION("Basic sanity check of DRM's buddy allocator (struct drm_buddy)"); > > > +IGT_TEST_DESCRIPTION("Basic sanity check of DRM's buddy allocator (struct \ > > > + drm_buddy) using KUnit"); > > > > > > -igt_main > > > +igt_simple_main > > > { > > > - igt_kselftests("test-drm_buddy", NULL, NULL, NULL); > > > + igt_kunit("drm_buddy_test", NULL); > > > } > > > > With kselftests we had the ability to only run a specified set of > > tests, and with or without selection, we had sub-results for each > > through dynamic subtests. Does kunit have that possibility? I mean I > > know kunit itself does but what about igt_kunit()? > > I don't think so. I created a KUnit with the mock selftests: > > $ modinfo test-i915-mock > filename: /lib/modules/6.1.0-rc2-drm-b1cab854a639+/kernel/drivers/gpu/drm/i915/test-i915-mock.ko > import_ns: I915_SELFTEST > license: GPL v2 > depends: i915 > retpoline: Y > intree: Y > name: test_i915_mock > vermagic: 6.1.0-rc2-drm-b1cab854a639+ SMP preempt mod_unload > > There's no module parameters. Just loading it makes all tests > there to run. Ah, the selection is in kunit.ko itself. kunit.filter_glob, set from kunit.py with positional arguments: filter_glob Filter which KUnit test suites/tests run at boot-time, e.g. list* or list*.*del_test -- Petri Latvala