Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7640609yba; Thu, 2 May 2019 13:31:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAvBtw5HaMQffzSnIGtbIZ9Gv3j8h2yX0fYOg1O0EDOtyHNpfnbVRWQnFJPoR7trWEZDF8 X-Received: by 2002:a17:902:9693:: with SMTP id n19mr5861874plp.92.1556829095169; Thu, 02 May 2019 13:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556829095; cv=none; d=google.com; s=arc-20160816; b=Vynr/hZoyOROpZ1VNmpdXlQ4lY8lwBMKv+qYH3PT/ax690l6AvL6Bp5Jo4lN7PGcZO I0AIRGnnRelPzUEHZ2tRKvGfIBqCG1780AN93I/u/urcuOCXW7W/XZPeAuLNK1/b9s7+ 0n2oX11m/04jrUxRZFcfQEf0MWQaDLVRMx5R3btNuQMPUkw8oJUNfWe5HE0OoFjl778X ngxHKmkF73adW6Zdw6seYGTdeiVfaKGYoxi7sSYXirgpFnmHivUVVv2d4zOWsEfLny3e gtd5JBWjdft0/EDTTQ4NdZM4yXAsc8iRNYqXmJUnEfY5zcccCBN5WWbAyt+Ax3cV/nzO qPzg== 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=EDdiyphkogtVcXTbSVRyR+FjzQZde+G185126UMJh7I=; b=V8vAoK+VqocwCuR+q9iO6G0oZ0bws++661NvYmhTEZ23z8SbIu9pBzNC58LJeDRJDv QYTnOLIKA1v8KIt31zN9IYrqrAB3lBw1d80lFAY83z3jbSm9d6pXhHoxB2gv5+qv460s BnbSeeuRmnOGDb/gYtr+NmsT+xmOTi3sk0vkXr6yJXRrElXfVvduIYj3iyy1dTabXlUx 5vViWVb8Vc36uCJSbmJD0GM0ox2RWBMqF6sVJvp4cZ/2UlASojy9rntVJhYWZSYNnn1c oxWWb8IN23CK6Nj1CwNe8XayoEQJvF8nt89wioYl6E8n5CSsXDikeABHRqEXv/medqOf HG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gITVrJC9; 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 z184si61174pgb.355.2019.05.02.13.31.19; Thu, 02 May 2019 13:31:35 -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=gITVrJC9; 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 S1726359AbfEBUaY (ORCPT + 99 others); Thu, 2 May 2019 16:30:24 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:36623 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726297AbfEBUaY (ORCPT ); Thu, 2 May 2019 16:30:24 -0400 Received: by mail-ot1-f65.google.com with SMTP id b18so3361047otq.3 for ; Thu, 02 May 2019 13:30:23 -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=EDdiyphkogtVcXTbSVRyR+FjzQZde+G185126UMJh7I=; b=gITVrJC9deQ8wHwXinOhDV5dI98+XHC/WuqFuL8GH7a8CRP7Weez43rOFpDLFNlC0p SurYDhddnsqnL5Ihvys33lK/4j+PLxs8IphZcAQuHXXE7X5COStC3ZBhj/5h/Hdg9FPW sQYG3mb/RBDu620PDIXl0abFAqievobMhbfvYW6GdeEoPEN8iXGYFBkxbfpJn8Y1y4f8 F6SjQjXGRwZVR+lGXlZDhrUGxSdzCSH/YiD/bsD5q2GkFQLqoLWuw3S9nlwb/QcTf+/G D2dqk3uPHxSxGLiPz52WCid9DnN+TbYr8zJiLQQDEG4D0HgQVfXL2NqaKqq1E/1r4TBH gHpA== 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=EDdiyphkogtVcXTbSVRyR+FjzQZde+G185126UMJh7I=; b=LMHbZFmDcbtUU5CY/jSRWOIT/XjrpaahRSojX5qhDnW+iAgWKAe+adTYHelLIyOuc/ 4gU1FxmDFOnn0JxGEPIh7jvp3WzzwXQ1/tW1acSvNPmdWQiTTCD04C4vKftEuqcFlHS0 IdCqg8Us8HOPyk/pVPq8zC0cYfpWGZiODmJK3pXjKiAipd1uGcwK6tTdghmNjCwzPBRd T/C0rt6XVl/V84HCfWHoD+8c5lUfDzsNn5LW0j2cERtPQkcVPIi/kkOCcbiBw5cjnQRx EQ2+Q4Z0j19Kb4/Lctg3sIu9Gqd7rXhtP9xkl6sHE+ExYTPCaJclrnuYLAB+trgvE7la 9b/A== X-Gm-Message-State: APjAAAXal4UqoHHOifQwUuAKMsa7I0tt/nqJqgu79KXBltX0ZC5LItqV xnMiLKlvcb35BONxVJkpduV5aZqEF3WrjqJVyBxRug== X-Received: by 2002:a9d:7f19:: with SMTP id j25mr3854222otq.25.1556829023216; Thu, 02 May 2019 13:30:23 -0700 (PDT) MIME-Version: 1.0 References: <20190501230126.229218-1-brendanhiggins@google.com> <20190501230126.229218-8-brendanhiggins@google.com> <20190502105849.GB12416@kroah.com> In-Reply-To: <20190502105849.GB12416@kroah.com> From: Brendan Higgins Date: Thu, 2 May 2019 13:30:12 -0700 Message-ID: Subject: Re: [PATCH v2 07/17] kunit: test: add initial tests To: Greg KH Cc: Frank Rowand , Kees Cook , Kieran Bingham , Luis Chamberlain , Rob Herring , Stephen Boyd , shuah@kernel.org, devicetree , dri-devel , kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, Linux Kernel Mailing List , linux-kselftest@vger.kernel.org, linux-nvdimm , linux-um@lists.infradead.org, Sasha Levin , "Bird, Timothy" , Amir Goldstein , Dan Carpenter , Dan Williams , Daniel Vetter , Jeff Dike , Joel Stanley , Julia Lawall , Kevin Hilman , Knut Omang , Logan Gunthorpe , Michael Ellerman , Petr Mladek , Richard Weinberger , David Rientjes , Steven Rostedt , wfg@linux.intel.com 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 Thu, May 2, 2019 at 3:58 AM Greg KH wrote: > > On Wed, May 01, 2019 at 04:01:16PM -0700, Brendan Higgins wrote: > > Add a test for string stream along with a simpler example. > > > > Signed-off-by: Brendan Higgins > > --- > > kunit/Kconfig | 12 ++++++ > > kunit/Makefile | 4 ++ > > kunit/example-test.c | 88 ++++++++++++++++++++++++++++++++++++++ > > kunit/string-stream-test.c | 61 ++++++++++++++++++++++++++ > > 4 files changed, 165 insertions(+) > > create mode 100644 kunit/example-test.c > > create mode 100644 kunit/string-stream-test.c > > > > diff --git a/kunit/Kconfig b/kunit/Kconfig > > index 64480092b2c24..5cb500355c873 100644 > > --- a/kunit/Kconfig > > +++ b/kunit/Kconfig > > @@ -13,4 +13,16 @@ config KUNIT > > special hardware. For more information, please see > > Documentation/kunit/ > > > > +config KUNIT_TEST > > + bool "KUnit test for KUnit" > > + depends on KUNIT > > + help > > + Enables KUnit test to test KUnit. > > + > > +config KUNIT_EXAMPLE_TEST > > + bool "Example test for KUnit" > > + depends on KUNIT > > + help > > + Enables example KUnit test to demo features of KUnit. > > Can't these tests be module? At this time, no. KUnit doesn't support loading tests as kernel modules; it is something we could add in in the future, but I would rather not open that can of worms right now. There are some other things I would like to do that would probably be easier to do before adding support for tests as loadable modules. > > Or am I mis-reading the previous logic? > > Anyway, just a question, nothing objecting to this as-is for now. Cool Cheers!