Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp267896yba; Fri, 3 May 2019 01:12:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqysXY5QMCFVOd09p9e/ki7OmMAEkDUKTTPG/n7pRbAaBSQbTLpPSKl7TOrAb9YYHaFawVdi X-Received: by 2002:a63:ed4f:: with SMTP id m15mr8741588pgk.387.1556871137874; Fri, 03 May 2019 01:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556871137; cv=none; d=google.com; s=arc-20160816; b=nC7Sz+O9TLhdNBWAZkcC0wt29LbQKU/PwkoTRuLztvTdcZUeiRPg+96ZtH9a+QqclV Ra1Dn2riRyoNrHLWM2c2zn8656oBZSm/SKJzjNtE2bchknfM0mX7rh2JLc8fLCNGC60w BX2RAxCMXwMbpR+8xlGuStAm/qbwDAo0UQNlaihlObIb8LxO9m7DnxKpjsBrgsyp/ufZ oVs+Kf2dA1qspffQXplDBsRIwnMWNy0TIHYpgaMB8Crcbyoxqcl0Yh9PgKmsiHf3J3SD hvGlHOxuhwkuLI44qR38GcJtzPLgTQHGCpkMK6FWIifhc+pq5/CGUlr3qu+Ez2RA2yol Xzkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rdYb80THpIMJZgyRmWqrAFOhsbOMj8giRSaU0qiqlhY=; b=0kKzIWt/xs0zWiNfCA5+sT31/8jlGvXuL8EM90gq3mgpH4TfKAsTKMvEdvVmoqEE1m RSxXAchWAPWKME0R6B7zXOnKh8SD13tPOLEIeG/rRrDHHd1dl84sVXMt/n2/Xehsj/Bg PlCl8Fzg4qXkljHJYRwUjFGxdDJY/sZO0DHVIOWbIggNW+QH/VO8cryzJmI/uB6xd1j8 1ZPuQ0a6qKJNH8/6BMnW5zc3zpT2stuO8QvW1KMyJb7rCyvquUxo/MUcyDJyKm0pfsyI ZArr2MIAtLzamOVu/fX0XNnXc/PO3m7TSkLhDAruPG60TR81+01hojlOj6gQok0bA9qX GV1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="T/xHj6l6"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si1428091pgo.5.2019.05.03.01.12.02; Fri, 03 May 2019 01:12:17 -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="T/xHj6l6"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726743AbfECGly (ORCPT + 99 others); Fri, 3 May 2019 02:41:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:40514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbfECGlx (ORCPT ); Fri, 3 May 2019 02:41:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CC3D2075E; Fri, 3 May 2019 06:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556865712; bh=qAxjj5uiF5zEnzRbrg8NBWm/r/MITYyDqVpA7K94d04=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T/xHj6l6GTULrzqty/QE9n+V3E7brgc1EE3YPacTpehUKVBEwYEB8Kjpj6eaNywET vOVTIu5pClz9D1ixUfyq2wi+fG23/JAt0fEXA4iWbz4fYGFM70dWGs3kIuIpiDPLE5 z1ZErmGEyIuJkJ4kZlIVEyXnanSfyuAg225XdKNg= Date: Fri, 3 May 2019 08:41:49 +0200 From: Greg KH To: Brendan Higgins 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, Felix Guo Subject: Re: [PATCH v2 12/17] kunit: tool: add Python wrappers for running KUnit tests Message-ID: <20190503064149.GB20723@kroah.com> References: <20190501230126.229218-1-brendanhiggins@google.com> <20190501230126.229218-13-brendanhiggins@google.com> <20190502110220.GD12416@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 02, 2019 at 04:45:29PM -0700, Brendan Higgins wrote: > On Thu, May 2, 2019 at 2:16 PM Frank Rowand wrote: > > > > On 5/2/19 11:07 AM, Brendan Higgins wrote: > > > On Thu, May 2, 2019 at 4:02 AM Greg KH wrote: > > >> > > >> On Wed, May 01, 2019 at 04:01:21PM -0700, Brendan Higgins wrote: > > >>> From: Felix Guo > > >>> > > >>> The ultimate goal is to create minimal isolated test binaries; in the > > >>> meantime we are using UML to provide the infrastructure to run tests, so > > >>> define an abstract way to configure and run tests that allow us to > > >>> change the context in which tests are built without affecting the user. > > >>> This also makes pretty and dynamic error reporting, and a lot of other > > >>> nice features easier. > > >>> > > >>> kunit_config.py: > > >>> - parse .config and Kconfig files. > > >>> > > >>> kunit_kernel.py: provides helper functions to: > > >>> - configure the kernel using kunitconfig. > > >>> - build the kernel with the appropriate configuration. > > >>> - provide function to invoke the kernel and stream the output back. > > >>> > > >>> Signed-off-by: Felix Guo > > >>> Signed-off-by: Brendan Higgins > > >> > > >> Ah, here's probably my answer to my previous logging format question, > > >> right? What's the chance that these wrappers output stuff in a standard > > >> format that test-framework-tools can already parse? :) > > To be clear, the test-framework-tools format we are talking about is > TAP13[1], correct? Yes. > My understanding is that is what kselftest is being converted to use. Yes, and I think it's almost done. The core of kselftest provides functions that all tests can use to log messages in the correct format. The core of kunit should also log the messages in this format as well, and not rely on the helper scripts as Frank points out, not everyone will use/want them. Might as well make it easy for everyone to always do the right thing and not force it to always be added in later. thanks, greg k-h