From patchwork Tue Jan 21 10:48:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Chauvet X-Patchwork-Id: 13946136 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 DC8ADC02182 for ; Tue, 21 Jan 2025 10:48:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3100F10E55B; Tue, 21 Jan 2025 10:48:23 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="Q4bE4tj4"; dkim-atps=neutral Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id F3AFD10E557 for ; Tue, 21 Jan 2025 10:48:20 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id C3871240008; Tue, 21 Jan 2025 10:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1737456499; 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=E23u2HV9o/J41l+eBD2531fojOe2RYdl9ZE1qpOWnRM=; b=Q4bE4tj4dn4D3g3EV5v9S0ca6Q1L9xe1kyPXl0JT5PMT5JmqJf92JERwOUqNyo0FfWQNDL 63SB8sKkvYawI0Hxfwb8Th4oPiLXINEwhYY2qtfZC1cYKcNjJaeiKD35Uh1EZJNauPePI5 U1zPfaLrTAVZ/vNLPJe3ZlyqkF4PnQWxJXUPNgov/oRBLZAF1AjN2+Ahpqr/v0CemTqIPe kqV/i3mWVT4Wwog9S9xMfKlgMQi7/XBVYLXiFUWPbI6wVnpLOvIsG4kW0dkNdiyW7v0dff Qj5fhmk5tx+08+FPKB+EQX4W0MGp2YldnlxN/cDk8RrBjbjVQMHqJS2gNFKLdQ== From: Louis Chauvet Date: Tue, 21 Jan 2025 11:48:07 +0100 Subject: [PATCH v16 6/7] drm/vkms: Add how to run the Kunit tests MIME-Version: 1.0 Message-Id: <20250121-yuv-v16-6-a61f95a99432@bootlin.com> References: <20250121-yuv-v16-0-a61f95a99432@bootlin.com> In-Reply-To: <20250121-yuv-v16-0-a61f95a99432@bootlin.com> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , rdunlap@infradead.org, arthurgrillo@riseup.net, Jonathan Corbet , pekka.paalanen@haloniitty.fi, Simona Vetter , Simona Vetter 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, linux-doc@vger.kernel.org, Louis Chauvet X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1171; i=louis.chauvet@bootlin.com; h=from:subject:message-id; bh=XHoQP/J8cFoOO0Iqf+wQXqpq8li+aYQP7MigkGdUhFo=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBnj3tpS0CvEA4Q0NDtulmAH19nguxE7XcQjQvIg QXkKXzNAL+JAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZ497aQAKCRAgrS7GWxAs 4u0lD/9UoVhPx8xadvu8aiJcGf+6QHuMFvHL1PEh5gz8ltXMtPRMBgY4e+3A0eyBAhoPa1s8Wmc QkJo0JrE8fECbnHHCXM4T/deIFRyeZh4bJyId+uS94xHA5XPo9OzAuOjAlpcNCvPrr3N1vQ17yW D2UPE9IcxxObOLm5t3uvoTDMMojwOewUouOxBP/rrA0rBTMu2su7ZyxxP+q0HMtWlRFTGDYDLPm 5ZOTZJNn7aCSnQCzAkmor1RFIS5RgKRzDk1SZMCoYJqxAmfWyjpc+Yxx08ymGmahlMjBUpyMl3G n5FLXY8p/9n6bBC27ZzIzNQzXb1CWDiRGy88isSp1kHVzPi8J1X4UHN7UuOD7YpV9FEptwRKhQp IgElRcpOWAMj5SeONXWBW9yewogWKwJrGa14ys+HqIMVWJSr6D56R4U2XMdBhV98u+mn31UFOD4 JY7v+hFCKlynHfB7ZrWr4l+TwQ2E5UGU5ikc29tFqbs8TjtKQBsffQTRzxQ/cDV3aHI6505clTo l8YT4kzHGUX0oqj8YUPeo5dVDK8oD00xfr95IvGVbN5W3K2OAUMk0qDBlKNjksbaqMe+K15b67P 9VANYE4u+eRujQ7/e8nb5TkqdvfNPQJvMlNnDo5+oojGKOfbohdaDt5TN7xsqhsGr1leb5N5V6V IRi6Vr/BEY51JIA== 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 13b866c3617cd44043406252d3caa912c931772f..5ef5ef2e6a210382a070eaf3552bbce75b04ff0c 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 ====