Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2565373pxa; Fri, 7 Aug 2020 14:34:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLGGX+8i2cIZy/m9cAMmBJoymBCAmyjNvJTLAKHRlXUZf+x9MMPkyXxMaWvjf7URnt1Yek X-Received: by 2002:a17:906:e2c5:: with SMTP id gr5mr11805606ejb.89.1596836053226; Fri, 07 Aug 2020 14:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596836053; cv=none; d=google.com; s=arc-20160816; b=FOkDXhCLkYh7NSbfDDpE1aLKPJR3eYeWbbrf4MM6qkrTyeEHhzhwXwtCGl5AML5f3P 738oxmju0DDmbaaEduonHbfILoCGm0bltLJOZ60P07iwD4TsStKbf+xBl8JVORQ5y5q+ bw9qGUxqqWR+VcC6w3YHBxvEKH0DffcyRyGT6wGyN27pQhc2GKM+Zm6KB2mY7J7ANy1B TrRDj+H1T61AQPKcQ1aCZbVINMnOKRbVP4Qu0UlXzvNxBOOC5S1SFhTdZTYWmroisMGp eEhCnD+2BEz1Q1NT/P0+aJgr0Sa5vrze4zsZao1x9CkpKb+iucFewynyriKAOEEipe9u EkGQ== 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=Kb51K/JMx93SnPedI+EIdFTSAF1IqBeo/q6vamdS4A8=; b=V4CpHj4joG7P54j0wWqCEO+seVYa7CKj4V1Rnc/pVVWPv4dhK6gAcngAqqewmXzJa+ APxCHg6U2Qj9Fhh95D6RDsBLMs29ZJNeZYoFUUqcCrFY88DaVtDRqwt2oYpRQMkE8kkr kYFpnRxUOsEmHocRaYQ0pabOS4sgxqH3xi3JQhPKdbnfNRlNXmf9tYtg3Oy/ZnU2Asf+ V5PVtv6z9XQVmk4cjB/+DtsiHGPgfzyAXf/j5lsZd3dlJK8damWOSjqmdk6cfCga4bmZ 4JZsciSurURl2C98ZQahx5I4yw0iSsO2ehOYQ7h5NwPzTnCbBgUK1g42LevPKIuf+VvL hd/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=j5fGpkuV; 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 j7si6422221ejm.538.2020.08.07.14.33.50; Fri, 07 Aug 2020 14:34:13 -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=j5fGpkuV; 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 S1726426AbgHGVdY (ORCPT + 99 others); Fri, 7 Aug 2020 17:33:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgHGVdX (ORCPT ); Fri, 7 Aug 2020 17:33:23 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B203CC061756 for ; Fri, 7 Aug 2020 14:33:22 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id a15so2870353wrh.10 for ; Fri, 07 Aug 2020 14:33:22 -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=Kb51K/JMx93SnPedI+EIdFTSAF1IqBeo/q6vamdS4A8=; b=j5fGpkuVmHIE5Ps7zFBfy2Pdo1F76BJ2oz5uWWb95k6tuAOeu9Lp4hnY+11pqXqX1f eW1WZpc91IM6WYWcp4j7Pc0/kUgOqrwv13XpEAuwqgjmvnwoIIzpfOy3OE4k4/KCmI8w ra9stYzuUfw82bKAJG8gGxGsX6WJE2a3T138c12Td/HoyQKB2GU84ST0lk/zf/LbdF/d IBWP4IIg1oHczrZH/o2MdqLogojr6xaCupKt9SwIPIiPSkUipTJx5ONXLtq+8Og5YlNT 8S80SBjxPsK8ALFVuDrRJDapxKxuC1Z1yAZquhI6AWArhrAHO3gS9bAYqZpoMK3/hxu6 mVPg== 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=Kb51K/JMx93SnPedI+EIdFTSAF1IqBeo/q6vamdS4A8=; b=CX76/v7U6RezzJF8EE1sA/NPZZ/n5+HhhpbeeKEtvb4tAUa/FV3LCp9rjnSGmfExJO cePM0cGA/NJzNl+imogAQb+Yv6ES22rFuFsAzHNmiVzNeWuqWhCfaAZzS3lfpzeXvIeA GgqxAKSxZu3g57nzuvFLjTe7OSs9ySGJkFanONQQyzLxXrkK/v38IB3vQ6v6WuXK0UNz tOPcwsuwoe38+PfyB6y0lwbtIP35waBs67K4w7GPeFi2Rfs2g1ADSFIXGNxZJ6Upr8q3 dhzPwpW/+ERE29wO64g/7t7WiNN77ECScGczACXa+Mbj2iEkvSb3HV5/zdz4TaN7BpRj y5jg== X-Gm-Message-State: AOAM530GA8HCUzS7Jv/QfxniRzspSubIWeR34p3/n9APsbS01RyQO+Cc 1ZYPwQ0n2puF/zS8G0S6LsTt4hSmCOpqdjj9gVGeRQ== X-Received: by 2002:adf:f511:: with SMTP id q17mr9909904wro.414.1596836001220; Fri, 07 Aug 2020 14:33:21 -0700 (PDT) MIME-Version: 1.0 References: <20200806094440.14962-1-98.arpi@gmail.com> In-Reply-To: From: David Gow Date: Sat, 8 Aug 2020 05:33:09 +0800 Message-ID: Subject: Re: [PATCH] lib: Convert test_hexdump.c to KUnit To: Andy Shevchenko Cc: Arpitha Raghunandan <98.arpi@gmail.com>, Brendan Higgins , Shuah Khan , Andy Shevchenko , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org 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, Aug 6, 2020 at 5:53 PM Andy Shevchenko wrote: > > On Thu, Aug 6, 2020 at 12:48 PM Arpitha Raghunandan <98.arpi@gmail.com> wrote: > > > > Converts test lib/test_hexdump.c to KUnit. > > More information about KUnit can be found at > > https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. > > KUnit provides a common framework for unit tests in the kernel. > > > -config TEST_HEXDUMP > > - tristate "Test functions located in the hexdump module at runtime" > > We have a nice collection of tests starting with TEST_ in the > configuration, now it's gone. > I'm strongly against this change. > Code itself okay, but without addressing above - NAK. > This change is to make the test naming compliant with the proposed KUnit test naming guidelines: - https://lore.kernel.org/linux-kselftest/20200702071416.1780522-1-davidgow@google.com/ The hope is that tests built on KUnit will all end up with the same [x]_KUNIT_TEST config options (which at least preserves the consistency of the test naming, even if they'll not all sort together), and should make it easier for people to know that the test results will be in a common format, and that the test can also be run using the KUnit tools. The naming guidelines haven't been upstreamed yet, though, so we'd definitely appreciate input on that thread if you've got comments more broadly than for this particular patch. Ultimately, I don't think it matters too much what we end up using, but having some consistency is the goal.