From patchwork Fri Nov 22 16:15:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Chauvet X-Patchwork-Id: 13883336 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 10F79E69174 for ; Fri, 22 Nov 2024 16:15:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 80E5F10EBED; Fri, 22 Nov 2024 16:15:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="SkVNJBJX"; dkim-atps=neutral Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id E867210EBEA for ; Fri, 22 Nov 2024 16:15:14 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 8DF0A1C000F; Fri, 22 Nov 2024 16:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1732292113; 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=PfHoqEBmoVIVQo1Iw5eRxgKBa4FOCahU3iIkG6Ku/Eo=; b=SkVNJBJXxKYgIOc9BwWh6Xjl5oit/A94GpPF5zdXIWsEki+OwfLHPwusXqk8qG+DwpU87T FddI6Q1AHwd908TX9Gd5tj+koHeILJmxB9e0RpfjPpCqGLylIRIIx6sIRQn4iV6KDsDNH0 nEQ8WbbCO/twKPJylTkoY0z0XXx1Eqi4BOBX825TVI+2gFZpbW24ZMlEQOUGow/2c3+y4w B41Rg24Il3D3TNJAV69g8CjcevwIUejpAY2tUk+NBfJ2KaaxWaogaCxDi6z2UcqW7mdMFK aj8zepM8h+IQj20ci3ljWEMa4eN5sSiuvg8aUD/Frb1KfxYijenwbPTBqLMJkA== From: Louis Chauvet Date: Fri, 22 Nov 2024 17:15:06 +0100 Subject: [PATCH v14 6/7] drm/vkms: Add how to run the Kunit tests MIME-Version: 1.0 Message-Id: <20241122-yuv-v14-6-e66d83d28d0c@bootlin.com> References: <20241122-yuv-v14-0-e66d83d28d0c@bootlin.com> In-Reply-To: <20241122-yuv-v14-0-e66d83d28d0c@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 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.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1171; i=louis.chauvet@bootlin.com; h=from:subject:message-id; bh=KcZXKbnDJcUNaO/ryK3mrQAB5uKi2etnbYIX4nCF2Hk=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBnQK4Iv/OP2lDMDsNSQsMOUoHjXv/gzq0HVDkz9 TiaJefBG7OJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZ0CuCAAKCRAgrS7GWxAs 4pcPD/9zvbPt0PRgMxyU9gNTqj23mnbl5cQ+bwA6Ejill6Iqk2wBN3m0OCvwQ0vshvxvKX20LsT pY8oklqWMkaod2/KxEUD6Ht1AFQRxoQQ2Y33PmcsYXIkHOkadPAj7RtsL7wL8a2CZUD1qcnzvpC myFdbjesALlgpJkFUAzO2CUGGgDP1eCDhvEgUDCRUZ8Um3mpP+iSxOF25DTo3p6+IsUrWpholnj Sa6GLFyHcil7dry1XtWUiU4i6pe6S5jT3g/jsyoxg80iZctsVf5DvxFLN50KkbJjGgzj8PJICNo O7wKiEQiOWDscDxMTk63SBA/cs1f6Wrbnyd9wXz69GBtuvmTvKAXwSFTwP0oytbPxjtTPWBgn4P j/+gBC/eJmBKhEGwH4dn3q1PpVgNDEqkNZsZUutudUC0sU2NdFNqKJAlu/+imO2kbZsUfZqxHMK rMk6csPY0Dn4jPwBZ2vvgVS/6vdJFkZoqItXz97XhxewIOoaeZOzLRdsoZ9VCeLbEA2BEKAhx8Q MQ88qaX6S7FLaF1wggFokgKEoyxHwHRJI3bYekIXVrYGSL1nX0C99ByC6cHuoi0RT245iWzsAMT 8JxihdFKVraz5YvJmSqS9kIA8rePbAa5YN09BlzATchfRXYjK2HOTcAgaWxw14zIzCK7cQAKY8P nuo+ZyDkzw15QLA== 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 ====