Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4790772pxu; Tue, 13 Oct 2020 07:16:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpo5upb0od9IZs8siuV4GicaW01pFAIYKoNCMqxOS+mcA7KNy0+MJA5EKYOjk5ZSeaXrDd X-Received: by 2002:aa7:d394:: with SMTP id x20mr9089997edq.14.1602598572045; Tue, 13 Oct 2020 07:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602598572; cv=none; d=google.com; s=arc-20160816; b=b0KS+Fn3tIwGLXCTH/SKGWi2I9PhgnW4mCow3EmMyvVWgnRnirbz6xQgF2w0B1mDPB etEhf4J/I3/ymA7f5oePVVoRlv5xQ0/pbeQz1HYR8rPhHjOHa1us6UubSEe2FyzqB2Xo uARiFqmGtwnBCHHv+ZLDICxuHQ3qK61JcfndZ24aLrEoKPBlzKLpzFKVCrvV4J1XjYfO a8jJrYMrUVpy1zEYLwKvqQkLAOSkU8i7JH1cO4EhRjaEKDJtrdo25p9nAUNDI9GZG8ep CqxCNITDE5ar0oYSFyP4I7X6EC2aD+p5yg3rJxl5taQo96n6b5GXF9q32SZYBcgCKyZM 6zKQ== 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=b/TAN4DgDbRq78KqjsPZvJBxycvwlCcdCcdTr+Ek7Og=; b=aZEt8AYMeVREIhQmjBW7FaAFYC94pQGtN19g5yhthKJW6zXvLwh/oqTPTOiLw+mJam WUYR0gNorKjGQXLxwd7BxQT0V3ayION9Qpuco/Bq3lMRB16lR57J5v5sH0/D9FuihzvH Tx5Te/y4vrsOsAavNRtAYZQCMZxAAF893RF+Q7O5C4i1JIsh5c32sldVnU4Gki4W2Gh7 PlTQHKMxRYyVWF1u/zHgDe2eU9113STGfdWnln7v/RWYlbdLTW24dL0XOPOCDyCXPPki CrgIdcMlFPloHhKzOf+hxVqWwN/kv3LzE9EfPUCn6FR2/QDmYq1Y2CO4XhzJKnD3nMbb oh2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P+n28kBu; 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 x8si15012177edq.532.2020.10.13.07.15.44; Tue, 13 Oct 2020 07:16:12 -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=P+n28kBu; 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 S1732026AbgJLVDJ (ORCPT + 99 others); Mon, 12 Oct 2020 17:03:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730845AbgJLVDJ (ORCPT ); Mon, 12 Oct 2020 17:03:09 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63D10C0613D1 for ; Mon, 12 Oct 2020 14:03:08 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id a200so14776492pfa.10 for ; Mon, 12 Oct 2020 14:03:08 -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=b/TAN4DgDbRq78KqjsPZvJBxycvwlCcdCcdTr+Ek7Og=; b=P+n28kBusJXK2wX8qUVrbwldVwyq54gUynSy7mBzZ9CQt7v340G5/ZkQkl2QVkngvZ 66PjP02ma9k+2+AJ0ci3ZnvC5c720Vhtn51PlaCcyXBQHG/ond0nQFbbeh2TqbhNFtTI +6XaOrqijFTUAuHph0GU7zKOA3JLrLRqd2UamYfYe+pvQPSroChvZCtL1dgIgdBx/weo TqvpCARRsPxKRIN2cCA7gheHrJkhvw0RoSEH+Fge/ZcDjX1R6ruPhAIoFSAvoGdPqPLr hxwrFlEBNAKVpJxfGZm5g8NfHalTD6RhlIVz597pyZEa6AmD2RtK7A0WFHuSQWYE3MsO D/YA== 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=b/TAN4DgDbRq78KqjsPZvJBxycvwlCcdCcdTr+Ek7Og=; b=ugvtnbm/xxGvfkP6HBJhCwSRoT0DaE0L5ZFb2NqMAgSMXJH5gAJ/Pv6hxzgUGRn047 U3eZviaDFUhP7lGiMOamDDJyvTBRIv5YbeRRzFRDMzO+zqfFEE0HZXiycKRH9IJrghwp FxfTRfXF26HiTER/EU65S3ae8fhj7gE1n82M5FE7ZUs82ppSfibltC1KC4EVlVMTS5c9 Hjv647JCVdr+lJkHW8xMtiR6YUTeiSlB+BFlEwvuspb3ZsPXnVJQyIAfHvEhB9rzEKSn ka1XYeD9a2WNDtduNQahiUGfDUm0FQ/skd1FvcaSKhPp85eT6lIHhwSOZwYdWjIi8sFE UPNw== X-Gm-Message-State: AOAM531eZRxQzVZU8Ak9fP81fRLSHpL/fbA8BiPyISKjJQf0JLK/MlfU tmEDxgjX6eYvbAXOCYzpITuLatamgdeFs0ZeVfKkRQ== X-Received: by 2002:a17:90a:7144:: with SMTP id g4mr20595295pjs.80.1602536587672; Mon, 12 Oct 2020 14:03:07 -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: Brendan Higgins Date: Mon, 12 Oct 2020 14:02:56 -0700 Message-ID: Subject: Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit To: Peter Zijlstra , Vitor Massaru Iha Cc: KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Ian Rogers , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.