Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2623206pxu; Sat, 10 Oct 2020 01:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOVVcyKo3yP1Re7830ky2rsxl1WT16VPnVcr22IPED3/g+5UFvg/FO7KlnTxwIOBfHu98k X-Received: by 2002:a17:907:4365:: with SMTP id nd5mr18807189ejb.56.1602319413525; Sat, 10 Oct 2020 01:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602319413; cv=none; d=google.com; s=arc-20160816; b=vy6EH7fLI6a2TxieUIax68ttvMOLhDYTJvm8MYygXEfBnbV6/8IiJaO3Rnazu3tLSG AH2qklaUgLiKafh+dVZy1IB6SdZZSBhQahsGaMsXMTCzDA5/ZUrDhsy+oU2+1vl9Bm1J Y/7mrJgNvbeu1OHYo0e2/2TkopetsebqrM2cIK/wEWqKMt4s+B+pcC1PJ2VjKjRMyFRI wetuiuwbfdVpT1wnK7EYyfzvr3GL+Tqiu9MKKAOJ1WiMl3es85GJDgGDZpYZwP53GO7f LUO3NHOM2mlelAShjZ6VoslBBG+Bv8pK2yYBIx+u751ilQp/MkH24SRUPTiuHkl2L89V elOw== 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=kFwAQEfRAq8FtPUZLvTkvSzxZYBk8EF9wpuaJH7X7GY=; b=M7ZuZni6jvSeoXzPnsPsTsszTe16LDaQvRXBx0QAf/wuUkWXdGPF52fKEYmnIlgIxt H8Ko9MgpYRr+NvKXnn+iZLz+oFPXCFyi6l6Zap3DpeP2OaJ9kF4mW3TW2nmq/vIaLnTC ePqzAZjf1R+v/ghkGjUSbYQSHQ0zhA6frePW7a7zkZ6PanOrh2sym/TCvW24+JO5qBg9 WpvXPpNKBH9LiJrXiT4paPesp3nGvcsGgB9BjCMz6erAM+xJN6vxN04NqsuTNLypEVpP jHMncfdJMFhA7zkiU70l6VAT+4FpJr82ayxztmD9ZFB7+TihSZeiXVXrA5uRz1plSi29 wRWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Igmi6UxL; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp15si1110041ejc.59.2020.10.10.01.43.10; Sat, 10 Oct 2020 01:43:33 -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=@google.com header.s=20161025 header.b=Igmi6UxL; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730823AbgJJFqU (ORCPT + 99 others); Sat, 10 Oct 2020 01:46:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730820AbgJJFnl (ORCPT ); Sat, 10 Oct 2020 01:43:41 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8107C0613CF for ; Fri, 9 Oct 2020 22:43:39 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id o8so5528360pll.4 for ; Fri, 09 Oct 2020 22:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kFwAQEfRAq8FtPUZLvTkvSzxZYBk8EF9wpuaJH7X7GY=; b=Igmi6UxLzccnc2TE+34dHjbp7LfrvPqUECDYUDNjjBAoj8bFcnZ3pUuS4pD13CdsnD JTufCaRuZFI8EFfJd0gdMJpn9Ymuq8gsJ4kXo/OjGkmniazSyqGkzY/shaG/K6cCv3+V /8k3/Y/OYtNOGCnAvebc9+0xVEXF+Cx9VXwm6LrtTxmPD068srK1ZYPmeT53A/+g5zyw q5YUatkkQx02jtC1/dVLADaxbFPPpgVNk2HnFKYkk/x1lwooJUsK84UOeU5l2DMYsS2N eXZMnpTWTG3t5oF8FcwupyOdGPoaRDLhOQq7RjubF48NNKCi4OTSZOhTqkONO1++xdLW IYKg== 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=kFwAQEfRAq8FtPUZLvTkvSzxZYBk8EF9wpuaJH7X7GY=; b=Qlu4FcIGYXAcm3a4RYOOvNkbq5LxO7GMqSmz+ysBHjz8U7RT5Cb3sDHGCp3aG347CR ZSEa7kwF5EoTv7RB3XSDW60Gkqst5ruNUNGTI9UgEoDb3P8Zs86uKa3cXQhVtAZwO09u MAEn9F8hyTcJivWY5jyNeVi5JXnzFKole+w54Ih2NCYjMy3PSDrYS5FP4RQi7wnWM0E9 7NeLTXAzPzax7U+kZ9Xx/K5uxbG5Fmw7DXgmTJXBMAlPB/pKDcYV0woZSUvPkphkTHht OqZVeoM5XlLMTgsKizd2CZ0YnNAYa+Cx5coPX6jT01zYtdj83ppcFgKhkYBTGJ6BNPuS PQXA== X-Gm-Message-State: AOAM532+/LP43hNEv2FQ8JP42GvPEP5Jl4MIqUNwC0xaS1IoRI0EcPQO K2VyOEOpUQjYei/szZsqTSeWWmXZQq2ZelecNhZb1Q== X-Received: by 2002:a17:902:7087:b029:d3:f1e5:b629 with SMTP id z7-20020a1709027087b02900d3f1e5b629mr14635001plk.51.1602308618238; Fri, 09 Oct 2020 22:43:38 -0700 (PDT) MIME-Version: 1.0 References: <20200729175849.148332-1-vitor@massaru.org> In-Reply-To: From: Brendan Higgins Date: Fri, 9 Oct 2020 22:43:27 -0700 Message-ID: Subject: Re: [PATCH] lib: kunit: add bitfield test conversion to KUnit To: Johannes Berg Cc: Vitor Massaru Iha , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Andy Shevchenko , kvalo@codeaurora.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 3:00 AM Johannes Berg wrote: > > 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. Cool, well in that case I will apply it. > 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 ... Well I think it is also the case that we only want to count the test case if it actually has everything to run; that is a point that is somewhat up in the air. David is exploring adding the concept of "skipped" tests to KUnit, but we don't have that yet. Cheers!