Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp255922pxu; Thu, 22 Oct 2020 22:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjlVdzk3zycjdKM0tsxuA/z+z7u8WIComtM8kw6ny1Ww48Ah4481ITM++d6H8+oE+A6F61 X-Received: by 2002:a17:906:7016:: with SMTP id n22mr460641ejj.402.1603432571425; Thu, 22 Oct 2020 22:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603432571; cv=none; d=google.com; s=arc-20160816; b=aGL73tUbYUaEmiENfGxC4zKKpvXC0JxcqrORLzb6K+Op3GmSaybY9Fss1mRnvf8kxl r3jRNrxgx05ldTXMPHA9IJO6AkEFKnGLNHdpRhems5/8XyFbhbORMzdPgRgTV9YmDYSE yPzxs2ID+68j5UMnPZmBnt9fjCBxkMHCdwRB/wp55ZG45Y7Or7c7PpxtmysjFzvg16Hv peKw37KtrZejNVvpuG8mcgm33YhVXGfjhPgJxZWQiSaFFPJQDnZzXdxnKAu02NMoVBx4 fRTYFmpE8wWYrAertVBzZxjaHcyNgg6WfpJOKztFfAb/EpcavSztfm3M6LRG+vjD/m7B hCDQ== 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=fySJoHhy5YXPAElLVamAnhk0uMbmYI/MuJ+gPrhlm5M=; b=AJpzyG4Zvhl3JkU9gGtHitLiUchvKyvIc/wK0DSRDIEOHj/GnySkHS6jM5P6XPkbVj qDXS9oNySEmv8wsx7eE020ea9C9KhVFkpTWmDW33l4XFtmSVJsdZIVESzhut4YaWZGhf VIO9mrjQN0+SFP00w7IydNvORxn1xftEFbVAqUbbOdIGsonnzaTgaijntVJgWXaLrSgC lOyR/SAayKy/VaYsOgY+YoODoHIWeDyfZHp+znIBO0tcfotHgliNM6ZSC0jKscqKqhvC /doAXZENPMUx+QnbfdIn3Zb0BSypjxIq1pxFCayXqVqlDTdCUPAlTkagGJJjunmtVphZ E+5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aJrov6ao; 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 gt24si205028ejb.90.2020.10.22.22.55.49; Thu, 22 Oct 2020 22:56:11 -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=aJrov6ao; 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 S372249AbgJVVVw (ORCPT + 99 others); Thu, 22 Oct 2020 17:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2897477AbgJVVVv (ORCPT ); Thu, 22 Oct 2020 17:21:51 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C837AC0613CE for ; Thu, 22 Oct 2020 14:21:51 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id b19so1657880pld.0 for ; Thu, 22 Oct 2020 14:21:51 -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=fySJoHhy5YXPAElLVamAnhk0uMbmYI/MuJ+gPrhlm5M=; b=aJrov6ao+8CE/Gun5k6QqQK1z7aQZZ8lKvbtdkftZTGDpMOIypCtDI2KauHPz0xAvd zDM0uWfpckROSxXz1Fz7eok7d7r26AdnAdiaYuYk0VwYQkNT0dKNUFTQlzu7Tsb4EKRH 6M0VyHWhR/6rhgK2MNcQsBZeeFdVLUIm5BmweL4Z5nY08tlGJ18DnAWyQDQXF1lmeRpx P3A1ulvNdXaao3s1oMYrYfI8NQA4OH0nMfwsoPVuPd5dnf0PYbeBWh6wZReOU0H3rZ71 LggDcqgJUFybk56ZG7lLOx+JAlGm5MZQdOci/UnMLxhRZ8nqF9rQsZdx1B4BowBiuV0D BAWA== 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=fySJoHhy5YXPAElLVamAnhk0uMbmYI/MuJ+gPrhlm5M=; b=Kok3ZPCXhrCZ9Yk5xvMnaoIUAF8Tpj3f+zK2mdseUkp0nu/d7Wi7gQJEzw0rKKoLXB BI2dfDA07nmqsfBXlzIRS8WqbIETkaZMuoGlgI8NRaWgUu6D4L3bFwMaYdR7m8Mo+wn/ nrIOoGZ4TFYCiZE2cJNN4ruLGGUKmczUhZIaAR2llND7wbe7qUd548wDXF31wAsoFct5 vLauAXlpaAKpwJb3IjYAgYMHyGcGVg2yaVlCXD8UPGytI1hgjup0M5pO2QMpwGIaTLuk vu6ywlQ5BOXhUFyx/qxLueYgk0LJOq6i3ZP94+L8b9nqQimiBMJsK5U8PfuaphiwGyrr oplA== X-Gm-Message-State: AOAM533PJv11+RVXaLFFFUFWRATLVOoqXvzKRiOsLE2RnA2NhPbgCr6l z9ZKs+71TM2c1NAmAiB9/eS26vJ9Oj6j3r23mUj4Lw== X-Received: by 2002:a17:902:ba96:b029:d5:f36b:44af with SMTP id k22-20020a170902ba96b02900d5f36b44afmr4237070pls.51.1603401711083; Thu, 22 Oct 2020 14:21:51 -0700 (PDT) MIME-Version: 1.0 References: <20201019224556.3536790-1-dlatypov@google.com> <20201022150648.GH4077@smile.fi.intel.com> <20201022190526.GN4077@smile.fi.intel.com> In-Reply-To: <20201022190526.GN4077@smile.fi.intel.com> From: Brendan Higgins Date: Thu, 22 Oct 2020 14:21:40 -0700 Message-ID: Subject: Re: [PATCH] lib: add basic KUnit test for lib/math To: Andy Shevchenko Cc: Daniel Latypov , David Gow , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 12:04 PM Andy Shevchenko wrote: > > On Thu, Oct 22, 2020 at 11:53:50AM -0700, Brendan Higgins wrote: > > On Thu, Oct 22, 2020 at 8:06 AM Andy Shevchenko > > wrote: > > > On Wed, Oct 21, 2020 at 10:47:50AM -0700, Daniel Latypov wrote: > > ... > > > > You need to put detailed comments in the code to have it as real example how to > > > create the KUnit test. But hey, it will mean that documentation sucks. So, > > > please update documentation to cover issues that you found and which motivated > > > you to create these test cases. > > > > I don't entirely disagree; leaning too heavily on code examples can be > > detrimental to docs. That being said, when I use other people's code, > > I often don't even look at the docs. So, I think the ideal is to have > > both. > > Why do we have docs in the first place? > For test cases I think it's a crucial part, because tests many time are written > by newbies, who would like to understand all under-the-hood stuff. You imply Good point. Yeah, we don't really have any documentation that explains the internals at all. I agree: we need to fix that. > that they need to drop themselves into the code directly. It's very harsh to > begin with Linux kernel development, really. No, I was not trying to imply that everyone should just jump in the code and ignore the docs. I was just trying to point out that some people - myself included - rather see code than docs. Clearly some people prefer docs over code as well. Thus, I was trying to argue that both are appropriate. Nevertheless, based on the other comments you sent, I don't think that's what we are talking about: sounds like you just want us to improve the docs first to make sure we do it. That's fine with me. > > > Summarize this, please create usable documentation first. > > So, no go for this w/o documentation being up-to-date. Or be honest to > everybody, it's sucks it needs to be removed. Then I will get your point. > > -- > With Best Regards, > Andy Shevchenko > >