Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1416017ybg; Wed, 29 Jul 2020 13:42:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqmAa8+hkXk44wJLTAYuUHsgRyZQri6BY8oyYCaKD1mP403q7w2NsGYrgtP/cFvJpCIutN X-Received: by 2002:a17:906:fb99:: with SMTP id lr25mr153322ejb.49.1596055342380; Wed, 29 Jul 2020 13:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596055342; cv=none; d=google.com; s=arc-20160816; b=iWbGceLRa7dxbmY5eWu1TtEzEnIW3aNcjcvQNhuMrE9iIsVIKtQymCIJ9/65p7n5fd WPEKfbvgHxSS3146R+lgTka8FngYOhwG3vYI6TKGfP4RAGvkJpiGUxZbiTnYXfiJB/4l 5RIgVq5HIX8S0AzSThVPn7YU8EjoqdjWtQ+qGcyFKPp/bP4SyX31IGYfafYFU1aB/n/V kJ7zARKBvYBnZS8Fsj8G6hBLPUG6xGp0nvKeloAsRef/MSZMsNqn5ceFvUHdAyDXEJyS PNdMTidRYr192Qvdjm1+huRA4s/wPGCqz09KYLcvIFBE5kKwnc68l4LB8mAzsKEXr2y1 8rOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5Qs3p6P4FMzOMl5aW3FKm/tj+DXE8Wr/ANqUkYSmnxo=; b=Gg9Pgha4oeidXay7p3Bu1X3PoCKkk4192LpUrOaPuALxLudCSD5F1CEVTXX8fOIA1G HD7FixOagyJ6bTr7bnu2dOcmwl3OHm59RunfQ9gzZQLrKbvoP1Kc7AlfRl0NDCSXqTw7 gWWO0uaL47OnGUanr/thhtxHKdjjI4GhWUL94F1pXL9bjOdlMUsM94dv2ARUA3WKhc5a I1D857Kqh6GeriZEtGIHuzujCbWc749Fhszkh1byKa5F8hCG5pvOIw3LeVHl3dwNSK9X 2drf6J+abZabFghll+b/H9o4WACgyDoCojCBZ5eqL87nweyOG8tX4s5t3SROgru/6FFH MlAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Uaia+u2y; 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 y7si1763513ejw.8.2020.07.29.13.41.59; Wed, 29 Jul 2020 13:42:22 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Uaia+u2y; 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 S1726900AbgG2UjU (ORCPT + 99 others); Wed, 29 Jul 2020 16:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbgG2UjT (ORCPT ); Wed, 29 Jul 2020 16:39:19 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87631C061794; Wed, 29 Jul 2020 13:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5Qs3p6P4FMzOMl5aW3FKm/tj+DXE8Wr/ANqUkYSmnxo=; b=Uaia+u2ySpbc2h1Ps6QsIoNc4p jSX+q1S6Vuha5uj+6BOSmzBjVaLlLpVyA4bKQfJyjhtt+LOVevmfaCrMIjB5lOmwXfGsuQAoKbmZH 5sGGvNXTp/raCi/HqwvMSfcn2rG/NPsoV482CScDRYydGZ8Dfqk/QFg+7FLfrY78GhPpH9e3mlacA X0Qbf3j1EzEP8zTY7EmVZ6uxsHYkigr4enOa1pITW8HB3zk1X4OiLfPB5CucQfIqmoEBL+V92zpO/ CZZ2VsrRocPPhFROKYJekMt+zw4QHnFCH8E7+EregovfsE+um4XCVi07pWZn+RYlSImNThJySzJEw RJGyNquA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0sr2-0007I0-GB; Wed, 29 Jul 2020 20:39:12 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CFD8D304D28; Wed, 29 Jul 2020 22:39:08 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B6947200D4162; Wed, 29 Jul 2020 22:39:08 +0200 (CEST) Date: Wed, 29 Jul 2020 22:39:08 +0200 From: peterz@infradead.org To: Vitor Massaru Iha Cc: kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, brendanhiggins@google.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, irogers@google.com, mingo@kernel.org Subject: Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit Message-ID: <20200729203908.GD2655@hirez.programming.kicks-ass.net> References: <20200729201146.537433-1-vitor@massaru.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200729201146.537433-1-vitor@massaru.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 05:11:46PM -0300, Vitor Massaru Iha wrote: > This adds the conversion of the runtime tests of test_min_heap, > from `lib/test_min_heap.c` to KUnit tests. > > Please apply this commit first (linux-kselftest/kunit-fixes): > 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kunit_config: Fix parsing of CONFIG options with space > > Signed-off-by: Vitor Massaru Iha > --- > lib/Kconfig.debug | 29 ++++-- > lib/Makefile | 2 +- > lib/{test_min_heap.c => min_heap_kunit.c} | 117 ++++++++++++---------- > 3 files changed, 83 insertions(+), 65 deletions(-) > rename lib/{test_min_heap.c => min_heap_kunit.c} (60%) So where's the win? What's KUnit, why should I care and more lines.