Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp442976pxu; Tue, 1 Dec 2020 15:34:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKkekyOmuGpwrWiokloH+tl11aWp/5MM8J9jzhf4Ht+mDKL6Oz+MYiokcy05zqLFnhPmWA X-Received: by 2002:a17:906:bcf9:: with SMTP id op25mr5453885ejb.223.1606865679357; Tue, 01 Dec 2020 15:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606865679; cv=none; d=google.com; s=arc-20160816; b=WXDatLcm9zSPQ4al4yO6Cv9/gZ/seKZchhid1IW7tsw98ETK4yqPwJ+I+VOkWAKIo8 EqtrzR9gewqj787546WSW072lhhNQCZuzydQ4F2i7CmED3dTo9TvtqY7qZJ94jJzLyon VtilrhSIKYvCze4HHKqyfMr1F8KTgGCqXJ6sUmuChd6xEJ7HiHCJcwVa/fExoPA0CqNp p2qWbHHyjJ0CyTpR43SH7JNTA69PyJR1XEaVqBZBNV39iYiuwG1x0GRjzi9IGnjqCogu js6aaRTsvwzyYFAe3m2ycHrbe1J0xMPLBOQeGCeFdgp+vIIpEggQTHfYEunD87VKkFdl YVnw== 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=qatnj/FNqaZ+ECXKGoFl0+ahWNatAD/GWmAFXeDRJQM=; b=R3Gb6Tn1ny0OXIthpijcUlmVrV2fhiG5J9J59oqbMA1AKKUNRJdq3aVVgp8X1+LjbC SKex7Ykv0HmueOGDXbX9pX8/WOiU8R3xlRL4Ao8XJvKlSjkdyXi4z3UqetIMi2KTITik 73n2tXx78hioNNOSMGTRUzKck3t3gbJEpi4dUq+Xo3mPpS1k6C2Cj+W5ivKIw9OCk/02 CIujd/+xWeuaM99K0NgyZAl7OydeaL/fmabaKxOInnYGZk3q3jIoPgTLwxmxV9CEOBs1 6dNA8wrlgK9asYkWQW6P9twqvawsBjs2I5tThfymKJsUIUF2egK3FsQVdrREDk8Kt+fi JW/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=awn9xZYF; 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 rn4si940688ejb.216.2020.12.01.15.34.08; Tue, 01 Dec 2020 15:34:39 -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=awn9xZYF; 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 S1727154AbgLAXcn (ORCPT + 99 others); Tue, 1 Dec 2020 18:32:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727113AbgLAXcm (ORCPT ); Tue, 1 Dec 2020 18:32:42 -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 AD627C0613D6 for ; Tue, 1 Dec 2020 15:32:02 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id n12so3468089otk.0 for ; Tue, 01 Dec 2020 15:32:02 -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=qatnj/FNqaZ+ECXKGoFl0+ahWNatAD/GWmAFXeDRJQM=; b=awn9xZYFYPP8d4N7JYbiimYAXu2Qt6OiesaX9d0YsLeK5vBZ6zjJorN0ylQ9Mm4e8r hSX6nk+pRrn3FhJmhGaPhVHJf0ayigkpjjbjBGHaC7UnmkJel98ElBUUCUeJ+egvLrAk Z/JohGhI1i+7Gu6dMdOBcOaCo8Mof41wF+3y8bADMhapKhMiMGQkXak6lJPgu0uuw4s4 KXjC+4sNZosHOvcNSu/h+y/YbCgjo9TOPT+G5tNzTRXq+yV7eR1qCwEFwRFTGwozppeo pSweIifim5oan7zodp/2a4dYpMcSn+HQAgDKZOxkwXXpep8p60T59Yta9vanVcF+00Pi OgFw== 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=qatnj/FNqaZ+ECXKGoFl0+ahWNatAD/GWmAFXeDRJQM=; b=dL83mGAyqk0G9Tkc5/MpXyITHpiAg8LnoEZ6rINdTzsJSgRAM2gAs0p8FvabDafivZ pW68eM3ry/BiUxbipeDS3Y912+Rt2fb9ww0X0omADMgqUt4qaCdVFiJEV7UQLaXkxMIT MsQ/bY+0+TinOIG+K+Ha9NG7UyesG6APw+5m15e3kiBr1mUC0qtJFlF3pVpVSOVGuras ETFo8Z0Re8R75VkOf7ATh37HRTf7iNc0MQZH8Y6v7lsizVITXgbKVdpB+NfS9lZR1xIw NIeMYA1pGjJRE22pGmpqyng22YLLxHARHEuZOIMw4bJeMoaKacpVYq7/taKWnaI9ZCSi S9pQ== X-Gm-Message-State: AOAM5322HRVPsxbzY3jkQqpvU0IovTRNWLuaWQkrN7Dre02TnOqTNSt5 unzzEP+lNVlyCs9HhbjcHsLFOm1k37ehrBU5xLOG5g== X-Received: by 2002:a9d:6317:: with SMTP id q23mr3704860otk.251.1606865521640; Tue, 01 Dec 2020 15:32:01 -0800 (PST) MIME-Version: 1.0 References: <20201116054035.211498-1-98.arpi@gmail.com> <505b8cd0-a61e-5ec3-7e0b-239d0ff55d56@linuxfoundation.org> In-Reply-To: <505b8cd0-a61e-5ec3-7e0b-239d0ff55d56@linuxfoundation.org> From: Marco Elver Date: Wed, 2 Dec 2020 00:31:49 +0100 Message-ID: Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: Shuah Khan Cc: Brendan Higgins , David Gow , Arpitha Raghunandan <98.arpi@gmail.com>, "Theodore Ts'o" , 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, 1 Dec 2020 at 23:28, Shuah Khan wrote: > > On 11/30/20 3:22 PM, Brendan Higgins wrote: > > 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 > > > > I am seeing > > ERROR: need consistent spacing around '*' (ctx:WxV) > #272: FILE: include/kunit/test.h:1786: > + typeof((array)[0]) *__next = prev ? ((typeof(__next)) prev) + 1 : > (array); \ > ^ > > Can you look into this and send v10? This is a false positive. I pointed this out here before: https://lkml.kernel.org/r/CANpmjNNhpe6TYt0KmBCCR-Wfz1Bxd8qnhiwegwnDQsxRAWmUMg@mail.gmail.com checkpatch.pl thinks this is a multiplication, but this is a pointer, so the spacing here is correct. Thanks, -- Marco > thanks, > -- Shuah