Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp428274pxb; Wed, 27 Oct 2021 05:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybxUOeyyKZV1EnsxRZnj7H1+p4yVCC5oJOBAxOBFtzLkn5HaFWnygyr3haBs9fNa1gIx4A X-Received: by 2002:a63:dd46:: with SMTP id g6mr23906538pgj.347.1635338672317; Wed, 27 Oct 2021 05:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635338671; cv=none; d=google.com; s=arc-20160816; b=xygwl5kpdS1zIj4VmXj7jjTwZzqjCKy+ciI0z3R8ykMziimacq5bOoz6w2UgEM87xQ P6SMT+ceBbQn0GV6DU/LaLWcLL+njGALHSoWk6ALjzEi6jN/f+Uzrq7u2P2Eh1WFlKgG sDU6Ug89JM6NZm1ZFJzxUgRcZhjJOO9scTBllYUMgGMS+a/PHjp49tHHjO1YtXbVcmco bJO1KwvWYeqzXlb5qlC4MG+LTKZaa59l5iBuTNXaaFsY1bvvsN0x5LHH3pPxxttquHOV LxvySLaKZQHvZ3RQPViElsJpeOGtgcL3ZFC6LE8dG4TzxgC5y8zzqlAVkTcpQyYdNBRv 3EwQ== 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=qSV6Ft6zAu1jkbpHI7z7p0QwFJUvX7Q+m/djpD5eMGQ=; b=z8MVWZ4vzF48wIQ+80er0Ve2ANE5Df6Xe9WCHiy7Wplgx6x4fkXt9Y1u1HzxWhwWlN hkB2QQFEd634Igmkz3z0BxSE+EpQxpOz0Mf9UC6iWfhpOktgRr846d2ddu8wF9/qtalt O82rkzln6B4262TIViHuZHKkbuJKdHjOhdNMPhYJPddKphiis1L0jrbjeK71gN3piLrW 3DHZ5czS1MyjQjVR5TPhqY/5jtJARhvpI05vIMi0oRKgZMu2Gn1eTAtH7KMI31m2Sk1N 8kIMTRLm61NkO+Szpr5UPHSqBjl1KtyIAnWKSxH+GPadh3JViVBQqmQINV4BWks6ELo6 m+sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=APKmkyYk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 h5si36219293pfv.258.2021.10.27.05.44.17; Wed, 27 Oct 2021 05:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=20210112 header.b=APKmkyYk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S240194AbhJZXLI (ORCPT + 99 others); Tue, 26 Oct 2021 19:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235166AbhJZXLI (ORCPT ); Tue, 26 Oct 2021 19:11:08 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86549C061570 for ; Tue, 26 Oct 2021 16:08:43 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id v127so866391wme.5 for ; Tue, 26 Oct 2021 16:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qSV6Ft6zAu1jkbpHI7z7p0QwFJUvX7Q+m/djpD5eMGQ=; b=APKmkyYkLJxj5o9ZLwSTljNtuMGy5RpTE0BOfsldRr2a4d9/duXUZKJGl62dLqEouh 2HCND4JByvSL0uGxvDFeQdBh2UGhJg8pE8BW8Jl3bURmVkwTCLY++ENHe7rcqjm5iqL/ C1SKm0ls1xUcMztWsUQ6TuR9U8ZPA53xfC8AqcxvSusu2atI6R8L7p1JRvR00Pdxvymx 9Yw6rOpnr2nfzf0qlZU2oA66sWt8vZw6rL+T+AJtZs9OFYREUMRwMJFDx99K7EMgLkZ6 fmRre32IKdZPMF55GKv6rHvW17nv9exCd6ZxVrgUtn/b33ipALiQQR+tNfd5WQ1r4YwU 2EFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qSV6Ft6zAu1jkbpHI7z7p0QwFJUvX7Q+m/djpD5eMGQ=; b=41sgbkcUCyFFr53hy+ekiuuOx/ZAhC7MU9vTfWsIExB8O7lhlIEhvA2ISDyxMRvXYj IfA2L+33ujVqm9RIXjPD/AqLbHgY6Q3ZqC917AqGaedWf4FBF4Zs2QdbqhTq9D8svJ5W IDXp5fy/2eVOyRMw4e5b9IYAGhy98F3+7nxxsYd4DEjgmAMdOiy+U6ImOXp1ZViy/i5M Clgcwrsd5jO3xm5z1jliFDTpXspojc+zR67T2sFaRl8JD/LFx58BpcGq2o2uHmfU1gZi Rzyq50THIxQs4bmv8RGQMCKiMvIep6O4UugbUcUeDKbzol1Mlqk9x20+9jmVFNBvgc0i hdNg== X-Gm-Message-State: AOAM530WTjhDT8zYW8dLwtNfyOQxbfjc1xi+syRXg1nUXjnC8HLVqNsm S1HnL6Ls4wjgjU1kKoMiFtjh1ZFJvVxliqCHKP3Kcw== X-Received: by 2002:a7b:c103:: with SMTP id w3mr1770472wmi.179.1635289721986; Tue, 26 Oct 2021 16:08:41 -0700 (PDT) MIME-Version: 1.0 References: <20211026153638.3857452-1-dlatypov@google.com> In-Reply-To: <20211026153638.3857452-1-dlatypov@google.com> From: David Gow Date: Wed, 27 Oct 2021 07:08:31 +0800 Message-ID: Subject: Re: [PATCH] Documentation: kunit: remove claims that kunit is a mocking framework To: Daniel Latypov Cc: Brendan Higgins , Linux Kernel Mailing List , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 26, 2021 at 11:36 PM Daniel Latypov wrote: > > KUnit does not have any first party support for "mocking". > > The original RFC had some, but the code got dropped. > However, the documentation patches never got updated. This fixes that. > > https://kunit.dev/mocking.html has a current writeup on the status quo > and will hopefully be eventually folded into the in-kernel > Documentation. > > Signed-off-by: Daniel Latypov > --- Yeah: this definitely is a bit misleading. Thanks for updating it. Reviewed-by: David Gow Cheers, -- David > Documentation/dev-tools/kunit/api/index.rst | 3 +-- > Documentation/dev-tools/kunit/api/test.rst | 3 +-- > Documentation/dev-tools/kunit/index.rst | 2 +- > 3 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/Documentation/dev-tools/kunit/api/index.rst b/Documentation/dev-tools/kunit/api/index.rst > index b33ad72bcf0b..3006cadcf44a 100644 > --- a/Documentation/dev-tools/kunit/api/index.rst > +++ b/Documentation/dev-tools/kunit/api/index.rst > @@ -12,5 +12,4 @@ following sections: > > Documentation/dev-tools/kunit/api/test.rst > > - - documents all of the standard testing API excluding mocking > - or mocking related features. > + - documents all of the standard testing API > diff --git a/Documentation/dev-tools/kunit/api/test.rst b/Documentation/dev-tools/kunit/api/test.rst > index aaa97f17e5b3..c5eca423e8b6 100644 > --- a/Documentation/dev-tools/kunit/api/test.rst > +++ b/Documentation/dev-tools/kunit/api/test.rst > @@ -4,8 +4,7 @@ > Test API > ======== > > -This file documents all of the standard testing API excluding mocking or mocking > -related features. > +This file documents all of the standard testing API. > > .. kernel-doc:: include/kunit/test.h > :internal: > diff --git a/Documentation/dev-tools/kunit/index.rst b/Documentation/dev-tools/kunit/index.rst > index cacb35ec658d..7af7dec83646 100644 > --- a/Documentation/dev-tools/kunit/index.rst > +++ b/Documentation/dev-tools/kunit/index.rst > @@ -19,7 +19,7 @@ KUnit - Unit Testing for the Linux Kernel > What is KUnit? > ============== > > -KUnit is a lightweight unit testing and mocking framework for the Linux kernel. > +KUnit is a lightweight unit testing framework for the Linux kernel. > > KUnit is heavily inspired by JUnit, Python's unittest.mock, and > Googletest/Googlemock for C++. KUnit provides facilities for defining unit test > > base-commit: 2ab5d5e67f7ab2d2ecf67b8855ac65691f4e4b4d > -- > 2.33.0.1079.g6e70778dc9-goog >