Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp92440pxj; Wed, 26 May 2021 17:10:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMPE7+AjdAtmv0Dl4eANoKw2FSNrymB1GqOMdNwFsggVAVU5yDQJ4vXfzxGGFw401ICyEy X-Received: by 2002:a05:6402:3587:: with SMTP id y7mr881574edc.360.1622074205546; Wed, 26 May 2021 17:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622074205; cv=none; d=google.com; s=arc-20160816; b=v4h9VSTyJJ+5okJ8+nv5Pfvon14uoErCpSnGfer1onyhYJjmGK9LQBdRg2l2RVyvuZ bjNiN0kJf/Txsx/6Xm2WipjiZ6bfkCH42TpktQNhKhSjAh6xd/r8pLPIjNF5b3dr5AAf pIMFRkiC0kdFgxYm+Znx9braRvWdcqrKfyHPCrRunf1nZkgZt0S+Sx1J7wpxuJAvn9Hr I3Jh0XjMlW4NdigmaouYUkFamuwbtNLU4R7pkk+ocN2H/pHJU11CEHTQYJSFDmGTh7q+ weJraDyaV0GYj8w04FleXVCFqXUkppc1mo+1TABf5QKBW8NrD52rOfSSzkfPiV4gMoqW yLaw== 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=PmhlWA1tcmd7i5WpuGzdloktFmGN5uwrhIb1Qmrmdq8=; b=D7C3elOX7jAhgWvArnwSCG5/8JpLHs/kkSIDBEaO7jQ5/hvUjaNmaPyJyWd+aAn4se 9UEy+mw8QUM8e3c6cmpfzSfIwy5wqmJ3fVUBwi9d079rFT6ZKy2wu/QaRrEBMjYlJN7Y YH7aB4imVVyVrslw8pVckSItGd5nvWyklK+KYlVu8fHvghNp0c0vwRby3wjX36Hzn0Fm qqF7KxzjPEJmYW0k+g7YRd9t2WRCuNxh6fLlLflb1Q2w6n/tKQh+dUWwnTIF3vutlCIN lxl9tOX5r3Ih63pPgcQf4Vz59T9QA4716eaEfERt5YboynwYvDj4m33jzYIgNpsKslXC pnLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eujV0BV0; 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 b18si539578ejq.466.2021.05.26.17.09.36; Wed, 26 May 2021 17:10:05 -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=eujV0BV0; 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 S232262AbhEZSas (ORCPT + 99 others); Wed, 26 May 2021 14:30:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232577AbhEZSar (ORCPT ); Wed, 26 May 2021 14:30:47 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C52DC061756 for ; Wed, 26 May 2021 11:29:16 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id g11so1787026ilq.3 for ; Wed, 26 May 2021 11:29:16 -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=PmhlWA1tcmd7i5WpuGzdloktFmGN5uwrhIb1Qmrmdq8=; b=eujV0BV0nOL+dAmq0I+fW3ZDP1ywprfFUR13/hpuElx7AmBAs7QBrYGxfUDU55/Z6K rDag5m1igx9H8jp53Ay34Y6dLDmb8fbMqlXjakwkJVrAd2oCmBhRGbGiTpeSjDhyTwT9 jZFDrwqhn0AYSVRVTllg0kc+t+gBExetxtVemJtoOGvig+baW4kpuVdGLS/T3UTwo/rq Ku3at9oUpH4A2G86VByEu41gpafCs/CqWDdakg1Gr1sZsz2FzlW69XsN4olGsE1lBPU7 sxdGkeCwrgPSRiMutxIRrLFrVkCAko3x9WYVrPIfFwg+mJuOjyfdml07p+/ACQ0Jxz6v +Jyg== 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=PmhlWA1tcmd7i5WpuGzdloktFmGN5uwrhIb1Qmrmdq8=; b=ohML3jcgQCinZbjRjtzXV11SdrJzPV12VrEr1DPozacWhT4wMZKKXcPVN2t4TUkGxJ AL4IIfFaV36/gFFwfkcbQqGB7gza1udBhLu8AF8t9XEy2Ar82EbDu/SMlmUkoLY8RvWT Va0TME/5AP1fdhv5GAkHnOVqrQL1HmhAEGZ7HW891bbZrC9iRePVQlkq8s4OjelAhBto bPXsIUkuGpE5txqdxTjDn2aguZLguPollZ5zqw49pcBLVKgSMq3JMC52JYR5FuekZXCH hMWUaEjxYz0HkVI0kPFBe+bOhoKBxEWc489uosPEtux0hOL6QA/CitBO5iATSF1OwpXH pAuw== X-Gm-Message-State: AOAM5319CJ9Nt0cAZmMxLa6jcoZ3UNGeISKNAQZr1IyvpaWuR20UC2En tCDhKvKC46vH1AIvtB878/9p+qdvoun8X0HbdfsHlLeT5io= X-Received: by 2002:a92:c70b:: with SMTP id a11mr30705547ilp.136.1622053755188; Wed, 26 May 2021 11:29:15 -0700 (PDT) MIME-Version: 1.0 References: <20210526081112.3652290-1-davidgow@google.com> <20210526081112.3652290-3-davidgow@google.com> In-Reply-To: From: Daniel Latypov Date: Wed, 26 May 2021 11:29:03 -0700 Message-ID: Subject: Re: [PATCH 3/3] kunit: test: Add example_skip test suite which is always skipped To: Marco Elver Cc: David Gow , Brendan Higgins , Alan Maguire , Shuah Khan , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 1:56 AM 'Marco Elver' via KUnit Development wrote: > > On Wed, May 26, 2021 at 01:11AM -0700, David Gow wrote: > > Add a new KUnit test suite which contains tests which are always > > skipped. This is used as an example for how to write tests which are > > skipped, and to demonstrate the difference between kunit_skip() and > > kunit_mark_skipped(). > > > > Because these tests do not pass (they're skipped), they are not enabled > > by default, or by the KUNIT_ALL_TESTS config option: they must be > > enabled explicitly by setting CONFIG_KUNIT_EXAMPLE_SKIP_TEST=y in either > > a .config or .kunitconfig file. > > > > Signed-off-by: David Gow > > --- > > lib/kunit/Kconfig | 15 +++++++++ > > lib/kunit/Makefile | 2 ++ > > lib/kunit/kunit-example-skip-test.c | 52 +++++++++++++++++++++++++++++ > > 3 files changed, 69 insertions(+) > > create mode 100644 lib/kunit/kunit-example-skip-test.c > > I don't know if this test is useful for a user of KUnit. Given it's not > testing KUnit functionality (I see you added tests that the feature > works in patch 1/3), but rather a demonstration and therefore dead code. > I don't think the feature is difficult to understand from the API doc > text. > > Instead, would it be more helpful to add something to > Documentation/dev-tools/kunit? Or perhaps just add something to > lib/kunit/kunit-example-test.c? It'd avoid introducing more Kconfig I'm in favor of putting it in kunit-example-test.c as well. But I hear there was pushback to have a non-passing test in the example? I guess the fear is that someone will see something that doesn't say "passed" in the example output and think something has gone wrong? Hence this more conservative change. But I hope that in the absence of any replies in opposition, we can just keep one example-test.c > options at least. > > Thanks, > -- Marco > > -- > You received this message because you are subscribed to the Google Groups "KUnit Development" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kunit-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kunit-dev/YK4NRlyrYJ8ktsWQ%40elver.google.com.