Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1015085ybt; Fri, 19 Jun 2020 21:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvNl33eLaTM5iymBkJG0wlpWW4nHr00pYw6UX+uxlalG13gZ8WR6YzBRA/ir+OcIwf0qMZ X-Received: by 2002:a17:907:217a:: with SMTP id rl26mr6345712ejb.209.1592628033150; Fri, 19 Jun 2020 21:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592628033; cv=none; d=google.com; s=arc-20160816; b=FIoau8+b3mNDlqBBMDjAhUs/Cb5+f3/JwOhS8IQPRUicYGbQOWlF5AWaXUH0XtTI80 rRnchb8c2N/M/XKiRaVMP13fF8zTtwyio7Etceu5iW/KooNhErsB8kupruFlNGsQ9bMf p0ncUibxG/fZbnaFaJlFkTmIVHrdy3ejmDtRCyp+xPnoK2h4gQ0cNeyt1L7efhSNCnYx 1FbgeB/XAy3q7ES0PrnaPQJi92o2tJPs4pUdPVDAbrTm8QT0lxSfGVCIFt1ElgjC7ftb GtFdq7TQ8Y1wFNYvJUhj1SQZ2YVCZAuKf8rjceBlNC1UP90wof+2kjd1pBEY6qoWyesB AM1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CtL6MXEKzIeEStdpWr+Z+AY2ozIEH/pJKXnlCHuuM48=; b=med13+DYtI49sqv3cIh3SOYtyjxCd8vatEaIsAMG9kf2WbZYOFBELQgHz8JFUlK/7D FMuBwU+I/VBTrgPly/tkg3/I0BHVHbJvCyoBL+mO6ookPn9xNE5Hy6xyXKLy/8p2cGFM nrW/SvvKf48g0mhe+axyFJOq3rtUT4uBVjSeYaLtTvG9LBw6+wYr8wxdmWT6YfHzGCbJ Zs2wF/ZMEzGOsbwc7Znr6N6MpCvz2oYcL8ntEAb+gfF0ftdLBup63k5dNYR0E4Pucu5w auwblJWy9m49lTeOJgXEamAKckL79ywwRe7/xjOCQr6eSmMyAwjZUz9YzSNYbf4/p1fA A11w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JhzmdnUX; 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=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 jz17si4894387ejb.243.2020.06.19.21.40.11; Fri, 19 Jun 2020 21:40:33 -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=@google.com header.s=20161025 header.b=JhzmdnUX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390260AbgFSUM3 (ORCPT + 99 others); Fri, 19 Jun 2020 16:12:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390040AbgFSUM1 (ORCPT ); Fri, 19 Jun 2020 16:12:27 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D40C06174E for ; Fri, 19 Jun 2020 13:12:27 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id n9so4349277plk.1 for ; Fri, 19 Jun 2020 13:12:27 -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=CtL6MXEKzIeEStdpWr+Z+AY2ozIEH/pJKXnlCHuuM48=; b=JhzmdnUXuMgHKNez3rF4CNCqDonN/tgdYvlkkcY/gmPsUHMicehnsmLblPolT0WwCP jBS2JJcHqQG1V0nwykQ0NmhmhWrSfYF01b7DLyrDEHJFDrPzR1QitEqoxZXQYFz3FqJR YrKNN9+B5Pb8rAcdwHREZXyWpmcRScK+4i+0ol8nC/KODfzFmCrOrpZ7LA7DzlOFCBLP qjT6ZfI4bFvx0peh229/xx3Bx3hEpB2yDOZURUzmy3toPz6A2Jfkelvpiw7pkmY7K0q8 CAPWGRC9EplTK1ob060zhSYPcTqcJQ9rC4nHw4wzmtkOnA/QUBrGlbR3sMJxiI8zzqvp 6/Ig== 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=CtL6MXEKzIeEStdpWr+Z+AY2ozIEH/pJKXnlCHuuM48=; b=OaosMKr4GPlvW6Eh9L/wHVhnUAYWoFir6EB+3+dp6aXiJxq4bR3jxMmm4876DJOS7R SNgPa1eWLUarh9/Tnd76/WD0tCgi5CNyzzhyKnPtcu4PvDq+UgFWym3vU1UgeV9GYuKp Pa2ihwPWxkshs1JFupBmHskEqjVx/4NAd3ZSKsXfy+oFgW0yeqq3j8pcKRecdIfmIS8x eUKnkrJZk4MFXkfaGKsLeDsWK8fn7Wp3me6pC1eOBAypQmnWio0ToflVAj7WkT/JmtOX jiF41sdVQOURy226H0347NupoFq2opsHzl3++a84ikGEZMX63jVvasMAwt+kw9xAwsyJ V8Ug== X-Gm-Message-State: AOAM531P0A/m5+H/FQ8cQg+Pm1FDJ8Gx1ojrcPobRJgsHUwh9VJV2TFG lo5WahAYbFtklCD4HORk8hzpbvAROtP9zFexdeLSTw== X-Received: by 2002:a17:90a:df82:: with SMTP id p2mr5255928pjv.217.1592597546456; Fri, 19 Jun 2020 13:12:26 -0700 (PDT) MIME-Version: 1.0 References: <20200611215501.213058-1-vitor@massaru.org> <202006121403.CF8D57C@keescook> <202006141005.BA19A9D3@keescook> In-Reply-To: From: Brendan Higgins Date: Fri, 19 Jun 2020 13:12:15 -0700 Message-ID: Subject: Re: common KUnit Kconfig and file naming (was: Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions) To: David Gow Cc: Alan Maguire , Kees Cook , Vitor Massaru Iha , KUnit Development , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, Rasmus Villemoes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 11:39 PM David Gow wrote: [...] > On Fri, Jun 19, 2020 at 4:28 AM Brendan Higgins > wrote: > > > > On Tue, Jun 16, 2020 at 9:21 PM David Gow wrote: > > > > > > On Tue, Jun 16, 2020 at 5:40 PM Alan Maguire wrote: > > > > > > > > On Tue, 16 Jun 2020, David Gow wrote: [...] > > > > > wrote: > > > > > > > > > > > > On Sat, Jun 13, 2020 at 02:51:17PM +0800, David Gow wrote: [...] > > > - Test names: Personally, I'd kind-of like to not prefix these at all, > > > as they're already part of the suite. If we do want to, though, prefix > > > them with and . > > > > Eh, I did that to remain consistent with the kernel naming > > conventions, but I think those have diverged too. If maintainers are > > cool with it, I agree that the prefixes are redundant on tests and > > generally way too long. > > > > Do you have a link to the conventions you're talking about? A link no. This is only of those undocumented rules that most people follow. The rule is something like this: Global identifiers should be named: __...___foo. For example, let's say I am working on Synopsis' DesignWare I2C master driver. The outermost namespace is i2c, and because DesignWare is long, we might prefix each function with i2c_dw_*. It is a practice that is not universally maintained around the kernel, but it seems to be the most common method of namespacing aside from just randomly throwing characters together in a prefix that hasn't been used before. Anyway, standardized or not, that is the convention I was trying to follow.