Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp925689iob; Wed, 4 May 2022 10:47:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+AxQQpGYzzKWaSQ2fvIrflZKWFdITYdK4qut8N+srpju1MW+i2mO8AzJP0YQnRaS4ROaU X-Received: by 2002:a05:6402:42c3:b0:427:d0e6:77e4 with SMTP id i3-20020a05640242c300b00427d0e677e4mr13312561edc.49.1651686449536; Wed, 04 May 2022 10:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651686449; cv=none; d=google.com; s=arc-20160816; b=b9Qcm9T+tI5LuxvVg8amG8ISmHQ1Hg8/26ED+3+6btbZl8oe1fi7NvQXWivLxx48cv dCgZ8JwSfl/h57G3exKc8Xg6hVc2MCPww8sHbDLiqzNQz+7wKQxXSFW232NA57mWScCR ABxbEHFYXwEL+5QnxfH6EzMznj+8Eq9GADZaDzH11Bl5nNYUfg2EzRTbj3d6w3KuQawx BNIw238EGnzTsljh/iTiNuL9IqCHFpVoFzTQv9JOOsSjmsL8r3Lc6NyzBkME9LaLf8Pe xBBhLEQq04xtHOHJJe3MOUshfCzcvkZTiUOZ2QWx/E4X8Nz1mZpw9Nhl2wofA/LJc3qP GRmA== 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 :dkim-signature; bh=bPK/7BcS9ZVh3KOIsYKoLzx9Bn2Qwpk/lSWXMxu/LoI=; b=XcGYveCtcPbXXa7nEejbA8BQNuEbr4KU7U1ouVeV1ZtRfGQvYmf/kObMhOjEURuND7 b4sU7UBhIRxmL3s7YTmpx0ykGGpQmaEXOhBBOUl95k2vBFRk2f0wfof9V0LKvOxyPNvz OfVX50011AjlzvUPF+Z0NyR2rh3pCE49RLHOUE3zWfRwmKcHpxci2glmP/5RO4Hq9oFH IiEf4w+VenqksIcpQE9NO9IfFoLFLJ0jhrvF9EqAs/tDp+r8Zd0GVVwKnrfi1cGTJZ6Z 4411zRPAhKihMNl1AExe9tYH2Q0fw0ZhN0nWuok3oKy9Cnh72zxFs7z72onHOf90QPVs prpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=J6CLwRtA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pzdnNIlQ; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kl6-20020a170907994600b006e80a81a548si17537039ejc.832.2022.05.04.10.47.04; Wed, 04 May 2022 10:47:29 -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=@cerno.tech header.s=fm3 header.b=J6CLwRtA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pzdnNIlQ; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346077AbiEDIOX (ORCPT + 99 others); Wed, 4 May 2022 04:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbiEDION (ORCPT ); Wed, 4 May 2022 04:14:13 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15FB9BE; Wed, 4 May 2022 01:10:35 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8999B5C0164; Wed, 4 May 2022 04:10:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 04 May 2022 04:10:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1651651833; x=1651738233; bh=bPK/7BcS9Z Vh3KOIsYKoLzx9Bn2Qwpk/lSWXMxu/LoI=; b=J6CLwRtA2ZYSjDHdqrBztHg381 uRuW2bQZmiovtEl/Fiou6WhY8pFI19nYVQEWmjTmNlglayEEL0WpQSwPxKuZNehi n9BgkdA3xN0rkjol07ef/5ntqieRhE5UJETNX+hA1k7uLPsjALxNgRxDqiGtLZjK aXoiA07u3mup+HWuMsdh8nY+KhYLZrxCu1yF/pehMbQLplI8GvzdJPzJATOcIAY2 wWPIaPFokJcoYGrOj0TRb6IkToybUsvYJhzJStDxisd6wReScwGAFwaGvnEEqRtw C/n5PLgdfzEwx9TquMYwdAmju1IlvoqKhwtUP+qT82WBdCZX0dN2EeUowDSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651651833; x= 1651738233; bh=bPK/7BcS9ZVh3KOIsYKoLzx9Bn2Qwpk/lSWXMxu/LoI=; b=p zdnNIlQRXM+yQCUeZydDtKOnJ9c7mJLM74euDTdz2mjgAmwI45IVBBnrhsAtArAo V2sCFwDgjDWQBzvqLHG+ju1CDTSxKJ/oWQ1uzqStvurCKXArDcUMPUJiQLewJlje tKTLFl7tM+3+38RXEDOfso4hQY0fVWGbBi0cdh3tGD5YNrl7ZV1gJ4FAsxkJGswn cLoMGTLkkqaWyhe8ldYOyUosRbg0rgJi7Y1INTKXmq6PbDwBbr8RemgyMgrY3Iaw A4L71u2vPOfNVMfoYXEsUm8SAUwu6L1qftbjVI3FfjcffjwACUbvxK2w3ZPC5uHO FkQOlxn+15pbkLSYGKU/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgvucft ihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtthgvrh hnpedtleekjeeiudefvdfhieffteelhfeivdeliefgieeugffhvdelieffjeeigeetjeen ucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 May 2022 04:10:32 -0400 (EDT) Date: Wed, 4 May 2022 10:10:30 +0200 From: Maxime Ripard To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Thomas Zimmermann , Daniel Vetter , David Airlie , Jonathan Corbet , Maarten Lankhorst , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: Re: [PATCH] drm/todo: Add entry for using kunit in the subsystem Message-ID: <20220504081030.ky57nenipnif5r2e@houat> References: <20220504080212.713275-1-javierm@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3nl2mgc5rvyywsjl" Content-Disposition: inline In-Reply-To: <20220504080212.713275-1-javierm@redhat.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 --3nl2mgc5rvyywsjl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, May 04, 2022 at 10:02:12AM +0200, Javier Martinez Canillas wrote: > The Kernel Unit Testing (KUnit) framework provides a common framework for > unit tests within the Linux kernel. Having a test suite would allow to > identify regressions earlier. >=20 > Signed-off-by: Javier Martinez Canillas > --- >=20 > Documentation/gpu/todo.rst | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) >=20 > diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst > index 127e76ee0b2d..10bfb50908d1 100644 > --- a/Documentation/gpu/todo.rst > +++ b/Documentation/gpu/todo.rst > @@ -603,6 +603,20 @@ Level: Advanced > Better Testing > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =20 > +Add unit tests using the Kernel Unit Testing (KUnit) framework > +-------------------------------------------------------------- > + > +The `KUnit `_ > +provides a common framework for unit tests within the Linux kernel. Havi= ng a > +test suite would allow to identify regressions earlier. > + > +A good candidate for the first unit tests are the format-conversion help= ers in > +``drm_format_helper.c``. > + > +Contact: Javier Martinez Canillas > + > +Level: Intermediate Kunit is fairly easy to grasp if you have some knowledge of other unit testing frameworks already (pytest, cmocka, etc.) Another good candidate would be to convert (some ?) selftests to kunit. I'm not sure the others, but at least test-drm_cmdline_parser should be fairly easy to convert. Maxime --3nl2mgc5rvyywsjl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYnI09gAKCRDj7w1vZxhR xd5LAQCNNRyTW43GNxecA9dlkRXKzQrvQOpErHWYblVKbVbEPwD/YtdmQ1zS0OV+ en3dU8LmtXErx0wwYkzOPG2RumzKugQ= =slP5 -----END PGP SIGNATURE----- --3nl2mgc5rvyywsjl--