From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CACFEC433E2 for ; Thu, 17 Sep 2020 10:00:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 870CD20838 for ; Thu, 17 Sep 2020 10:00:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbgIQKAS (ORCPT ); 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-kselftest@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