Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp412043pxu; Tue, 1 Dec 2020 14:38:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7Q5zcL0ReZXFgAWzaJwm3r7vlf3yx2FoHs5ryH/2c1IDo5YywMxUKT/ES5JtVXMbuqkpa X-Received: by 2002:a17:906:2932:: with SMTP id v18mr5223945ejd.144.1606862307632; Tue, 01 Dec 2020 14:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862307; cv=none; d=google.com; s=arc-20160816; b=IatRav+JTtZ4MqWZN1nF9pjy3MjWUzGwqslhwgzsSrrFYI31u52iX/H4TlVyYHC0/e 8giDVqSF/Yckw0WFZ/VE+r2XUdLu6oRhI2BIzdumOvL3FMS556/sKX5lqaUsKVVsPvqq +jpdqBLB4yYJUepSXWWPzyh3t6qSEbFCmlQR4PlXZTiBjr/JAhXpXr9nMe3bstdWtTj/ 2KazV+U/SKJETo4q3+MHxLh1JYvvmc/lO5Ue5NHV9rX1zbSOsIwsPEw3dELejb08+xpV m5zP2TzEZTs3/CUdxi62SpIlaX4RCb0v6gEN/dVz9pln+uso7JWqL1T7NNlZ3VQgruKp TLBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zEVORstsrTaSUgGGMeR0Tq7V6fCGhtA2/JQrS+CPcPM=; b=cRSH2STxbMrwPElMIAKW8VtImDumpTDu0xmx0uZUyE7v+ZZXj0xWxBjaJ4dSfTuzu6 jqheiyBSz0MGlrntyL9t2hiu9WnKiXPYTFApLc0mzMhy3u20Wm1YTTU8jCEOS1lMcu6N qFEeF+Rg5bxBlK5Lv1m8sDgAtqw8Ly2GI49G7/jWUj139aEwpxSmis1GZPmasqq6ZdW3 TBI+LVBtGMZeQidlwLxerG7ahKP9x0caBmp1silHUTRw1cKH4R893VRLYqpqdinhf3cS UVxOz9/ITAYLDk69oUNEqiG7EzgqvvmN6HiX17PzeSrQA+5Wk1XNK+As0OL1zHKDPiyB UDbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=P1DviP74; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re20si832419ejb.112.2020.12.01.14.38.04; Tue, 01 Dec 2020 14:38:27 -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=@linuxfoundation.org header.s=google header.b=P1DviP74; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727691AbgLAW3Y (ORCPT + 99 others); Tue, 1 Dec 2020 17:29:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727685AbgLAW3X (ORCPT ); Tue, 1 Dec 2020 17:29:23 -0500 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95B33C0613D6 for ; Tue, 1 Dec 2020 14:28:43 -0800 (PST) Received: by mail-il1-x141.google.com with SMTP id x15so3320911ilq.1 for ; Tue, 01 Dec 2020 14:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zEVORstsrTaSUgGGMeR0Tq7V6fCGhtA2/JQrS+CPcPM=; b=P1DviP74adgMmlwWKQrywJMta3DKhYPt7EEAf7M9nSMiOTTKSo2CvaGYxrVV4kEnl/ B42RELckfkTh6KC+dDfnenfHzx2WM5MoeqWh6UmsCv0d+EE93QvFCF2kaHKBX/lpIOZb KrmZNE56Y3CIOeQaCnp6rLdZhw2c0pi3aiHHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zEVORstsrTaSUgGGMeR0Tq7V6fCGhtA2/JQrS+CPcPM=; b=f2f27MUTcPqgGupyWFvPzJB0iWDjTt/VXQCPbhDb1rMfQqRF4fO5Xg7MroNichvisF QUZTsVGpHfgcp+kMHXkQ2D5M8W9FhlGLsefJwhuzQ54paA6nbJpWpDq9yM3sUATgj+KG IhgLh4Nkrv6v6QLplHhoVCzKHIYvM+NoozI4K97fBLKPon5stP3nxUbY3nYIiUWXJciV +r81/IXxVp/lWMUKetfGmb/Qhu9uSAyzWOnfS0HvBAiYnE2ivXAzk1KDwHAk8R0XRxrZ VI7bmIIQhnFuhmJlN9Ns8uyDmmq7rjBvfdNt56g/OwiWagilYZQDdOtMD+pyG2RueJkL nijA== X-Gm-Message-State: AOAM533NT+Fo6qbj7rnfK9VCE+cMJatus2MNVEV8cSYr0CFMtDmv3URp q/OcR7InMGfYm7n8UXCvKjyxzg== X-Received: by 2002:a92:512:: with SMTP id q18mr4738719ile.147.1606861722917; Tue, 01 Dec 2020 14:28:42 -0800 (PST) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id r21sm462090ioa.20.2020.12.01.14.28.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2020 14:28:42 -0800 (PST) Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: Brendan Higgins , David Gow , Arpitha Raghunandan <98.arpi@gmail.com> Cc: Marco Elver , 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, skhan@linuxfoundation.org References: <20201116054035.211498-1-98.arpi@gmail.com> From: Shuah Khan Message-ID: <505b8cd0-a61e-5ec3-7e0b-239d0ff55d56@linuxfoundation.org> Date: Tue, 1 Dec 2020 15:28:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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? thanks, -- Shuah