Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2812089imm; Thu, 18 Oct 2018 23:28:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV61yR9k+HCwxjCx0Bqv5veo2Bl7puCH2jkuEuEpIVrDtkOpRnsCNl8+4lXRlIYrpPRT6FX1B X-Received: by 2002:a17:902:9a07:: with SMTP id v7-v6mr31899602plp.14.1539930504332; Thu, 18 Oct 2018 23:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539930504; cv=none; d=google.com; s=arc-20160816; b=OGIaTRRTYUCG2mE7CvviUB7Ygqf7FrzqF0JlxTz80HL9gYbusBIf+muwptPckofSxc X0bwj15DoWFdDegL3+gXz4Nxw8W6IopxADLNM7B/UwhjSRhVXarnJv3p7+Z+mDNAbDKS HOr+yRz5nxq6+i2YUbP0XUlyWvNA2Fe6iwNsQzWc3kK7DT+Ww2C961HNDOrh7+eB33vl 4UZYxWj3UShhUWL9KCGA37IYSIINyJgnXjtS5zsmchqHnKQPi6iJCTXR0aWtVyJV0DEv fs6PnC9J/fuTWJrv6Nzvqzoxm1IJ+lUtbe9Dr31B8ZIJsBbCq+HLbvCyG9ngSlIPXuGI 4ONw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KnbaLEG+cWjwJM3pc0T0eu27jN7it+YIIDvRTUmWHhw=; b=jfJke/kQ1synYv6hN6KT9a4tP574Pz/Pl/OpcEzoLZvGyjWphVYge1KaKxupv/k9XG yCErhwco9hRc91o27B1fP/bZ4W7W8Iub/BtBy/GVgDRpqXhjuh08QTdyk2s4qtw+BSem uN7rNLxhzMpBTxMmEJ2xnOc57DkGzSvGYx/j3bKDg7Y/yBnuiVaqtdeOUmNjmShM+kd5 aqSaibOloRyTvwGXkk8skmPh93MGC7ppyaVrjQ+Yc6BclxbAm6miLbowGxt6OwreaAH3 q2BcwVEftRLEZF8cH1aUTN6mtkh8KNQHmS+oicExhG8zdU7iRCOdCCGgZs9RUcbB9xeO Ua1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AQ+XYRPU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z16-v6si22288493pgu.525.2018.10.18.23.28.08; Thu, 18 Oct 2018 23:28:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AQ+XYRPU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727008AbeJSOc0 (ORCPT + 99 others); Fri, 19 Oct 2018 10:32:26 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:42617 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbeJSOc0 (ORCPT ); Fri, 19 Oct 2018 10:32:26 -0400 Received: by mail-ot1-f65.google.com with SMTP id c23so30398540otl.9 for ; Thu, 18 Oct 2018 23:27:46 -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=KnbaLEG+cWjwJM3pc0T0eu27jN7it+YIIDvRTUmWHhw=; b=AQ+XYRPUcLNLvZwhqiXCv5T6EC7oXA3QE52V26efkVi+uNfaLQ+x9bHLk76i3JmDNC SeDJlPCJSI9SyMT45N99q9S6+yDUsuAfGoFOlk0y9eBCtOybo9C367OLY/5bDWC2N/I/ I0Q3Ove/u7nFWG+5xCBRo8PlqH9hOtQPih8vRSrc7H3rga73N3CLvj+NQ1tM9C9HCXSv aDT0sv8WOnNSDFbubmMlCjhJ44Udfwlp6j1e/9TC/LlkGMs978bpZFv0M/vyRCBqfd59 S3q3Az/kL8KaYQvhH7LUFQBXTaO1c+a1Rh53E/1PDewC4a5igWvMOny9fvPk1EGqxmEE RhhA== 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=KnbaLEG+cWjwJM3pc0T0eu27jN7it+YIIDvRTUmWHhw=; b=nkLCSFJmaSqJSspci2yc1abfjfe1PuyhzGZUIhu8RSAMc2/8TJ6S71qZ2/D/zLE/Ia xp4TIxrdAMgVLb6Ykg8KpuxcUasL11Jjiaw5H7sb8KnEPYP9YR2oup2fDNUQJBgZlMt+ WpvKxBYma8GDfRiGYA/dEGBTvr/uBR1YrT42O7iGrZfQxPhVJullppIewJNiYRnoVWTt 8e4gNKwCEMx/aiFiAvQs3FH85XXaTUWuQwyoHsHsFAKhxlz2pmfd0gCO4gmjXXNqGmjZ 6PoVxhFz0Bk2+NQfkhXtlAVuzNopqacbvUHgnFOI8RTNWa+7Froq1FciNQj+V4BcZTI5 aNWw== X-Gm-Message-State: ABuFfoiD3x6lG3mjbzqrG6raz/XD/SNHZGV5zkVDqJFy7+nqCFnMTA/b 4H0RyA/YPabQ64U33DSsrwkbg2iIdtjjJmqQAVZrhg== X-Received: by 2002:a9d:2117:: with SMTP id i23mr20309471otb.230.1539930466143; Thu, 18 Oct 2018 23:27:46 -0700 (PDT) MIME-Version: 1.0 References: <20181016235120.138227-1-brendanhiggins@google.com> In-Reply-To: From: Brendan Higgins Date: Thu, 18 Oct 2018 23:27:34 -0700 Message-ID: Subject: Re: [RFC v1 00/31] kunit: Introducing KUnit, the Linux kernel unit testing framework To: dan.j.williams@intel.com Cc: Greg KH , Kees Cook , mcgrof@kernel.org, shuah@kernel.org, Joel Stanley , mpe@ellerman.id.au, joe@perches.com, brakmo@fb.com, rostedt@goodmis.org, Tim.Bird@sony.com, khilman@baylibre.com, Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org, linux-nvdimm@lists.01.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 8:55 PM Dan Williams wrote: > > ## More information on KUnit > > > > There is a bunch of documentation near the end of this patch set that > > describes how to use KUnit and best practices for writing unit tests. > > For convenience I am hosting the compiled docs here: > > https://google.github.io/kunit-docs/third_party/kernel/docs/ > > Nice! I've been using mocking techniques in kernel code for the > libnvdimm test infrastructure in tools/testing/nvdimm/. It's part unit > test infrastructure, part emulation, and I've always had the feeling > it's all a bit too adhoc. I'm going to take a look and see what can be > converted to kunit. Please include linux-nvdimm@lists.01.org on future > postings. Great to hear! Interesting, is this kind of like the nfsim stuff? > > I'll shamelessly plug my lwn article about unit testing > https://lwn.net/Articles/654071/ because it's always good to find > fellow co-travelers to compare notes and advocate for more test > oriented kernel development. Most definitely! I will take a look, and be in touch. Cheers!