Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp698419pxu; Wed, 14 Oct 2020 11:18:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbOx3eIkkKNPITeOSwTrfe4RwP4kLLJ7QXClCR7dpDtfvItjDhvV0AEM/a/qjP9FMHNt8x X-Received: by 2002:a17:906:7010:: with SMTP id n16mr347228ejj.328.1602699510120; Wed, 14 Oct 2020 11:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602699510; cv=none; d=google.com; s=arc-20160816; b=AURGNvP1weLgB2ZLuH0z3fwqWDgKravX93v2mcsYr87h/PKK4wHPd67Ms7bz7M83NB Tr3O7mMzzKNYDj23mvRnWLp4I9gBx2Qp/CXEA1Px6ETEOn3iKa6EDk6ObOJVfBraRkOE l9NSE8KxeXxqOQnuNvChI83JZA4rihx8KSyi8LByY5GoVtp6vUDTjYiPw6AwYqDIWL3i sCPseHk0wZUd4RHXklocdUesTp5ao7Pr5K070GkU5Isj61nxlEB8Y9GKt7r5czgXejrQ ctUhwWuhPV0/HQKIaCMqGDjB/BUUagpmHXUYgxiAUhgwdjQ+epzQG17YOnfzhNZ+9Spt XD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4hg2v/GYJHdaSA1mdU/demCJi+L5+geP2CWSqLJ/Oes=; b=xZfcWxR2hmsMuTo22b+d//G0uVebBR+xnDRUYTI29jBIui2pleOxAEyIx1Y2mxzIDU LdDu8sWnxFsJ3aiJg32c0vbgRlyQiTBMTd4qpFxMWpMbLQOBn7RAoZtUwzF2hNkjo93A cGU4boPAyuGYm5SwbSBAl15aO3dbgFxppxDZvM3uv+QH29QX6yR1eWOBSZ345dgx+zIR afr8Sv5OGE5k7RYtaj6A80c9vyR1/dOsOtQh3AY7pjgGOtnGMC4l3/4UVsKpde8YHqdu lehu8VuKxm+b/glD12RHry8ujEt9qMoJjxR/zYPIs0dS1PZf0TOkEDlbvQa0BNFQ8NUN XlQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Bl7s3LEf; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si179864edo.34.2020.10.14.11.18.04; Wed, 14 Oct 2020 11:18:30 -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=@google.com header.s=20161025 header.b=Bl7s3LEf; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387848AbgJNSQY (ORCPT + 99 others); Wed, 14 Oct 2020 14:16:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387798AbgJNSQY (ORCPT ); Wed, 14 Oct 2020 14:16:24 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F338C061755 for ; Wed, 14 Oct 2020 11:16:24 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id d3so515933wma.4 for ; Wed, 14 Oct 2020 11:16:24 -0700 (PDT) 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=4hg2v/GYJHdaSA1mdU/demCJi+L5+geP2CWSqLJ/Oes=; b=Bl7s3LEfpCQle3+U7qJbpebW/VwHltBgH7AbG4T9b2Gl0iK4kvwRI2ouEsK5/GhbwI +pgV6LkFWeG12P2jAuyYeJHTTNlytEiJyAtj1BlXrurDq6bxjWTmepySsREbGgvgonHO dw/yTE2kIfeSTWA2bf2D+T7KOpG3xfSziGIlKea6C3X0nKkafXQXbzdcbmBU68NbBQpP 3CrZqtbYOb9A72W92agOP3hLy3dRasxw+U2DMoDTC8jI/hkWF7O+O4diS+relc2MCgH3 hlOGhXpCowsgWL7Qz/UGknr+LpVZNO7gVquNlkIgO+6k0ZTm5Zx65V9WicHmzdr7hOip ZyyA== 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=4hg2v/GYJHdaSA1mdU/demCJi+L5+geP2CWSqLJ/Oes=; b=UcVDMZmebqr3LD3d9Cs/TDIkdhQghkV/7asJXv37agE5f25j140SVF8cEINWsMcpDk +nA5I7Wb1y7AmaXWiVXVvICgU5T4HpVquWIK1yCXQVnAn82tQfAHcLbGE/bisQ9NE8oE 8eU2qxfZy7oQkm9WfuZjpTD0xU+R60xUSQBGGX54YyRHM3RT/rXJXNtBSVGAZup3bbx5 0QCFx1FYYBUnkYOEqasGYvmyIdATypei/3yz5c5Y+CPMpKKW2MRz3lvxi2FIX0Zr+Q8F y2sCpdIYOyYzn3SGgms3xXWFYE1/5TyQ8TUry01zjxPT7JJPqjvX5SZZSXxut89SnFkH X1+A== X-Gm-Message-State: AOAM531LtZczVeMhKhD0DzcOT0Aj2WIpHsunI4vost9OW/wzOLjVhml4 rJ7+X4fErwSt71cTUYah4PiKIrcP+6Uo69tIAo4Xyw== X-Received: by 2002:a7b:c181:: with SMTP id y1mr160947wmi.58.1602699382955; Wed, 14 Oct 2020 11:16:22 -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: From: Ian Rogers Date: Wed, 14 Oct 2020 11:16:10 -0700 Message-ID: Subject: Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit To: Brendan Higgins Cc: Peter Zijlstra , Vitor Massaru Iha , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Ingo Molnar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 2:03 PM Brendan Higgins wrote: > > On Tue, Aug 4, 2020 at 9:22 AM Vitor Massaru Iha wrote: > > > > 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 > > Gentle poke. I think Vitor was looking for a response. My guess is > that Ian was waiting for a follow up patch. There were some issues in the original patch, they should be easy to fix. I'm more concerned that Peter's issues are addressed about the general direction of the patch, verbosity and testing frameworks. I see Vitor followed up with Peter but I'm not sure that means the approach has been accepted. Thanks, Ian