Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1456192pxu; Tue, 24 Nov 2020 00:04:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBIQJ48xCwVYkwa/TAjA2iP+ZW1JPTB3YLfqrv7QCz2RL8aaeEVWDtwfczSc83gJA3dNGh X-Received: by 2002:aa7:dccd:: with SMTP id w13mr2857115edu.385.1606205061325; Tue, 24 Nov 2020 00:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606205061; cv=none; d=google.com; s=arc-20160816; b=DXYpa0Khk0ycdfnmYlw2LP2XOwoiWbxLm3+B5DjIBemir987c78wn8KSYZDPOWb9HR Z9vDgETpcNPBAYP4O7q1vJ+YZmcuCszMo/IWd5gG1LROHlo8L6eox3oC0Uj7R7BZg3wW uYwTdOQf1oqOpLNUuG37l7s4jrWfgQQlshgdVSe6suHDH2zLNDXETt3u22kPrMk+7z0v e4VFVRnJzvjHSmZMBih6npB/FkbXxnEbu6cpzaCmoVmhOojVKJgQ0sUj+iNSPEDnow2r lyu3N/kRCfEepCv6MYupknqMeIZJnrE+BJTlhrRtSxy2cUaME84+U9vkm+nyRRf878gn lljw== 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=a594DHYDSH28ozJvU6Q2cBNN/U0tDhb9dpOOY+Zf8ek=; b=1BnTWjskOvYnFwCUKp63tUntWQ886GIDnvo7MO+fGDmSpyPlzn0lLD1D9sxoAgDc39 COasFXe+d4EfjkH8qMzPbXpi2T/0VSwERIUZGkqojSzhO7UT/xa5L15vtuPa4Ecr4xUc XJY2IFU7Ua/edpr/U4TXAG4wVogdCQPK9qRGtD8HkPbdxXqY4dBHrPnuJKbO+yyrLcmy Qu+/8qM9qx0Tf7odokMxpuY9Nw6+/hVRxp09hxho03egXsa8Utq/G6pDtFcFHGZ5An/y Rx9Z7GV9Gl4Vu2O2O9jOw6q4VyxGLSN6UWqQf2cnk2P3BPzJlMvrSZCtihLBuHv3bPH1 gb/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZLeC2pXR; 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 k5si8012846eji.617.2020.11.24.00.03.46; Tue, 24 Nov 2020 00:04:21 -0800 (PST) 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=ZLeC2pXR; 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 S1730358AbgKXICf (ORCPT + 99 others); Tue, 24 Nov 2020 03:02:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbgKXICe (ORCPT ); Tue, 24 Nov 2020 03:02:34 -0500 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11CC0C0613CF for ; Tue, 24 Nov 2020 00:02:34 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id k3so18517874otp.12 for ; Tue, 24 Nov 2020 00:02:34 -0800 (PST) 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=a594DHYDSH28ozJvU6Q2cBNN/U0tDhb9dpOOY+Zf8ek=; b=ZLeC2pXRxS7ioJzWcYY9jJ/Np48Q6UGh5Gsvxkyd73LF4tfwf8TLhewXJTemf3Jwxx X7jKioju8zjZw6KC2hyAUQh8KdjAn4BYilk4LZ/TOyVQ+LIb/HsCOe7kNkmXNOQO/Uyb jyr5vgrWK7sjx0NieksUlsASyKp5d6OXcUEjq6XnPDaVpGoS8nfJdjr4IGJQzY2zI5GP z2ItB7Jz1rRzgJpb3exTUoZBnhzLOIGzzVGjfJyrPogi4RD9ZMM16HePxM3y3aKLFRWc /mvwIDbPN6GAHDYH+pChgCdXtyxsUGeS1RxxYqjZ6AEiNKpVKwoCrPcQPsFaSR6seUcq sJNw== 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=a594DHYDSH28ozJvU6Q2cBNN/U0tDhb9dpOOY+Zf8ek=; b=St4N5FiKLecA0Yl0ts3Hg4l24PoekRrnTysha6qbg45Gyt1x1geWyJ7i8o5vtYPGQV VZEOul7Cs/bIh52vDomZ7iZPgedmlJMcjHq78L9ZP4RvNqdYcCdydLUpAN6BggRqXZ5K 4HhS7jvcOw2OtMUp1mmHkONfGN8OU7lolhYtPT0buOUzBTY2EGOS+F0qlOn8L3FWZJej ux8xd0esoei8k9/0Iig4lPJH/QRQmuR2QYLQWuBNDPhyAIUqovW5tIaJX4esDv35X9C3 ADQ9j2/nCq34y+WNmC9hZDMvgTBnHPlQd7+2Up4aIKC0GapcslF0O6V4VKhePh3zms0y Ytng== X-Gm-Message-State: AOAM5330yEM6u1yIYEHOfECLgRxjEG64s1ZTG14wdI52oINWSEtasgWk H1lPz3jvmTpEYpagm+9OAzPlUrzZb+2rfq142HRvQ8SgEQ+p4A== X-Received: by 2002:a05:6830:1c76:: with SMTP id s22mr2516951otg.233.1606204953329; Tue, 24 Nov 2020 00:02:33 -0800 (PST) MIME-Version: 1.0 References: <20201116054035.211498-1-98.arpi@gmail.com> In-Reply-To: From: Marco Elver Date: Tue, 24 Nov 2020 09:02:21 +0100 Message-ID: Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: David Gow Cc: Brendan Higgins , "Theodore Ts'o" , Shuah Khan , Arpitha Raghunandan <98.arpi@gmail.com>, Iurii Zaikin , Andreas Dilger , "Bird, Tim" , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, 24 Nov 2020 at 08:25, David Gow wrote: > > On Mon, Nov 23, 2020 at 9:08 PM Marco Elver wrote: > > > > On Tue, 17 Nov 2020 at 08:21, David Gow wrote: > > > On Mon, Nov 16, 2020 at 1:41 PM Arpitha Raghunandan <98.arpi@gmail.com> wrote: > > > > > > > > Implementation of support for parameterized testing in KUnit. This > > > > approach requires the creation of a test case using the > > > > KUNIT_CASE_PARAM() macro that accepts a generator function as input. > > > > > > > > This generator function should return the next parameter given the > > > > previous parameter in parameterized tests. It also provides a macro to > > > > generate common-case generators based on arrays. Generators may also > > > > optionally provide a human-readable description of parameters, which is > > > > displayed where available. > > > > > > > > Note, currently the result of each parameter run is displayed in > > > > diagnostic lines, and only the overall test case output summarizes > > > > TAP-compliant success or failure of all parameter runs. In future, when > > > > supported by kunit-tool, these can be turned into subsubtest outputs. > > > > > > > > Signed-off-by: Arpitha Raghunandan <98.arpi@gmail.com> > > > > Co-developed-by: Marco Elver > > > > Signed-off-by: Marco Elver > > > > --- > > > [Resending this because my email client re-defaulted to HTML! Aarrgh!] > > > > > > This looks good to me! I tested it in UML and x86-64 w/ KASAN, and > > > both worked fine. > > > > > > Reviewed-by: David Gow > > > Tested-by: David Gow > > > > Thank you! > > > > > Thanks for sticking with this! > > > > Will these patches be landing in 5.11 or 5.12? > > > > I can't think of any reason not to have these in 5.11. We haven't > started staging things in the kselftest/kunit branch for 5.11 yet, > though. > > Patch 2 will probably need to be acked by Ted for ext4 first. Patch 2 had already had 1 Reviewed-by on v3 that got lost. The core bits of that test haven't changed since then, but I can't tell if it needs a re-review. https://lkml.kernel.org/r/CAAXuY3o9Xe-atK0Mja6qXLncUhmmVf4pR7hsANsqaoUX71RXVg@mail.gmail.com Thanks, -- Marco > Brendan, Shuah: can you make sure this doesn't get lost in patchwork? > > Cheers, > -- David > > > > -- David > > > > Thanks, > > -- Marco