Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1141671ybl; Thu, 23 Jan 2020 14:28:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzfvQXEYV1AeTcskvx4X0vIh6rqdGU9YSRPvUorHaEH1lFoAwqAVcanA5VKd5xyaEIeZGGr X-Received: by 2002:a05:6808:6c5:: with SMTP id m5mr109587oih.106.1579818494802; Thu, 23 Jan 2020 14:28:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579818494; cv=none; d=google.com; s=arc-20160816; b=0BhGR9sJWYzVTlGVtfOnwS0P4CrC3Lbf0EznnyLRxPR4lLpefN3T7yRQcVzw7dWs+L CuHSaReq6HixGRoHGQ5Q3rtpjSfqiDkse8gCq3sP5gCvIsL76kaDXwlGTg/xExS8bYpc cmL5MKZxN3elRaDr8Fu/BLrZBx+THcgy7CpQHEmUTfowCDl2xmuyzvVTLSHK3+siJSry vLxJR5yahZO+hdBe8kXbpugNXQIULrlyfFv0vittvj1eHv3lxlvtKAwlGH85J3muvLbF 1s8Zqh40AyMW1CKm2oPA0T5nIDPWJOpteFZyOMltokZDdNd0/VIfr0B+qEyAur08GNaX Trng== 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=OcBMCg1xOzuuW9uSCm6RuBHipcVvLSbNOERfrixtjfw=; b=cQWb3fgj1LvJ20e578x6yYtX8fqgpsQs8lQWar9b0aUvRE79uD4ETJ3eVYJaMUeU8c sccB/TGuJnpdO6t2s71VD9YHjN6X0ZHS9BQNkNT4dd6kIVZsIZyFKSGpd2hQirmam0GM rLi3y/teBfK7aMEtrY1BXRg1SA6/+UzG5PH4zK9KkXB8ez7sayEJS/bpm1GCg7tPC8GW 0mwnGQHMLrGM/Kw7tI1NwPi2OvUahci/NqRWwdMjdNZfKo4//xLLwkpGnOJa+kTKta1M fG0mBsgPkmfEJ9ebwGyRvmbBBhhoVlv9HKmh+EQOIPSXxXHYPIDVKMZwvA4EWeMcKBKh H3vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=b9GWqrtr; 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 h7si1578185otm.165.2020.01.23.14.28.02; Thu, 23 Jan 2020 14:28:14 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=b9GWqrtr; 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 S1729359AbgAWWYS (ORCPT + 99 others); Thu, 23 Jan 2020 17:24:18 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46973 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729324AbgAWWYS (ORCPT ); Thu, 23 Jan 2020 17:24:18 -0500 Received: by mail-pl1-f194.google.com with SMTP id y8so1942864pll.13 for ; Thu, 23 Jan 2020 14:24:18 -0800 (PST) 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=OcBMCg1xOzuuW9uSCm6RuBHipcVvLSbNOERfrixtjfw=; b=b9GWqrtrUDOalKZJ/E1LqNXVXf6S+C3hC+aj5zlQnpRC/VykOQvI6CgYh0W5RXWe73 DI8bJcOKkAjNZZwfSb6sUzDd9fBl3tfbBxlaf7q+pBKLVrzXBY+pmvwnPV3LPiUihQQd gad7Vvuw2ffN76CvxqII8GsCkph5NyMhM09pEMN1xHbJbZypajrTiA77QKFbbo1x6LrF L6c3yZt7HZdr074aKVvFrLNR+ebebwOBDFIhf5lcDnp15TmRwNuoYheg1r7qNJozhi9s +aokUyit201tb1sNaPHQMJ+vC59rXe/8iHAMyZgfYbC49FMXMB7cd27Zwu72uG8ElIIU prig== 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=OcBMCg1xOzuuW9uSCm6RuBHipcVvLSbNOERfrixtjfw=; b=lt5qDernrFm/QE1gka98KzQpXinDri6nrGeD8zcSj/jZHiuhFLEc3iujIdUbLIMhm+ PRwFws8Ly/VRnJPoE2M0eSqBnNEOUnCMl63cHrOadF3faux6xCGSES/u5t07RqDEry7H RyKBKpWarNJ5hazYsPjWpPA0GbEZVxww+LKdisK65ft4zPCcyp/qF2Nf3c6xXCXaJDXd ZlIOXeS+yg/MSzzjmdhK1DOZ/x6fSLTynt6+qaPPG5jwri2zCJeQdKbtXLhYyfdnP00w uuFiVXLvFUiPkdlD7Rw2y//2mzdDmsbSCrHeN1o4SrW2gyyIKS8zXrNUcXwXIXHlSKN0 M+Ww== X-Gm-Message-State: APjAAAXB1lHsI9j0wriL69GFs45HIN/8EQMCBPyFFWZzX5uJCVGXhNYU sRZaa1sKa2jAGhQ+VErPL36MwFRvaXKujtfXs0sWlQ== X-Received: by 2002:a17:902:fe8d:: with SMTP id x13mr352820plm.232.1579818257575; Thu, 23 Jan 2020 14:24:17 -0800 (PST) MIME-Version: 1.0 References: <1579805221-31905-1-git-send-email-alan.maguire@oracle.com> In-Reply-To: <1579805221-31905-1-git-send-email-alan.maguire@oracle.com> From: Brendan Higgins Date: Thu, 23 Jan 2020 14:24:06 -0800 Message-ID: Subject: Re: [PATCH v2 kunit-next 0/3] kunit: add debugfs representation to show results/run tests To: Alan Maguire , Luis Chamberlain Cc: Greg KH , Jonathan Corbet , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , "open list:DOCUMENTATION" , Linux Kernel Mailing List 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 +Luis Chamberlain On Thu, Jan 23, 2020 at 10:47 AM Alan Maguire wrote: > > When kunit tests are run on native (i.e. non-UML) environments, the results > of test execution are often intermixed with dmesg output. This patch > series attempts to solve this by providing a debugfs representation > of the results of the last test run, available as > > /sys/kernel/debug/kunit//results > > In addition, we provide a way to re-run the tests and show results via > > /sys/kernel/debug/kunit//run Ooo, cool! I like this! I was actually thinking about doing something similar after talking to either Shuah, or Luis, so this is great! I think Luis will be interested in this regardless so I cc'ed him. > Changes since v1: > - trimmed unneeded include files in lib/kunit/debugfs.c (Greg) > - renamed global debugfs functions to be prefixed with kunit_ (Greg) > - removed error checking for debugfs operations (Greg) > > Alan Maguire (3): > kunit: add debugfs /sys/kernel/debug/kunit//results display > kunit: add "run" debugfs file to run suites, display results > kunit: update documentation to describe debugfs representation > > Documentation/dev-tools/kunit/usage.rst | 19 +++++ > include/kunit/test.h | 21 +++-- > lib/kunit/Makefile | 3 +- > lib/kunit/debugfs.c | 137 ++++++++++++++++++++++++++++++++ > lib/kunit/debugfs.h | 16 ++++ > lib/kunit/test.c | 85 +++++++++++++++----- > 6 files changed, 254 insertions(+), 27 deletions(-) > create mode 100644 lib/kunit/debugfs.c > create mode 100644 lib/kunit/debugfs.h > > -- > 1.8.3.1 >