Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1053322pxx; Tue, 27 Oct 2020 07:14:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwDIngd1mcYkL5/l9RWk7tWLZHZ4jeK+kHvmvsGdQkcQAMz7kg7t9UIHosnJiTlQ0+INEx X-Received: by 2002:a05:6402:142c:: with SMTP id c12mr2563731edx.41.1603808058964; Tue, 27 Oct 2020 07:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603808058; cv=none; d=google.com; s=arc-20160816; b=ZOl3C4beyBZ4W4FQ6KKRZLksxj6xqIPTk3h8VnYEklnL6lmajkl64l8/U1nwqU8GHV EynMSGKlkYSWPtYHNbIbqHKi2l7ZLxDYei29aj83roxdW3tvCeLSNt36VH4xH301qVlG QgRAHibE/BqOKMQqP3WFq/J3SFkHXt7FIiXso4Dgj7VfRntYhwFHXZHtkUERX404sD+d REcd/f2Ns5Hm1Wq4104Rh5VhaPySqrg7p6800veyAnrFvGfI08yQebSbe92hpOhuj/RM 4rnet1uDwQLxLIBeKLPCjCImkHeSUxs+7IxYx/s7npeeUqtrsm5P4H/BpQrHJYZUF7qW 4dfg== 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=DOZ/or+uXcofLUI05AASj9pqYEI1+H4nTxttRQeOH3w=; b=FeT5zElr7QX+KUYCrpFulpI12589sNSO7OWOF+dasGYfNwn64ygjntnc9J0ED0Z68J hxAIGs2u7npR7UUSargQJgos/r6URnqilB5bzU9DvZAfdu0zFL6jNE7a+O+wUvfD3G7t 6ZpAR2v9wBUnP+05Ir1dzGeJvDfkH6HQmPfqfZqYtEBSlE9fOM8QstnSyFHgqgIFPUeB +Zj5bXvO8kg3bhrpX1j4nTU0xUna57kKYzrW3oUoEf8B71k39OBVuyMk+LWHmthsn1Hm ZdPlQWqERY6b1RxCln1I+UbVgqO9FDvx1eHSsWhOCsl8etFu39uOA/l7dtxaKSlAyalz 90jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=p0ybGNuo; 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 gh7si1044809ejb.57.2020.10.27.07.13.55; Tue, 27 Oct 2020 07:14:18 -0700 (PDT) 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=p0ybGNuo; 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 S2508449AbgJ0Hzg (ORCPT + 99 others); Tue, 27 Oct 2020 03:55:36 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:37336 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2508445AbgJ0Hzf (ORCPT ); Tue, 27 Oct 2020 03:55:35 -0400 Received: by mail-oi1-f193.google.com with SMTP id f7so403827oib.4 for ; Tue, 27 Oct 2020 00:55:34 -0700 (PDT) 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=DOZ/or+uXcofLUI05AASj9pqYEI1+H4nTxttRQeOH3w=; b=p0ybGNuotD2awoJRp4EIUps3i33wWnSBscgfxKE+PLT03BAAfghsklin5UQ1AI5LHb NKoqRRtTa/rJIBjm2EWYL+fKZ+pwXGCG9lFC5kLy0Hdm9u+zLFyksmaM+WRGUtZjYNoj c3ikMGBTs+zDygIBiywKzSXWg5zfr96Pqw/VHcrTy79z5wSofz4rPXO8K3QreT1V7ylJ uM14o74YCSexauZZ3iyZwyKFTdex1g9v2Uxpx9ISawxwvePFy+zZMHYdiDvPsHcAYaUx 0iMz9wq8LP+Qv4HgF0HBr2ybRH2ImmsnCgs1B6Prd2o6mLH7LAvmdo4V8xgU5YDNOs28 Oz5g== 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=DOZ/or+uXcofLUI05AASj9pqYEI1+H4nTxttRQeOH3w=; b=e/oh3udAdKKaQ2zcW04K9TuKN7tEDHTTMqhKI1pZPMF86FhlkLkvjxFFf41D1IMgch WggwOSZTNSFdWn+dpvkvdwOKYNPepEWNtxWR9ix96bJmZsgtnwrLqelBRbOIjzKI/ZTi V7eGyyAjw67iQwkbla+z+cpHMpZ6Gu4HMOimj2beEYyxW1nUXOKbfAQstQD0Kma4wnbP ij2vJF7hvXW3/GJTdrJjLc+sYGe9OqReSYV+Lv7rUU88//vF2cYXMBRE6lNTCe+HkCcP Xn9vUqtNAnazzWJeSFllCevp13F0NYNAZkV+pLpdH0BnjCkLkSCfxjVXEbIXzWvVsEIj 3+3w== X-Gm-Message-State: AOAM531xxVywoxCPtHQg3IVO0dlj22v5ijTR59uZFOWK2nbfH/qGpEdA OLf1DxGzgZi6rSIxgKITPlNxWIzDYCRBb4zsblne7g== X-Received: by 2002:a54:4812:: with SMTP id j18mr632555oij.70.1603785333575; Tue, 27 Oct 2020 00:55:33 -0700 (PDT) MIME-Version: 1.0 References: <20201026183523.82749-1-98.arpi@gmail.com> In-Reply-To: <20201026183523.82749-1-98.arpi@gmail.com> From: Marco Elver Date: Tue, 27 Oct 2020 08:55:22 +0100 Message-ID: Subject: Re: [PATCH v3 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 Mon, 26 Oct 2020 at 19:36, Arpitha Raghunandan <98.arpi@gmail.com> wrote: [...] > * success starts as true, and may only be set to false during a > * test case; thus, it is safe to update this across multiple > @@ -1742,4 +1760,18 @@ do { \ > fmt, \ > ##__VA_ARGS__) > > +/** > + * KUNIT_PARAM_GENERATOR() - Helper method for test parameter generators > + * required in parameterized tests. > + * @name: prefix of the name for the test parameter generator function. This could mention that the generator function will be suffixed by "_gen_params". > + * @prev: a pointer to the previous test parameter, NULL for first parameter. > + * @array: a user-supplied pointer to an array of test parameters. > + */ I just noticed this: the interface of this macro does not include "prev" (which is an argument of the generated function, but not supplied to this macro; "prev" should hopefully be explained in the other comment you're adding for the new struct field). So, the kernel-doc comment here should only list the actual arguments of this macro, which is only "name" and "array". > +#define KUNIT_PARAM_GENERATOR(name, array) \ [...] Thanks, -- Marco