Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1547765rdb; Mon, 8 Jan 2024 02:50:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjQUX8j2+QUcuH1llO+kWjCW/TwIhZ/Q3odkUMMEqO/G2VRDfB3cT55OdcOrmfDXrHgcXX X-Received: by 2002:a05:6214:23c6:b0:680:ccbe:ff24 with SMTP id hr6-20020a05621423c600b00680ccbeff24mr4650636qvb.17.1704711056886; Mon, 08 Jan 2024 02:50:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704711056; cv=none; d=google.com; s=arc-20160816; b=erqC3zKSoX7phnGLy24TgEDgp6XtXaHNStxRi5cMriDwc9PR4+tVWR0qbIwTL8wkkK lRtXIsyF3b1GqoLrf/xUE+Q7nFYH8sDDGc9GWNsmDHd5T0ma6phn6tZkSaeKOMj7zCbO UxV5DzDRYvemjDXZT7Azrxiu20KOvLzMa+YN41oOJqUayew8cLymvKaetgtrFNUvrLax 1IUVGpcPqcMAbnUAkCjzElGh2Yk9uVVIj73yRJGmMrTuerpyCamxfPJE6axiMOsn4xy6 DyuVjNmmrxr7LG1rHPQ6rEs/kVIhhqnpxVBwkuWK9YJyODpRrHlp2KOApVzi/a9e0JUF YU1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bKzkdpu/a5yRfeInQ9aGSlZoLneu452MDbknNvxRUHc=; fh=2Q9xW+rIDetTBHceyZt3twRenjS1y8OjrifQFG64G7A=; b=k1CFjkuhS3alvt84/2hXcCl4+rNJ9yWhDlkyv0KNijEs4Y6TGG2i/36O45+MN0VrDj asbG+B4I1uQRpHlxyevcokVjmUn7hMEVnBsoeOx6FQVRn6P53RoQ8kmihLI+1SaEXXiH m3bVZA7mZR3R/+A6XMyQ57F8auDL1ExWhvQxA16+R63mvSXfTnes/wUo8u5mydVEwAJ/ vx8XFzJ5vxtnUaaIxhNA+F22GUKR8FOlOreM1zFwBeZKAQJ20/sDjQCw6n/mQkfTNIap G4dg6vsQd6NLcGEh5lNFx5rwNSJJ7bFgEXao+zhGPtywAenFlQZ7FIGvvm/caszRz1lf HAtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dUQ1OZgu; spf=pass (google.com: domain of linux-kernel+bounces-19356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o4-20020a0ce404000000b0067f3a788cd4si7711150qvl.349.2024.01.08.02.50.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 02:50:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19356-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=@kernel.org header.s=k20201202 header.b=dUQ1OZgu; spf=pass (google.com: domain of linux-kernel+bounces-19356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 85B901C221DD for ; Mon, 8 Jan 2024 10:50:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79F3F14011; Mon, 8 Jan 2024 10:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dUQ1OZgu" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B2F0013FFF for ; Mon, 8 Jan 2024 10:50:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22372C433C8; Mon, 8 Jan 2024 10:50:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704711047; bh=45mRzzG6A0BR5+EXJpFhsTcZ8StNS2HuftbI7wCsVVg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dUQ1OZguKetLtE9/Q4mMNBuIDPGp0BsYULDlyJhRv9brlnE6UTjsPcIYQL9Z5d05D YMH5R06JgKIU5soaIs1yVqEAYLfPrqx7O9+Od3EMN8qvZ08yI4DW6in645fuNJAlTb wT9vV+mQ1JwJ2Cx77/+kgiSQY1fWjjZxFUzW0RHbcYsPmKcSWXl9d+0xsJhy630oMo Y1D4+Xs5xGcm/jq1rtQqmRrBGD715/yc+tSCUXm/gvHVSSy6W8th+y4f9o7HiVK/4K J6wvHYPe9XKbcnHM4s78BDsxSKtx6dlV8ZpXLw4E3uJbg5ghqN2Ze3DuXhBY66QMFf z5A+HaENLiOuw== Date: Mon, 8 Jan 2024 11:50:45 +0100 From: Maxime Ripard To: Dipam Turkar Cc: maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/1] drm/tests: Add KUnit tests for drm_mode_create_dvi_i_properties() Message-ID: References: <20240106140117.9777-1-dipamt1729@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f6i67lwd5ztnttpq" Content-Disposition: inline In-Reply-To: <20240106140117.9777-1-dipamt1729@gmail.com> --f6i67lwd5ztnttpq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 06, 2024 at 07:31:18PM +0530, Dipam Turkar wrote: > --- > drivers/gpu/drm/tests/drm_connector_test.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) You're missing your commit message, Signed-off-by and version changes here. > diff --git a/drivers/gpu/drm/tests/drm_connector_test.c b/drivers/gpu/drm= /tests/drm_connector_test.c > index c66aa2dc8d9d..aad63839b5e5 100644 > --- a/drivers/gpu/drm/tests/drm_connector_test.c > +++ b/drivers/gpu/drm/tests/drm_connector_test.c > @@ -4,6 +4,9 @@ > */ > =20 > #include > +#include > +#include > +#include > =20 > #include > =20 > @@ -58,10 +61,27 @@ static void drm_test_get_tv_mode_from_name_truncated(= struct kunit *test) > KUNIT_EXPECT_LT(test, ret, 0); > }; > =20 > +static void drm_test_mode_create_dvi_i_properties(struct kunit *test) > +{ > + struct drm_device *drm; > + struct device *dev; > + > + dev =3D drm_kunit_helper_alloc_device(test); > + KUNIT_ASSERT_NOT_ERR_OR_NULL(test, dev); > + > + drm =3D __drm_kunit_helper_alloc_drm_device(test, dev, sizeof(*drm), 0,= DRIVER_MODESET); > + KUNIT_ASSERT_NOT_ERR_OR_NULL(test, drm); > + > + KUNIT_EXPECT_EQ(test, drm_mode_create_dvi_i_properties(drm), 0); > + KUNIT_ASSERT_NOT_ERR_OR_NULL(test, drm->mode_config.dvi_i_select_subcon= nector_property); > + KUNIT_ASSERT_NOT_ERR_OR_NULL(test, drm->mode_config.dvi_i_subconnector_= property); > +} > + > static struct kunit_case drm_get_tv_mode_from_name_tests[] =3D { > KUNIT_CASE_PARAM(drm_test_get_tv_mode_from_name_valid, > drm_get_tv_mode_from_name_valid_gen_params), > KUNIT_CASE(drm_test_get_tv_mode_from_name_truncated), > + KUNIT_CASE(drm_test_mode_create_dvi_i_properties), And you still don't have the other test we talked about Maxime --f6i67lwd5ztnttpq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZZvThAAKCRDj7w1vZxhR xebbAP4zeeb/FcUWrmijKVL/s/8TH0vQNqBlFLdGHm6HVYyqDAD/Ty0poxMO78/b nDUSErIzyXQ9Jbo4ETQb/x6MAa05awc= =dFoD -----END PGP SIGNATURE----- --f6i67lwd5ztnttpq--