Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1979197rwe; Fri, 2 Sep 2022 06:55:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR49IAvZzZoySJ2yNh+QAbTSTzEQauqDjtSZk9axLjuQtEYZt5CYDJwcyABQN5BIXuOINGOU X-Received: by 2002:a17:906:9756:b0:741:5fa3:884e with SMTP id o22-20020a170906975600b007415fa3884emr19403608ejy.515.1662126950680; Fri, 02 Sep 2022 06:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662126950; cv=none; d=google.com; s=arc-20160816; b=O1w+ub1B+xGt5K/DXnFHiJGiqy1wW74PMruZdT4CXJs1I+3yWNX+19Tlcu8iofUNfc OolnhWKbtdRJARlZwvsCi0BUEDh503HIQRmSPLTIrHdpldw2LF5fquA8uObgHx24lhb0 7GLqU1Cn9agBcHBca7GB+No2EOhB5aAGElL1U0JC9LMnhiKIz8OBMBBpXwlm2ZRaYxxM ptK6dh+qyD3SaivFpv+n2jsFy6jMQ05aSsDlYouiM3TheeEv8q3Dcff0d1+jEB3etYZ9 LtLottv60HgrBXZjut5kbCO0K3EPZ0/DGeyQPFK3pim1M0GzZZzaQQg3DS3HGxhpm+fd /++w== 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:feedback-id :dkim-signature:dkim-signature; bh=69wBoD2FcWS+VJub/o1SXKNMgpIXHt/jaTIMdQTQNes=; b=wZpdOFOIP83rkRIgXAwPAaVhseqp6eGxw+iFJ6RSLYBRT8CHcZMyTHtbf2CTpDNs1S uV4OGRyPPclmqiXJcGs5M1JgytNFN5nM+loblYSmH5lPYW8WO/HmrONPjBDtP7IVh2vD /crLgCMfR/XmAKd5rE5ZTqYg7nV3zxXfytsgbfvqVbUo43Xr48InG0d5DfvJwEzIFrNf 3NQZVmWqJ9KlVRVyWZ9YezxcEFF78+BFNbidejeIHboCcc6M5xZKF9TJ9GmjVx4A9zJX 7VJA7h1EPW8RZYBOy/h2HZtTSEC7xHppA0a3z0XHb+ffWJzUpOiarhs+Koa0sDf4NkLI jmAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XHrR1ZCQ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CWTAamlI; 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 sd17-20020a1709076e1100b007307a4f5102si2095564ejc.830.2022.09.02.06.55.23; Fri, 02 Sep 2022 06:55:50 -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=XHrR1ZCQ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CWTAamlI; 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 S236962AbiIBN3b (ORCPT + 99 others); Fri, 2 Sep 2022 09:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236121AbiIBN3N (ORCPT ); Fri, 2 Sep 2022 09:29:13 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537AEEEC59 for ; Fri, 2 Sep 2022 06:08:20 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E4371320090C; Fri, 2 Sep 2022 08:34:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 02 Sep 2022 08:34:09 -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=1662122046; x=1662208446; bh=69wBoD2FcW S+VJub/o1SXKNMgpIXHt/jaTIMdQTQNes=; b=XHrR1ZCQoQmpvRT/cPY/9LcNB5 HbYvLIIwbwJ3I8tAiCkQeqeD6ac4sQxkWFElK4/2M96NO42Hn11H07JT/QFVXr8z kjDkscAYB/o/TxBPAsTcp+fBpWSD/X1HfCWtH3LgmeNzI7tSVefpoYfjRXCfJCN8 yDK2T/6mdgHaynbM6eZ0TXnzYtHqgCrJqnqkHxz6vRRzIfyplybtYLDBG8aDYvI8 pUTzvXG+HUMzuuTVOYAws1tvn7az6LV1uZdaFlVENwuar4NRxgqpiKmI7/ofJtsr Hdv3DLT5DJHI3FWooBjmEE43LrvAwr5PqO+XYyjq6nrmo8PliVuHhkTGbZeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id: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=1662122046; x=1662208446; bh=69wBoD2FcWS+VJub/o1SXKNMgpIX Ht/jaTIMdQTQNes=; b=CWTAamlIdomT+2ReqO+SVhE0ewgiqv4yZ5OnRNWDwcWE X+8+FemvxwpBtL7ywc/vsmj75bkH8tMuLI15yvL0uqDa8/So7C9tjphjJ/4HlESX RkAKKO07mO5oNGEPr+G1FKsJtliCuhZBW17aBw6gamPUMJa4F5P8KkwPf2pftijZ tM8Ih6E6wiVykyxgp/vBxmhEmr46bOVdJLJz9AILj7bmhvZ6mZNL/15uUiLHO1R5 DPcjpytHi9i6NFcJNfHaInErfSGLL/eKd+sTtPv0iRCd2PPKhcBWEvzZZwiLL0tE hNsr1L3frvU1jNbOHl3IQ4yXzpfKT0mAiv3hF74pBA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeltddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeeljeeugfegveetleevkeetffegudevieetieeugeeugeeivddtjeejvdef feetgfenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Sep 2022 08:34:04 -0400 (EDT) Date: Fri, 2 Sep 2022 14:34:00 +0200 From: Maxime Ripard To: Jani Nikula Cc: =?utf-8?B?TWHDrXJh?= Canal , Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, mwen@igalia.com, andrealmeid@riseup.net, siqueirajordao@riseup.net, Trevor Woerner , Daniel Vetter , David Airlie , Javier Martinez Canillas , David Gow , brendanhiggins@google.com, Arthur Grillo , michal.winiarski@intel.com, =?utf-8?B?Sm9zw6kgRXhww7NzaXRv?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com Subject: Re: [PATCH v2 2/2] drm/tests: Change "igt_" prefix to "test_drm_" Message-ID: <20220902123400.5ljgc7z6zw34d64m@houat> References: <20220901124210.591994-1-mairacanal@riseup.net> <20220901124210.591994-2-mairacanal@riseup.net> <20220901125530.b56s4zisnkfuigvc@houat> <04aeba53-793c-3196-3137-915f0640dc2a@riseup.net> <87h71qfbi9.fsf@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="je6h4ueg2vhmqv2d" Content-Disposition: inline In-Reply-To: <87h71qfbi9.fsf@intel.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR 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 --je6h4ueg2vhmqv2d Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 02, 2022 at 11:04:14AM +0300, Jani Nikula wrote: > On Thu, 01 Sep 2022, Ma=EDra Canal wrote: > > Hi Maxime, > > > > On 9/1/22 09:55, Maxime Ripard wrote: > >> Hi, > >>=20 > >> On Thu, Sep 01, 2022 at 09:42:10AM -0300, Ma=EDra Canal wrote: > >>> With the introduction of KUnit, IGT is no longer the only option to r= un > >>> the DRM unit tests, as the tests can be run through kunit-tool or on > >>> real hardware with CONFIG_KUNIT. > >>> > >>> Therefore, remove the "igt_" prefix from the tests and replace it with > >>> the "test_drm_" prefix, making the tests' names independent from the = tool > >>> used. > >>> > >>> Signed-off-by: Ma=EDra Canal > >>> > >>> --- > >>> v1 -> v2: https://lore.kernel.org/dri-devel/20220830211603.191734-1-m= airacanal@riseup.net/ > >>> - Change "drm_" prefix to "test_drm_", as "drm_" can be a bit confusi= ng (Jani Nikula). > >>=20 > >> I appreciate it's a bit of a bikeshed but I disagree with this. The > >> majority of the kunit tests already out there start with the framework > >> name, including *all* the examples in the kunit doc. Plus, it's fairly > >> obvious that it's a test, kunit is only about running tests in the fir= st > >> place. > > > > Would it be better to keep it as "drm_"? >=20 > That's not "keeping". That's renaming igt to drm. Well, there's like half the tests that are prefixed with drm, the other with igt, so it's both really > > Currently, I don't think it is appropriate to hold the "igt_" prefix, as > > the tests are not IGT exclusive, but I don't have a strong opinion on > > using the "drm_" or the "test_drm" prefixes. >=20 > I repeat my stance that "drm_" alone is confusing. What are you confusing it with? > For the reason alone that it pollutes the code tagging tools, mixing > actual drm_ types and functions with unit test functions. I don't get it, I'm sorry. All these functions are static and not part of any API, so I can't see how it would pollute a code tagging tool. Or at least, not more than any driver does. And we're part of a larger project here, it's about consistency with the rest of the ecosystem. Maxime --je6h4ueg2vhmqv2d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYxH4OAAKCRDj7w1vZxhR xcnGAQDfG15wrc3ceeKSo7qsOykhYDbwylJuO4xitBZoirs0ZgD/ecLkzhEgtAOv b++wHEVZEq7FPSdzWgIwHQIiRnLixgA= =zFJ3 -----END PGP SIGNATURE----- --je6h4ueg2vhmqv2d--