Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp924486ybt; Wed, 24 Jun 2020 15:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf+GwSi/jUFnXxv4P9QIs7XNcLa1+tAeXjfF91bh72JXISqFzK3ydWhWWhV4IuyhxbqBIl X-Received: by 2002:a50:cf05:: with SMTP id c5mr29781957edk.232.1593036034506; Wed, 24 Jun 2020 15:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593036034; cv=none; d=google.com; s=arc-20160816; b=ELgY6eX1fiotWbIEdVIXl0giQYTaJd4Lq5NlorMFW4JH8bUEonjsXvORt3qY7lSym4 l7Z++zK+bsGNNZaYyZhvAudjSdh4ok1I9QrIN10qS9wE2KlcLVfJjWeCWDTt9cAwqroa OZV0WPzkyaiC1+2X6+nUrytlVUENpWltZUROekkC1U83Kz4fciM9+zunmXpn9IDS1nOf UlLOyl0uqb4f+IAk5XfTBZ3Na9epyu5pLOmCdTzymB4sB+EPNCUkI01ByxuAtKi6QZVT 2jx+sbXV0yY6MSIcniphYViWilKxQQzOZYBTLrQ4+50LfMcP8tE+W9HJdt/LIfAaZ7Ax ls+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=/YfJhHqk1scz1aBXF0mupkQea8lbBQgP2jeC+IACUDE=; b=At/5kuU5QAGkKx5ibcCaGgOzSLDxb4sgTxEyFmbeFlMhjCJxfW+YYHYK8ohNM3J4pZ 0VJapABSIGhljU0bGm0L1SyeUo91wr6P+IAYjzXJe62v85iBJelfQIm/UHnTltyMnLxq mz5O8ovW62ceKhW2kjMIlbzxWqDHXduqVLPu1t0Ai5nXwroZqo/XYj5KLudmWV27sVrO 7NSUOdlhmnKWNBPLkKEzzbm5sLmMT/9fl5WpJ7Mndn4tfF0UkJGL+GLQ6UwCVTmKCGNn sFxHXe4ljqc9RzVmKa3ShMe7Q66CasFImJ0MkIslQCYZJC2a/InbK8KllopbDJ0Mf0Uq tA8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="eBb2r/O+"; 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 i7si1290935edn.238.2020.06.24.15.00.10; Wed, 24 Jun 2020 15:00:34 -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=20161025 header.b="eBb2r/O+"; 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 S2391546AbgFXU6n (ORCPT + 99 others); Wed, 24 Jun 2020 16:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391550AbgFXU6a (ORCPT ); Wed, 24 Jun 2020 16:58:30 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E60C061798 for ; Wed, 24 Jun 2020 13:58:29 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id n11so3575640ybg.15 for ; Wed, 24 Jun 2020 13:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=/YfJhHqk1scz1aBXF0mupkQea8lbBQgP2jeC+IACUDE=; b=eBb2r/O+3xD/ft1cWQIYq+lLT5MaZcDKCI7F68NCZy5mtkJDNhWzHGgMGNZjbp5vY2 NeciIBXPHqDHAr515OD+KEI2SwbSQA3wPry4syrluMYmbIYDoGubxlmgh9jyRlLOoHz5 p4aoDDsXGCW7wnWAlLUMV8zs3lliqsQjwHQ3f/IRxPoalCwAHzoMzbTu3F1aBupYM8jY RJXyTQ3a1l5kZUWbyWsbEikRBkGpV5M+0D3Trh1EaZC6LuABuarRYjnjmK+YSshwXwQu +pk7yF5eODqLsJrD/Gc4h/AznuIk8Jq2hwInTWrfIN5TI1VZdP1CxKJc8TVkKATdArhv rkVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=/YfJhHqk1scz1aBXF0mupkQea8lbBQgP2jeC+IACUDE=; b=eRCMTsTwN8vz/XUZ2TVFCJqHqItUIXesocg8xWcKxUKDLN7RAU5QZipzj8ubb9G1/y VrcmzzmF+iEWgjdaQ1qccmGBL2rT3r85yGtx6Lb6DZTO1a/ZzJipFCc0YxN4O15x41DM c3lC8agajkXJZqwr0oB/o12puVQnPIKmHGNrmQ1ShooxiM5VqwVjSeoE2UYfIx/Krb9j cpG6beDRFXdKzuc0JpbOzA1iFbkIRe6k5c+KBHAZphXnuKg98vYWQy118Obozt1qKUva dTYFF9acy8+ancFiV2TkNE/SPGCmaEyKczSNcaMfTiG4SBMTR3WFI56bswLvuGhchgMz Ywzw== X-Gm-Message-State: AOAM531H5gritX8Ev80sYAp2Azhgh4/X0GHuFp9RmKBnLzbesqXPPFzJ GoU9PsFEKLdQaZ54234Xdnfe/Nvz7CAXY2JftGUcPQ== X-Received: by 2002:a25:2d63:: with SMTP id s35mr27292035ybe.367.1593032308955; Wed, 24 Jun 2020 13:58:28 -0700 (PDT) Date: Wed, 24 Jun 2020 13:55:50 -0700 In-Reply-To: <20200624205550.215599-1-brendanhiggins@google.com> Message-Id: <20200624205550.215599-12-brendanhiggins@google.com> Mime-Version: 1.0 References: <20200624205550.215599-1-brendanhiggins@google.com> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH v4 11/11] Documentation: kunit: add a brief blurb about kunit_test_suite From: Brendan Higgins To: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, arnd@arndb.de, keescook@chromium.org, skhan@linuxfoundation.org, alan.maguire@oracle.com, yzaikin@google.com, davidgow@google.com, akpm@linux-foundation.org, rppt@linux.ibm.com, frowand.list@gmail.com, catalin.marinas@arm.com, will@kernel.org, monstr@monstr.eu, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, chris@zankel.net, jcmvbkbc@gmail.com Cc: gregkh@linuxfoundation.org, sboyd@kernel.org, logang@deltatee.com, mcgrof@kernel.org, linux-um@lists.infradead.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-xtensa@linux-xtensa.org, Brendan Higgins Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a brief blurb saying how and when the kunit_test_suite() macro works to the usage documentation. Signed-off-by: Brendan Higgins --- Documentation/dev-tools/kunit/usage.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst index 3c3fe8b5feccf..961d3ea3ca19a 100644 --- a/Documentation/dev-tools/kunit/usage.rst +++ b/Documentation/dev-tools/kunit/usage.rst @@ -211,6 +211,11 @@ KUnit test framework. .. note:: A test case will only be run if it is associated with a test suite. +``kunit_test_suite(...)`` is a macro which tells the linker to put the specified +test suite in a special linker section so that it can be run by KUnit either +after late_init, or when the test module is loaded (depending on whether the +test was built in or not). + For more information on these types of things see the :doc:`api/test`. Isolating Behavior -- 2.27.0.212.ge8ba1cc988-goog