Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp273789lqo; Thu, 16 May 2024 06:08:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWQY+oH9WOD/uzq7mcM3NZIjspxTldvqB3+1aKQMJBuFCSs+ooXYfczZoRXYkm8zkbIBURICtbpiuZ2R6Xjmv1/SGtqB4/ZcTxfCyEGQ== X-Google-Smtp-Source: AGHT+IHzWeGZuPeAVVs+6OyTrlrBejhDjUJd/BbhBTZOuNYn9KChopEjzd/BGC6ZgAT4Rnww1IPC X-Received: by 2002:a17:906:c288:b0:a5a:3b95:c263 with SMTP id a640c23a62f3a-a5a3b95c2admr1173059166b.21.1715864929641; Thu, 16 May 2024 06:08:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715864929; cv=pass; d=google.com; s=arc-20160816; b=RRj4dYv2RbHkVzcMNQli3tVx0B720ZiL6/lMhfdgZ+VAM7YtpZtJ6vkBDzb028CCLo 5dzRplTVy1EaJxRicrQCpZtscjZSFQkeDuMvxS6u4IqgWQzCWbiMUP5PMmYrJ2n/vS8z 3L8Bv45LQlwgvzF11rRBv8jOwtSA66tAhtqTjc3l6e9+8PKko3LL4xHST21MnplA/JsR 0wqJpN8UJJ/yAmCCqtSfvW606Yy+Ld3EiFdEVrGAiy/giOcewzRJ3r5qVIrMulO7FAE1 y4cE8MUK9d0fchL580Ba1AqyRZXXn3rO1zsYIcNuFpAAs3bBfl+2lTHaWdx+MC+i3hXR /eeg== 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=FXBm/HtNMSSz/CeeJfzXQQ1nfrJhbwkJVoyHLVwt80vi5Ff62/ELsKU2IdYx/NxG5S /O/1oV80v/90HK4fSRz3RxNJZdNS6WrNpBwbIm9/n8979HyfqydrTlTEVtDUFGCwdDOB NSoN0MaRV/Iop92R1/sBZomhZxvMGWSu3AG7N3SALQUxqQy6kVg7KpDhxBnR6A8+jJnh g7UF6TJosa70blj8BwsrsE04+AaETh2jqlQAf57t3Ur8B+pZXJPkUH8vnrCTo/Z+yfGG 7d7pwsnsSs0d/MNvjY+fedcniSat2iR6mX6XCdMGfoBq4JgngcJrn6D6FZlZO+BU/+z6 A1Bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gu97EKuP; 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-181086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c0428dsi837298366b.896.2024.05.16.06.08.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gu97EKuP; 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-181086-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181086-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5E7F61F21195 for ; Thu, 16 May 2024 13:08:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25E56152511; Thu, 16 May 2024 13:05:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="gu97EKuP" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 78F9A148856 for ; Thu, 16 May 2024 13:05:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715864747; cv=none; b=WPqdPSqzAqOZhR0mXgl/2axM4JeMdAVhxV9bRlUDoTICM+ltGafllJzqmEzMdaOsqa4D0frw8HcGzj6zj70eQdfZ6UcoLhvUZAwPTJpgZ9cIFiflAHqE6GJT33b45E12GHg8O5w7jF0VaIVP0Yef+fUHgXsNrcKXpFh3Oc8SnCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715864747; c=relaxed/simple; bh=hm5ATuKM7k5b9USDBiGDlrypUOaR2PsBlAUrZCmPJyE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AZHJFljqKceDZYwG9uGFx75GTIe+q4GSTF0MLafEzlmaCF7sFUwNghaVQlUWpwb3CCRe+bNhv4G6sg78I0R/Zxeh5RcSU2nx9W+9G5gTR7GqyRAkkWH6+bIXdAMe5bNTvSTvlESCIHgsQUCHuVgcm3lJfZP3mWW6HBIV40pg0TU= 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=gu97EKuP; arc=none smtp.client-ip=217.70.183.198 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 32B3EC000F; Thu, 16 May 2024 13:05:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715864744; 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=gu97EKuPJWBMpU5dY8RaGqA/gulC8FYseQS6vq5Yyj4zRc8VdYWUFKcO2Spze2Fd4GRVSy olB6UNf0RtiwI4DSikf3Ko/wGHbfsVtPISmhM80Jaw7HJXRT3XQRRvCrdak+rOzsYtnY1b iz34In94gVSuDvj/d1rWV8/28PMcFz1pKt1HFHFmRts4xLw2CuF762+YVRn9hNn7LLf3UQ rskVuli+/UsoOiS4aenbzCl3n57sZsIgP7KH8Gd2oTnA8d2O8VD3nAayvixEfpnrYv4Zsi vyFkywYvRQr3uATmXa30Z0T9Gt4dhfF9BdH+dXCuhijIUIvDzjJK2gP/SivpeQ== From: Louis Chauvet Date: Thu, 16 May 2024 15:05:01 +0200 Subject: [PATCH v8 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: <20240516-yuv-v8-16-cf8d6f86430e@bootlin.com> References: <20240516-yuv-v8-0-cf8d6f86430e@bootlin.com> In-Reply-To: <20240516-yuv-v8-0-cf8d6f86430e@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/ZANAwAIASCtLsZbECziAcsmYgBmRgSC5GoXWRSrnYV9ETBiVDH8Jn5fnArbqKwbL dLc8o09IUeJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZkYEggAKCRAgrS7GWxAs 4uE7D/wPP45RWpxBsLH8jQdqLtt/Vf6KHPDniSNlL5xLVgST6fco3JUUEBOdEXOOnjSKb6/+19a fpxu+4HhIesEzlPPN0xoKY9dnVb0ppVqhVJ7gvpKNROSE5hwhtFI+DAawHxyuxVbAV3BLV8hCkt yhOOEMSQ3yePbKxaOgDqE7aDL3WJeEO9mT+iKYi8jmHtxgUY00cEdq7BkVk3grUc2I+x3zEewUY 6T/zBBfYi/8iJk2kNpfiArNOTrIandTmlCJx7BefeOLee7L24sLhdNl20xKQ12VQejQZ9wa1K2H z55CXGgkpSiGqMQS6Og04BxiJYwAHhOAimHW+mtk54Evzr47m9iGUrU3LeJCgwCbh90Hi8je/8D WPO/G7Uo3TObH1Tam1R78NMFjoNFxMwW4pTLBlj5JlgJXn7eC+kQEGTFPuDE7vOcGYJeZ/mecOz bW3ZuUuSGv3wgv9dJr0UafFZIo/W/fH1k/BkLueDlqyqv6LniYThbSlMn5TGUNv76hSWROlOdD9 r0qB0T0qTfWmDeHLqJ/QE0Hy2vKHmHmFZRo39aDOy/j20sV/4zKjSG85PxZ+mOdcpY8k0DCq/Vu zKtNBm2Uz6ucdbZEpIiIqfWMz6g0hBoqIkXfpW5lu4MSo19kAHsCKXnOVJfzeeg2KQqzpdiEihH 5eaGA/bIW7EyExQ== 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