Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1439832pxu; Mon, 23 Nov 2020 23:27:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0GRcYsLP+Sl/z7IVjDh19V4V6WFFQ+r1ju8U91HHUjgr9thtTg9qnHWT3U3GWaCnJES0b X-Received: by 2002:a17:906:d8ab:: with SMTP id qc11mr2868016ejb.64.1606202834635; Mon, 23 Nov 2020 23:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606202834; cv=none; d=google.com; s=arc-20160816; b=FylGyvwh1vUlwHhcBrpr2rpCF+Y2uDWA+Sz0rqYH9pYEUfVc1rBxORhcEC+0B8fFkz wxCr3ADQuOgQtayynso4++GqrJrZqluuz+PDI6qdIolEe/QAdUO/osa7N4rurxJWiiHp PRfQmJd4xw0+0afWPSp08vfMBOgxPDOkbO+Se+rdMpSiSkM2falrE98uO+kz9WmTwY12 Zm4UAPu11o4OvFZPR23k6Vva6mMY/Z5QLvRsDfT3zDJ6wgeZh33xWMLdfEvrclWoTu0g G6KfMCFP9baZwSVmAzpELmKwtlddWzcshyc09gp2UMi/PJX3qDrx14mpB4guufdY4uFW gKmA== 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=H7wcsVmiRBzdbzaU1jn2/D4v2W6wjtxUE3QJby9ONMo=; b=iuzPC648YwM2qn4i6r7TPSf01xcO3jBeC1443yo+H+JE6Q/kugM0rMPqfd93SFGiwe uWcZaHMzmk3Vorqb42luQJ54hC4AvKFluVP9ccWbXzsRk1ihh0OQ7d98abA3UyaLGq/R 2nHouiB2mKsZsr46ehCqnsxo89x4bkAX7Vygt9Bj4ogEKq+TAgJcZd/cADO7Dpxb5EFp BGqbz8+ovc94C/PhFABY9796bW9rccFq/YJJdTi5ODeIBdAkeAPdyh2BlmEKH+B2/PIM 913gdRvkOY5gCK7qADZnqjV4llC5SrDdcEMe5MYK5O3A7RpTrQScKy5Kbd+NoLSyiOKa gI0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TI1qEy3T; 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 cw23si7783134ejb.525.2020.11.23.23.26.43; Mon, 23 Nov 2020 23:27:14 -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=TI1qEy3T; 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 S1729979AbgKXHZp (ORCPT + 99 others); Tue, 24 Nov 2020 02:25:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729955AbgKXHZp (ORCPT ); Tue, 24 Nov 2020 02:25:45 -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 98705C0617A6 for ; Mon, 23 Nov 2020 23:25:44 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id r18so6084523ljc.2 for ; Mon, 23 Nov 2020 23:25:44 -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=H7wcsVmiRBzdbzaU1jn2/D4v2W6wjtxUE3QJby9ONMo=; b=TI1qEy3TmyLIzdKNdJQqeiqUMl+2ELnq3995chqivPaCfj/AzhaKQ+2bIqEmn9sxy8 z0YAtzsPF5XTcrRhQA+dIpONHcVgDybgufVR0123dzPsZB0K5a8zKSbMjCp3dBAMVdz8 qIBxDVo6WQz/LlL+YPoMbaWnug+TJfBTk0es6P72sznSVQnOIILfWRNOU99HrCWhuBgR 602f2fTKn4Cse62ikNeOCdK8TvLEWJh9EBmw3xh5GloadBKmmCpn5hR4SuBxjCfDbi8E q95ub1mUdRvnIs+qIg1wEkdX699lQEAyFKH67Gvm33GRj6e0tZcAjzmE+RrgTTaxgMpP pogg== 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=H7wcsVmiRBzdbzaU1jn2/D4v2W6wjtxUE3QJby9ONMo=; b=Rkjlhrg1zISdir0YJlKUEEeF/w+ukZtB2A8gcjiyzbYchVXy11kqnqyaOKSL9ERxzu 2ak+zvDytH88yN+1aP1L6bwlXKYqop6+gKg9Ka+1HCAjb4wJTTxSK3yEyYQQZ5+kEDZs 7PNOaph1kKDcsOXNcVjfDx9pSYMcUgXRXf8AFiDbIv4SG4LBh0X0KdxZgvFTzAtJA1Ew WSAHLZ7Mdu28mKlQ4Jz/v97s5YJSY0YdYcQG09CR2u8ox4V8dE1BVzobQ7WLQ/ywIigI WeQVd8I99kjz5tJ7L7+iwyYqZLrebOvuFodXSk/eCUzuvG78rNNyrFFvsfyHb87elr19 8lag== X-Gm-Message-State: AOAM531YahZ7+e24wMsecoaN+gGWgt43bj0l1stkDWg+0xDc2KeGhw78 AQLfOJ7mcjrQf720V1qjXRJf09Fsj17SlG8scReTFw== X-Received: by 2002:a2e:b54b:: with SMTP id a11mr1355573ljn.40.1606202742772; Mon, 23 Nov 2020 23:25:42 -0800 (PST) MIME-Version: 1.0 References: <20201116054035.211498-1-98.arpi@gmail.com> In-Reply-To: From: David Gow Date: Tue, 24 Nov 2020 15:25:30 +0800 Message-ID: Subject: Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing To: Marco Elver , Brendan Higgins , "Theodore Ts'o" , Shuah Khan Cc: Arpitha Raghunandan <98.arpi@gmail.com>, 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 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? Cheers, -- David > > -- David > > Thanks, > -- Marco