Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp537463pxj; Thu, 10 Jun 2021 06:56:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPqt47AmQsy0l1k5qear5SdroI8/+y4ZpOvAg7vAYj6zjf2fQay4CFgAtzZevoYm5GL+3s X-Received: by 2002:a05:6402:2707:: with SMTP id y7mr4934602edd.0.1623333397450; Thu, 10 Jun 2021 06:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623333397; cv=none; d=google.com; s=arc-20160816; b=rZ0roXR5+NDu+cog8RSY5M0mc0iZASNMq+hAJxhTV1X0iG6oOo1adHjrAiBltV3F4J FmTsriqv+ydE/9FBQv/nXwAI47JCMDgPv63MMA1v6ABOpsqbont0eEVqOvZv6wH+CnRf wfJShVZeeHOXLe3fZNqmZnKVtogctQHSqJjxQQp8A72uCUUiuN2W/2MaOCG+YI0m3vVG etRRniPvekq2ysaR5CCrGyG5Htk0d0wUOdIS+trlqLqjJVsXg4ALedsvytK5OeDoYGaB rA1A5EZvaYAREOUox8ButEF0JbCAjwWZQexRRvSkctlAgNxWSdd7shjkyxm6Y1qg99d9 wjpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=Vs48b39ivup8Jx/yViEYHWHsBVkpflzTqYnL2swTROE=; b=UOATejSfzyrcfuOc1A49GMVRyIEh9q3XHxf4gwZuHh/dPO1Cjxz3QDheYMcdfR/5md l79eZbWnG0PQJEvzSv6SFMuSXo1Qo3G0nnyRC/aI+SHJ5PSK0MYjefmfqVjjqywhXuwE cHKZvAFZKsjq/1bFm7DL/rP9rJuB2N8g3gsYI3GrX5qndWHYobfouirE1nQ8MYH19Opt 9q95SatxjZrXNRIrBRIKa8TN6mdCu5xn2CvwE/pf/TFhSjH9We14YoVBzZTsF4ki4rfr ofdQ24fTPDcg/cwxOxAKpD6Pm33BHH6k+vpFBj8XJTCCuNOtTI40FMb6WB0hc9de0vIq +C1Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 cb1si2344893ejb.81.2021.06.10.06.56.14; Thu, 10 Jun 2021 06:56:37 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbhFJNya (ORCPT + 99 others); Thu, 10 Jun 2021 09:54:30 -0400 Received: from mga03.intel.com ([134.134.136.65]:32401 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbhFJNy3 (ORCPT ); Thu, 10 Jun 2021 09:54:29 -0400 IronPort-SDR: s9VGNOvOMpwEgInoWWMu2RJcP3F1M+HksPfKTg7KilSrkXYLsr/D5CppjkykPfHvqilqBjL1uA viNTcniLunuQ== X-IronPort-AV: E=McAfee;i="6200,9189,10011"; a="205333297" X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="205333297" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 06:52:31 -0700 IronPort-SDR: MuGrgesiWmaRa0UuXRLSbWL2lbq/9F/WAmv6aWlMOml/DHQ3us83Qh/cJks0ndZT0hKEXI/0AN ET3w1OGZDtvQ== X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="552361345" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 06:52:27 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lrL6e-001A8E-FK; Thu, 10 Jun 2021 16:52:24 +0300 Date: Thu, 10 Jun 2021 16:52:24 +0300 From: Andy Shevchenko To: =?iso-8859-1?Q?Andr=E9?= Almeida Cc: David Gow , Christoph Hellwig , Linux Kernel Mailing List , Brendan Higgins , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Shuah Khan , ~lkcamp/patches@lists.sr.ht, nfraprado@collabora.com, leandro.ribeiro@collabora.com, Vitor Massaru Iha , lucmaga@gmail.com, Daniel Latypov , tales.aparecida@gmail.com Subject: Re: [PATCH v2 0/1] lib: Convert UUID runtime test to KUnit Message-ID: References: <20210609233730.164082-1-andrealmeid@collabora.com> <63b2e441-f72d-6602-8680-defd96c21ac7@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <63b2e441-f72d-6602-8680-defd96c21ac7@collabora.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 10:08:30AM -0300, Andr? Almeida wrote: > ?s 09:39 de 10/06/21, Andy Shevchenko escreveu: > > On Thu, Jun 10, 2021 at 2:54 PM David Gow wrote: > >> On Thu, Jun 10, 2021 at 5:14 PM Andy Shevchenko > >> wrote: > >>> On Wed, Jun 09, 2021 at 08:37:29PM -0300, Andr? Almeida wrote: ... > >>> It's not your fault but I think we need to defer this until KUnit gains support > >>> of the run statistics. My guts telling me if we allow more and more conversions > >>> like this the point will vanish and nobody will care. > >> > >> Did the test statistics patch we sent out before meet your expectations? > >> https://patchwork.kernel.org/project/linux-kselftest/patch/20201211072319.533803-1-davidgow@google.com/ > > > > Let me look at it at some point. > > > >> If so, we can tidy it up and try to push it through straight away, we > >> were just waiting for a review from someone who wanted the feature. > >> > >> > >>> I like the code, but I can give my tag after KUnit prints some kind of this: > >>> > >>> * This is how the current output looks like in success: > >>> > >>> test_uuid: all 18 tests passed > >>> > >>> * And when it fails: > >>> > >>> test_uuid: failed 18 out of 18 tests > >>> > >> > >> There are some small restrictions on the exact format KUnit can use > >> for this if we want to continue to match the (K)TAP specification > >> which is being adopted by kselftest. The patch linked above should > >> give something formatted like: > >> > >> # test_uuid: (0 / 4) tests failed (0 / 12 test parameters) > >> > >> Would that work for you? > > > > Can you decode it for me, please? > > > > (Assuming that the above question arisen, perhaps some rephrasing is > > needed. The idea that user should have clear understanding on how many > > test cases were run and how many of them successfully finished or > > failed. According to this thread I have to see the cumulative number > > of 18 (either as one number or sum over test cases or how you call > > them, I see 4 here). > > In the original code, each `if(uuid/guid_parse/equal)` was considered as > a test, so there were 4 tests for the 3 correct inputs and 2 tests for > the 3 wrong inputs: 4 * 3 + 2 * 3 = 18 tests. > > In my patch, I've organized in a different way, with 4 test cases: > > - A test case for guid_parse and guid_equal for correct inputs > - A test case for uuid_parse and uuid_equal for correct inputs > - A test case for guid_parse for incorrect inputs > - A test case for uuid_parse for incorrect inputs > > So now we have 4 test cases, instead of the 6 test cases in the original > code, because I've united _parse and _equal in a single test case. Given > that each test has 3 parameters, this is why we see 12 test parameters > and that's why there's no "18 tests" around anymore. I see, is it mentioned in the commit message? If no, please add this explanation. Let's assume 12 now is the correct number, then the output can be somehow rephrased, but again, it's not in your patch anyway :-) -- With Best Regards, Andy Shevchenko