Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1009368ybt; Fri, 19 Jun 2020 21:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuEJ5vPutS7diMX+6c6Bax9OR9dcf1SLkmzrXagiqLDq+lApoRDaBMu7pl9TvqjfuewubQ X-Received: by 2002:a50:afe1:: with SMTP id h88mr2105070edd.295.1592627375648; Fri, 19 Jun 2020 21:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592627375; cv=none; d=google.com; s=arc-20160816; b=Dzn/l5MKX6p7mQqmnUtXmQvl8Xn4fLDzGME5tYFNVy6ditTRPZnkOC5fylyvt+AgpF CE0Rh+6QoGbICrIVh9VVBmWZym/OJWnlSALiQ/bG3eq4hjyra8ozLCxM6gwzZ1r9EGGv lSVmAzmbnikF0wTAFmhXR9E1U5yPZTJBh/y1bpMFrxW0caGpwZpc8HHGtFHZsj92fwgJ vlO3NmWCsG7FJD9RmfqvCxiiZRm4gHuAn4S7Skl1GQRiwUC812Sxaw0Ifq8cDeT1yoys o2QqKPvhBkzQ5Wq3YhrAaL88QuZim79P0CAYEskBB4PneZETtM4ea+CaOh4ur1srlp7j 639A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=m0BuFLVukL33YBK8VGa8ymOVVw9eyFfRyEXP/K7B/g4=; b=Yn7B8RKSkGByFMMCQwhMfK2/POSSvTLcfIdTRgFHOyWZlTTKX+wOsmw51PTUKgQGd+ wQPytiDSHZ6RhiQupSyW7+grnQlCvJrxxNymS5Timd44MkSmWlj/GYD+aBDMXwEManWL KAr8MfpmEQIKxLQITxfd75sNwrtXq55xW+43KLHMvlSOIrLJz3s2gDhsIaOJcg8ppkQC 9h1WPA9MNcZR0Bjyk+GXudclZvSYtd62vjDU9ldXZBGS+RTHraJV82XpVYwT76m2LsmR N9JwcMImgSbx6G6clfXOkamelt8QLyUPUSEk49ILU37uofaJ48AiBzsfa19Qp4peWOYb Wj+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j7SViOXY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si5648980edv.356.2020.06.19.21.29.13; Fri, 19 Jun 2020 21:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j7SViOXY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388364AbgFSSrc (ORCPT + 99 others); Fri, 19 Jun 2020 14:47:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726993AbgFSSrb (ORCPT ); Fri, 19 Jun 2020 14:47:31 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8C37C06174E; Fri, 19 Jun 2020 11:47:31 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id i16so7965080qtr.7; Fri, 19 Jun 2020 11:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=m0BuFLVukL33YBK8VGa8ymOVVw9eyFfRyEXP/K7B/g4=; b=j7SViOXYXMM0PpPmcH8PZP2AoKNzj/q4ABtk6vTzD6m0XCF+YRvTqx07DM26SXH7oW Ggh1N6PNojjS5xy0ag7XO51UMp4TQRPX11wGfP75S9Pk1lvsE2G5TONDCVIGQ5/GrtE0 m8kzlbuARBBe9xn2+hLEjd/DmvdJfzhdZawSBVEXr02ds3HMlUrwdo3rdbrnEYdZnkSx N/qiHZw9nL0TBzglhdmCcIHEeYLrCzuqhoudSnC/IM/Fl6gWLiipCXVcmmi3ZXIdZ4CS FtEhMTvoD3unMqYyv7m5WVikwu6YJbyvjn9mSXyFn9vUBh91aecNJG1q3kz/8zQ1QNrW 0CZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=m0BuFLVukL33YBK8VGa8ymOVVw9eyFfRyEXP/K7B/g4=; b=mx5B33y//uwSyWx4EDwD0blwzHUNDXN7tiSZcDUz1oeRhpAGe2buIZKgOOvqCPX9oD VvFRf5igXvCpbDoP3q759zHhjDFuvV8kxu+bpCkkdGsBmbEIqGt8dE8RZpsH4h1FH5gt 2pV+CgcSwj3bscMoyQSgpQ7/pJUX0tP4ALHbaetfLyTYwwxmp+Dlu3AirfzK/aOGi7KT 3gK93igfwytkVtxAamtGZdVmoyY+7gYbXDyx0olNDWmMYTJxewNo76eMpBhiuFW3KoOW mIt2UFwpcl2n7EClxG0D8W0Zo6IHXNGDYmFevW5e1VVMyhZXK/gjbxVXR6vxYuc9wsr7 YMbA== X-Gm-Message-State: AOAM532vAls+fN/3UPellwSEBXpb/h9Dq0TYynhgFNZPN3txGRS341Id W0tYUn997KYSFRAr+erQHTk= X-Received: by 2002:ac8:794c:: with SMTP id r12mr4733460qtt.201.1592592450923; Fri, 19 Jun 2020 11:47:30 -0700 (PDT) Received: from [192.168.1.46] (c-73-88-245-53.hsd1.tn.comcast.net. [73.88.245.53]) by smtp.gmail.com with ESMTPSA id p7sm2110818qki.61.2020.06.19.11.47.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Jun 2020 11:47:30 -0700 (PDT) Subject: Re: RFC - kernel selftest result documentation (KTAP) To: Kees Cook , Brendan Higgins Cc: "Bird, Tim" , Paolo Bonzini , "shuah@kernel.org" , "linux-kselftest@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Gow References: <202006141120.96FF8C5@keescook> <7161fadb-45ba-c4c0-8bbb-cb47d2dd0265@redhat.com> <202006161653.15C278A5@keescook> From: Frank Rowand Message-ID: <398200b2-f8bc-894d-6d6f-366ff98a490e@gmail.com> Date: Fri, 19 Jun 2020 13:47:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <202006161653.15C278A5@keescook> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-16 18:58, Kees Cook wrote: > On Tue, Jun 16, 2020 at 12:44:28PM -0700, Brendan Higgins wrote: >> On Tue, Jun 16, 2020 at 9:42 AM Bird, Tim wrote: >>>> From: Paolo Bonzini >>>> >>>> On 15/06/20 21:07, Bird, Tim wrote: >>>>>> Note: making the plan line required differs from TAP13 and TAP14. I >>>>>> think it's the right choice, but we should be clear. >>>> >>>> As an aside, where is TAP14? >>> By TAP14, I was referring to the current, undocumented, KUnit >>> conventions. >> >> Not so. TAP14 is the proposed next version of TAP13: >> >> https://github.com/TestAnything/testanything.github.io/pull/36 >> https://github.com/isaacs/testanything.github.io/blob/tap14/tap-version-14-specification.md > > I was reading this (I haven't compared to the blob above): > > https://github.com/TestAnything/Specification/blob/tap-14-specification/specification.md > >> Based on the discussion, it seems like most of the things we wanted >> from TAP14 would probably make it in if TAP ever accepts another pull >> request. > > Were our leading diagnostic lines part of their latest spec? I thought > we were pretty far off in left field for that particular bit. > >>> My personal preference is to have the dash. I think it's more human readable. >>> I note that the TAP spec has examples of result lines both with and without >>> the dash, so even the spec is ambiguous on this. I think not mandating it >>> either way is probably best. For regex parsers, it's easy to ignore with '[-]?' >>> outside the pattern groups that grab the number and description. >> >> I don't think we care, because we don't use it. > > Yeah, I'm in the same place. I don't care -- I would just like a > determination. (The "implied" nature of it in TAP14 bothers me.) > >>>> XFAIL/XPASS are different from SKIP. I personally don't have a need for >>>> them, but kselftests includes XFAIL/XPASS exit codes and they aren't >>>> reflected into selftests/kselftest/runner.sh. >>>> >>>> Likewise, kselftest.h has ksft_inc_xfail_cnt but not >>>> ksft_test_result_xfail/ksft_test_result_xpass. > > I proposed fixing that recently[1]. seccomp uses XFAIL for "I have > detected you lack the config to test this, so I can't say it's working > or not, because it only looks like a failure without the config." Based on that description, the case sounds like it should be a skip. Or if the entire test depends on the missing config then Bail out might be appropriate. > > [1] https://lore.kernel.org/lkml/20200611224028.3275174-7-keescook@chromium.org/ >