Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1137431imm; Wed, 17 Oct 2018 14:07:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV63vCtWG4DeN21v75lgLXj1D/r6HZVTT5y4KOC5G6z90f8AL2CfmI64TGwuH+32ggy6az795 X-Received: by 2002:a63:1e5c:: with SMTP id p28-v6mr26197846pgm.376.1539810429012; Wed, 17 Oct 2018 14:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539810428; cv=none; d=google.com; s=arc-20160816; b=zcU2iKaEFzBA7PfSK/B5EYggCHpzzh+wUXI0P+Wl970qIQBwhNshsWtVZvXoJC+sb7 eRuFihI+sBxL0A113TDRi7n9HazjgpDf5nl9f2ot3o2bxl7UBOnDo3iZksIZoPr19WUc CkLeXm7ev9YjEFgaaR75wbMOJbmFIV3GrlNPEUlny+R9pWRSypv1xDfCbKLW4+HYox0+ Fapa7bdhMDoq3QteNA60hj0k3dkAbwtnAakIbOP6THO1+6YJtOa3osyDNDLoeFzfH5UX DxQXXD6b8LI0hyQ0c25ZqOJ24qkLM1Ld2Nvd6bBAQFaHiMxE1S1Xl0AzZkoOoCDMirAA RvKQ== 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=DQdZ8cEneegOiL0i96/Gk7aqT7PU3YBn2efDCgyK2Eo=; b=bMweKBDjFTrGxLN/PZWh+OwRVmIkl6QCVTI9frb0NcSFZRL256F4yevs5uItWnnzO6 1y8vHCTQWAyYwC88gmX9pU+BR0vDofxwoYzd3DGPrl3xxsI9tt9fIIdUi3DlKLIZLFy9 bPz726iR69d+a6fsJASx8WKbI+TbRAg6vMtEbzMfdoWe8sydtVD6ocBLikqcI/iFRvni 4VaCqh5MKRZ5A+/uaJJXfhjjZYZk3IdqKnIQSnFCywmhe9MYqxNYOdYb4q4QB5JuquGX LYSSp/8fx6n22CV1E8eAPzHz0HGkjFOYuwJu+augQ+gbJEl2LWWzE00seb8JKA5ulajN 6pDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=18lb3074; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v67-v6si19424380pfk.264.2018.10.17.14.06.53; Wed, 17 Oct 2018 14:07:08 -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=@kernel.org header.s=default header.b=18lb3074; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727643AbeJRElY (ORCPT + 99 others); Thu, 18 Oct 2018 00:41:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:55706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbeJRElY (ORCPT ); Thu, 18 Oct 2018 00:41:24 -0400 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6C71921486 for ; Wed, 17 Oct 2018 20:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539809038; bh=DQdZ8cEneegOiL0i96/Gk7aqT7PU3YBn2efDCgyK2Eo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=18lb3074Ncuzn0jlTq2wcaaqkmx1KQQ0gKNOMl7z06KhCzrZC1L5GTEoWe2bRrApp syn/VFA2Hq76uiqqqwa9CRUcIE/olOHLm/Y5xWRHhq8MRO7fTpWH7arBCDNmUGbM/1 d+VZHGPags4CNbrlkaJYQ5bFqFkXrIJlvzw0dNJg= Received: by mail-wr1-f41.google.com with SMTP id n1-v6so31183057wrt.10 for ; Wed, 17 Oct 2018 13:43:58 -0700 (PDT) X-Gm-Message-State: ABuFfog0hPw5GP0NXZtwClWeSE5QUoVdSjjKf6qW3GjSsMOsDiMnlFhB Xv44leSY+g3ctOjxcArhWxbfvQk62L5p7y/MmehJeQ== X-Received: by 2002:a5d:614c:: with SMTP id y12-v6mr24692216wrt.141.1539809036713; Wed, 17 Oct 2018 13:43:56 -0700 (PDT) MIME-Version: 1.0 References: <20181016235120.138227-1-brendanhiggins@google.com> In-Reply-To: <20181016235120.138227-1-brendanhiggins@google.com> From: Rob Herring Date: Wed, 17 Oct 2018 15:43:45 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v1 00/31] kunit: Introducing KUnit, the Linux kernel unit testing framework To: brendanhiggins@google.com Cc: Greg Kroah-Hartman , keescook@google.com, mcgrof@kernel.org, shuah@kernel.org, joel@jms.id.au, Michael Ellerman , Joe Perches , brakmo@fb.com, Steven Rostedt , 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 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 Tue, Oct 16, 2018 at 6:53 PM Brendan Higgins wrote: > > This patch set proposes KUnit, a lightweight unit testing and mocking > framework for the Linux kernel. > > Unlike Autotest and kselftest, KUnit is a true unit testing framework; > it does not require installing the kernel on a test machine or in a VM > and does not require tests to be written in userspace running on a host > kernel. Additionally, KUnit is fast: From invocation to completion KUnit > can run several dozen tests in under a second. Currently, the entire > KUnit test suite for KUnit runs in under a second from the initial > invocation (build time excluded). > > KUnit is heavily inspired by JUnit, Python's unittest.mock, and > Googletest/Googlemock for C++. KUnit provides facilities for defining > unit test cases, grouping related test cases into test suites, providing > common infrastructure for running tests, mocking, spying, and much more. I very much like this. The DT code too has unit tests with our own, simple infrastructure. They too can run under UML (and every other arch). Rob