Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp157923yba; Thu, 2 May 2019 22:29:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0xdHQk1CNqqJg6b6LSmT7dj0RuVel15+xN/r3f7pKpB2LquOPUt+X5mUYo+ZTv1RvEFI/ X-Received: by 2002:a17:902:e407:: with SMTP id ci7mr7906491plb.219.1556861393942; Thu, 02 May 2019 22:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556861393; cv=none; d=google.com; s=arc-20160816; b=Erv/B6PICIC5t7edaeqNI62JqZWGhDRWCVrWa5oITdXZ0kEESvVIxyndh7SCkLsFC3 NPKF1CLK0bmCv9WImMNiRQXZgxvG155pnrh5xgTgsl5DC5yn5mJsfArzgw7cR49Vno+2 lbmNXJLmZD7qzjFntkgiiU7eJGHg6gX8b1JxTge1l0vOEYMrBje25MkfudW5mzi+SL4d 4nYO2ueZWXedUSyFcQ1Hs+EPjwBmWBmIFPmnOXdwgzz5YcPp8rgDkRIDvgDizL4Nsl0Y e2NXy17l5fi5CQrLokn6Ssdf5ggFHwx/aWi/bsqQ2USIDn4oYZWTbQCtHP67xJn0og1B jKqQ== 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=TcYMhvle0qn3Vbr1jw5wZlfwobq39YCNyqpLb7cb7Ao=; b=UShWpayo1QGqmMOqqQjqXl0eGfJOyVH1fhg60vaJptxKvGupYAaFHuWplhavRmKTua PmbrgAVjta8FWs8hZz8wHGweYbD/kpGnljkmVjqR0kw5/ImJHFXsSFtaV6ySZcz5lkLj YG6cyoPNNQ3saDaES6Trt+UFZkSxNnabCsBVNe5e4JTZoTkg1NrbwdQq4nw28YZ2sY7E AiGrGG38tj31fpSu2HOnZ+k27jxZDjYpVab/H6xxxBzQ9pm7xPz6rGIUAX04fIfDgd37 LQgJK1adacusfQTFEbzjfpJnKH1uTPqapgkNuc88Glo1fUMTj8s0dAkyXtgL5L3SRtso jEPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vMgoD4BZ; 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 i15si1103041pfj.115.2019.05.02.22.29.38; Thu, 02 May 2019 22:29:53 -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=vMgoD4BZ; 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 S1726434AbfECFSf (ORCPT + 99 others); Fri, 3 May 2019 01:18:35 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:45774 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbfECFSf (ORCPT ); Fri, 3 May 2019 01:18:35 -0400 Received: by mail-ot1-f67.google.com with SMTP id a10so4233719otl.12 for ; Thu, 02 May 2019 22:18:34 -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=TcYMhvle0qn3Vbr1jw5wZlfwobq39YCNyqpLb7cb7Ao=; b=vMgoD4BZW5GJfaQp5wHB4n5Uh0dHYfDvtMT6no12+p0edzsKljaBNtH2QSDc0E6VzT LcuVJrv7cdGqX7U8FfKi5bagOC/nhHdsiKYsGPft1mReUq108TVFisXe9TJrijP3ncN9 v39q83CXeT5lkt4WLd/fwqU8g5riscYutv4Dl0z3LH4QLnkrqcMdMPzrzbEAqplHU0Uu m3PA8EGRjwXV1jBeELzeCCKDGehqdroKwQf1lX98y7iQ89oh7pPsirzbD3JpTdCcD6Pl 9jznQM6AV2RqS1bTQE7nMwTk67da6P41iEI1afzG3TYud6oBdVc8/EIcpi2ctCF9A2Zz QXpg== 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=TcYMhvle0qn3Vbr1jw5wZlfwobq39YCNyqpLb7cb7Ao=; b=D7uMTk3soht4NpfXgOCXrkP1ZdsQDNDkydGQwIvirSjevE/DZx46gWseax2m9g4C1y kj7RBZhZWnDuluQLTi+SuQ3I9lVmXs2aTKHgyv2RgXRqbh/zaTKs/Jh4AJfQLwiABXqd ptmUiK3QeQ9YabAPNQ+yFv/q7hsRngSlgXU7RZBukCW3L3Adn8E2QdVnjg4BiZxt+uct q2tfZ3XiEa94VZidLsb0mqTdDsmroTs6Zra9g/bDVQAEjXWvJfscex/BQrslu+ZSljJ+ XKTHvhvjqVdYScXgAQjmEKyh1FvvnNDIeZsPPKS+ielibq3wG1w0FfPJNv91946ATbwU iquA== X-Gm-Message-State: APjAAAVsrCnHIPSsXWsCmkXXWA7Eg/DnVHI8GkfyLaffLUkdd1gHx9XR oIjwO5XarDthyF6YrPvgglxc+d8H1HM7VPSBQetsrw== X-Received: by 2002:a05:6830:204a:: with SMTP id f10mr4960513otp.83.1556860714114; Thu, 02 May 2019 22:18:34 -0700 (PDT) MIME-Version: 1.0 References: <20190501230126.229218-1-brendanhiggins@google.com> <20190501230126.229218-8-brendanhiggins@google.com> In-Reply-To: From: Brendan Higgins Date: Thu, 2 May 2019 22:18:22 -0700 Message-ID: Subject: Re: [PATCH v2 07/17] kunit: test: add initial tests To: shuah Cc: Frank Rowand , Greg KH , Kees Cook , Kieran Bingham , Luis Chamberlain , Rob Herring , Stephen Boyd , 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, skhan@linuxfoundation.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 Thu, May 2, 2019 at 6:27 PM shuah wrote: > > On 5/1/19 5:01 PM, 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. > > + > > Please add a bit more information on what this config option > does. Why should user care to enable it? > > > +config KUNIT_EXAMPLE_TEST > > + bool "Example test for KUnit" > > + depends on KUNIT > > + help > > + Enables example KUnit test to demo features of KUnit. > > + > > Same here. Sounds reasonable. Will fix in the next revision. < snip > Thanks!