Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1607058iog; Thu, 16 Jun 2022 09:45:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tWeO1lcMLx3Cg9BuJB4BNXZjdl4Jh9bNFuDlQgH6RfUPqn/DbrhQn4+ffxHW/Ms5V3a5gv X-Received: by 2002:a17:90b:3148:b0:1e8:90ae:d1f6 with SMTP id ip8-20020a17090b314800b001e890aed1f6mr16775968pjb.84.1655397902322; Thu, 16 Jun 2022 09:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655397902; cv=none; d=google.com; s=arc-20160816; b=bx7GkmXwBOK3GJysxdGLiv1IbeE8uEHZFm7afV2CkkDlNvFRjB+OilG/FCXORVTwR4 rE52OfBk5VyBb5OBXFEHTG4NGxDLQd8yNtatUmiP5Ztq9fcSXnxgwYGIstfQ1lQACTsJ 5kdux6pZ4WWMsgDq8P3+y7mwhS8k3+BjHbRnHY8mSlGjOo4P8jV+4/vtgYXhiv13sMfD zWlPiZHkv2kZTncHmbXtlcQOJ5VMpHWEwpXJ6USxooTKyouJQzB1ECVqRdiYl0TFL5vk ViQaX9eqks6iXKjA671LV/sumdhmNXnqp2ldmU8qR2F9NO888s6jBsqnu982KNpqxjc7 IgVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AjMtM8OGnDrbMwcn+8vKnlZdrkOGRhE/5nADc7InRc4=; b=G1Lo1WB/UOWLJ9md5nqz7XOpl815+3y3CBiAIVWjeVu40FIeFwYNmBM2+wM3td/0P1 ZeA/NOKzTjdM7SujGwJf/y6kGjhrSBOxRJ6ddNQI7QqcZ3Q+cLxFU0AJ2bcbGuO4iQ6T 5Ubd3cx3mqkkprDsSSYA9u5wKlzjuA0sBRkkAMX14i3oaBgDovWfSQuzjeZoGEiWs6dM a8t9V2+bC2KYl/oPvC7VX3XdYqNeQNxy6LptpyacI43+PmUNsZOnh/33luSvEDT+TGa7 rEbqEwuYDPwOrNq1QTo/Dufi+DHSL7nL5o+3Ox7XW0kjW/l/O0OHSLY8eIbUin7OnsFw I/lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TSQFJkRB; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cl12-20020a056a0032cc00b004fa3a8dffa6si2836680pfb.93.2022.06.16.09.44.49; Thu, 16 Jun 2022 09:45:02 -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=@redhat.com header.s=mimecast20190719 header.b=TSQFJkRB; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238932AbiFPQoD (ORCPT + 99 others); Thu, 16 Jun 2022 12:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231467AbiFPQn4 (ORCPT ); Thu, 16 Jun 2022 12:43:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 219A9286CF for ; Thu, 16 Jun 2022 09:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655397831; 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=AjMtM8OGnDrbMwcn+8vKnlZdrkOGRhE/5nADc7InRc4=; b=TSQFJkRBWy3mvIQerMvPzNPpML8zeT0oOJPe6Z6WXrAzfYtgo0XC38GHDJkICj+3i9k/ps 8EzERBrf4TEe/rq3FmxDsc86RgyXxqLg1QyMeKB+nFZe8gNAeVoHRcN1ka5A7y1DkBF6u7 xwdZ7fI3mYdQdGrwQICBt86RGeIjSW0= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-653-rzlTIEnfORamicqTFLj-pw-1; Thu, 16 Jun 2022 12:43:49 -0400 X-MC-Unique: rzlTIEnfORamicqTFLj-pw-1 Received: by mail-wr1-f72.google.com with SMTP id i10-20020a5d55ca000000b002103d76ffcaso383212wrw.17 for ; Thu, 16 Jun 2022 09:43:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=AjMtM8OGnDrbMwcn+8vKnlZdrkOGRhE/5nADc7InRc4=; b=JFWJNhssbwF4vHlRmq0WIXHh0J8No5SqdNOjHF8gX7/3EjTa5goqPzto0KSpJCfs7G YK0hdl10qDqYKuGP4T/fNfmzHcNX2JTF7ai5gWOR3Mkzc6geyXtdeM7m5kXpUHn0bljN zEalcX47ZFV8qagZU/pMN8cwiKOYR/wq/hL3cwOJjag58C1rtSRS+3v8jKRFRN+8K/0L uzwCPaln+EmxRZekNQxEvDO7xRPeVDlgsCcUygF3lTj1PwRhncpUNbmtHUE8rxh76rRX gC+tU9Z96AaE1k1bVJJ1NkFiprNDsRlJcSDnMyXqY4Jdi4m1FMnuYwEzDZB/aZPd/hBO NQPQ== X-Gm-Message-State: AOAM533qf8LXMxnUGO+cDEg992337PgvJlDKL/fRQUb50D7MNY7oGxDo dqgNzNE94Kp8Nzt3R95nXnUkIJEagvfpOMpFz82trErSmBZMyyna2gvlUfuxGywRCDxzWE7N7QY 1goc3gpfabJcFRNMuTILMntUY X-Received: by 2002:a05:600c:10cf:b0:39c:8270:7b86 with SMTP id l15-20020a05600c10cf00b0039c82707b86mr16724431wmd.180.1655397828436; Thu, 16 Jun 2022 09:43:48 -0700 (PDT) X-Received: by 2002:a05:600c:10cf:b0:39c:8270:7b86 with SMTP id l15-20020a05600c10cf00b0039c82707b86mr16724402wmd.180.1655397828203; Thu, 16 Jun 2022 09:43:48 -0700 (PDT) Received: from [172.20.10.8] ([185.124.31.117]) by smtp.gmail.com with ESMTPSA id t15-20020adfeb8f000000b0020e63ab5d78sm2381222wrn.26.2022.06.16.09.43.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jun 2022 09:43:47 -0700 (PDT) Message-ID: Date: Thu, 16 Jun 2022 18:43:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 00/10] drm: selftest: Convert to KUnit Content-Language: en-US To: David Gow , =?UTF-8?Q?Ma=c3=adra_Canal?= Cc: Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, mwen@igalia.com, andrealmeid@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, =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Daniel Latypov , Brendan Higgins , dri-devel@lists.freedesktop.org, "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , KUnit Development References: <20220615135824.15522-1-maira.canal@usp.br> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 6/16/22 16:55, David Gow wrote: > On Wed, Jun 15, 2022 at 9:59 PM Maíra Canal wrote: >> >> KUnit unifies the test structure and provides helper tools that simplify >> the development of tests. The basic use case allows running tests as regular >> processes, which makes it easier to run unit tests on a development machine >> and to integrate the tests into a CI system. >> >> That said, the conversion of selftests for DRM to KUnit tests is beneficial >> as it unifies the testing API by using the KUnit API. >> >> KUnit is beneficial for developers as it eases the process to run unit tests. >> It is possible to run the tests by using the kunit-tool on userspace with the >> following command: >> >> ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/tests --arch=x86_64 >> >> For CI system, it is possible to execute during the build. But, we also think >> about IGT: we are developing a patch to introduce KUnit to IGT. >> >> These patches were developed during a KUnit hackathon [0] last October. Now, >> we believe that both the IGT side and the Kernel side are in good shape for >> submission. >> >> If you are willing to check the output, here is the Pastebin with the output >> and execution times [1]. >> >> [0] https://groups.google.com/g/kunit-dev/c/YqFR1q2uZvk/m/IbvItSfHBAAJ >> [1] https://pastebin.com/FJjLPKsC >> >> - Arthur Grillo, Isabella Basso, and Maíra Canal > > Great to see these going upstream! > Indeed, this is pretty awesome! I haven't reviewed the patches yet but just have a meta comment. There's a TODO entry for this [0] in Documentation/gpu/todo.rst, so I think that you could add a patch removing that as a part of this series. [0]: https://cgit.freedesktop.org/drm/drm/tree/Documentation/gpu/todo.rst#n620 -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat