Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1515598pxb; Fri, 6 Nov 2020 11:38:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgPskrZwDMEW+Pn4UZnbeFbQH2Y5YLRl/8VY/BIjy2VP/mq+q9FJFnpR8+FXlbS7r2VucO X-Received: by 2002:a50:9e29:: with SMTP id z38mr3774655ede.220.1604691492004; Fri, 06 Nov 2020 11:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604691491; cv=none; d=google.com; s=arc-20160816; b=CwZgBv4uL4RF6KHqPKcxF8AfrFvTOM9BJJgaOIB9UXGbbj36/cp85gT1B8IusnKIdn 8TE/+hV0S8d1hkNwVAwYyXqnKNXYcD9nh/r0mvpK7Uk+iZgYDScqxbDeJCiQM0jAtJfT gzNa8p0j59oAQFmf+AQhAM3ArxJQK0zmTQUXQMvfG5wfzYRjbj5HERXJ1HUONmS2m0kh /ZE71e1eEKw9S2kv9AEU1G6kxj6F7zhBNapiIvLBvkbsiM7GQxUmUMPq1H249cmNO3WY wvEHYaK3UYFPGDLCYoJxFvtVbYREw1x+scWfEwgN+Lh0CyL5gRadxVnAAsi3FQ0zOQIp C2Lg== 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=mP1FNfhSXY5n5cuTFQ/M/4yPG4XlmpEFYtLq6GDkKUE=; b=MCWrOebP6RHL3TpsLuniG4Ip0+YAOBDqNyYvbxukI62qtTBtrBTyngI0YO7+uTvMgk 7el/jtP8TZi3xm4kTHzRgdA3aDk68YOqwgiSY39ZxxkWksNcavh5DQolR7gS3V+IX0lA 07NQt0+6vgfAvIHroHhxaRlBzUTsmLGw1xPX8VBGzot3nOqYXUzSdU4A312nP/8w/STJ xYg+nrS37TxsGdTE0VL6ZmtauCMpPrlpSfWYSyLhyAxd0aO1OYpH69mwBk9YNniU80Az 0EVtEx545h/E4AnErmxZ6le2b7Wl2r78yMGd3QHvKgNjizxFErBWT5sOHLDmHWYvA5qB UMhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gNu7ut0U; 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 e5si1715979edr.30.2020.11.06.11.37.42; Fri, 06 Nov 2020 11:38: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=gNu7ut0U; 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 S1728166AbgKFThj (ORCPT + 99 others); Fri, 6 Nov 2020 14:37:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727912AbgKFThj (ORCPT ); Fri, 6 Nov 2020 14:37:39 -0500 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC7FEC0613D2 for ; Fri, 6 Nov 2020 11:37:38 -0800 (PST) Received: by mail-oi1-x242.google.com with SMTP id o25so1652452oie.5 for ; Fri, 06 Nov 2020 11:37:38 -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=mP1FNfhSXY5n5cuTFQ/M/4yPG4XlmpEFYtLq6GDkKUE=; b=gNu7ut0U3clqE69rnhvzIiZ3OwEi3TwtXhAk+ORMHzmp+mUaN//pGv8x5n81jS/WTF X1xpRtZ3V4YUrpu+d9nEjd7tGDf2u+THCYyaAScnvt8xQv5fEqMTZpp6Reg1IaPKU55Q DEYqXfOdwV6Om8D0YqSAPniZro7lAkm3CZHvTBOxaI/r07dGtacIrkrEgo6HCC2suUys lKGsbKn9AZS9oKXN3my1JG+d4UBUwtR6AKHGfw2zsLhIvATpl261KCKxXeuGxoplafZe X/JeWyHmYkeDTbWba2gWJdGDABaBSI+pw6MHNDshMDjf2Mj5ez6674PBCXhdwjOtnBeZ DL/w== 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=mP1FNfhSXY5n5cuTFQ/M/4yPG4XlmpEFYtLq6GDkKUE=; b=nUodOVFnerNYbn0cfZqnSXQB0Ct/Qb+WpQEDtGKmX6XbFzdDPpkCuDMA5Rs1WdG1Bm bIcCuJuG9FLezk81mr18JO9aHmOkLIME3J5WiBn7iiBk5bAsEsFZ+18obW+ZAxt8NUyi yEIQnMJK613sj0wXSN8f15NavKILtAC9pVlF7NdgtLVHsApiMKp9A2+k79HZVR09LQsj t1iOIJF7ZHG2DPKcLjAprehmj86r6fK5xua/5s/Pt0C1KEWh1RmZtOLWkoestQCQDYLm ypGXXF8oj74ppPM49LgRGGdYVDYXkaTP/95TiXKc9OiB0+nGxkItPep9dDs2EiYKTTMi askw== X-Gm-Message-State: AOAM530E0NjYlg39V5d/DStV5xbjrrr2tICoLWuxtGpZEqDlIBl5ZHh5 qIme40tqdetk+wCzKxiCZg5tXQ9A1NaST3GbptG8Dw== X-Received: by 2002:a54:4812:: with SMTP id j18mr2150352oij.70.1604691458091; Fri, 06 Nov 2020 11:37:38 -0800 (PST) MIME-Version: 1.0 References: <20201106192154.51514-1-98.arpi@gmail.com> In-Reply-To: <20201106192154.51514-1-98.arpi@gmail.com> From: Marco Elver Date: Fri, 6 Nov 2020 20:37:26 +0100 Message-ID: Subject: Re: [PATCH v6 1/2] kunit: Support for Parameterized Testing To: Arpitha Raghunandan <98.arpi@gmail.com> Cc: Brendan Higgins , skhan@linuxfoundation.org, Iurii Zaikin , "Theodore Ts'o" , Andreas Dilger , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , LKML , 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 Fri, 6 Nov 2020 at 20:22, 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. > > Signed-off-by: Arpitha Raghunandan <98.arpi@gmail.com> > Co-developed-by: Marco Elver > Signed-off-by: Marco Elver > --- [...] > > include/kunit/test.h | 36 ++++++++++++++++++++++++++++++++++ > lib/kunit/test.c | 46 +++++++++++++++++++++++++++++++------------- > 2 files changed, 69 insertions(+), 13 deletions(-) Looks good, thank you! Others: Please take another look. Thanks, -- Marco