Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp583707rwb; Wed, 7 Dec 2022 02:23:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4phtSZzFN0IfuZhE5nrSHx2RjFbuxvT1C0XexE+muCDOvjSe1coylx0QhoemwehYDwPoSN X-Received: by 2002:a17:903:2652:b0:189:a46d:aba3 with SMTP id je18-20020a170903265200b00189a46daba3mr38168728plb.136.1670408633972; Wed, 07 Dec 2022 02:23:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670408633; cv=none; d=google.com; s=arc-20160816; b=boY2fUx87FrL7g83AJyeKpLkL4MyQbr/+otPGClWZIeJxNeX4eQAxDgTRW+iYrtRjn SEFJVVD2G6sqC3ovpaEsBQJd4nsZHw6OwsIAejRC6X46Rc7DVjl0XADJhQMewJYGHt0o VWnS2KUvkEMW1U7xADRfUo0KdZEwfQjQL6rpT/sTXWUp3oJPXrkaEv25pa3N7nPNZ++u g8F1Bbefjfnoa7Jx5zlSNG8PU3m94IPBqA2p/hzVwdzE3BGxZ71AJckNU/TtyEihN0Mc 6kvBbpcv1UyaE3WUztmb5jvsXQhZeU/jACzg/mAeelHg3lzqb2gcmqfI+LK7a/bajD8Z ahtg== 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; bh=3kRlTBcDxyj5ptNZ14o1YVXGmrqFxRI2/QpD88qWYiQ=; b=whVhs0vA18GfTDxvUTSvEjkNGAUi98WGVbqEvcEbPKm6Aru1iN2CDvpz/HNxh7eaFt W5cmpXM85lp8zSJ317YXeVmxxSeb+4KrsR+J9jC6C0BeVfLa4tOt6OlnJmehmidUG5Yt qpe4BuZie5SlP+9Witc+HR5ba0BrhGVSZxgwVFoDCWNhNgT5NcjECPbUfzFKyOIpCcRE 8tyY/P2jMYPy7HN6Fv7+9tsHfZrJVH8WOuQRhTA9Y5mGUUB4TPYcQmvVNRGUqoumEhSU DIBPDGMIe6zIAcVcof9rYbMicwI6Mo7qb9hwnv1mMB87gx9VQDHWNyfAfxD/iZsOxrno shsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pgoiqd8j; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020a1709027e4800b00189c1b73636si12542498pln.71.2022.12.07.02.23.43; Wed, 07 Dec 2022 02:23:53 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=pgoiqd8j; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiLGI6r (ORCPT + 76 others); Wed, 7 Dec 2022 03:58:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiLGI6e (ORCPT ); Wed, 7 Dec 2022 03:58:34 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B4EBEA; Wed, 7 Dec 2022 00:58:32 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id n3so12700673pfq.10; Wed, 07 Dec 2022 00:58:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3kRlTBcDxyj5ptNZ14o1YVXGmrqFxRI2/QpD88qWYiQ=; b=pgoiqd8jUZVnnOCnDAzMxflF6HGuST/I9gEfUjqkMJROwp6XfWDHZNniCByRWCa7+t RnC61XywTSJpzGwcFk6BamEkmE0TXLUXuBJw9eYmqFY6ZYzXW7nOD4FCUBzvlslwE4hh K0pelResXxqzJigLV+9v0/HKhyR7+uBGdGzBvQnVFPFW3qjkP+m90rlXFQPR1JI9D/VH L5g6nidU/g4vdofdkkcBoJVm68l8jnzFvszrmr/K6mfzVdhYtAoTpkG5xY/PAyO16kOv cEikK3MA3tiPlBpiZasPoz3R1O914R9QuaM/oOTufXTHdD8gYkS6RHO9X6YRaEGcsecB HpTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3kRlTBcDxyj5ptNZ14o1YVXGmrqFxRI2/QpD88qWYiQ=; b=sSgyWjaLrC4WkZEZRIFMGIQBWtUOBJ9qfSS3ZbJl/UkhHvk62qT0N8TbFnZrOP1tG5 mWG9YJSyh7XmZkLPgjSX5ksnK7VPzUIdINLjBDYlsnt5jUvHWtPVRmY8ALTMlTq2gxBo H04qNJn83mYTuAWPB+p0ACarMVje8gFm04cTUpaFzY+eP8L94C3qroHGcxkIR3Mp0rtg Wx4Rt/SVYcsf9vw+UJSD9HE/kuifsxYF6kc32hYEzBJEVzWw+EOXdA14eA9Chr+Is2tC B1jFuRJ7+nRF9jqG3386Lx/jGJphc5g3MwEXho3BSDXB7ziz8PI0r4NxA2BcnooyK4SF ZjGA== X-Gm-Message-State: ANoB5pnFx6gxsqK+ueMxZnI89Ca2/zIgkzN6PKHRyfxoRyjwciH3t65o cZmXNNIIWwt8CKhjkJGOecw= X-Received: by 2002:a63:1e49:0:b0:46b:1590:2625 with SMTP id p9-20020a631e49000000b0046b15902625mr62802011pgm.569.1670403511826; Wed, 07 Dec 2022 00:58:31 -0800 (PST) Received: from debian.me (subs03-180-214-233-90.three.co.id. [180.214.233.90]) by smtp.gmail.com with ESMTPSA id ml13-20020a17090b360d00b00219f8eb271fsm740610pjb.5.2022.12.07.00.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 00:58:31 -0800 (PST) Received: by debian.me (Postfix, from userid 1000) id B381A1042C6; Wed, 7 Dec 2022 15:58:28 +0700 (WIB) Date: Wed, 7 Dec 2022 15:58:28 +0700 From: Bagas Sanjaya To: David Gow Cc: Shuah Khan , Brendan Higgins , Sadiya Kazi , Rae Moar , Jonathan Corbet , Daniel Latypov , linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2] Documentation: kunit: Fix "How Do I Use This" / "Next Steps" sections Message-ID: References: <20221207043319.1890954-1-davidgow@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gQZZMfvjrIhTAV6r" Content-Disposition: inline In-Reply-To: <20221207043319.1890954-1-davidgow@google.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gQZZMfvjrIhTAV6r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2022 at 12:33:19PM +0800, David Gow wrote: > The "How Do I Use This" section of index.rst and "Next Steps" section of > start.rst were just copies of the table of contents, and therefore > weren't really useful either when looking a sphinx generated output > (which already had the TOC visible) or when reading the source (where > it's just a list of files that ls could give you). >=20 > Instead, provide a small number of concrete next steps, and a bit more > description about what the pages contain. >=20 > This also removes the broken reference to 'tips.rst', which was > previously removed. >=20 > Fixes: 4399c737a97d ("Documentation: kunit: Remove redundant 'tips.rst' p= age") > Signed-off-by: David Gow > --- >=20 > Thanks everyone for reviewing v1. Since this is pretty much a complete > rewrite, I've left Reviewed-by tags off, as I don't feel the previous > reviews totally apply. Feel free to review again if you have any > comments. >=20 > Cheers, > -- David >=20 > Changes since v1: > https://lore.kernel.org/linux-kselftest/20221129094732.306449-1-davidgow@= google.com/ > - Totally rewrite both sections to only include (and provide more > context for) the most concrete next steps. > - Thanks Bagas for pointing out that this basically duplicates the TOC > as-is. >=20 > --- > Documentation/dev-tools/kunit/index.rst | 19 ++++++++----------- > Documentation/dev-tools/kunit/start.rst | 19 +++++++++---------- > 2 files changed, 17 insertions(+), 21 deletions(-) >=20 > diff --git a/Documentation/dev-tools/kunit/index.rst b/Documentation/dev-= tools/kunit/index.rst > index d5629817cd72..b3593ae29ace 100644 > --- a/Documentation/dev-tools/kunit/index.rst > +++ b/Documentation/dev-tools/kunit/index.rst > @@ -99,14 +99,11 @@ Read also :ref:`kinds-of-tests`. > How do I use it? > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =20 > -* Documentation/dev-tools/kunit/start.rst - for KUnit new users. > -* Documentation/dev-tools/kunit/architecture.rst - KUnit architecture. > -* Documentation/dev-tools/kunit/run_wrapper.rst - run kunit_tool. > -* Documentation/dev-tools/kunit/run_manual.rst - run tests without kun= it_tool. > -* Documentation/dev-tools/kunit/usage.rst - write tests. > -* Documentation/dev-tools/kunit/tips.rst - best practices with > - examples. > -* Documentation/dev-tools/kunit/api/index.rst - KUnit APIs > - used for testing. > -* Documentation/dev-tools/kunit/faq.rst - KUnit common questions and > - answers. > +You can find a step-by-step guide to writing and running KUnit tests in > +Documentation/dev-tools/kunit/start.rst > + > +Alternatively, feel free to look through the rest of the KUnit documenta= tion, > +or to experiment with tools/testing/kunit/kunit.py and the example test = under > +lib/kunit/kunit-example-test.c > + > +Happy testing! > diff --git a/Documentation/dev-tools/kunit/start.rst b/Documentation/dev-= tools/kunit/start.rst > index f4f504f1fb15..224387a43543 100644 > --- a/Documentation/dev-tools/kunit/start.rst > +++ b/Documentation/dev-tools/kunit/start.rst > @@ -294,13 +294,12 @@ Congrats! You just wrote your first KUnit test. > Next Steps > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =20 > -* Documentation/dev-tools/kunit/architecture.rst - KUnit architecture. > -* Documentation/dev-tools/kunit/run_wrapper.rst - run kunit_tool. > -* Documentation/dev-tools/kunit/run_manual.rst - run tests without kun= it_tool. > -* Documentation/dev-tools/kunit/usage.rst - write tests. > -* Documentation/dev-tools/kunit/tips.rst - best practices with > - examples. > -* Documentation/dev-tools/kunit/api/index.rst - KUnit APIs > - used for testing. > -* Documentation/dev-tools/kunit/faq.rst - KUnit common questions and > - answers. > +If you're interested in using some of the more advanced features of kuni= t.py, > +take a look at Documentation/dev-tools/kunit/run_wrapper.rst > + > +If you'd like to run tests without using kunit.py, check out > +Documentation/dev-tools/kunit/run_manual.rst > + > +For more information on writing KUnit tests (including some common techn= iques > +for testing different things), see Documentation/dev-tools/kunit/usage.r= st > + Much better, thanks! Reviewed-by: Bagas Sanjaya --=20 An old man doll... just what I always wanted! - Clara --gQZZMfvjrIhTAV6r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCY5BVrwAKCRD2uYlJVVFO o90qAP0W0QiL12+wE0JzXPGrOMlc9sFK4uQuxOTzzy+QLsgflwEA+ZWGwB0Yy8f8 m2zrxJFPUg5QDxd6u2KAbBX0ztNinAg= =m9er -----END PGP SIGNATURE----- --gQZZMfvjrIhTAV6r--