Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3993268pxu; Mon, 30 Nov 2020 15:09:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBwIu7p6SuwQ9IjgVDeU/znhJvs+nvn8g2iKR5q6LGtXxbZyMV2EXKTR3hughOsWfyLHHW X-Received: by 2002:a05:6402:491:: with SMTP id k17mr37940edv.370.1606777751060; Mon, 30 Nov 2020 15:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606777751; cv=none; d=google.com; s=arc-20160816; b=eLhirMjmRQpfl0Fr46IDK1p3iqssS0p2IXYynbAz9q2snBvRdfBLn32LYucbA6bf8b +aIjEZ2GLZtVxVC2RRZzbi4MNkGEsL3lfrhv0K4RGDjZCcH4hbY8eap67ZhuVjg/HLdQ Sbw+oQSm1VFAG/BT2oMTxP3Qw/vFbyLlGfEdnAHfHnMQ41yz/yh2hsPkni74+qTmITqD de2MrC7h9q7WVjQp2mOSGpjI/wpYUaMHf50P/gVc7iohvp1tOzyxtC9BOy5mh+WjR0CO stM5BLLCwB/z77c3owCjxt8YUwWhW8eE2YY+p7XwIMWGxzzSrW+C68KhURBdklr1YFlA u9tg== 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=5BCfceYCUFklibw9iNkTt59HaVog15eTd5t3bjImEAQ=; b=A02q2NLubbMJtSy6XiJObK2gpAWveICoOnS80VOORyz+5DClwy4OKU79bDJGm5TyYk 2t3GMJl49DCvKXMJiIAPTtyOmVWu9GvogaOSV2kNjlTZw/6PDRu/8d9UqO7pnvbPMnaX pKUCM++FiKhsFZ96/CLaf4qn9Gt3q7oW7F6wHuUWmG4MFClxQO2tcJl/NwLXB6+qwnQ4 QWrj4dU34SY37bJwJWBCuK1R8imkRddkED91ZuZ7tzWjxJw9AMTBHzGg37Pj/i8LV7M8 ftLz1dVE+72AHSrjjHaORELRCsdEl1WqQtP+4q/mamiHudZCfcF2o+hTXFC4rHLMP23T o85w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="k/30DKax"; 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 h26si7216988ejq.399.2020.11.30.15.08.38; Mon, 30 Nov 2020 15:09:11 -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="k/30DKax"; 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 S1730606AbgK3WXP (ORCPT + 99 others); Mon, 30 Nov 2020 17:23:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730601AbgK3WXO (ORCPT ); Mon, 30 Nov 2020 17:23:14 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC75CC0613CF for ; Mon, 30 Nov 2020 14:22:33 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id l11so7317004plt.1 for ; Mon, 30 Nov 2020 14:22:33 -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=5BCfceYCUFklibw9iNkTt59HaVog15eTd5t3bjImEAQ=; b=k/30DKaxucqttsaNv21BmbQpUbdkRX7IMney19Y1tduMHegrd/CAjDqpTb9VTFLiSc JqiSt1G74qTGBZcEKSlxJ3gJK12B3E3iHH2TkQ386cz2gWsDVBigYwZFoef+nSblQlY7 vIjHZZOj2b+qYVwg/ALqtsiYPXxaMndHgWKkyqKNkkUHOY8rTSZnXReUBjG0DsTxevL5 GAx6LHBjgvSZcDtU9E+J/BDB76C5mmp4rEuUJfLwxLF0W9SH4BjGOb/2GUKNsqowvZfX 9qfR75HzCN2naDEWguSo9CMRLL1bN2myTp7V7364O6gnZ9SkzLRpu782zs587e5todSD IosA== 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=5BCfceYCUFklibw9iNkTt59HaVog15eTd5t3bjImEAQ=; b=VbFDTG0FHw0/vWj9y8l13viRX86/BHynaWPXtAPCwEeg9HdmX8C+H/z2yjrJSE8c0C Y2T/ljqXKdwjgWNXTKSe9K9FWxpXjbZYJAd0HOVJoEe05ZxSKQ63q/e0w73pwFSULYt4 GFT9v+/Gx5SBYganrJMh6111X1cBWDxt4vjXvyxVHwiLqnCgHBwclBmypmYRh+oZVig5 A7SozdzRFgdkCqQy4c6pLUAYfMAvBtqYZNmZMr4LL4K5H4yTv7GxhyU6iW8q3bRy92zA cz8h9ii3UZXXtAsCvUHAuODLuwqG20mPSE594OXkVLI94AqGurS9IId1egyQAsA/PkdM xNNg== X-Gm-Message-State: AOAM533cyT2i4N6ufN+DRl8xg3aywQCInMLCA5/9LVa8A95aV/WWURKL p48ALNV5OIHu/8FoiVwd91Dks149EFqIVY9ini8UQQ== X-Received: by 2002:a17:90b:3658:: with SMTP id nh24mr1090414pjb.80.1606774953049; Mon, 30 Nov 2020 14:22:33 -0800 (PST) MIME-Version: 1.0 References: <20201116054035.211498-1-98.arpi@gmail.com> In-Reply-To: From: Brendan Higgins Date: Mon, 30 Nov 2020 14:22:22 -0800 Message-ID: Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: David Gow Cc: Marco Elver , "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 Mon, Nov 23, 2020 at 11:25 PM 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. > > Brendan, Shuah: can you make sure this doesn't get lost in patchwork? Looks good to me. I would definitely like to pick this up. But yeah, in order to pick up 2/2 we will need an ack from either Ted or Iurii. Ted seems to be busy right now, so I think I will just ask Shuah to go ahead and pick this patch up by itself and we or Ted can pick up patch 2/2 later. Cheers