Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3248204pxb; Thu, 10 Feb 2022 16:21:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw59ICGD9fq2hU0UL7IiU4I8kh+JpphUixA5bjrFBT91gHDXaFbvvhQP3IUbAzMUAvWnEmD X-Received: by 2002:a17:907:2bc4:: with SMTP id gv4mr8393909ejc.357.1644538895814; Thu, 10 Feb 2022 16:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644538895; cv=none; d=google.com; s=arc-20160816; b=hGqpTah7kxdCegINY8bMWEFxL8lfFD4KXQWn4QOjbEWST9SsCMd45MA4ZOXp9oDZvE +uGInQ449S78nW/iEBX0OQvIdQ0bery6H92YTXxVqBN2xsZNLT7J0ksixKs+KahWadFU 4OPUlEf9AqxvFImU0A45dYgpA4+YteBGLj+sFxKlBv7DXmwbqIUZwM5rPBwWYHUkhn8F hPXEu0TZSObjE5r15ahhHKvUk7ma8HyLgLERynLYBViyxpkfMjn5y4Wljw5P9CRzAYQz ui06tnOtV44gYD6FswS80VWfu4QH/UBV0xQT1YMWVIs1oM4LCFxz/owGng70L/ElvaNJ 6lBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=UPMqvN4jQljY67pyJcK3Q/6I1X+yzjPk4U0IfC3Vs0c=; b=vELOjv4pNb71hDBi4TT4r7nVK8mYnsD8r4ffoQzcHV1jgP7m3294iRbJKdllg1BmPo WqvNsBWSBGr8/M2hW1UJ8SoiphrIIuNL8RtVr2oU57GLPfAZAa5tj6ZrLAmkKG+wRxPs XggSTlW+oTk1G9WIACadCzj1ExrjkmrvBxiTpb+TrMXW9NuPTL9dtNVOL8O6RrGqc4/e VJmaIWgOXS8RaapJWVPiRPUFI81cIGK69kGVED64vdsAg8YjXp7mw8rRrQjDlLxZU2nn 4IVo5sZJ0jtOTLYRogS6/PkWgE2HL4PqQE6FgJPUqR/mM4aQmVUWyVvSoCXR8jInOxRu ANLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=H+ARLaHw; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga19si6694931ejc.13.2022.02.10.16.21.11; Thu, 10 Feb 2022 16:21:35 -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=@linuxfoundation.org header.s=google header.b=H+ARLaHw; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241604AbiBJRZl (ORCPT + 99 others); Thu, 10 Feb 2022 12:25:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235467AbiBJRZj (ORCPT ); Thu, 10 Feb 2022 12:25:39 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CABABF17 for ; Thu, 10 Feb 2022 09:25:39 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id i62so8247108ioa.1 for ; Thu, 10 Feb 2022 09:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UPMqvN4jQljY67pyJcK3Q/6I1X+yzjPk4U0IfC3Vs0c=; b=H+ARLaHwierRXfOETCvqJs50LUzTTeiFI57HRolyisN1dNCC/7gz05sL1LcchQZrW3 BYkMAI9HCiRXbWMQig1dhJIhKhCh2GswKdUH8yacBqqYFIBTA+Tf6r4XpHFoKidCig4E FV6hb85CaDRJt/OhQVnV0nzSHWBlHjw0HYuTw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UPMqvN4jQljY67pyJcK3Q/6I1X+yzjPk4U0IfC3Vs0c=; b=d1oVNi/F3E2WiZBc2oXV8Hw5Nug6okzPwlMlefgg71AAPa7wQmSvAMM2mw46H/3XJD dJNjnkA7XhSMYFMQmj/Eq23/M7ZfyhpKJ4ZgNtN6QTnFyATsGUD/UScwMk9voTFJRAoN EAIWNUHjSFtxlXAOzzXJAubG7ll+EXxhLGyfN1DYVIjsIMqzBLE3tvkpGFGn8jroQVC2 ApX7mR+z9ufEvOFeTiMeX6n4S5Fo0pZuFBo3en1dMaFZ0eCfgTn6zwY7gx2Wd8SHq7Q5 lwpM4cS3qkm/7MYzpQcZyLG8m+KC664ElGGBV5uYwGKVWuNgFSJFHFu22rUQHRvOMC4/ BSwg== X-Gm-Message-State: AOAM532IVrLNCjxyZd5N6zaEHHPIRPtjkn3Vn9QztfikU7pslbYU4Yqy nlN0W5blfczKJe1SejqjmWgssg== X-Received: by 2002:a02:cd0a:: with SMTP id g10mr4556252jaq.223.1644513937925; Thu, 10 Feb 2022 09:25:37 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id n23sm11557642ioo.55.2022.02.10.09.25.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 09:25:37 -0800 (PST) Subject: Re: [PATCH v4 2/2] Documentation: dev-tools: fix KTAP specification build warnings To: frowand.list@gmail.com, Jonathan Corbet , David Gow , Kees Cook , Rae Moar , Tim.Bird@sony.com, Brendan Higgins Cc: rmr167@gmail.com, guillaume.tucker@collabora.com, dlatypov@google.com, kernelci@groups.io, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20220210023519.3221051-1-frowand.list@gmail.com> <20220210023519.3221051-3-frowand.list@gmail.com> From: Shuah Khan Message-ID: Date: Thu, 10 Feb 2022 10:25:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220210023519.3221051-3-frowand.list@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 2/9/22 7:35 PM, frowand.list@gmail.com wrote: > From: Frank Rowand > > Convert "Major differences between TAP and KTAP" from a bullet list > to a table. The bullet list was being formatted as a single > paragraph. > > Add missing required argument in code-block directives. > > --- > > Table conversion suggested by Shuah. > > Patch 2/2 not previously reviewed, so Reviewed-by tags not provided. > > Changes since version 3 > - Add this commit (patch 2/2) to the series > > Signed-off-by: Frank Rowand > --- > Documentation/dev-tools/ktap.rst | 33 +++++++++++++++++--------------- > 1 file changed, 18 insertions(+), 15 deletions(-) > > diff --git a/Documentation/dev-tools/ktap.rst b/Documentation/dev-tools/ktap.rst > index dfb3f10a8b2d..5ee735c6687f 100644 > --- a/Documentation/dev-tools/ktap.rst > +++ b/Documentation/dev-tools/ktap.rst > @@ -68,7 +68,7 @@ Test case result lines > Test case result lines indicate the final status of a test. > They are required and must have the format: > > -.. code-block:: > +.. code-block:: none > > [][ # [] []] > > @@ -117,32 +117,32 @@ separator. > > Example result lines include: > > -.. code-block:: > +.. code-block:: none > > ok 1 test_case_name > > The test "test_case_name" passed. > > -.. code-block:: > +.. code-block:: none > > not ok 1 test_case_name > > The test "test_case_name" failed. > > -.. code-block:: > +.. code-block:: none > > ok 1 test # SKIP necessary dependency unavailable > > The test "test" was SKIPPED with the diagnostic message "necessary dependency > unavailable". > > -.. code-block:: > +.. code-block:: none > > not ok 1 test # TIMEOUT 30 seconds > > The test "test" timed out, with diagnostic data "30 seconds". > > -.. code-block:: > +.. code-block:: none > > ok 5 check return code # rcode=0 > > @@ -202,7 +202,7 @@ allowed to be either indented or not indented. > > An example of a test with two nested subtests: > > -.. code-block:: > +.. code-block:: none > > KTAP version 1 > 1..1 > @@ -215,7 +215,7 @@ An example of a test with two nested subtests: > > An example format with multiple levels of nested testing: > > -.. code-block:: > +.. code-block:: none > > KTAP version 1 > 1..2 > @@ -234,12 +234,15 @@ An example format with multiple levels of nested testing: > Major differences between TAP and KTAP > -------------------------------------- > > -Note the major differences between the TAP and KTAP specification: > -- yaml and json are not recommended in KTAP diagnostic messages > -- TODO directive not recognized in KTAP > -- KTAP allows for an arbitrary number of tests to be nested > -- TAP includes "Unknown lines" in the category of "Anything else" > -- TAP says "Unknown lines" are "incorrect"; KTAP allows "Unknown lines" > +================================================== ========= =============== > +Feature TAP KTAP > +================================================== ========= =============== > +yaml and json in diagnosic message ok not recommended > +TODO directive ok not recognized > +allows an arbitrary number of tests to be nested no yes > +"Unknown lines" are in category of "Anything else" yes no > +"Unknown lines" are incorrect allowed > +================================================== ========= =============== > > The TAP14 specification does permit nested tests, but instead of using another > nested version line, uses a line of the form > @@ -247,7 +250,7 @@ nested version line, uses a line of the form > > Example KTAP output > -------------------- > -.. code-block:: > +.. code-block:: none > > KTAP version 1 > 1..1 > Table looks good. Thanks for adding it. The two patches could be collapsed into one perhaps? Either way: Reviewed-by: Shuah Khan thanks, -- Shuah