Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2957028iob; Fri, 6 May 2022 14:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZwZJOmTj5SiCMRROFuoREh1lQHTRoD96rN9gOJsrEPELWOf0P3FyfXFWPIgOgCUp3tM+z X-Received: by 2002:a17:90b:4c47:b0:1dc:3bf4:e3b1 with SMTP id np7-20020a17090b4c4700b001dc3bf4e3b1mr6393957pjb.223.1651872078068; Fri, 06 May 2022 14:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651872078; cv=none; d=google.com; s=arc-20160816; b=zls7igFpFES1Ya4qldRSaOTFiYgmmND4HR5izN1qsZqhu65wLcut9ruVfmNkgkgSfu wKci3i41+Uv4fvzwT27LrC9wMv1QB5OvEPR3+Sgurbw95mjuWvejvWCKYU045VoOCA9T Kxr+iu3PaXoLNlTaUIszzkTLxNmD0xsj8ME+EpZyxrBc/oBUtXUla8ZIKIS8K2BZMA7s 5YsVmF5t1OZFLSDIxoft8pelNJKdbD+jrob1uz0RgkN2PDpnQgNzy+gRJpvyThZMEfEb CU8GjmBD+WS/cwSq/dPtHijFilIUjrS+cixbme+3AqP169qnFB6xEfq6VP6zG/q8b8wN AwRA== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=FWeYiYf0DMm7V+g21Cbm+9C9Pn1oqo14ZQ670Fj9soM=; b=vXwsv3tv1/S8QmDRt4fJ7fgTs80eIZD9avVYwQwE/OAvafqbjiZgiIhfDxFepVaAe3 tQ3O41MMMk2hfxhgUEy+aECUPPoPtV3klCiqHTT3jKm+dr/TAT1l1lTuIPSV+AxhIsf1 GiUrzWhLPRgwmOp+jco/4WUw5CGt9ZBSRV1GceI6XVOFXq8G138EOw2Dd+IyoVvAY7yQ rAJA3xgR/ajK6Pge0Vsn9uNFbJ/HrIY9bpdNzlWaxm30t9M55j9bvtamssWSzmxEGC1h CG534AMj6acOilPXrr6kG6MI2SWZROTMpbx1cJg1EMnbZpNHxWxWVJdH1hQOjOSwvJ6j 4j4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=H3LWFD2S; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a056a00240e00b0050d8cd6bd18si6126892pfh.257.2022.05.06.14.20.59; Fri, 06 May 2022 14:21:17 -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=@ffwll.ch header.s=google header.b=H3LWFD2S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346944AbiEDJBA (ORCPT + 99 others); Wed, 4 May 2022 05:01:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346963AbiEDI7f (ORCPT ); Wed, 4 May 2022 04:59:35 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D83D286EC for ; Wed, 4 May 2022 01:53:16 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id j6so1534223ejc.13 for ; Wed, 04 May 2022 01:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=FWeYiYf0DMm7V+g21Cbm+9C9Pn1oqo14ZQ670Fj9soM=; b=H3LWFD2SKqhgrKGammVqLPu1+tsxAB77OiaspD7wNyK6giB6LGiCB0egmuFelRz0xd Wwr8iW5bq7rM304cdd3tRii/BntL55bHQGs59Jj+dRjdM5XT8vOzIahu7OZtSg/9zgsA PYg9GxvGp61ZKK8xDG4sWyfqcA89Y++1uLPP0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=FWeYiYf0DMm7V+g21Cbm+9C9Pn1oqo14ZQ670Fj9soM=; b=m2p92aV3F6PUs4Nad8isPvs5u2a6e8gtujLuCPP7e5OccqqVFqNstASGJ33D5Hjwvy 2c0YPWvEMm9WEona05lg4FN7VUZvTX6tF6wdJg2yPdKtx1BPUioO/idT5vb2Ivu3TOi7 /IZQ2de2S9GBynzkqi56dvTKAiRRwP3DlAfDjLqs8Je+DUKQqGPSulWTp74R1lfN/m4S WSDWwDOCOepfKZAH2cVk/inYX2CCURYUEpM/xGOAcCfmubZJ9qdexOowDG6eylB/5wu8 LxyPHKCQWSRXL3syQfx4XR6uDe2gebZrICt6d3SCxTdR5qhUk75bD9syvNBE8uwxBLJN QHRw== X-Gm-Message-State: AOAM533uJGYMMKf2QTXcG9vqlku5i4xPzEFVFetzghkCsVG8qHcHMTkX niWhQiy1TNlDU4asyFt68BdZ1g== X-Received: by 2002:a17:907:50a3:b0:6f3:a302:96aa with SMTP id fv35-20020a17090750a300b006f3a30296aamr18975623ejc.2.1651654395002; Wed, 04 May 2022 01:53:15 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id gz21-20020a170907a05500b006f3ef214e3csm5502964ejc.162.2022.05.04.01.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 01:53:14 -0700 (PDT) Date: Wed, 4 May 2022 10:53:12 +0200 From: Daniel Vetter To: Maxime Ripard Cc: Javier Martinez Canillas , 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: Mail-Followup-To: Maxime Ripard , Javier Martinez Canillas , linux-kernel@vger.kernel.org, Thomas Zimmermann , David Airlie , Jonathan Corbet , Maarten Lankhorst , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org References: <20220504080212.713275-1-javierm@redhat.com> <20220504081030.ky57nenipnif5r2e@houat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220504081030.ky57nenipnif5r2e@houat> X-Operating-System: Linux phenom 5.10.0-8-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, May 04, 2022 at 10:10:30AM +0200, Maxime Ripard wrote: > 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. > > > > Signed-off-by: Javier Martinez Canillas > > --- > > > > Documentation/gpu/todo.rst | 14 ++++++++++++++ > > 1 file changed, 14 insertions(+) > > > > 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 > > ============== > > > > +Add unit tests using the Kernel Unit Testing (KUnit) framework > > +-------------------------------------------------------------- > > + > > +The `KUnit `_ > > +provides a common framework for unit tests within the Linux kernel. Having a > > +test suite would allow to identify regressions earlier. > > + > > +A good candidate for the first unit tests are the format-conversion helpers 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. All the drm selftest should be good candidates for conversion to kunit. Either way patch is Acked-by: Daniel Vetter Cheers, Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch