Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp890421imw; Fri, 8 Jul 2022 13:48:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGTH2yHdVJDx+IHyguAXT4ZLKtNKVR+9qRecBq4KsdMorhttiSBOdDyHUDFdgjNt1Cjh0s X-Received: by 2002:a17:90a:66c1:b0:1ed:4de4:6a57 with SMTP id z1-20020a17090a66c100b001ed4de46a57mr1958219pjl.84.1657313333556; Fri, 08 Jul 2022 13:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657313333; cv=none; d=google.com; s=arc-20160816; b=AUkQ9/FOF6x9qoK6Rhj4pIV3J8n7NwU4yWa7dBT1Phtsnx+hN9mf6FmM6NflovYTf1 qz+U5cElU3L2f1+rXFHBK8PrOa1kYrtyYdr84YiSp8308Q7F0bOLs0E/p5inq7MC/QMX XQvP9CfRRfVoE8YTAVIVck+m1G6eGwnMnScz/QtXTnES0UyhpWrpGZlbu+Zd9sGd2B5b FM66Vx01cbFjuZTsDV1AExSqyuW1cD4way5VhCjT8q4k7BNkRFnmvwubxjI3rU62wm5k C1zV7y3QRh2n0iu09UwlwTf4wLUt7JyWc1DaM3rFdEFcPYYq5mMFNFOGa6FPpo3ePUMg n6jw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pd8YkNDiDu3oM3vugMaeJlBRepYD2LNfA5/ZK9a8FCY=; b=CHry6GX4q4uu1i6JX99E4Dik99wQ7xr83AymjSIFhqRm/QZk1RgbxIpR7hDnZdWTkT MI71+12SSMSA/WcJAI7wm43hHnZggPx7zXFjzH7O/AH7jHnpsGXvMl29c007asyKbPHY +A4+gtX/TXWXc96UN4SVp1cVOu1+iffvkUiFoGn4VCbN8ml24znrfAaUU17zBxL5qhni J6VQ272EGxf7VArlogD0gBZb0UauxeLlakSDVSFUh5Kpipg4525peQOLkc+RugRl1iOm wqrVW9xk/Rx1WToynweMR9iaAltZ3SWHUYQGyYEXBzg5htUWHPLc/AOpWSaJUYWrE/GO F1Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=c7GWI4Fj; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a632054000000b0041291e16fe0si14622548pgm.779.2022.07.08.13.48.39; Fri, 08 Jul 2022 13:48:53 -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=@usp.br header.s=usp-google header.b=c7GWI4Fj; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239205AbiGHUbN (ORCPT + 99 others); Fri, 8 Jul 2022 16:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238904AbiGHUbK (ORCPT ); Fri, 8 Jul 2022 16:31:10 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43A3A904F4 for ; Fri, 8 Jul 2022 13:31:07 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-10c0d96953fso121592fac.0 for ; Fri, 08 Jul 2022 13:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pd8YkNDiDu3oM3vugMaeJlBRepYD2LNfA5/ZK9a8FCY=; b=c7GWI4FjKP8Zf4DT+zIaXhdSDSzdPiFkeJx4Z41D8JHnhBQS0IJ7/n/UDH3LXP4pGW M6wpzhSS/1uL3HsWMmNusieS6kd00e0ns7y2qnI1B79xIS+oQ/6BeXK3ZZoX/vEWpgjw kllTCIxt2V4oea6sSZ/IjQfDLU6k7gzux+hT9OU5zj35fVeFOwIzuCtpGuJ38IqXYcAX UFDArmYMTx1VNiP4qf9lGlYyFPgk4d8YySzZSCPIQ7F1w8S73GTkF24r9ymfFY2kiYk3 krTuNS/jxGImaxoeAUmjH9rM01ayEH4fYglP/o5LzHFAjaSlNHs2AV4fvy/PSit4Jy2F HQpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pd8YkNDiDu3oM3vugMaeJlBRepYD2LNfA5/ZK9a8FCY=; b=tknHSwVsNpBtTtOTW3MyiKaJtUeh2GkPtcZ/BiElHS/WLMSY3gfLLqTiE8MI+Gs9zI NYRRBVvLUugD1yQ+dIT10i3rGqH0CFSD0W6LebPCvbYFjnhKRBEZ3QQQtjwJZ7GDX0AG Ur69qi5jv5QKr/HFNiBSMnwdRhJPFoVmDAjGVk+7a5u8Z2kHQG1eQ+8Jc8ctMx5a7blj pFI/G90wY4c7sR/CYON2INLHbvGi2uMOS6JJM1Fwjzvz6O3hGknt6OXs2xZCgV+6H15e MlUJx8i86dp1Pr3ZPiL7i7iLQqXX3EgCku9juil9hEkVvtYkoqxjR12ScF0i6x9VaD8d v/qQ== X-Gm-Message-State: AJIora9rS8ouFNyTNORAoQdrEZcuwiulxIzUqO6F4FoUUEAZjwlNJ/sB risuqIMthzfXfCzi1zju+/Kb3A== X-Received: by 2002:a05:6870:339a:b0:f2:d065:be1f with SMTP id w26-20020a056870339a00b000f2d065be1fmr1012447oae.69.1657312266571; Fri, 08 Jul 2022 13:31:06 -0700 (PDT) Received: from fedora.. ([143.107.182.242]) by smtp.gmail.com with ESMTPSA id ci10-20020a05683063ca00b0061c309b1dc2sm742225otb.39.2022.07.08.13.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 13:31:06 -0700 (PDT) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, mwen@igalia.com, andrealmeid@riseup.net, siqueirajordao@riseup.net, Trevor Woerner , leandro.ribeiro@collabora.com, n@nfraprado.net, Daniel Vetter , Shuah Khan , David Airlie , Maxime Ripard , Thomas Zimmermann , michal.winiarski@intel.com, Javier Martinez Canillas , =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= , David Gow , Daniel Latypov , brendanhiggins@google.com Cc: kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH v5 0/9] drm: selftest: Convert to KUnit Date: Fri, 8 Jul 2022 17:30:43 -0300 Message-Id: <20220708203052.236290-1-maira.canal@usp.br> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 Hi everyone, Here is the v5 of the conversion of selftests to KUnit. Since the v4, the only fix was checking the checkpatch warnings and checks (Thank you Javier). Thanks for your attention and any feedback is welcomed! Best Regards, - Maíra Canal v1 -> v2: https://lore.kernel.org/dri-devel/20220615135824.15522-1-maira.canal@usp.br/T/ - The suites not longer end in _tests (David Gow). - Remove the TODO entry involving the conversion of selftests to KUnit (Javier Martinez Canillas). - Change the filenames to match the documentation: use *_test.c (Javier Martinez Canillas). - Add MODULE_LICENSE to all tests (kernel test robot). - Make use of a generic symbol to group all tests - DRM_KUNIT_TEST (Javier Martinez Canillas). - Add .kunitconfig on the first patch (it was on the second patch of the series). - Straightforward conversion of the drm_cmdline_parser tests without functional changes (Shuah Khan) - Add David's Tested-by tags. v2 -> v3: https://lore.kernel.org/dri-devel/20220621200926.257002-1-maira.canal@usp.br/ - Rebase it on top of the drm-misc-next with drm_format_helper KUnit tests. - Change KUNIT_EXPECT_FALSE to KUNIT_EXPECT_EQ on drm_format_test (Daniel Latypov). - Add Daniel's Acked-by tag. v3 -> v4: https://lore.kernel.org/dri-devel/9185aadb-e459-00fe-70be-3675f6f3ef4c@redhat.com/T/ - Add blank line after #include (Javier Martinez Canillas). - Make the order of the tags chronological (Javier Martinez Canillas). - Add Copywrite to the tests (Javier Martinez Canillas). - Add Javier Martinez Canillas's Reviewed-By tag. v4 -> v5: https://lore.kernel.org/dri-devel/20220702131116.457444-1-maira.canal@usp.br/T/ - Fix checkpatch warnings and checks (Javier Martinez Canillas). Arthur Grillo (1): drm: selftest: convert drm_mm selftest to KUnit Maíra Canal (8): drm: selftest: convert drm_damage_helper selftest to KUnit drm: selftest: convert drm_cmdline_parser selftest to KUnit drm: selftest: convert drm_rect selftest to KUnit drm: selftest: convert drm_format selftest to KUnit drm: selftest: convert drm_plane_helper selftest to KUnit drm: selftest: convert drm_dp_mst_helper selftest to KUnit drm: selftest: convert drm_framebuffer selftest to KUnit drm: selftest: convert drm_buddy selftest to KUnit Documentation/gpu/todo.rst | 11 - drivers/gpu/drm/Kconfig | 20 +- drivers/gpu/drm/Makefile | 1 - drivers/gpu/drm/selftests/Makefile | 8 - .../gpu/drm/selftests/drm_buddy_selftests.h | 15 - .../gpu/drm/selftests/drm_cmdline_selftests.h | 68 - drivers/gpu/drm/selftests/drm_mm_selftests.h | 28 - .../gpu/drm/selftests/drm_modeset_selftests.h | 40 - drivers/gpu/drm/selftests/drm_selftest.c | 109 -- drivers/gpu/drm/selftests/drm_selftest.h | 41 - drivers/gpu/drm/selftests/test-drm_buddy.c | 994 ------------- .../drm/selftests/test-drm_cmdline_parser.c | 1141 --------------- .../drm/selftests/test-drm_damage_helper.c | 668 --------- drivers/gpu/drm/selftests/test-drm_format.c | 280 ---- .../drm/selftests/test-drm_modeset_common.c | 32 - .../drm/selftests/test-drm_modeset_common.h | 52 - drivers/gpu/drm/selftests/test-drm_rect.c | 223 --- drivers/gpu/drm/tests/Makefile | 4 +- drivers/gpu/drm/tests/drm_buddy_test.c | 756 ++++++++++ .../gpu/drm/tests/drm_cmdline_parser_test.c | 1078 ++++++++++++++ .../gpu/drm/tests/drm_damage_helper_test.c | 634 +++++++++ .../drm_dp_mst_helper_test.c} | 89 +- drivers/gpu/drm/tests/drm_format_test.c | 287 ++++ .../drm_framebuffer_test.c} | 77 +- .../test-drm_mm.c => tests/drm_mm_test.c} | 1248 +++++++---------- .../drm_plane_helper_test.c} | 122 +- drivers/gpu/drm/tests/drm_rect_test.c | 214 +++ 27 files changed, 3652 insertions(+), 4588 deletions(-) delete mode 100644 drivers/gpu/drm/selftests/Makefile delete mode 100644 drivers/gpu/drm/selftests/drm_buddy_selftests.h delete mode 100644 drivers/gpu/drm/selftests/drm_cmdline_selftests.h delete mode 100644 drivers/gpu/drm/selftests/drm_mm_selftests.h delete mode 100644 drivers/gpu/drm/selftests/drm_modeset_selftests.h delete mode 100644 drivers/gpu/drm/selftests/drm_selftest.c delete mode 100644 drivers/gpu/drm/selftests/drm_selftest.h delete mode 100644 drivers/gpu/drm/selftests/test-drm_buddy.c delete mode 100644 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c delete mode 100644 drivers/gpu/drm/selftests/test-drm_damage_helper.c delete mode 100644 drivers/gpu/drm/selftests/test-drm_format.c delete mode 100644 drivers/gpu/drm/selftests/test-drm_modeset_common.c delete mode 100644 drivers/gpu/drm/selftests/test-drm_modeset_common.h delete mode 100644 drivers/gpu/drm/selftests/test-drm_rect.c create mode 100644 drivers/gpu/drm/tests/drm_buddy_test.c create mode 100644 drivers/gpu/drm/tests/drm_cmdline_parser_test.c create mode 100644 drivers/gpu/drm/tests/drm_damage_helper_test.c rename drivers/gpu/drm/{selftests/test-drm_dp_mst_helper.c => tests/drm_dp_mst_helper_test.c} (72%) create mode 100644 drivers/gpu/drm/tests/drm_format_test.c rename drivers/gpu/drm/{selftests/test-drm_framebuffer.c => tests/drm_framebuffer_test.c} (86%) rename drivers/gpu/drm/{selftests/test-drm_mm.c => tests/drm_mm_test.c} (55%) rename drivers/gpu/drm/{selftests/test-drm_plane_helper.c => tests/drm_plane_helper_test.c} (57%) create mode 100644 drivers/gpu/drm/tests/drm_rect_test.c -- 2.35.3