Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp861032ybh; Wed, 22 Jul 2020 15:29:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2eTsR3rBODvW0KI6MmhASoQ2/4lnScCM1XUd4BfIDBmK3F4m6cPrbAXPq6AAB/3YybB6P X-Received: by 2002:a17:906:748:: with SMTP id z8mr1651124ejb.257.1595456988823; Wed, 22 Jul 2020 15:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595456988; cv=none; d=google.com; s=arc-20160816; b=C0RXitcONR/x0+dVaCngtO78y5+zSDWWQlDVmhDi0Mh834uBh/WJdcnb0ih5LK0+c5 U/ePY2yN/lfDBrJAEXwmi/WABCowr8VtwbSON6iKdpRQmiBCKJqKOm55QVFKTzAUduC4 jAUs7ZzeAXnESnDmC/E4Izae3rdRxHt6yYx1MXT8bH/zoQoX2JXmDkzd2Wmc2kH1+5XZ ESPAeNJBBQGA2oTWG96AJniBXoifQkA43FIK8bH88XMzssjYBvwK68YY7f9EjJsKYncL 1W3XikEgPVzlLIxrJXpmhaR9KxcR7Wp1AwbKI/UGRnkVvpekOkHGUGXZ2B+f3uaM7nSc G0Eg== 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=hDU5F+lKnx2jbAbcQ8EdWpqtNDoD+1zrWyM5bAIpN5w=; b=gLp8K7WCDRC8nhiuKnrTs46GHVjmB10n9C2627xwQgpmVJTV/BAqulPC43L6D/DAIV zHewOM/N6s0o5/VzmZyfFZH0Z1U9J9L446ETFpK/PhBXGAi3Dynx0vaeWnBkhT7ia2N7 ehwrO6NSYU4ojxJAskhdOJVr2HP4mDaMcG82NFHMAwi/hT46k9BAHEoVvb32mwoADou7 teFCpyRtIz+VCV7hKuKhi7bwYAHDLj59RgiovlsAFB9TDPGJrTLl1jFucKNtNQ7+MCyf SmDReA8wb8E1HT1hq8W2nozIEtgPgybgBK3Hku5RRKK2DGYGGEMuJM2Ctul08TiEWfp0 CshQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=fhWMlcxq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si781962edr.239.2020.07.22.15.29.25; Wed, 22 Jul 2020 15:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=fhWMlcxq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730802AbgGVW3T (ORCPT + 99 others); Wed, 22 Jul 2020 18:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgGVW3T (ORCPT ); Wed, 22 Jul 2020 18:29:19 -0400 Received: from mail-yb1-xb43.google.com (mail-yb1-xb43.google.com [IPv6:2607:f8b0:4864:20::b43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D3BC0619DC for ; Wed, 22 Jul 2020 15:29:18 -0700 (PDT) Received: by mail-yb1-xb43.google.com with SMTP id x9so1827020ybd.4 for ; Wed, 22 Jul 2020 15:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hDU5F+lKnx2jbAbcQ8EdWpqtNDoD+1zrWyM5bAIpN5w=; b=fhWMlcxqko5jvxwun7u9Uh71irn2Il2ZaOvNhovugAKiQoGmJ9IDiPrToHA8cjDMRu x1VrYa/E0VvPZoA+NaZhZXbLqncS8YhFZHpYr0fz0yhxXm9p5ySMNW38C59WR90QeHIN kWZ4lbpJlxdBM/tAzlp6Aj4Twlsi8M1xoZanH3IeoZa029h5A781Eq8/2XYuLuPXNnUZ r/RdyDA+lFa6N7kQAAG4rnbsYAyFVjv9fgJaUVY06JmjP2AsOflm13HWTc3BgsiQLiG/ t3SwYffYY1obba81noPsvPY03PPzwOCaRAq0ZEtJmkURsIdWLd/Lf5moo2ds+3peAf40 Zsqg== 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=hDU5F+lKnx2jbAbcQ8EdWpqtNDoD+1zrWyM5bAIpN5w=; b=EgZ+4gCtV4RmLY2vMysFs0CZ4OtweDfJpr9bXRR0W48WTQCutJHVhgLbdnr4Svt3Ww GJtug6WjD/WEc7nPdJImSqVZI2CmY059ZHuP6SrBn12tznb61plHYa/Zi/OgUVvAMjfI 8Uwlu74jmivnOd2sZLyPpHZR6Lz8JnLd0NbL0orHhtJ/Htqu+OIbnIG7r2K16JdkaUbY 2RD7RWRvlbM/9K8nOAk0nFP5F475YnBplRZxymAEEqLO6ri2HfXzNHT5JshhWYjuqi0P V8psdtivxSz//dxqdB+F3wS8TAaN2sHtlqkSWOeVCbO1a0rN/qaH5KzO56Lb9U/iFUXf JQBA== X-Gm-Message-State: AOAM533b0+QJwQ9plYAA/nQY+SGRUZVkQrW7uLngdxmcULxZx489+DfL hZIRmiCH8fFh4WDG8MNlWYb8vP3C/OCuYKpb2vMSdw== X-Received: by 2002:a25:ae01:: with SMTP id a1mr2350192ybj.119.1595456957139; Wed, 22 Jul 2020 15:29:17 -0700 (PDT) MIME-Version: 1.0 References: <20200721174654.72132-1-vitor@massaru.org> <202007211207.5BAA9D8D@keescook> <202007211911.666E080@keescook> <202007221244.4E3C9E45@keescook> In-Reply-To: <202007221244.4E3C9E45@keescook> From: Vitor Massaru Iha Date: Wed, 22 Jul 2020 19:28:41 -0300 Message-ID: Subject: Re: [PATCH v3] lib: Convert test_user_copy to KUnit test To: Kees Cook Cc: KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Brendan Higgins , David Gow , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org 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 On Wed, Jul 22, 2020 at 4:45 PM Kees Cook wrote: > > On Wed, Jul 22, 2020 at 03:29:27PM -0300, Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > > > > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > > > > When you talk about end-of-test summary, is it what is written in > > > > dmesg and not the kunit-tool? > > > > > > Right, if I build this as a module and do "modprobe user_copy_kunit", > > > what will show up in dmesg? > > > > No, It doesn't. I'll put the messages again. > > Would it be possible to add that behavior to the core KUnit output? Then > all module-based tests would include a summary line? Nowadays with modprobe this is shown, is it necessary to add anything else? root@(none):/# modprobe user_copy_kunit TAP version 14 # Subtest: user_copy 1..1 random: fast init done ok 1 - user_copy_test ok 1 - user_copy root@(none):/# > > -- > Kees Cook