Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp507201pxb; Wed, 14 Apr 2021 23:01:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaXZ9OAXzVLM9HZSjmAG/VGJvNB4Pnp1fpJHUerstv9oBs7+raGT+QakW1vsv1xjQYMv4O X-Received: by 2002:a17:90a:b398:: with SMTP id e24mr2077054pjr.141.1618466506537; Wed, 14 Apr 2021 23:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618466506; cv=none; d=google.com; s=arc-20160816; b=U13jfq+GM6Qlr6zhSNSaCTLx3XzPeQFr1vVWwnWZhH74M91UmW0OXplZI6eyFT6wh+ wdAgUEa7FsaV4Rs2jlCCsv0Fj3BBNetV61FX4eCGoXnDIdWr1wpTT5Fn8gsB7PXtDxEb wFxaZ9FVPWtc85rzcidSWMouLNi9+0FAD5N2/yXMF7rWkfAZLfUQyFM1YR/j12IjjFtS nT0PqewkwSw1Whto6r5+Xz70e+VV8z+FQyqZOLpQSPU5BsI2PG/XdCPMeT2Awhffrwtj ox8bdfSww/QXBojesA/5+T1063KwxbLFof7BVrgo+4iAhPgOJZNiRn04NPvHfMiBmLyd XFRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qdo7GLfDZ1fKfLETl+AnnMu4LOm28kYyjEjCWeEN/kM=; b=rDNcIC4/tzKmzZaknX7kshR5I3qUWFmRO2QznpW9966GUe8q3ZWRo3JbqhlfgaMYZh S6r6lIk7kdrDUY/tATtQ2YYpYW9i71NjLJgnZWONVhnbPbHKhlMXA0KiAxsg/PlygMti 2ihUc2B5HSz9sYxmAMyfNiQ1Jv88xsgRsXou1CCgeK2WCjLRlW+x6iLS5IrmZLTh3m4P 29KottjCTrox+tQXym67U+jsSRFGF0P/rmaHn7JroYdTHwLE7qL48htdetQG2TCaeICF xa6wklSW4ih8MkwIeoyeEGWZ8piswAF8CvHVKltPi7HL/0XniCJCk+5xjhDzD/dLWGqn xkOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="PZxrip/l"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si2301102pgc.188.2021.04.14.23.01.33; Wed, 14 Apr 2021 23:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@google.com header.s=20161025 header.b="PZxrip/l"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbhDOGBr (ORCPT + 99 others); Thu, 15 Apr 2021 02:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbhDOGBq (ORCPT ); Thu, 15 Apr 2021 02:01:46 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AB77C061760 for ; Wed, 14 Apr 2021 23:01:23 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id p23so22130935ljn.0 for ; Wed, 14 Apr 2021 23:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qdo7GLfDZ1fKfLETl+AnnMu4LOm28kYyjEjCWeEN/kM=; b=PZxrip/lkWUIJnUpal2tRZVXiAofn50XVw3/lU7TzdlDxJ3ozNg0JLo+iujw/3cE3A 7ozR/Gb7FWcOZSffC3ERKXcAVMqYX+YUIIHGzcVHpjaC2fhw6cvyROe7+ZOEORYP34gO 4rktudHPimrrD0KrViFavSSLb6Lfr99RTv1ImY4Ya8S+Tu4Lxwif0WmaVLv27ZZj9Be8 UX5lMfwFptT5vX2mIZh3o/ufbjoBKPI99et2JkncXPrOAFkC0J2O+KV2mRPrv6obQ8+/ NcGLJ772C8lX+8IbfHtw7egTBQodFI6Z5S9hmkz8qnGic7XsyD0KTZWn32nrdgIvO23n CQbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qdo7GLfDZ1fKfLETl+AnnMu4LOm28kYyjEjCWeEN/kM=; b=nfOzZL4vBL5FbVpttylvthTiIV6LvwpRhc9ZRp5fdeVsUavQ0FoQM3xJeqwCL7oktm zeZSidf7SH7a+EcXCuoxde8mi9OHhhVlq7YNc7oiB0fma/MZH4v5WitHIHxLMBvcVMAI HmAzxEqmxNJD4rPp0ZWIDa1G1NmDrgPE39s6I6mpVq6B6kpdgaRRqNKuQCrVndZVN55Y zujBjsuyyNoS10z7yvKEvKeLgkLVBJ4HVe5sYqswFp5DKvjLjyaaRv4kptziE5AO1Eri sEXtgv+C4khy7gEY4SjS2LhbVd02P2EpNE7MNv0Ft0DPm9CPugGPqW8i1Ks0GXaJvK8D h0GQ== X-Gm-Message-State: AOAM532RgkvBmDt3S3jylNdCXqX/B4baQEtuDdjnuiI3VF0X7LDUpmC9 iBIYXrrw4H54W9g2RRkJNGCVBoqGFEdnauDYA4R+1Q== X-Received: by 2002:a2e:8797:: with SMTP id n23mr831519lji.347.1618466482085; Wed, 14 Apr 2021 23:01:22 -0700 (PDT) MIME-Version: 1.0 References: <0fa191715b236766ad13c5f786d8daf92a9a0cf2.1618388989.git.npache@redhat.com> In-Reply-To: From: David Gow Date: Thu, 15 Apr 2021 14:01:10 +0800 Message-ID: Subject: Re: [PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard To: Matthieu Baerts , Nico Pache Cc: Linux Kernel Mailing List , Brendan Higgins , Greg Kroah-Hartman , linux-ext4@vger.kernel.org, Networking , rafael@kernel.org, linux-m68k@lists.linux-m68k.org, Geert Uytterhoeven , "Theodore Ts'o" , mathew.j.martineau@linux.intel.com, davem@davemloft.net, Mark Brown , Shuah Khan , mptcp@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Nico, Matthieu, Thanks for going to the trouble of making these conform to the KUnit style guidelines. On Wed, Apr 14, 2021 at 5:25 PM Matthieu Baerts wrote: > > Hi Nico, > > On 14/04/2021 10:58, Nico Pache wrote: > > Drop 'S' from end of CONFIG_MPTCP_KUNIT_TESTS inorder to adhear to the > > KUNIT *_KUNIT_TEST config name format. [Super nitpicky comment for this series: It's 'adhere', not 'adhear'. It's not worth resending this out just to fix the spelling here, but if you do another version, it might be worth fiing.] > > For MPTCP, we have multiple KUnit tests: crypto and token. That's why we > wrote TESTS with a S. So (as this patch series attests), there are a few different config options which cover (or intend one day to cover) multiple suites, and hence end in KUNIT_TESTS. Personally, I'd still slightly prefer TEST here, just to have a common suffix for KUnit test options, and that's what I was going for when writing the style guide. That being said, it's also worth noting that there is an explicit exemption for existing tests, so if you (for example) have a bunch of automation which relies on this name and can't easily be changed, that's probably more important than a lone 'S'. > I'm fine without S if we need to stick with KUnit' standard. But maybe > the standard wants us to split the two tests and create > MPTCP_TOKEN_KUNIT_TEST and MPTCP_TOKEN_KUNIT_TEST config? > > In this case, we could eventually keep MPTCP_KUNIT_TESTS which will in > charge of selecting the two new ones. This is certainly an option if you want to do it, but personally I wouldn't bother unless it gives you some real advantage. One thing I would note, however, is that it's possible to have a per-subsystem '.kunitconfig' file, so if you want to run a particular group of tests (i.e., have a particular set of config options for testing), it'd be possible to have that rather than a meta-Kconfig entry. While there are some advantages to trying to have a 1:1 suite:config mapping, there's isn't actually anything that depends on it at the moment (or indeed, anything actively planned). So, in my view, there's no need for you to split the config entry unless you think there's a good reason you'd want to be able to build one set of tests but not the other. > Up to the KUnit maintainers to decide ;-) To summarise my view: personally, I'd prefer things the way this patch works: have everything end in _KUNIT_TEST, even if that enables a couple of suites. The extra 'S' on the end isn't a huge problem if you have a good reason to particularly want to keep it, though: as long as you don't have something like _K_UNIT_VERIFICATION or something equally silly that'd break grepping for '_KUNIT_TEST', it's fine be me. So, since it matches my prejudices, this patch is: Reviewed-by: David Gow Thanks, -- David