Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp283954pxk; Thu, 17 Sep 2020 03:03:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4GvwpltwRFWhSZDtYlpUcz3+tuDBNfg214TfzGy2fA8Pg9s7FcXo1+eMdwfCvcYgdkLmx X-Received: by 2002:a17:906:abc5:: with SMTP id kq5mr29168424ejb.284.1600336994427; Thu, 17 Sep 2020 03:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600336994; cv=none; d=google.com; s=arc-20160816; b=fWteU/D58Y1Vwn9FdGBnhTouYXdRa36Ka78Xhg6jC0tHasSFHrIkv18/y2+sq1Axc3 QyXmFjMEQ3+yLPEkJjDLFmKARJvzTD5r9lFXsIgNu/QLBp6hbLLtewVht3TRBnM9G+k6 ZOgbsOYhH+UvcKeZLheCNhdlsUKudRLw9mg7yyXVL/X3lsDIZWeIZJE9NISisaruEAJq Fiqn4SgrP+zn1ABmVSUVm624SkjhU7P0OXU0N1SM6crqC/msJLUaPBfDys/gqDIJlpv9 OrkeRCpCehV5+TKzlvKeI4uJQi9k7pQ1D0wYzU7loA2n5b6qFgBApdHLqX459/18gY1Y LAuA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=A0jzmpPFE4a4Kt17tCCXhhI104oBeE2Gtf+KVeXl/Lo=; b=Pkx8F2CzFFN70000YRBr7/HyMLJNGMMqpYrHyRZy5VwHOO+Iugh9Ic1pS6tcO/saow yWL104m7tGSVTnDIUWCanGlWTVo07sMo4TP5tgWgHBQPmFTuq7huWZjaJ0tCWF+ObFyt /R4wpf3lJjeK2ysR2AeQXbA9w4l3Z/32R7b6X6MS1mpZfev+rBVBo7CiniOyckMgJ9B+ ceO1yGYwMMyWNfWErawhAnfWFw9tMqFKQyr5VJVzWvtNxmHOzagwveq+UHJ+3SlhtJtc JND3GIDPij2VtiZnw3rE/fs6+YDvHkn9Zs+/WNwB+36FxvI9tNMhujUKb5YWr0REzLlu Bfuw== ARC-Authentication-Results: i=1; mx.google.com; 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 v5si14584342edx.502.2020.09.17.03.02.51; Thu, 17 Sep 2020 03:03:14 -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; 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 S1726505AbgIQKAS (ORCPT + 99 others); Thu, 17 Sep 2020 06:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbgIQKAS (ORCPT ); Thu, 17 Sep 2020 06:00:18 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF14DC06174A; Thu, 17 Sep 2020 03:00:17 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kIqi5-005Vc1-O3; Thu, 17 Sep 2020 12:00:13 +0200 Message-ID: Subject: Re: [PATCH] lib: kunit: add bitfield test conversion to KUnit From: Johannes Berg To: Brendan Higgins , Vitor Massaru Iha Cc: KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Andy Shevchenko , kvalo@codeaurora.org Date: Thu, 17 Sep 2020 12:00:12 +0200 In-Reply-To: (sfid-20200819_231025_419730_3D8DCC68) References: <20200729175849.148332-1-vitor@massaru.org> (sfid-20200819_231025_419730_3D8DCC68) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-08-19 at 14:10 -0700, Brendan Higgins wrote: > On Wed, Jul 29, 2020 at 10:58 AM Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_bitfield, > > from `lib/test_bitfield.c` to KUnit tests. > > > > Please apply this commit first (linux-kselftest/kunit-fixes): > > 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kunit_config: Fix parsing of CONFIG options with space > > > > Code Style Documentation: [0] > > > > Signed-off-by: Vitor Massaru Iha > > Link: [0] https://lore.kernel.org/linux-kselftest/20200620054944.167330-1-davidgow@google.com/T/#u > > Reviewed-by: Brendan Higgins > > Probably still want a review from Johannes though. Huh, sorry, this slipped through the cracks. Yeah, don't really care, looks fine to me? I'm not familiar with the kunit infrastructure much yet. Not sure I see much value in converting TEST_BITFIELD_COMPILE to a KUNIT_CASE though, because anyway it will not compile if you enable that? IOW, just leaving the function there without any KUNIT_CASE() reference to it should be fine and saves you an ifdef ... johannes