Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1054534ybl; Wed, 4 Dec 2019 16:02:51 -0800 (PST) X-Google-Smtp-Source: APXvYqw6Ny+noNWCkbB289I9WWd0qr39/TztwzyJLV/xrijmfRsX7KRjtqO3KXe5SwSzRG0gRTci X-Received: by 2002:a9d:5d1a:: with SMTP id b26mr4690731oti.139.1575504171214; Wed, 04 Dec 2019 16:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575504171; cv=none; d=google.com; s=arc-20160816; b=08lm/HlVaZf6P65A4c0ljhWOA6Immcp76r5E2eQZsQafx1jJzcrdLF8E52c9cCTj/v KSu3PszBBj58DEiinmDRDlO+kE7YvvQMzgB5wJCwGIhTEePrcqWWGRz6Q67rwA1EIQg5 PvYj01O7nfuDl1cPmeiL41VXzLgX9gGWawsOHqrjft7mu8NX4n04HgZpL+eCSvfTzDDI 8M1KmHsVQUKS8h0+Pl9IKgT7HuKYT0+af7tvE3wuWpeA+E098mGOA3eDhG6k94bnfMkE pziccNHdXt0mZE+NyO+Q9d5OtqTb7tv1naKMCqlgpsd8erwR3/D2DHyZi4pOiV00zNRA /7+Q== 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=NJE0pjdE5Zlehm0IQrIdzxUmlagRhXSz8Z6krXba16E=; b=AoYXp+RT+bALxikVM88D8oO/fFz+tpAnW1UiSM+gHnYVEo0A4LV+yfmUbUMBKaq2Fi qWCvE+cqS0TNB8dhnK8KWvaL6K8Mm+neuRmJeZS2yf7jNYYIDKPDo5F5htfrUCpAgX4u poOsbzus8R4HZ8+6oiI2a4+WBp7OoHi1Do18Pdqya7i2Hoa4GPr8Pi8YXDJp+dRNB74F aM/rfdr1+qeUL6rWA/u80pBjyx5LjR8YEbtjzt86u0Ahfcm+DZJGFy3xfYdIwviosPml lrTHuJrQ6ORAKj/cU5XApdRn3wH6aJ16Q6YDfPPoYSPiiXxVqMdcWNuNux+qu5Oz2At2 iUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dMXveiSd; 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 z10si2091730oto.50.2019.12.04.16.02.35; Wed, 04 Dec 2019 16:02:51 -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=dMXveiSd; 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 S1728238AbfLEABZ (ORCPT + 99 others); Wed, 4 Dec 2019 19:01:25 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34728 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727479AbfLEABZ (ORCPT ); Wed, 4 Dec 2019 19:01:25 -0500 Received: by mail-qt1-f195.google.com with SMTP id 5so1718036qtz.1 for ; Wed, 04 Dec 2019 16:01:24 -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=NJE0pjdE5Zlehm0IQrIdzxUmlagRhXSz8Z6krXba16E=; b=dMXveiSdmysvHaaEGqoOeZVSx5EPJ9MpMwSPukSFjNxEoCMpSTZ/b7nW3a3ag+uVAQ WJqr3Mqy/7UmoytRqJv1NDqoRpsXix5p5K7lJ1cn9tolu5aMWzqO1bsczgCQX2yBZFio /owaBhc98Ur1YVsbX4paW48mWFyWzoO/p1IDD3DFqbUqcIKOR9ok2SpJjnxswQIwl5k8 11AdS6biXWKXtMXYO02Qbn3EyfPdk9nh44b2fn9WJTrAx07Weld/jA/XnPX9fNhWsxFA gK7XXefTKOuYQuo1lCxJjtBIQQPuqF4K/u9J38SLRlccFneeuFHsEIkfmMtJTYKqh5tN yB7w== 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=NJE0pjdE5Zlehm0IQrIdzxUmlagRhXSz8Z6krXba16E=; b=Iw8nQJ+6ZXtaYa88Q9X8Kxch8pvYlQVVbaaU99eWjoHbKfDld+b1M1M0lJn19yVZGe By8+PXwwLtmCLIsQIABrwNuC3MBp8DPUFusCB3btVpMy9pKkVIYuEFwfDmLMKkH+QVCf mgEZr5eZ5Xq8UvTfh3RAsQF7MUf3mhmg2pgEmouzpe4JzfSJBxD0T0N76Ps99xut2JG3 flxJ66PoMcQbOMWJFX9juVuhWtVzeT9SR7kD2lBkS8tU0u5aqnzf48sbduA4jUnn7xIT FAxC6u0NjVnqpnupUm4EdQKqElGO8EoJB6Do+bdgvIW/l2PeKg+m8LEpyeWtLZfwlKhd HZFQ== X-Gm-Message-State: APjAAAXfGa9HUacjjP3ZWR8YYik2gAGBt2RIyTsFqMU7L/m3wn1iDIDO phHmb0khUNtrQ/PH1XoMRpFHNiZcZ/pFkF2J1QyP X-Received: by 2002:ac8:46cc:: with SMTP id h12mr5209796qto.109.1575504084233; Wed, 04 Dec 2019 16:01:24 -0800 (PST) MIME-Version: 1.0 References: <1575374868-32601-1-git-send-email-alan.maguire@oracle.com> <1575374868-32601-4-git-send-email-alan.maguire@oracle.com> <20191204003851.GF86484@mit.edu> In-Reply-To: From: Iurii Zaikin Date: Wed, 4 Dec 2019 16:00:48 -0800 Message-ID: Subject: Re: [PATCH v5 linux-kselftest-test 3/6] kunit: allow kunit tests to be loaded as a module To: Alan Maguire Cc: "Theodore Y. Ts'o" , Brendan Higgins , David Gow , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , KUnit Development , Kees Cook , Andrew Morton , Masahiro Yamada , catalin.marinas@arm.com, joe.lawrence@redhat.com, penguin-kernel@i-love.sakura.ne.jp, urezki@gmail.com, andriy.shevchenko@linux.intel.com, Jonathan Corbet , adilger.kernel@dilger.ca, Luis Chamberlain , "open list:DOCUMENTATION" , Knut Omang 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 > I've also got a patch that I was hoping to send out soon > that might help. The idea is that each test suite would create > a debugfs representation under /sys/kernel/debug/kunit; > specifically: > > /sys/kernel/debug/kunit/results/ > /sys/kernel/debug/kunit/results/-tests > > ...where cat'ing the former shows the full set of results, > and the latter is a directory within which we can display > individual test results in test-case-specific files. > > This is all done by ensuring that when tests log information, > they log to a per-test-case log buffer as well as to dmesg. > > If the above sounds useful, I'll try and polish up the patch > for submission. Thanks! What would be the best way for kunit_tool to: 1. Know that the tests have completed as QEMU will be just sitting there with kernel complaining about the absence of init (or running whatever we give it as init)? 2. Read the test results from debugfs under QEMU virtual machine while the kernel is still there? I think supplying an init script/binary that copies the /sys/kernel/debug/kunit/results/* to a 9p shared dir set up by kunit_tool would work but it would add a step of cross-compiling and packaging a userspace binary.