Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp457647pxa; Tue, 4 Aug 2020 09:29:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBTdbvyCtFBIsJSfc2kwT3AokyF97BdPx8MJrTf3nVfdMDhXR8kmOKHdvwoYvwkFOO3kbs X-Received: by 2002:a17:906:d050:: with SMTP id bo16mr23861366ejb.367.1596558546155; Tue, 04 Aug 2020 09:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596558546; cv=none; d=google.com; s=arc-20160816; b=wphy5pFt5i4gJmE9EleBtVaYkO/VgWJ6OJq2RZX+IGOcBni+LOm1zX500GkchvJasw Wgss7lcArOZ5k8xrIZYb8VbpJChRtu+EzbLbddrMIY1RsjrW6xno7xnYAJjnwJg5R0l0 Zo227m7vF80xC5/g7aGiH3A7wrY+d191jycMWL5qGVX+Bpt/n6kqHye4Q1Bv1h/MofpI TZxxVB289eWNuoFX32s/hELoYmYT5ftzOzzShD/X2TpW6QwEYVHBZiO+djSCiJQ4UWO3 SmA3WqYx0jG3F2v5+9FRoSACNB4k/4Zzi21am37daO7w/su8bNqsSUkTLfoQ07OJgU4f NFlA== 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=0pnsFML9kOr1mpGxswyZ75m8dhfY+/2C5+vBWHJn45U=; b=kEZd5h26dx2jGJaBbcX3qM7J07pcmpawPqNW1zhSAzDxDHaINvXjnglc5AraseIMwc P8e/Fe4llmFzkR/E4cVaUH9/DOMLbj5Op1BMc/r0HpavZt8vDHJAB9EhNPK1LkBX2ugK DlBGyM1ZNfiblvdnkiE5PRt6ZnJ1iPknuHLGccaSRyTa5hGAXm+eOIaFY60syELG19Li yj2mnVJclWNUJpg6PwAQkiKk8OmcnJV7SG4BeDjd7x0JAK2o1qI6mrpAv5AGKq59kR10 cAxdUunMUmgugsy8GYNd6YQiBXq2KG8S6Owk0oQPWkVmNHRdJoskxFsITWghFTxomMZa jYeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b="vY8v/QkB"; 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 v7si15619635edd.551.2020.08.04.09.28.43; Tue, 04 Aug 2020 09:29:06 -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="vY8v/QkB"; 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 S1729928AbgHDQYe (ORCPT + 99 others); Tue, 4 Aug 2020 12:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729799AbgHDQWm (ORCPT ); Tue, 4 Aug 2020 12:22:42 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ADFEC061756 for ; Tue, 4 Aug 2020 09:22:40 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id u43so8963271ybi.11 for ; Tue, 04 Aug 2020 09:22:40 -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=0pnsFML9kOr1mpGxswyZ75m8dhfY+/2C5+vBWHJn45U=; b=vY8v/QkBFvvM97vcv7qQBuKoB9WH0zYIDrB/Jg+3hS/ZIlJMvkTJ2QqnjQVLwNr5GS 70mPlcS16tJ4QdDthmPcYfqyrGSCqfsewvOHtr+ULLBgLtz1eJcNeuRW+ayioA/2r4PG 2Llon0xGXHDlvSR1EAzAExe9pkZ2u/+oUt7B10Bk8LxduhynTXitcaRLhMsb7vKMu3g+ pHUXHfJprB9WtwemXG/s6roSqgHuanUmc790shYPUpZVULOrXJkloxZlDDHzntVqVSVt IpuqKoD4FzPDWGELc4e/BRPfvSuLrne8m57IHgAFuteKzrA+4g/0fcDXqYlsoQHd5x1w FBgA== 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=0pnsFML9kOr1mpGxswyZ75m8dhfY+/2C5+vBWHJn45U=; b=FYkjB4eq3Wp76nuvcxLU8+QTaHbRDnjnVex6P90/k6wzpJer2wyh8hqEwCjL2jxk8T 22jOwlDzuL98AGujX/E4RbHHR7tgxSoKeaGBb2cme7PQ0WfI8JNs3+5FyeQ1ltm0UQLK tx7t84PKX+3k8hXiAvwEaF3UUiBTZ4+/TQRWcmz4JBya2G9FeNcKZHgjjQyUqSY6uFlz GZqqbrDoWYwwJUYMYmrLiNxdLCh6vUyt1AmczJdbQIAM8l2JUtjQcACd9R+4E8N6Ve/V KZ0z4ysaD+3rp3ttUIvNVuaep0BRhXki8LRj4U+iXMYmM1GnYL/Psiy3lnTekrTxHj6C DNTw== X-Gm-Message-State: AOAM533tyd3Naqwt4Jm1YfKBCbvkekEgVM3ubzVWjjWVWHSP1EQaHVFR p+3feIeUaOTPd7pYJ8xsSPSXd7oFGOr11JWbPx2Ncg== X-Received: by 2002:a25:b88b:: with SMTP id w11mr23329907ybj.129.1596558159458; Tue, 04 Aug 2020 09:22:39 -0700 (PDT) MIME-Version: 1.0 References: <20200729201146.537433-1-vitor@massaru.org> <20200729203908.GD2655@hirez.programming.kicks-ass.net> <20200804132517.GK2657@hirez.programming.kicks-ass.net> <20200804142344.GM2674@hirez.programming.kicks-ass.net> In-Reply-To: <20200804142344.GM2674@hirez.programming.kicks-ass.net> From: Vitor Massaru Iha Date: Tue, 4 Aug 2020 13:22:03 -0300 Message-ID: Subject: Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit To: peterz@infradead.org Cc: KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Brendan Higgins , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Ian Rogers , mingo@kernel.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 Hi Peter, On Tue, Aug 4, 2020 at 11:23 AM wrote: > > On Tue, Aug 04, 2020 at 10:46:21AM -0300, Vitor Massaru Iha wrote: > > On Tue, Aug 4, 2020 at 10:25 AM wrote: > > > On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor Massaru Iha wrote: > > > > > > > The results can be seen this way: > > > > > > > > This is an excerpt from the test.log with the result in TAP format: > > > > [snip] > > > > ok 5 - example > > > > # Subtest: min-heap > > > > 1..6 > > > > ok 1 - test_heapify_all_true > > > > ok 2 - test_heapify_all_false > > > > ok 3 - test_heap_push_true > > > > ok 4 - test_heap_push_false > > > > ok 5 - test_heap_pop_push_true > > > > ok 6 - test_heap_pop_push_false > > > > [snip] > > So ^ is TAP format? Yep, you can see the spec here: https://testanything.org/tap-specification.html > > > > I don't care or care to use either; what does dmesg do? It used to be > > > that just building the self-tests was sufficient and any error would > > > show in dmesg when you boot the machine. > > > > > > But if I now have to use some damn tool, this is a regression. > > > > If you don't want to, you don't need to use the kunit-tool. If you > > compile the tests as builtin and run the Kernel on your machine > > the test result will be shown in dmesg in TAP format. > > That's seems a lot more verbose than it is now. I've recently even done > a bunch of tests that don't print anything on success, dmesg is clutter > enough already. What tests do you refer to? Running the test_min_heap.c, I got this from dmesg: min_heap_test: test passed And running min_heap_kunit.c: ok 1 - min-heap BR, Vitor