Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp957231ybl; Thu, 23 Jan 2020 10:49:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw6uE2PY7R7ZCIQW4eaur1oR32CN5mURHG0CAO7tU/tmNb/t11fGZdjreh3fWGmB9486xFa X-Received: by 2002:a9d:7ccc:: with SMTP id r12mr12812791otn.22.1579805382625; Thu, 23 Jan 2020 10:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579805382; cv=none; d=google.com; s=arc-20160816; b=AePK1I0kjbyWCOQOJHGomDRux5u7V+gLYgEO5P29EIqFUaW1DEheSmOQFHXFNYuUCP IKHMfxk0CeIAEV/GfrvlTz31tMIG42kg+j41pdZ1jw2LVz4aVGEpeDMUYg/UAaEquwkS f0Pnh6Pr6JJGCmfZxP88/4y0G7Iit2A5EGiNFqIQGcUUWr+GETjaSGZ7hFb75AircQEe v6HZC5RLnXHbZvi3OtHI8pL+rmgFDaC93NCIQR/Sh3knzbdJXOVQWdYKV7x6G8la/RHW NQEyc/DEGQGu4IaIqoqSh2InY2Q8VFjdjDFQ7EHkDRr1d4J9wcyypeyf11sDkTlgNK/g +WKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Qp7vLIF4+itHswU2F+ettpG5KHMtj1kxr7/UZnRz1cc=; b=Q4GMGavrVXcuFBw0irCARFHHQ6zo7X+mfsQsqLs7Y37qPkPf7oQGZfAOzSRT95WI0g LpDggCNVOzhFLMUFakTZALVmnSfDlQBF7Z8HylzDfTYdZ2L54g9eqHLJIEexb0sgDoI/ 8pXX3XqFfwzwQBqH9HBfu79BUvYAwzdCdRo7dWvsYCcssXr88Zvuie0XGCaCmS71ZfE1 TVc4dO2BdivSjms1XThMw/07Lzq1zzJf1dOKsifeB5GjvnCsn9nrmVryzYrIsMa7KOes wAdfcqfVC9Qyeq9sjR0aO3g5i2q1r4/iPWS84jF5QAzBoHqkkfu9Q2dukPSO7QuhJ7Bf QIcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=CoItWY00; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z194si1241929oia.50.2020.01.23.10.49.30; Thu, 23 Jan 2020 10:49:42 -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=@oracle.com header.s=corp-2019-08-05 header.b=CoItWY00; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729095AbgAWSrd (ORCPT + 99 others); Thu, 23 Jan 2020 13:47:33 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:41634 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729074AbgAWSra (ORCPT ); Thu, 23 Jan 2020 13:47:30 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00NINnI3120077; Thu, 23 Jan 2020 18:47:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2019-08-05; bh=Qp7vLIF4+itHswU2F+ettpG5KHMtj1kxr7/UZnRz1cc=; b=CoItWY00Zn1CxIClVQ4vLU7iSfJUbplp87vOgqqjvhTJcsSdzkxgGIVsL5lGUceaskO9 aKSISFa/+nnyd0wlP0m2N3j9XUkm1VF/X87v6bW9QFBBm+lTqQt4E2vxmPybNyJV77wC gkxHzNzteQh25R5dlDznEoKg2CjQH+mxAlRwlSqzipJeZqGBwwvhMORvrYs1uu8BQBUq 3yyhZQhJm20/xMjR77fSm7WVg13pXRxrhvVJl31ml+EQtvTHsHv5p91DJfK27tZspdGi cHj1P+cidS8YGwRWG+ThpRc6XsDXgTwOP2lSMhkGbv0n1lW27sBLOI6afMCycdlZSy48 9w== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2xktnrm5jx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Jan 2020 18:47:25 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00NINbbW163465; Thu, 23 Jan 2020 18:47:24 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2xpq0x4fjx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Jan 2020 18:47:24 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00NIlOqb016319; Thu, 23 Jan 2020 18:47:24 GMT Received: from dhcp-10-175-166-237.vpn.oracle.com (/10.175.166.237) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 23 Jan 2020 10:47:23 -0800 From: Alan Maguire To: brendanhiggins@google.com, gregkh@linuxfoundation.org Cc: corbet@lwn.net, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Alan Maguire Subject: [PATCH v2 kunit-next 3/3] kunit: update documentation to describe debugfs representation Date: Thu, 23 Jan 2020 18:47:01 +0000 Message-Id: <1579805221-31905-4-git-send-email-alan.maguire@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1579805221-31905-1-git-send-email-alan.maguire@oracle.com> References: <1579805221-31905-1-git-send-email-alan.maguire@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9509 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001230141 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9509 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001230141 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Documentation should describe debugfs layout and semantics. Signed-off-by: Alan Maguire --- Documentation/dev-tools/kunit/usage.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst index 7cd56a1..b05c843 100644 --- a/Documentation/dev-tools/kunit/usage.rst +++ b/Documentation/dev-tools/kunit/usage.rst @@ -590,3 +590,22 @@ able to run one test case per invocation. .. TODO(brendanhiggins@google.com): Add an actual example of an architecture dependent KUnit test. + +KUnit debugfs representation +============================ +When kunit test suites are initialized, they create an associated directory +in /sys/kernel/debug/kunit/. The directory contains two files + +- results: "cat results" displays results of last test run +- run: "cat run" runs the test suite and displays the results + +Thus to re-run all currently loaded suites and display results, we can do this: + +``` +$ cat /sys/kernel/debug/kunit/*/run +``` + +The debugfs representation is primarily of use when kunit test suites are +run in a native environment, either as modules or builtin. Having a way +to display results like this is valuable as otherwise results can be +intermixed with other events in dmesg output. -- 1.8.3.1