Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp841194rdb; Sat, 7 Oct 2023 01:10:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/5faJXhkezFayH6cAzsWqEzrGoJSAVIbg3mOGxLIkXlH8ApcCqqS1zM0+Hvp2rnEhOHbr X-Received: by 2002:a9d:7f03:0:b0:6bf:ef0:c69 with SMTP id j3-20020a9d7f03000000b006bf0ef00c69mr10541486otq.34.1696666206921; Sat, 07 Oct 2023 01:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696666206; cv=none; d=google.com; s=arc-20160816; b=RMR1wOibSyoEkISgrRwIe+xTwZyeZPpyBL6+Sqv1iKyKYA+W1w8SI/sEosa9SXdZd/ cxK/Nc+w7g5RhgwxANSjEsC+loWOmgnsloX7tGV4+TrVEW3YAjOZ+egpQisA+6UTA42N RPFEe449Engl1/5MMZzsmS7okdbKrtnb+7pd1XE1U4PeWCV9csLPKhFFvCHQCaoPuaIO UyZApZm2XaoCOAyCC5WtObhjZBQKTFi0tdlCzs5w545agunYYoTUhpfBEGiXJTHHAYJY r2w8XvoZpi7aW6MBU4KgfOENxfPVvM+qnfG8R4wSIfiUV57sL1Hq+X9NwbFgm2vINlOa b6cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9IKXBQd4LOTieA/0tRZfDo1OK5gcu7KDPCyeX4veAYs=; fh=c4JpMnhPV+Maz3SkjJaNfgWgpkdv9zVBXXUlizu38YE=; b=h05GqaS0BC4dvVIuwD9u06D2fRH3dpS7wKZjsa7KpyeFWS/4XOCFyTj4GC6GSwr6NR r4hSNtQ6tjfkKCj9j+z2rKcDZlB7V1x8IJfQjtxPEMsyZOwFnJctlmGxceGr+h0v/kbU DKkoFOfTuCyrlheXNss0vwb7Avm1MbMcOVeLknO+xwdCHIK2BoYQJ31LkQasb9H9DbbG SGhQZJTTLcmFWMpNpyHzXtec8Kg2QjjdItNJzk0wQyA3oqobYzvIv8X7lyZ2kLDR0EwN /0hB/PJjMApKWIikCDU99CxFYEYxREHwffv3xEGX9IBTMxO1xlL37wHvFCxdarurOIcD R/qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jk9wc+Cd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q83-20020a632a56000000b00569161a1885si5457719pgq.288.2023.10.07.01.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 01:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jk9wc+Cd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B6E77804B01A; Sat, 7 Oct 2023 01:10:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbjJGIJz (ORCPT + 99 others); Sat, 7 Oct 2023 04:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234139AbjJGIJx (ORCPT ); Sat, 7 Oct 2023 04:09:53 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DEA3DB; Sat, 7 Oct 2023 01:09:51 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60862C433C8; Sat, 7 Oct 2023 08:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696666190; bh=sFMB5SgWf3EqgbKlwxbdjmSh8EIjVCyP9hzXo8O3DTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Jk9wc+Cdi6UcxCc/oZbGNf37ZsszgQ7hNZ4ovJ7oGR7qRb9J8KyeWi8uFWGoaGD8A 2dyi6PBv/ceT46bop2/8DWYhhr1x//ewK+AYrdB1nDlDrxWk+EDQ4CMjBko5YS+idS 51rA9HLIhBquWI+Umh47ArR9me0PAdCfTYyusRK6jLkTKN0FGbVC0/CuH4cxlR0TCH f0IlqDl76bhNY9tNMrJDzyYlOaxklD/Geok+cVZsJIECiNxIBQbNOTVmyqRZ8a4Q6d 5kr3HFsjYIBzU9DPymzKAQxD+Cfe5UPrrw63UO2pnks/aKLiMevPNoE6CFLgcxOygG FJL+wQGzEXIfQ== Date: Sat, 7 Oct 2023 10:09:46 +0200 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 0/2] Add support for inlined documentation for kunit and kselftests Message-ID: <20231007100946.396187d4@sal.lan> In-Reply-To: <87pm1vd4kb.fsf@meer.lwn.net> References: <87pm1vd4kb.fsf@meer.lwn.net> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 07 Oct 2023 01:10:03 -0700 (PDT) X-Spam-Level: ** Em Tue, 03 Oct 2023 11:00:20 -0600 Jonathan Corbet escreveu: > Mauro Carvalho Chehab writes: > > > This is a follow-up of the discussions taken here: > > > > https://lore.kernel.org/linux-doc/20230704132812.02ba97ba@maurocar-mobl2/T/#t > > > > I sent a previous version as RFC. This is basically what we had there, with some > > improvements at test_list.py. > > > > It adds a new extension that allows documenting tests using the same tool we're > > using for DRM unit tests at IGT GPU tools: https://gitlab.freedesktop.org/drm/igt-gpu-tools. > > > > While kernel-doc has provided documentation for in-lined functions/struct comments, > > it was not meant to document tests. > > > > Tests need to be grouped by the test functions. It should also be possible to produce > > other outputs from the documentation, to integrate it with test suites. For instance, > > Internally at Intel, we use the comments to generate DOT files hierarchically grouped > > per feature categories. > > > > This is meant to be an initial series to start documenting kunit. > > I've played with this a bit...a couple of quick impressions: > > - That's quite a chunk of Python code to be adding. I've not yet had > the chance to read it through properly, will hopefully be able to do > so soon. A bit more commenting would not have gone amiss here... I'll try to add more comments when respin this series. I guess I should also add a documentation similar to the one I wrote for IGT [1]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/docs/test_documentation.md?ref_type=heads#documenting-tests-via-testplan [1] this document is specific for the way IGT uses it; I'll write something similar to it considering the names we've agreed for KUnit. > > - I kind of think that this should go under dev-tools rather than being > a new top-level directory. Is there a reason not to put it there? No particular reason. I'll change it to be under dev-tools/tests at the next submission. Should I wait for you to take a look at patch 1/2 before sending a new version? Regards, Mauro