Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1883946lqo; Mon, 13 May 2024 00:53:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYUN9o+ZhF9IQ5BwgraLJiGVyCsTIHohnxL6Ez/jJ6YkIGHfOQEm7k9Idwxd/0oqyCEgYDCXQvWHGaalTfALjp0mxnNDU8Wlc8PBOwUg== X-Google-Smtp-Source: AGHT+IHAvSf4AgpdF85WYBqA5q/0KvpnKzzQf8ZXQ4N1jgu3oDpgcSwA/BaSV/SbxySJPnOGjHi0 X-Received: by 2002:a05:6214:4893:b0:6a0:d04a:d2de with SMTP id 6a1803df08f44-6a168230369mr104329456d6.42.1715586814125; Mon, 13 May 2024 00:53:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715586814; cv=pass; d=google.com; s=arc-20160816; b=JlsVlgqg+SJ8PqXwNY/K2pJVRvWAVIuAn8y6aRkuuhjOK3ItKPIDdMqR4UdjRRioLa JxkFAiDBMwPWpBdFYiV2CdplhTM0IwAAhkdXVH2IQ3EiCqnvrFYwf525zVmSmtUFncKq Wz7JNgTpp5Bxa6Hvei6lMNcUqEiktvxboBYYQLW/3j8n4m4X/ip8aHuE2sEgE/8/VzFR T6/H21v5qX9yXn2iQY9GOBEQ2f5KZU7EGm3HBeYXsZmpK70oX+JvM/+OPAVZVXOHax5E ipsv2Pqp6CV9BkIFfBTMd8DPQDI+LXgEnvhK2lInwf63MExWQfhouQ14+5MUPvaw/G5C ZEcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=4cJjr1rOvBelPGZzHZVBVCtP2dmTpPXKO+w4HPsDO+0=; fh=fk3KVJ6e//5DsoobLkOAw6e5yTly2+YwRiAZojsT3v4=; b=nDfocVRVJ7dtJBY7GodTUVEkfKr/MfX3r6UuMlemjMlfqj420xDhe0K9322POHj6bi 1dSF4rOSoYB1P9eR6DGTgg0OeeXjqrfn1gZqjjGAwjRn+mduVbPYpTooqrTWo5blKIvy VTSsH1hA6qjhHG1/cPvJ9n5jV3zxNi4bkzSLjrV/EsYknzjN2NsuOdcqbNvS6+/2jZHr Ts3sk6uctbmPnweQQeW9441zxl8s/mzGSkLsU1aIDyP3U8752IVrpIVRrzrC/GjyFBZM /I54F7vj4h/B+6b+XHccPp+Y5psxfsoLshAuX56Nu/1E5kubKkV8gFf2ohjBrHd2C9/c 9G8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oZ09u6SH; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-177303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1ff14dsi91363106d6.148.2024.05.13.00.53.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 00:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oZ09u6SH; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-177303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C786C1C20F2D for ; Mon, 13 May 2024 07:53:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7384F14C594; Mon, 13 May 2024 07:51:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="oZ09u6SH" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 A21EF1474AD for ; Mon, 13 May 2024 07:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715586664; cv=none; b=EksiLFZN3GQWTiWouOLRRtD5I2bQOKW6j5xV3OkFyE7iwfr93HH7NJzrdIuji/i3/aMI89KinDs6Lx86mBGC9Y2+NmLaGDZQDi/sAfOOzXpE3TSj+yC97ENYCxnRJPFUcLvHJoAG1RuizSWnRKZTsdXpiTkTv+/how7IQPMP3fI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715586664; c=relaxed/simple; bh=hm5ATuKM7k5b9USDBiGDlrypUOaR2PsBlAUrZCmPJyE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qB1UNfza0Lew9iKPGl35+m5Zp55yjDhVDQ6qrr4vHRY8JOCWxb50jey9wWD2tW0LkZ95SF7WCoPShnDOii6ckjRD8InDCgZwYVJft1ip0OTm/hMX7Zu4ER4ERVCOYr5wOA3SuLSPBAu3q0XiNE4kvPGqpy9XDkjACd6iYpLyMgY= 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=oZ09u6SH; arc=none smtp.client-ip=217.70.183.200 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 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 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: <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 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 ==== -- 2.43.2