Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3387589imw; Mon, 11 Jul 2022 07:45:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t74bKOLpvS3SRQPFjNjOlBCVLOKamXgzhdtn7TMRRgsvRKpIvT2GSKurXCKQZzQdtSAVNt X-Received: by 2002:a17:907:961f:b0:726:9aee:f061 with SMTP id gb31-20020a170907961f00b007269aeef061mr18666263ejc.45.1657550743177; Mon, 11 Jul 2022 07:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657550743; cv=none; d=google.com; s=arc-20160816; b=OTvnNiJoXKZFCz5ll5l8DoDVUIdLMXL9NgkrYbzMuzdRxNeKpyG3+awC4eRm3dYTlA xHX9xpwkuzENza4UE0XkZ95paebD4TT56wSosM/8DKL00SCCVub5t6r1yFLW+ljitUs+ nNp2h1M8UeW+LhWd1ZYR2IP205ulXypHYb6aE/FmAxmNPt2Rj34tERmsAbxzOSQaSbSR aa2oAj21NdRKeS0zsgj0P5Ei9ip3A2dzLQBap0JnGcl3dQKcRwVe4rBroy4R/E7zvBP+ tKi+Xj0niL2tcEh222U1rLGOlZkWryg3vbmhVrxRZuNghOdP/jJNjgS3bmrbPUJMLyNB LNuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=A6cQ25aRnwcaLYA+THouzTgrCw6BaJucMoUnEGF0gbs=; b=Grwy0kVqLFluCliRhFA1hbjfSAcaL1rWUicTThEznZPjNiM1Msj2BuDeWUg89rx+Fg 67033QlPxgdLFchYY3PyTFRG1T7qCJL3+qawnSrEaqHWhkgv87IQPK+cDBDryMBaGqGI KGwCuuh5YuXnEAriQHKc4wyrgPkgiy/2iF9gr9MQPKAbYraEaqfAoxH7fE7MhP7QySu+ p1wGjXwMW4uR/vx6jkGSCJ6qB1/4k+LF/y/SfacC4hFaPlG7n3G+UW49x0WU+dYmoi6f xr/7ZxxR6/WVNus2UhoTlqcSw+UBJ/4oxBDtiPUaFEITysDFpXOE5aYg5IdIIhSNoM6c Xtmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=S2KwqRIx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a170906080500b0072631a94a2esi9444956ejd.732.2022.07.11.07.45.17; Mon, 11 Jul 2022 07:45:43 -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=@google.com header.s=20210112 header.b=S2KwqRIx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231771AbiGKOm2 (ORCPT + 99 others); Mon, 11 Jul 2022 10:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbiGKOmH (ORCPT ); Mon, 11 Jul 2022 10:42:07 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A32936D2ED for ; Mon, 11 Jul 2022 07:42:05 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id e5so5100618iof.2 for ; Mon, 11 Jul 2022 07:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=A6cQ25aRnwcaLYA+THouzTgrCw6BaJucMoUnEGF0gbs=; b=S2KwqRIx7+KCCa4W4VwX2KnXxEegwxZMR1+YmdkB84FWfA8DBXBCW/4gHLNCZ6ZuhE T3zC/6bjvMfENk1OrzRuiRm2FNKBGL1JZ+BoFuHF2dU2qx7JkQbrrLhysIfAzQyur2nc wgvHhrf4QllwOEm2IdGYsveH2q0HzyBjsdynFt6glIi12Qr1z47LLvrDn5O4NzuMTPln /rpVXi9aVO59C/KkyQpdX+KTyKEBj01GpQdnwfoy1FRHknerDHKRsXEkpesy+xKTZkmG MJv4kKmehDGc6JdkZQdtRBmh+rYxQo5yDjV4Doz9Zotw8hVrnSOPsSs5yGDrkSug5g5a bwWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=A6cQ25aRnwcaLYA+THouzTgrCw6BaJucMoUnEGF0gbs=; b=A8obyLPhyKvLbAUxXmWuNdnEGIbAIsqohXq4el4IAuIHxBgtIt8XmLBjM8ditcYouy NUPwZJzpbPYAJTtM85pKNInZrcxIlcjA2CSt92UG/jzIpaK1Ru62elRZArIT2phVkddO 8etKCeE6GAZe0IeqadcrFrT4+KW0hUwbCHqptC9pasu756Nb3aueMfXNUO9xV8XbhHP6 +vckcy6qpQepH8nha/a6BjwSiawK5G8Fb6XwXGrXM+Fqqvuye4g0tPEnnt/bW9hxp4eN Rhd2YnrXONVPv+1dp21TRIVjhg3ihCkLlCp1MMTsKiNW/1Y4P3W3QMBU7h3caSRIGCyt KrZA== X-Gm-Message-State: AJIora+9GHKA5bVjWRQhqACVlIaYr+WcOd50wweA2vdpMPJL/uk4uTI0 heGeuLmd622yQVGS+TIdzZhNmRS5IaBwiHSQm2Qaxw== X-Received: by 2002:a05:6638:24c7:b0:33c:d725:6f42 with SMTP id y7-20020a05663824c700b0033cd7256f42mr10956723jat.114.1657550524854; Mon, 11 Jul 2022 07:42:04 -0700 (PDT) MIME-Version: 1.0 References: <20220710175043.192901-1-jose.exposito89@gmail.com> <20220710175043.192901-2-jose.exposito89@gmail.com> In-Reply-To: <20220710175043.192901-2-jose.exposito89@gmail.com> From: Daniel Latypov Date: Mon, 11 Jul 2022 07:41:53 -0700 Message-ID: Subject: Re: [PATCH 1/7] HID: uclogic: KUnit best practices and naming conventions To: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, spbnick@gmail.com, j.witteveen@gmail.com, stefanberzl@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Sun, Jul 10, 2022 at 10:51 AM Jos=C3=A9 Exp=C3=B3sito wrote: > > The KUnit documentation [1] suggests allowing build tests as a module. > > In addition, it is recommended [2] to use snake case names for > kunit_suite and test cases. Test parameters don't fall under "test cases", though I see how that can be construed as such. I don't think anyone has stated any preference to standardize the naming th= ere. We currently have parameterized tests using spaces and punctuation, e.g. ok 7 - binfmt_elf # Subtest: ext4_inode_test 1..1 # Subtest: inode_test_xtimestamp_decoding ok 1 - 1901-12-13 Lower bound of 32bit < 0 timestamp, no extra bits ok 2 - 1969-12-31 Upper bound of 32bit < 0 timestamp, no extra bits ... ok 1 - mctp_test_fragment # Subtest: mctp_test_rx_input ok 1 - {1,a,8,0} ok 2 - {1,a,9,0} ok 3 - {2,a,8,0} So I think the old names were more conventional. > > Change the Kconfig entry from bool to tristate and stick to the naming > conventions to avoid style issues with future tests. > > Link: https://docs.kernel.org/dev-tools/kunit/style.html#test-kconfig-ent= ries [1] > Link: https://www.kernel.org/doc/html/latest/dev-tools/kunit/style.html = [2] > Signed-off-by: Jos=C3=A9 Exp=C3=B3sito Everything else (renaming the suite and switching to tristate) sounds good to me though. Acked-by: Daniel Latypov