Received: by 10.223.176.5 with SMTP id f5csp452931wra; Tue, 6 Feb 2018 01:39:52 -0800 (PST) X-Google-Smtp-Source: AH8x2278Axko9r+aww8jPFRT01qyN06STg1rOEJyyD+nm78Tb4pCtI8ZeGCwDW96DDvu4VgfgCBp X-Received: by 2002:a17:902:5a4a:: with SMTP id f10-v6mr1812597plm.308.1517909992668; Tue, 06 Feb 2018 01:39:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517909992; cv=none; d=google.com; s=arc-20160816; b=mBi0rs6HSTjznxzMDNhH/FUK7b3sFxWLJp/R3ghdtpSCNdSRrnGzJvfQ2/eAw8h74g wvH9nNPwjuALAUfacs5ed5tRYEwrk4aZx/G+rA6zFLJ/ogvIWZV9B6zOFRd+cf9Gi7X/ mL4LLuIbmJP8nOPNiN5PD2l7FricrWjrWnaDOYFxPduXgqy8Gh7wDUtLMdtt4XqscK3J nBicIZw+6MU8mQHVzYhxW9Bi0+fwgWlttiGtRgp1iUWT9eL1ZCuoGe+utO/XAwu/Fm4H 4Eu9fio3t6+428ngKh5oswSJlubIP/p2CgzOdo2avdQiV3Yy1F08FtxdVTxK0sY5j1f0 IIwQ== 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:arc-authentication-results; bh=fbkZ1X9Wo6eFgWsbwF0HbGsZyYSpU22qVEAqgTpYBFk=; b=iTSJNsD4jn+EpLJ9EPKvb8u5+M+Yk6ZIuEHUj5LHK5nOdTAUlXB7Mw4X2U2YhmkPqd jMmxIU+cuVcvClkygYhu1YdM75vv7ScbKHltCjlgfWC8eG7mrf6qEt/KJk/tssayPzsb xfH1BtLMSZLMvLmSbZNb462s5eAZREEwN0qw6Ggl8nrbvBGXgDCrNhVM31Eiv+JeuMGi 5oJxZhaEM0aBo3tjoq0W1ySmpMW/ST6ISOfFBNq/J98W26kdZPahztz+WtssfGA6R6Bw o31LQYJzOIkHa54zKsnm2HFYhho06BqCveTgrMRfwJZbbaWQWiHCmtxLIDTmJguAb3mq +6mw== ARC-Authentication-Results: i=1; mx.google.com; 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 g8si4579442pgr.797.2018.02.06.01.39.38; Tue, 06 Feb 2018 01:39:52 -0800 (PST) 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; 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 S1752573AbeBFJiJ (ORCPT + 99 others); Tue, 6 Feb 2018 04:38:09 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52714 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752213AbeBFJiF (ORCPT ); Tue, 6 Feb 2018 04:38:05 -0500 Received: from localhost (unknown [209.136.236.94]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7BABDFAB; Tue, 6 Feb 2018 09:38:04 +0000 (UTC) Date: Tue, 6 Feb 2018 01:38:03 -0800 From: Greg Kroah-Hartman To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Linus Torvalds , "Luis R. Rodriguez" , Tony Luck , Borislav Petkov , linux-kernel@vger.kernel.org, Thomas Gleixner , Heinrich Schuchardt , Yaakov Selkowitz , linux-ia64@vger.kernel.org, Fenghua Yu , Marc Herbert Subject: Re: [PATCH 00/14] Add Kconfig unit tests Message-ID: <20180206093803.GC31558@kroah.com> References: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 06, 2018 at 09:34:40AM +0900, Masahiro Yamada wrote: > I am applying various patches to Kconfig these days. > > However, I fear regressions. I have been thinking of unit-tests. > > There are various cryptic parts in Kconfig and corner cases where > it is difficult to notice breakage. If unit-tests cover those, > I will be able to apply changes more confidently. > > So, here is the trial. > > After fixing some problems, I will add a basic test framework. > This is based on pytest. Also, this is written in Python 3. > Python 2 will return in 2020. So, I believe new python tools should be > written in Python 3. > > This is my Python 3 and pytest versions. > > $ python3 --version > Python 3.5.2 > $ python3 -m pytest --version > This is pytest version 3.4.0, imported from /home/masahiro/.local/lib/python3.5/site-packages/pytest.py > > If I use old pytest version, some parts did not work as expected. > If this does not work for you, please consider using newer pytest. > > I will brush up the code more and add more test cases to do a better job. > Before proceeding more, I'd like to get consensus for this approach. > If you have an idea for better implementation, comments are appreciated. Personally I think this is great stuff. I too have never wanted to touch Kconfig stuff due to the complexity, and having unit tests like this is a great idea to help ensure that things do not break. Your first 5 patches should be queued up for the next merge window, no problem (see my comments on the 6th). As for the rest, I don't have any objection to them, and using python3 over python2 is a good idea. And anyone who wants to do Kconfig work can easily install the needed packages, it's not required by any "normal" kernel developer. Anyway, nice job, it's great to see this happening, no objection from me at all! greg k-h