Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3993364pxu; Mon, 30 Nov 2020 15:09:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTEgtSvhZH5v+83gOztRGfuwjhad0IRYlSrD1pH3ALlscBHjnfV4iSXxcJd++aqee7wNj3 X-Received: by 2002:a17:906:82ce:: with SMTP id a14mr91989ejy.421.1606777759386; Mon, 30 Nov 2020 15:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606777759; cv=none; d=google.com; s=arc-20160816; b=J5xdwUEdz3T0qgTZhXWyMlG2I9K3MPEH3xYWIYWkv/aD1AERp/8MUOtgNF7SpgSb+Y 1eILl8vfUXXh+EFvmw5ZVaOCXub62hYoQDWl7srzSMh+/n40CczttMTDC4TyrvFiPmJg KOCODHGskWN5rmUPhd0xudyllhM50S3CuK5ENMOMa8TkwF52rzzm9p7MW+L7BLbAQuKZ KlbESMetvScaSJvfUtH0KQKvV0NRE1A0ngu6IBCEgqvC2B5U1S2mSj4dYYg8ZExJrmPj EPMdnTWqCYUl4h4CDIOmfNNyUyIiQuEsudAlL4OiFLR1MKyKHfkjZjxQv4pxn/Cpbm9Y q3Jg== 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=tP10auY5b/+hzNiyTCTFtYJxVIRMIAgFsrP2yx2Sg3Y=; b=Flkc2sd4ky/1zdke2YL6Bv1VQeJe+Jcf0CFK/ChOa3TupSM2BXEFlDS3SamWyxheRu I4AGBmtdtI/exUOxhuTJC5a8/dFPJJ945uUfxlKOfNr2tNOHOnrmdLCOc/3/jw3MqAI9 HH4SMRgGsJ2Eo3AC2dQm60Wh2BsmR4jxI6/7BPYM2dzd7LQpomCWb62VSOX6/5fiSS4Y 4qIpoSQ8ZQtZwL4oazxdFEjXfZj/cgDDY0+ImH1qsRButU0Esjg3kbTCgpHwGdufi4iG QjeJR2+w1dOZySfg3ZVJo8QjMqjQVlQhshV24uMBgTgZR7wzEROjFFBIQ2P/IwBw3J62 Xt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fKA2uASN; 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 j88si11953235edd.595.2020.11.30.15.08.56; Mon, 30 Nov 2020 15:09:19 -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=fKA2uASN; 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 S1728649AbgK3WY5 (ORCPT + 99 others); Mon, 30 Nov 2020 17:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728485AbgK3WY5 (ORCPT ); Mon, 30 Nov 2020 17:24:57 -0500 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E1FC0613D2 for ; Mon, 30 Nov 2020 14:24:17 -0800 (PST) Received: by mail-pj1-x1041.google.com with SMTP id v1so475333pjr.2 for ; Mon, 30 Nov 2020 14:24:17 -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=tP10auY5b/+hzNiyTCTFtYJxVIRMIAgFsrP2yx2Sg3Y=; b=fKA2uASNNmUSAdH8RvG4OeS9vDii9vjtJ+qPy6l79wdX0Bhc5GCox+clxnSNfQpv5Z rPk1xCj6/UQ1NuWfJU9U3gLdsaloMVIAB/Ew/H1Jy5xlXQNf26auNbfF9rOh6mqvc1MJ gXdzMmEDbcpK9xd0QgQi8Hs1dLExTrGkI64CH1qQn3ewgb2S/PjTRlXBEvbXwOrAKxfN 5PbOpheLTUXENkl4qhw3fc6MMK62GwNDrzYeKNO9UXo9QoDdU9EHs24cCNP/+yJ2/mV2 Q1aOf/HeL8HiNGq95TXtUkneTvfnhlea8rCm84CqNwXPxPcrW8/XMERy9Vyn52xu0tPg 6Bkw== 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=tP10auY5b/+hzNiyTCTFtYJxVIRMIAgFsrP2yx2Sg3Y=; b=YRriTetqKHJe2zPiTCJXTaajHOrpbnDfqnyPURTrjT23Rni6tC3Nt5bKewRqegYsoW v2ygnE8g/BPSvOpTP9JVMD9caPPvAyvy3y9DKWtDEv2kNt/rowKKLwn6FVEc5zVpzqwN WvGyNrKnG22IPMx9i3OyNKWhzdkiJGe4b5PiDlI6ZkcDjapvj5z2pFL3jP2jyexU3844 uY6V0t4Df3h/QxGmUwXxGvJ7Cl2irGRZfWkVvM2Hay/3mzMKozVcEYPR7n6r0DTNoD/u HHMK6ZFyuX4ikqBaVQa5aZFtEBoHPDXl4BkzBXOR7W6hMFN4bSNAik7V0Jgu4KvtbVTW mUhA== X-Gm-Message-State: AOAM531zq8U5nV1+XXRs27BUjh/uY4qcSmHqxugAtGJmbdqAj1nJ5RmA Cq9OhviWYJpmxauRw/yzfUdS1oD/GpkRwh2OwnwoDQ== X-Received: by 2002:a17:902:bd09:b029:d9:f7c8:6210 with SMTP id p9-20020a170902bd09b02900d9f7c86210mr21302705pls.80.1606775056561; Mon, 30 Nov 2020 14:24:16 -0800 (PST) MIME-Version: 1.0 References: <20201115185759.169279-1-98.arpi@gmail.com> In-Reply-To: <20201115185759.169279-1-98.arpi@gmail.com> From: Brendan Higgins Date: Mon, 30 Nov 2020 14:24:05 -0800 Message-ID: Subject: Re: [PATCH v8 1/2] kunit: Support for Parameterized Testing To: Arpitha Raghunandan <98.arpi@gmail.com> Cc: Shuah Khan , Marco Elver , Iurii Zaikin , "Theodore Ts'o" , Andreas Dilger , "Bird, Timothy" , David Gow , "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 Sun, Nov 15, 2020 at 10:58 AM 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 Acked-by: Brendan Higgins