Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2615340rwe; Sun, 28 Aug 2022 17:13:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4rtbR3/AvxltGUE2Z5h07xP34p/KBsyUDm6eFW+szQ9Izw9wXspPqtYkO/G0fYm9LXd3AF X-Received: by 2002:a17:907:845:b0:731:2f6c:6dbd with SMTP id ww5-20020a170907084500b007312f6c6dbdmr11675546ejb.551.1661731998949; Sun, 28 Aug 2022 17:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661731998; cv=none; d=google.com; s=arc-20160816; b=RzHSPG50g8x200b3WGaaYUgI+txcmnNnYYt2+XUdwPZ2+TY+zcDWKwyVc/jxR0Esmi rnceeVJ78LySzvRvBNOXyZzvmDNADwMWphKaS3t6s7xq34tbG0JlBgjezng0mh9DwwEr OSqdVzxZvnFu0fO/Dsshj543dJ+1cRGCss22pTMY8WYRqFCl5EXzSCs24FZRLClmhrMW NZYzQJyKmvhXH1idlF0safN/s1MpfnNAdxkRx6GZd7XS5XPuH3t+XPh+2fe6fgckSvSl a1s0E6qB/b/+YTyHW6wpe4JK6JXrddMDSqq5UPyI+edpOkAoP+8TStOrDQUEslvs0Xss i5/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eoMq0xOfrROLfE455Xxo5VaSCcYA5dN57am4BZC4/2g=; b=j0Qn7+OGvoUFvGebNiThWL4dJOx8/KaLwlRFj4f4Udvh3eU9i8BjCFhqRxWsBzVNmM d1mpaj/L+/3W+niOob4NPxfDeuw89W163KJo3w5nc+hbh8sEjbsG30hownZURUNGQNfe +xYJTee6UP0xbtN5SEfERWAbHMUidmIPEU+eOge/Xu7gNXoFZad/771eBhPU+/4vpsOu jC63aBfxbpBu9wjKvs9scPI3YprBpQBoBHf2P60HabrVepqvqDLXky870/WUy5RpJVYw o36Hrg653D86E86BMPoZPk86iyYOwkl9iKIy+81cbUn3jih8QiTxZy+xFyfFQV1eb0lr tmgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=XQrhd3DI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb19-20020a170907161300b0073d68e62401si5420101ejc.176.2022.08.28.17.12.53; Sun, 28 Aug 2022 17:13:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=XQrhd3DI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiH2AKS (ORCPT + 99 others); Sun, 28 Aug 2022 20:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbiH2AKL (ORCPT ); Sun, 28 Aug 2022 20:10:11 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 946B222BE2; Sun, 28 Aug 2022 17:10:04 -0700 (PDT) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MG9mq0vbVzDrgM; Mon, 29 Aug 2022 00:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1661731803; bh=GqYqpPbeOc3SjjOOqv4u8JdDVfsfn7HITY3mPh8GK74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XQrhd3DI9Tkvfi8b9btJi+1qblNzmjU/J90LnnOjNkYHIVcFC9YLimZRj2spMurmT SWv7xUcXsozflAa6GubJQmFUWdPk8erbKrzKsjoyvrqGrgyxv5wHCH4OE4BUE3FSr2 ZFYs5u7UAwMZ8CzDzs+yfJBeQLqmG5VvxwdJiE+M= X-Riseup-User-ID: 917F8FFE9CD523F10637D9A466C228627F64C6493909752F6C5CE9D789C5504D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MG9mk0Nkdz5vkC; Mon, 29 Aug 2022 00:09:57 +0000 (UTC) From: Isabella Basso To: igt-dev@lists.freedesktop.org Cc: magalilemes00@gmail.com, maira.canal@usp.br, tales.aparecida@gmail.com, rodrigo.siqueira@amd.com, mwen@igalia.com, andrealmeid@riseup.net, twoerner@gmail.com, leandro.ribeiro@collabora.com, n@nfraprado.net, kunit-dev@googlegroups.com, davidgow@google.com, dlatypov@google.com, brendanhiggins@google.com, daniel@ffwll.ch, skhan@linuxfoundation.org, linux-kselftest@vger.kernel.org, dri-devel@lists.freedesktop.org, daniel@fooishbar.org, linux-kernel@vger.kernel.org, Isabella Basso Subject: [PATCH i-g-t v2 4/4] tests: DRM selftests: switch to KUnit Date: Sun, 28 Aug 2022 21:09:20 -0300 Message-Id: <20220829000920.38185-5-isabbasso@riseup.net> In-Reply-To: <20220829000920.38185-1-isabbasso@riseup.net> References: <20220829000920.38185-1-isabbasso@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the DRM selftests are now using KUnit [1], update IGT tests as well. [1] - https://lore.kernel.org/all/20220708203052.236290-1-maira.canal@usp.br/ Signed-off-by: Isabella Basso --- tests/drm_buddy.c | 7 ++++--- tests/drm_mm.c | 7 ++++--- tests/kms_selftest.c | 12 +++++++++--- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/tests/drm_buddy.c b/tests/drm_buddy.c index 06876e0c..74c06dce 100644 --- a/tests/drm_buddy.c +++ b/tests/drm_buddy.c @@ -6,9 +6,10 @@ #include "igt.h" #include "igt_kmod.h" -IGT_TEST_DESCRIPTION("Basic sanity check of DRM's buddy allocator (struct drm_buddy)"); +IGT_TEST_DESCRIPTION("Basic sanity check of DRM's buddy allocator (struct \ + drm_buddy) using KUnit"); -igt_main +igt_simple_main { - igt_kselftests("test-drm_buddy", NULL, NULL, NULL); + igt_kunit("drm_buddy_test", NULL); } diff --git a/tests/drm_mm.c b/tests/drm_mm.c index 2052b115..75fc6682 100644 --- a/tests/drm_mm.c +++ b/tests/drm_mm.c @@ -24,9 +24,10 @@ #include "igt.h" #include "igt_kmod.h" -IGT_TEST_DESCRIPTION("Basic sanity check of DRM's range manager (struct drm_mm)"); +IGT_TEST_DESCRIPTION("Basic sanity check of DRM's range manager (struct drm_mm)\ + using KUnit"); -igt_main +igt_simple_main { - igt_kselftests("test-drm_mm", NULL, NULL, NULL); + igt_kunit("drm_mm_test", NULL); } diff --git a/tests/kms_selftest.c b/tests/kms_selftest.c index abc4bfe9..bbf24c2b 100644 --- a/tests/kms_selftest.c +++ b/tests/kms_selftest.c @@ -24,9 +24,15 @@ #include "igt.h" #include "igt_kmod.h" -IGT_TEST_DESCRIPTION("Basic sanity check of KMS selftests."); +IGT_TEST_DESCRIPTION("Basic sanity check of KMS selftests using KUnit"); -igt_main +igt_simple_main { - igt_kselftests("test-drm_modeset", NULL, NULL, NULL); + igt_kunit("drm_cmdline_parser_test", NULL); + igt_kunit("drm_damage_helper_test", NULL); + igt_kunit("drm_dp_mst_helper_test", NULL); + igt_kunit("drm_format_helper_test", NULL); + igt_kunit("drm_format_test", NULL); + igt_kunit("drm_framebuffer_test", NULL); + igt_kunit("drm_plane_helper_test", NULL); } -- 2.37.2