From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DC941A8419; Tue, 31 Dec 2024 17:32:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735666325; cv=none; b=AWbMQotR7QEZuq55sZIi/f97sd6wMho5AbD6nNxpLl7ZOyFtPJJ/0FJS4GqfyyMYTfHsO/3lV0+ev3Fro3SHju/HM+sxLfNxRDjvMV+WAtC9y3PnxJcKOPTR7WX2/rrw6DipRSlA1c7/ldId4e0ClSSPWNtj2Dtt8iA/+cgzokw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735666325; c=relaxed/simple; bh=kc2euzosF6WwxoNIeJ7ssb8bR2lSSGc/zOi8ySccSg0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LLiGbRDf57HDy7xTCqw0tgKd5nlqIt9hG/iWpgSQhTrCmndh8+RPOkvcq1LmWjflso54cfKwKj7JHzbInANC9GjfUHs8/K3fIV4oTwuTLHYmQi/MFQVlE1YPgGaDki6MVewggMVx/tkGN8hZQYVCORY53czxOX+d74gXLG89JyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=TErpEQHg; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="TErpEQHg" Received: by mail.gandi.net (Postfix) with ESMTPSA id 55B69FF802; Tue, 31 Dec 2024 17:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1735666321; 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=TErpEQHgWypcCcQoXKIRsGNoos/5ebedbRsj8NtPDQO9hP+Mh+s+cHL/LP8vjjVvS27Bkm tiiyqjI4cuiEan4ob5hCsOjUsLZ2CbdpF2ag5HjVcyVI3aPf3HOK7vpCB0aSGP2P1n0XP4 D1RJ9C66oLDi21w1WJJ8BMczqigw6xzae35kbC+m574LoqLLUXzaLDXl5I5eWrmds4Y7Wn DaV2esML/7eHVJX4M+qEa5gNKBEn8Wfs0EQHnU6cYOtWatD/0zLP0BxU6SKvlqOhmX3SPf MN+hSEQ90JneJ+WFmqtqyS5Nadinm6hOxFRgd/RYWBmbUONVNhH26hVCZweQuQ== From: Louis Chauvet Date: Tue, 31 Dec 2024 18:31:49 +0100 Subject: [PATCH v15 6/7] drm/vkms: Add how to run the Kunit tests Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241231-yuv-v15-6-eda6bb3028e6@bootlin.com> References: <20241231-yuv-v15-0-eda6bb3028e6@bootlin.com> In-Reply-To: <20241231-yuv-v15-0-eda6bb3028e6@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/ZANAwAIASCtLsZbECziAcsmYgBndCqGf5HQoQyx1heQsJNCHcLGuk+s4uQ/EWhyx v4NS7KhdWyJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZ3QqhgAKCRAgrS7GWxAs 4h/QD/0c4jwBqeyukKh3nFr9RuIjAaO/iduccuSa/qbkqL4AstJCg/+h2iEcqkX9WZDCwdJRGBS XQRI/kEpgVYzPfiY4Iu269ODepfCXxM2a5LWcoFuuOTZDQ2ONmK76NffNy2Ky04gW0po8fJxzH3 Vme1m7CU8XdD1+VPxsPDhp8tPZZ/HA7zQaD0KMbQ9ArOBDqk01UQ/R2KPZNx5DSOzWHEgw0s/5t 1VmeQApikxJMlYyuaJahsIGNyecIcALXTWUZ3/7j34sZ8/aAkXU0GiHAAlCE+EAkGH7pRtKoH4G NMA/SxfXWBK6rAEOSJ1OAf76S2t21MPt8cC97QL+JR03uwxyATrVKA2WquwSr0KcCl41+iQMj7l zjP73I23RAGlbx6AyKV0TvV8mSveCgr+UdVlOFgs+0ML1xLr/A5nCEoGHtkTv2eBAPXHc2v8l1G 2TIErZ04w+2wOLrWULW5jOlLc4nJ9nmhGmBaHD/JHmgBAYJl1oH9jqs0J4TcyrnVxAxCYIZEMYi Ynp3vr1NGAGbECr+5UqUQAxcuvkgXcxkghF2yoLvrxgGUJU3ihi/FQhUSsR6roFUKRwcttj8dHS wAXWLLMdeMi4iU69LWfrhndSI63AYT9nYSTOmVtJz9Xi6TqLYOo7p9of8BEBOrw6HjBqKrpCAG2 xjNO93a/z8dorQA== X-Developer-Key: i=louis.chauvet@bootlin.com; a=openpgp; fpr=8B7104AE9A272D6693F527F2EC1883F55E0B40A5 X-GND-Sasl: louis.chauvet@bootlin.com 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 ==== -- 2.47.1