From patchwork Mon May 13 07:50:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Chauvet X-Patchwork-Id: 13663131 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F916C25B78 for ; Mon, 13 May 2024 07:51:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 061A010E4AA; Mon, 13 May 2024 07:51:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="oZ09u6SH"; dkim-atps=neutral Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A43E10E4AA for ; Mon, 13 May 2024 07:51:02 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id C0A2B20013; Mon, 13 May 2024 07:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715586661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4cJjr1rOvBelPGZzHZVBVCtP2dmTpPXKO+w4HPsDO+0=; b=oZ09u6SHAxKkNeCbzcU74zQtE7AwnglI/p3Rpn8ZqGafrPa+/ZV7r7IiMYHpwXEEdtDOC0 YVBLfU9/b1nXvjD0sVgevkenX6beT8NJXcZhX5AwyHETTxgnlwmFQUffHvOTD4ZbSsYd/Y UqNv9xkN0YnZGEP2ijHkklM4gTce0H7+IyyoSeDHsjWdkpRMSprz5+UZg6zR3BzrZemRdz ys05x8Xm7/oW7xrqv7EDYyiOmAHlFSfdJg6VKIc7Pu6pnLfv8V6vRM5XNM20iPnKWSGQEK phHNQgK3RoalegaC8RECCRGnXPRa9g+VUkElU1d62sPfC/Av5jLzKv5Dq/s4fQ== From: Louis Chauvet Date: Mon, 13 May 2024 09:50:37 +0200 Subject: [PATCH v7 16/17] drm/vkms: Add how to run the Kunit tests MIME-Version: 1.0 Message-Id: <20240513-yuv-v7-16-380e9ffec502@bootlin.com> References: <20240513-yuv-v7-0-380e9ffec502@bootlin.com> In-Reply-To: <20240513-yuv-v7-0-380e9ffec502@bootlin.com> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , rdunlap@infradead.org, arthurgrillo@riseup.net, Jonathan Corbet , pekka.paalanen@haloniitty.fi Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com, Louis Chauvet X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1115; i=louis.chauvet@bootlin.com; h=from:subject:message-id; bh=O8c1f336kiVI3XlL4UTlw6eNE2rwuewoGBkUeNOYiPA=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBmQcZFuQJFnph7uViNC8DOiWO4J86q45Oihr/ye bhpxcp1uBSJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZkHGRQAKCRAgrS7GWxAs 4vV0D/sGvCkyayAUW4s6xhCaqMk6yEn6NUsHEQChoGJyWTLjJgnnnr54APCWNsJI/c9O0RPkgmQ wWd8SUM+OoqTBDx4htrwZmDPPdGk7gBdIZb4IBbSJ/iyxZ+qJVfcER9sLe+odnJeTEMc8tILq7w ZiRPamMhrn1hl8xFV4YTtK6gqUA1lnexkQRAkjqjzeU0yW3BYRFMJS3mx4ss0Q8FGaf4gS3sMCL Gf4GUS+0NQED3LKOcb2c+lSyAt4tZ/t2iFqsZgfVbHQlRyowr1oX2uTGQOkETd+Di4NpH89q828 hVFL/je0Dvg+qe+xvU9yKD5bPMbGNKFfAGxXMIowzKTy89LivZbjFjSbTivLIvizLod310VB+ZR ZVt+oGhclDQ7nBZbihha9PkXusT5J9Br5a3KUeN0opTVOvxpKQKI1EebaY9K6lb+AcMyOIjZ2cN WGtFsp3K4/5mJPzYakacNPP+JQfUTUarsXn1FQG4Zf62eeCjuaKT+Nau3Gi3fYCUwc2uItuPyAn 9hOP8zVwhDSyDWj51Or6T4xpMYUhuKXABqbcmV2en093UAd3OCd2hytSpsrwk+05dFTzWDDGaoR 12JPRtvsyopYrjp6Xts2eBK9FnQLrbecZ2ks62ISij+XlaEir4lSB4xCgM4SIEKECgbKZCyx9oP 3a2PayanFBpTprA== X-Developer-Key: i=louis.chauvet@bootlin.com; a=openpgp; fpr=8B7104AE9A272D6693F527F2EC1883F55E0B40A5 X-GND-Sasl: louis.chauvet@bootlin.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arthur Grillo Now that we have KUnit tests, add instructions on how to run them. Signed-off-by: Arthur Grillo Signed-off-by: Louis Chauvet --- Documentation/gpu/vkms.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.rst index 13b866c3617c..5ef5ef2e6a21 100644 --- a/Documentation/gpu/vkms.rst +++ b/Documentation/gpu/vkms.rst @@ -89,6 +89,17 @@ You can also run subtests if you do not want to run the entire test:: sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device "sys:/sys/devices/platform/vkms" sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_flip --run-subtest basic-plain-flip +Testing With KUnit +================== + +KUnit (Kernel unit testing framework) provides a common framework for unit tests +within the Linux kernel. +More information in ../dev-tools/kunit/index.rst . + +To run the VKMS KUnit tests:: + + tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/vkms/tests + TODO ====