Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2094534rdb; Tue, 3 Oct 2023 10:00:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF98AGbsfZDEhtfPNpprYaVkkdva8x9MZC+SSxwiCoUdlKpXJ9EcClk3Y3HZ/I0Qu/VApT4 X-Received: by 2002:a0d:d853:0:b0:59f:4dba:66d2 with SMTP id a80-20020a0dd853000000b0059f4dba66d2mr245346ywe.0.1696352452056; Tue, 03 Oct 2023 10:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696352452; cv=none; d=google.com; s=arc-20160816; b=lyMgItq8sm/izYNCL0rUN1wLOTtelLkd6Yn7kf5gLdrxWDrNZSWxg9YaRI83wVRlHu Gu26o46AslPhaZWDaueS7Qff+k0c/lO1vx5jQlTLXkrfjMMP+hMiBP5/y+UNVthKg2Cf XM+wl94e+vzXcy4ku5knIldu9e+vgkF7SLkSKSx1pex2h3tZ4vBBMhL1yIZzWpHSjYmv vflC1gyuQZuDI5TQnWUgb35ph+IhKCgFnpCZ+jNsE4WQ6sjjKzLvyd1JA/mHmUJxyCyG ZwIvjdaAz8MtN1eDQpYzr/9z7G4X5Mutb2l0MbB4VAuYh5zcg5jzKiXJumDQ9Rl98dgY 8mVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=90J31QEv8FGbWrRzoVwWZcTEzbXsi3Oh57o8nNW1+jU=; fh=uQ0tjAx4F/kZmHHDtPsuTKvi24YEGNlEbS3AFDK8G3o=; b=VW7jTwIP044jBrPRz320jPGeWs1vrGJ7Kgqw7iNIP+ZDyd6n8mNxD/1xsRljCOylDr x6JnL3awjZCZhroeP6lTMwi23ZW4UOxYCcIhr8KlZU/InHhz89JtjJGruFM177+9Z1wK 3jxaroBrBXFSut1lnvivdOi22fytqfGGH1UMujiiCxoauzAQjTktr0ETWkSixGWrJFEk UZO8yD93Hv32AO0063wz9dApaqTyCuFTdndpfOaHaCOWomEpsB43dPi7qiPfm6BPq/+u p8w0V4ZBy8TihmYNJCCO9+z//E1G70rbZ2pe2IgIMcdsOCQA9U175JrPBm1QiSuB7h51 UsCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Jv8wpMpY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id hk1-20020a17090b224100b0027920d6f85bsi1943678pjb.94.2023.10.03.10.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:00:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Jv8wpMpY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 27A24811ADCA; Tue, 3 Oct 2023 10:00:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231866AbjJCRA0 (ORCPT + 99 others); Tue, 3 Oct 2023 13:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbjJCRAZ (ORCPT ); Tue, 3 Oct 2023 13:00:25 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A66195; Tue, 3 Oct 2023 10:00:21 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::646]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 3AF4C6E2; Tue, 3 Oct 2023 17:00:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 3AF4C6E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1696352421; bh=90J31QEv8FGbWrRzoVwWZcTEzbXsi3Oh57o8nNW1+jU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Jv8wpMpY8gVh2mxKuopxJuPeE2oQ+5goX2MIa+p5pyooDgBitxunGJNmev59New5c X1dUpnyswLMSeqG1tYa5ubuQrWBX4xfGOfxGeYk8rBE62UIZGYUMMXM4Rod4PHhdSL yBzjtYL/zAoJCiDDia9BRgqDcm2D5gG15bYH2ixnbRGWeIplTynIFvGDotZMgQfm5F oj6MVXdCt5fyGlcmFrIlbaDvMmbr+gqLiQAY5NjLvzSoDdOEeaQiEJpSBzl0wjuECe rFHKA9AlXox3/bf0237lwnitDSge9UuZmQXN1+H8CJAd+sC/hBe6qSpv2l+R6T+AnY yxaYoq1/b4KZA== From: Jonathan Corbet To: Mauro Carvalho Chehab , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , 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 In-Reply-To: References: Date: Tue, 03 Oct 2023 11:00:20 -0600 Message-ID: <87pm1vd4kb.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 10:00:40 -0700 (PDT) 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 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? Thanks, jon