Received: by 2002:aa6:c429:0:b029:98:93ff:f56f with SMTP id g9csp3415096lkq; Mon, 23 Nov 2020 05:11:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIv3ieT3T4uauyg6r9mPJan4ghSwlu+JjPVV8aDx9NPTcoQ1BxyPOcCHw5MRxrwFdTxf3W X-Received: by 2002:a17:906:bc43:: with SMTP id s3mr19064962ejv.411.1606137081428; Mon, 23 Nov 2020 05:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606137081; cv=none; d=google.com; s=arc-20160816; b=T2hCTIePeAt5Uz+FkzjDP/+E+yzTORdc6cyU/Ak6QHSMD00ThvNxAaIFmkcehBv+8P HM6PMpK2hW+UvDQnPFYyMCe6mnYABGLKqtA9+3f65ih6vu9QrSAHc3kZJqSPEzyTQq2n uRcVrgbi62qKVMRReXVQWdORmuP+5ueaPmLNOtP64HbDn4AIl9xn+85yKjFEAiuez6Qq H+q8ZZOcxVwAO4kp4uy2f+K3PAIQFEYKVp4jWaQfzeAvJmGE+Qc/z6lgSHHI4Wn/cB2+ DG82YRDtrGihQwFGFJvPBS384hbcwVCjWqqFGfi/uFR/72KJkAzq83854Epnnv9nbcn1 ozHg== 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=XOXAAY/4nvkcRrNExNVW2w/236SkW1Wa7iXXWBvmVzk=; b=USmIeLGWegdGe1qKEM06e/w9+zPfl7CDmXx/4zli3ArbBOsQn5ZrES3Ggj96EnOcGS 9pUAym8fbEc5ayqy1yL2UX0W0I2LP/49137YXpka42Zq7N1Afan70TnoYb/Z+0uDamTk 94H4HrKtZk2DLJJI1iJ3vpQwFDrtquorjjQjQwvNl8eZTQSmTllSVPUhs3NtMfFmxZ1q /+3LduRqndlfm6cMNPsrlPxhjk2wqs1KdAJGLbKuG7fJixO/iDGNFQ472jb0swa33zzB MZ6V4z9xJsT34/ys7c4B7v2Z7lEHphO35j1a4ampexVIm3y75ctVG2/ZrMRvBjGET7iR XV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TjKKxvzD; 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 w10si6518261edj.71.2020.11.23.05.10.56; Mon, 23 Nov 2020 05:11: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=TjKKxvzD; 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 S2388727AbgKWNIf (ORCPT + 99 others); Mon, 23 Nov 2020 08:08:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388430AbgKWNIW (ORCPT ); Mon, 23 Nov 2020 08:08:22 -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 437FEC061A4D for ; Mon, 23 Nov 2020 05:08:21 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id 79so15789969otc.7 for ; Mon, 23 Nov 2020 05:08:21 -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=XOXAAY/4nvkcRrNExNVW2w/236SkW1Wa7iXXWBvmVzk=; b=TjKKxvzDW2xRKxIFZmHVFhGbVxv0QEA4azsjh4Se746LrbtvwDBbIpopLLJPcdhJuI o1UN/Sgy+csMwaKTMGZjpYSYYvmIyiPIPJb0BBaL970Yx0co3l6w5RlEUi5zoeO3a41o ixa59nJIh/qvyqIxi1Oh0NLbZPaCS9YL7gDr3qR0euTD9h1m8ImjYcjwxjtWd+Hb9JxT oySzIQ0UlURtEcJqYo1XjJlylqzaWFr1Zysp2vrEeH7IiLXI1zCnOHsBDlOqNUItHNct 4XZv1QveWS5lUpstKQIx2lAfZBxr0/GA6fXyIxSheWczhQdhMpmv184qnScvo2+vRaoE m1JQ== 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=XOXAAY/4nvkcRrNExNVW2w/236SkW1Wa7iXXWBvmVzk=; b=CTH179OSWo+ZFSmU3SymoJu/KFQAjyhm2cLXVaRqCuGJK1Sxd47F5FS/nzJZeA6rtq 7VsTgZC4BnnRjAbiJSK5kFwUb3bbAgrIMw+0ITddHscUdFBSoKi5w0+Hbq1gef2kOF5o x7FkaZMrR533a+c34d+EDTg5PEpv1LexBtXinWgpx5NKpAGjdB1veDfzKsN4bRawMSct iWt/cCyEtD3q9tZsAxjMAK8ThoP2U+YGxQjPd4H1gXXG0m5P7MpksWrfzRzpFkGrlAWv 6hwQhGMXHrezyl206G6T7eyuZnPlGIDlo2UahDbU/nr5GZK0TQqvUzPPaklRiLHs6ADU XmgQ== X-Gm-Message-State: AOAM533pn617ZcVdQSGpBbnlUlnLUtlUKwP3n/TZyXCKiLqfhSvZ6KhB xDMF1yHWSGgY37wtEvVjtU15wwt6NrtidDZotwjonQ== X-Received: by 2002:a05:6830:1c76:: with SMTP id s22mr12465867otg.233.1606136900157; Mon, 23 Nov 2020 05:08:20 -0800 (PST) MIME-Version: 1.0 References: <20201116054035.211498-1-98.arpi@gmail.com> In-Reply-To: From: Marco Elver Date: Mon, 23 Nov 2020 14:08:08 +0100 Message-ID: Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: David Gow Cc: Arpitha Raghunandan <98.arpi@gmail.com>, Brendan Higgins , Shuah Khan , Iurii Zaikin , "Theodore Ts'o" , 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, 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? > -- David Thanks, -- Marco