Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp709380pxu; Thu, 15 Oct 2020 14:39:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfu0h8GwmknhI9hTs1/2qwRjAAMDUuGFhuLjTGvQ4CDkZ4QgBeKRz1LzMCF1Bd2KnVZ7Ep X-Received: by 2002:aa7:c1da:: with SMTP id d26mr476283edp.135.1602797940270; Thu, 15 Oct 2020 14:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602797940; cv=none; d=google.com; s=arc-20160816; b=FczuSHGVToqocyMTKjElXjpkwlkQLWEG1hg0jA6OCe3p/QYgMI70TBBA3YfQhe8sQj b7w/c6jt2ShM3uukUW5X5NUTvHcMlfjuyFgPzjTOI/w4DBdySEZKnRwxYksxibC0MKAT 0uCwrvWj0UwcSvgOcKfqn4VdsfZsG+PbcVU5Q2QwY82za8cT3H472hMRbCqyLSE7ciYk LJCJhKuWPvYGz73CpaGmpDa1rgiXNxDPG+QJ6WyVnR2NVVCCPnyeqKlCkbS36Sq1F9F/ zu5Fwfov3/alU1eKgyg7dIJQyeeA2T/tw4xsusJ1gvfNxyBlJiBc9x3u7nqpjtxDK/Lr diBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wKh+0HzGrAAmsHpcRBa9cGPedjwN4QDV3FOpmLuMWLo=; b=mBdlQs/Goe+uy+sI1FyC4MuRehEc3rYFMMjrUj798+RQEX3XbbkzzG8S7+mWY0HEaM JBDect5mSUZK4cE8dF3Qk0x17zwnWk8M/Spbnuu1uV1piMbY2+bR/ni8mztP2TZ9r7eS k9Bf2zVnmTxSJde/SvFWHC9qnmAqFJghG2akJ9WpmH6G5iOhmxnRnqPP2kifh8oOFUKc nNETVXgyths5Ks0PosVntUS3iQzCxt3RuDnuiaKhHz2tEOqQIhdH2jh7/ZYPnmFSwpBF F/uIsrdKV8mZk5G8DHwNcOfUatw8qMYc4WOnkL5PaY1TND2V+I+Zb7NNXFe8jB03CqJN 96bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=nd45TYeM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si186513ejh.535.2020.10.15.14.38.37; Thu, 15 Oct 2020 14:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=nd45TYeM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732429AbgJOR7o (ORCPT + 99 others); Thu, 15 Oct 2020 13:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732414AbgJOR7n (ORCPT ); Thu, 15 Oct 2020 13:59:43 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66599C061755 for ; Thu, 15 Oct 2020 10:59:42 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id f140so2986453ybg.3 for ; Thu, 15 Oct 2020 10:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wKh+0HzGrAAmsHpcRBa9cGPedjwN4QDV3FOpmLuMWLo=; b=nd45TYeMyASH3X2XxyTeQWZp5/vlwX5hzsc+o/t08Q0mcf3EzG7hfRG8B1D71kPDWv P4L/Y/FlKsu2tu7Hh7zScMTUyOH5KveObkxyPvPnTPo/3YQGSGWyzfTpdlC9qrqlWW80 bU3Y+hf6NBmSUxGCm1Ea5ywrqXNTBbup7F7JrkVdmZ9fqWJaNqiiyv6oMVnxA0dD4DQW yvRptvHtkPZeT1eKFJzz8kFPSjeuXpok189ISDQrsKGL9r0maF+t4jH6/iC/BDeO+yfW 0d/IgKhp2D1d8YfF4auBqFG/Y3OYKfTfzC5DI9/wE5eUDaA8XTJjRdP0Wmg7sWGTD/bd gHHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wKh+0HzGrAAmsHpcRBa9cGPedjwN4QDV3FOpmLuMWLo=; b=FAJl3SJ0GQB9/45voY3d4MV6fvXvoIlzwye33EXzQz6Z1HMc9rWw468KqRtp83xOhE vkESLFH8EdKO1yo9NVDk1+ptpLSC54+pTxNzu500vn/VqjhB/+AmFHh/5dMwjv6w2NMa oqvrxRwd76RmvOdCq7OvbosT/sDJYXIFgBkbZoQMbHx4Hl805hyM82OpPClOzcgZsRwi +WPV2yHoDQqwyl7MBzAIgcNMISJQ9bcK1NzL7AGCqMrcnHBk00qcTv+YirN4pb8BloFr H5HbuD7pLW3a5QAmkyY5cgBPd7TVbkd6bNsx+nAnsF4rfctmlRmBA7US/l+CD/AcmbKQ FGKw== X-Gm-Message-State: AOAM533RAl2rPiGBOg01GkJ8z4GhHq8k4BjxVSccQZG/qRbsWQ4qAVGq cAABKzUN3dgYb/+ys45ouay+cupWotTHpz2yf4Phzw== X-Received: by 2002:a5b:1c4:: with SMTP id f4mr7199645ybp.205.1602784781497; Thu, 15 Oct 2020 10:59:41 -0700 (PDT) MIME-Version: 1.0 References: <20201015014616.309000-1-vitor@massaru.org> <20201015174823.GY4077@smile.fi.intel.com> In-Reply-To: <20201015174823.GY4077@smile.fi.intel.com> From: Vitor Massaru Iha Date: Thu, 15 Oct 2020 14:59:05 -0300 Message-ID: Subject: Re: [PATCH v2] lib: kunit: add list_sort test conversion to KUnit To: Andy Shevchenko Cc: KUnit Development , Brendan Higgins , Marco Elver , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Greg Kroah-Hartman , tglx@linutronix.de, geert@linux-m68k.org, paul.gortmaker@windriver.com, akpm@linux-foundation.org, torvalds@linux-foundation.org, arnd@arndb.de, elfring@users.sourceforge.net, mhocko@suse.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 15, 2020 at 2:47 PM Andy Shevchenko wrote: > > On Wed, Oct 14, 2020 at 10:46:16PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_list_sort, > > from `lib/test_list_sort.c` to KUnit tests. > > > rename lib/{test_list_sort.c => list_sort_kunit.c} (62%) > > One more thing. The documentation [1] doesn't specify any name conventions. > So, please leave file name untouched. > > [1]: https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html This convention hasn't yet entered the Torvaldos tree, but it is in the Shuah tree: [1] +Test File and Module Names +========================== + +KUnit tests can often be compiled as a module. These modules should be named +after the test suite, followed by ``_test``. If this is likely to conflict with +non-KUnit tests, the suffix ``_kunit`` can also be used. + +The easiest way of achieving this is to name the file containing the test suite +``_test.c`` (or, as above, ``_kunit.c``). This file should be +placed next to the code under test. + +If the suite name contains some or all of the name of the test's parent +directory, it may make sense to modify the source filename to reduce redundancy. +For example, a ``foo_firmware`` suite could be in the ``foo/firmware_test.c`` +file. [1] https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=kunit&id=2a41fc52c21b6ece49921716bd289bfebaadcc04 > > -- > With Best Regards, > Andy Shevchenko > > > -- > You received this message because you are subscribed to the Google Groups "KUnit Development" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kunit-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kunit-dev/20201015174823.GY4077%40smile.fi.intel.com.