Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp132307lqi; Wed, 6 Mar 2024 12:07:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxNjpKovDG7Komo9Ows/RtL01Bawf1+f1SSZ/mkp5ZbByqPUBOwmKKWXSXH3Yrq54JQvE1HSgAmMlqckAsZCJt48ATNfBkyKOYrYpPpw== X-Google-Smtp-Source: AGHT+IHAJ3jcu7NvOZzr2jG/EqFlAqDoRHlBuN/zLdxsAPY6GLKZ8+2veKCzUHW80w0DTk7sUGQk X-Received: by 2002:a17:906:5799:b0:a45:16ea:c46f with SMTP id k25-20020a170906579900b00a4516eac46fmr8107471ejq.54.1709755667149; Wed, 06 Mar 2024 12:07:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709755667; cv=pass; d=google.com; s=arc-20160816; b=aRWGP9CwaZWPCNq/6+RGozePhEFAxCAmTABiYJ/9vSuwgXK4/qgwFaWzYeUApyn+53 Dcr4HNyiZaRI1xB+5ODCVQApk64aGkwnATQ6z/MFAbHDMsXzEnq/oUURqfxMXzPURLhc 5vWCiQGJCPw8ROPCUwvozfkpakyoTdR8XCINdTwmr+z6kyQoZGIAhdAZKiivmOYzz7+J dGdvkr/MTo8gCzJd2PP4TueiovW+Il9hCu36uMhwipyO78YnVMTCQgw+vyZJkDI8F0nT lYBxmTT62Y481QIL/wTVjajJZLRz4knZjUp1dE0+vR014Hz+vsDw/twywosWpHQjdLNE EMZA== 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=B7U5CdoSisz0jmUlqjrsOUNqk6wDWUc2n1SGpaeq6t0=; fh=4CsK72aiJy+h/EShV5QBE7/0hoTm6C2hvI6ysn6ZfMM=; b=GH0tmEsSoVZhRKkPZnt69PrC1wJhGX5sUPh09kOEHYNS7+zcO4ve0Ytnx4V5b3tU0z H0mzxt1nuue9XySmsK4001Y6sAjcM6K9Hb+fyJ5duifAIEaVh24ghcbzUGN4LzfluxKF OnCmuUXoQ6dDfxkVHq8FDpEfLB06Thuybkivwp0UVoU2FLEq3m0176uAjhEUTXRhMuPs bHUkSQcDN2TXbnfhFyN6AjVtzuJr3X6XDlfC4XS79mf9H6T5sbP2bnudnUyxiepPzxH4 S7nBoSNG4X3wKO9C1+SKjk2T0Wxp0QzXJahSCFeqeAIBJDdUQRx64Zd5uyeSdMYNu1/O m2og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=ayaV22xq; arc=pass (i=1 spf=pass spfdomain=riseup.net dkim=pass dkdomain=riseup.net dmarc=pass fromdomain=riseup.net); spf=pass (google.com: domain of linux-kernel+bounces-94535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h18-20020a1709060f5200b00a3e6c171119si6138348ejj.228.2024.03.06.12.07.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 12:07:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=ayaV22xq; arc=pass (i=1 spf=pass spfdomain=riseup.net dkim=pass dkdomain=riseup.net dmarc=pass fromdomain=riseup.net); spf=pass (google.com: domain of linux-kernel+bounces-94535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net 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 213731F24199 for ; Wed, 6 Mar 2024 20:06:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F255140E46; Wed, 6 Mar 2024 20:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b="ayaV22xq" Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (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 68F0F145661 for ; Wed, 6 Mar 2024 20:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.252.153.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709755449; cv=none; b=ats66oc405yx6pZPCH/lq2e/0AfjpbfytqgBVpcdxW5V6jvw2iAehlk/7jb7E6uCGVG/WXBfh7KoGL2BPHjg1qT+QVVcpjetLtvLuPffaVtDd/VECnhuDNzHkJQBTj9PLqGeu9PpIvM9+RIHrtDNFuc++YS9K/eg7dKf4IKmKaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709755449; c=relaxed/simple; bh=pRKJ1wttMJkyGZCwTEIz+hTdD6Hyg69u3flp9qpG3Q4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rhMueYscvBRzOioHwkWodYhjZYihMhO3fpnIPc9RYy3NzJOuRvDF67/uViRw+JIRmJ7PNR1SteDsqOexrS4e38QCOftH0etW83X+Lla/XaZ2fOty9IC35eZyDHgPksTHnHarAHmcAsqCGT4az0/NDHsWGH21Vn594iqFpQbhwIo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net; spf=pass smtp.mailfrom=riseup.net; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b=ayaV22xq; arc=none smtp.client-ip=198.252.153.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riseup.net Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Tqk0R1yfQz9wN6; Wed, 6 Mar 2024 20:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709755447; bh=pRKJ1wttMJkyGZCwTEIz+hTdD6Hyg69u3flp9qpG3Q4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ayaV22xqkUWsVtLxjkIUOHqh7kNJ8gHRZLdN4Lu0SPsOYzqLPIPM+abcsoJXd5Uf2 kycE4fQC/uOsqYKKSJ9QQPK6mcJPrlGlciaElmCY57mKFC5rm+tVpaAiGOGKdDyTKv Ons78J6vBlDL0stpuujmta53FkbX+NzqrcC6YCvU= X-Riseup-User-ID: 7889D8E448EB907AFFB289CD86314B66A18DF58B483C34C560BB5166FCAE0B74 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Tqk0L0qM7zFsTN; Wed, 6 Mar 2024 20:04:01 +0000 (UTC) From: Arthur Grillo Date: Wed, 06 Mar 2024 17:03:14 -0300 Subject: [PATCH 7/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: <20240306-louis-vkms-conv-v1-7-5bfe7d129fdd@riseup.net> References: <20240306-louis-vkms-conv-v1-0-5bfe7d129fdd@riseup.net> In-Reply-To: <20240306-louis-vkms-conv-v1-0-5bfe7d129fdd@riseup.net> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , arthurgrillo@riseup.net, Jonathan Corbet , pekka.paalanen@haloniitty.fi, Louis Chauvet 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 Now that we have KUnit tests, add instructions on how to run them. Signed-off-by: Arthur Grillo --- 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.0