Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3660052pxb; Mon, 16 Nov 2020 23:22:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/RAtLhBJdlG98J0/6lThZs30XQ4BXI6kXQRM6X2yket7cEBmUkRdb3lWTi93Xncxqn1bR X-Received: by 2002:a17:906:578b:: with SMTP id k11mr18341741ejq.330.1605597778421; Mon, 16 Nov 2020 23:22:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605597778; cv=none; d=google.com; s=arc-20160816; b=yX5DS6AaLdYgiUW01jgYidTfQua1UoiBcCRO1XdRYW53O07GFMIfo60XyQDAU3lpaz 2PcDlEKdc3aaAUbXFtMnxrcjwCQOEiUrm2up7tbbWq7blY8rSpLezH/oJ583AzA9k7iA vAu6b2Ba23vxSbJ9A1OcpJXwW4jNTpcCi+Ul/N6bPDWpt/97KD6LKoHla6YvU8O1CAdU xGvMM4LXb8nttfP5Icx4/mcRFIPwry3w8kjwYy4cVTLcGiVg62PkFqdXRvRZzPeHLLhV /NeeiRRVv/58RWJtZnFi7HbiBGwFdz40zI9f6cQu1qHQX8TRMVaw0hB9l6D21vse7JDx kzdg== 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=80Js5MzpHp2BBoeVGpXRsYdQ6UcFRe8F27UXWyhna1Y=; b=h9lxjSyTk93CDTksUzxD3gRSbVvBxj+WPD/y8g3RFlosmlOn4HVE+ls2ysXAfPP1zk HWVeAw/IQJhlHg98oUNdK8jiG0RhtlmiRrk4r+HthbwdyPjPeP54p+pGSiDK7RxZKSOB vStKhNPI437RyYuJkrmz86OTg8n77AB5shA3q82FXBkPXcsr1ZyGiWXio+BZ8qbhVOeO dhDx0bg+nyjuWSbffeJR8nlifG06JyYdA5N6yuO4+INjCUZNqsB2pzxzSNaaZ9W17xAc 3vFu4i+n0J3ORDVxJPevbrphpUdg8SyQlp8XEWWWCVAp3vneFFKtXIGpb/Hr+9I08GOg h4Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AZI9q7Hh; 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 rn17si88287ejb.292.2020.11.16.23.22.27; Mon, 16 Nov 2020 23:22:58 -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=AZI9q7Hh; 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 S1725943AbgKQHVI (ORCPT + 99 others); Tue, 17 Nov 2020 02:21:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbgKQHVH (ORCPT ); Tue, 17 Nov 2020 02:21:07 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DE61C0617A7 for ; Mon, 16 Nov 2020 23:21:07 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id b17so23081933ljf.12 for ; Mon, 16 Nov 2020 23:21:07 -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=80Js5MzpHp2BBoeVGpXRsYdQ6UcFRe8F27UXWyhna1Y=; b=AZI9q7Hh5V0M3ulX5rXXq94IdrHcPbKhKzMBw8pHrITVB6DhBINSuSLKZM56RV08Ut zePZpSkaopondOCx+ODPU34lvDF/Qa8tF2O3CDRuL36QlTT7cpy+xdRayULsVWPpwV/q VTu0648DGbdPC+1Gycuz14zyTF0aFXT3C7KHogy6bm8ZP8QBV+Sk9XWrSyCHB3afX+4f O417S8E0LRdNxUzquMgDuoWrcOsuEHEB64DYSWU3mHUQdS25kVEezV8KUCjIUbCPX6kr WuY9jLzfi42uTOpIJ0kXXEkSnf3Dt4Upw/vhj9JcSBNkt1TbhtlO4QK5HMZ4Y0HZYoLi Uzng== 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=80Js5MzpHp2BBoeVGpXRsYdQ6UcFRe8F27UXWyhna1Y=; b=mLsXNtVEhaLzq2u7+qI9qYBaWUkMZdvt127KfaDdUUgLH0nionYO4vcHvyqg8cohrP u+cfM71G07ns7Bq+8HSE7/KmDqo6ttZ0EkbKiRN0u1dlIev7uMk+dE6WR81y0TpGWghd A9XduSA+2QKNTonYfVzEWg+6rz+2sIKJmMkkheP0zRxliz1vHy9UsLKcFpNEdN/+8q2O As7/UiIRj7KRfL/1+Frn4/uedFsIFehXy3jd4mWr5PtvPGhNzA2L7meDFFtnNzJBS9m0 75nCLeDcVE1G3yXWswBF52B+cGClYFJuwDvc3iLxhw/2RnMoTSYA29FFXXCdHUW7UtQL LJLw== X-Gm-Message-State: AOAM531je5RVVqT+CTH+MM5d6aGcVPrReN2sSSryxrFqm1+kA/6PVvNG J2HA29jvHqHCWeKcFzO9afbae/J65lZA7GwxfbDnOQ== X-Received: by 2002:a2e:8504:: with SMTP id j4mr1204429lji.169.1605597665336; Mon, 16 Nov 2020 23:21:05 -0800 (PST) MIME-Version: 1.0 References: <20201116054035.211498-1-98.arpi@gmail.com> In-Reply-To: <20201116054035.211498-1-98.arpi@gmail.com> From: David Gow Date: Tue, 17 Nov 2020 15:20:53 +0800 Message-ID: Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: Arpitha Raghunandan <98.arpi@gmail.com> Cc: Brendan Higgins , Shuah Khan , Marco Elver , 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 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 Thanks for sticking with this! -- David