Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1614389lkv; Wed, 19 May 2021 14:06:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1MYQKkiHoFkp5Qn/PiZcbASq8afgG4f6kxKtFNRQkUbUJvncjziHAy2IAekN6CScURG+0 X-Received: by 2002:a02:5142:: with SMTP id s63mr1319159jaa.82.1621458368418; Wed, 19 May 2021 14:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621458368; cv=none; d=google.com; s=arc-20160816; b=APTRL8P1QeE0EGwvWYgdr/dAX4fHecE6KstBUceOU3dBwZSbyY3Q23VF8R3gpyuPLJ /jDKOLI5xd5n4V8UQpoVL84EXJBprbwaX2v1L9mP4l/VXPmlVNOdWMKoi1ZCV3ar9rD4 foSM8tLUaJBec5bq38jcW7CZim1Q4S+IBCx8rS8Wsnr4jD+LtiOemVcfeKAjL8dFvJFh kNs/cxWFwugQw/EIyKVF36gCBdICOjTqpBtcPF86g7m9TjsxjqnMprzMIGkb5bgyD1k3 IDmfEMkLwunEZ4k/9C8U2NyGedKqHfQe+0SQQXWC45m2iAaZmBGYgd5rNToC5oK34qEb 7H3Q== 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=Q4yq51jnaEpYr1mj0fdxPgkJkvktEB+YhgPxv+OfCmw=; b=rtQNzu16h94pFwBBITqpAzPyyH4zUFEUwMA8MizafQaQPHLgUAtIdquVYUESysPwKC B59NMwhfVbod2SADftc7wmbNi3w5FcTeEaRgd9/Cj6Oaf8EsBAJ+J045koSD+qJybt3q CUNiIbLDA9pw1LTLHdUp3kwJJ/00vj6igmfkOuTO+7a6JOEfzbHy+TyurXPwX6ff3c40 Ag41TJApk5WAhlB0O48kijWkqaJr9HBpn+rXpFO2JCC7yguL+SlDv9Ypqtgp8diFTZ+Z Qys/qYhCGqjMlIpun7bVnYmwEpDsnZXpkEAtfkOqwTCY15d8zbTdw8ymZwTppKvVfNBb 84PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=COBfj+yq; 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 f2si513070ioz.41.2021.05.19.14.05.55; Wed, 19 May 2021 14:06:08 -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=COBfj+yq; 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 S235882AbhERUPm (ORCPT + 99 others); Tue, 18 May 2021 16:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbhERUPl (ORCPT ); Tue, 18 May 2021 16:15:41 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7223BC061573 for ; Tue, 18 May 2021 13:14:23 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id h6so10249055ila.7 for ; Tue, 18 May 2021 13:14:23 -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=Q4yq51jnaEpYr1mj0fdxPgkJkvktEB+YhgPxv+OfCmw=; b=COBfj+yqn2cS8Ym0dqgASbW+HUjnOLPy5U98goZImLjM3xShmgB6PjyuJCSolRztsm YIjhfiDQj3XRsSB9L28XRiyypiYbKdCKBWrxNWrYUeFQBhKXlKxd+OsytjtDbExd9SgT ODpHkO0BV6ljthw0txMNb0dcHYRwccT4RbnVBzBSVXYUQ5r++jizmqUdaHM3CmFxvokN oKLd412RlkLmkNh4s8klfYezkgrcsfu88Z410A9SKFeEkCCvhkXJsm5cC5u1J9Gca+75 +QoCHeTGY8Q5Kw2uziZshbiA0QKZrccoauzWs9yDs7Yx9Eirtu7cX05fHHLXHuGX6BTi k2hw== 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=Q4yq51jnaEpYr1mj0fdxPgkJkvktEB+YhgPxv+OfCmw=; b=UnsyVQ6jYkgIfYphH3NlWZIYqmniukdoWzy+zO2leh8ti/oCZdhTCdapaSltojoX6J BWBUl2wQSI1TIAwBVg0+YC8RKQHrlYRjMm+eMjKNQED5a+UAuSawvWEMlmoo10DyWP0/ 6xf25qu12eXAbubMf44uR0N9DUWuHMU7H4BHjQIvzTRONbuLrUELHeojAb75+Fy6Ldlz aVU71POEyGX2LFhcJosrWiQIHkZDoogueQU1pmRMPJqYAFw43zHTm76kG6nWP1eBUqKt 94du0plMWvTYtQ1R53uNuHLV+EK1hAFeQnrcIKKMbt22rSPlmUUVdd7yDKtsTgHKUY5g yHyA== X-Gm-Message-State: AOAM530uh83tlGC42lwWBQj0EBGlozhYoyDeTSQcDIMd2SzdwHvbsvff qXacLGNmvU9eQvR6z0Lw3x7zqb5PikIC14w1lyLRqw== X-Received: by 2002:a05:6e02:b2c:: with SMTP id e12mr6432139ilu.136.1621368862619; Tue, 18 May 2021 13:14:22 -0700 (PDT) MIME-Version: 1.0 References: <20210518035825.1885357-1-davidgow@google.com> In-Reply-To: <20210518035825.1885357-1-davidgow@google.com> From: Daniel Latypov Date: Tue, 18 May 2021 13:14:11 -0700 Message-ID: Subject: Re: [PATCH] kunit: arch/um/configs: Enable KUNIT_ALL_TESTS by default To: David Gow Cc: Brendan Higgins , Shuah Khan , Jeff Dike , Richard Weinberger , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , linux-um@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 8:58 PM 'David Gow' via KUnit Development wrote: > > Make the default .kunitconfig (specified in > arch/um/configs/kunit_defconfig) specify CONFIG_KUNIT_ALL_TESTS by > default. KUNIT_ALL_TESTS runs all tests which have satisfied > dependencies in the current .config (which would be the architecture > defconfig). > > Currently, the default .kunitconfig enables only the example tests and > KUnit's own tests. While this does provide a good example of what a > .kunitconfig for running a few individual tests should look like, it > does mean that kunit_tool runs a pretty paltry collection of tests by > default. From the perspective of someone trying out KUnit for the first time, I'd personally * try out `kunit.py run` * then maybe grep for a test/suite name that sounds interesting. So I'm strongly in favor of the default running a wider variety of tests. The build and execution time is still very quick, so no complaints there. I also think this makes the set of (most of) the existing tests more discoverable then grepping around for #include or similar indicators. But I'm also biased in that I like seeing larger numbers of tests. > > A default run of ./tools/testing/kunit/kunit.py run now runs 70 tests > instead of 14. > > Signed-off-by: David Gow Acked-by: Daniel Latypov > --- > arch/um/configs/kunit_defconfig | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/um/configs/kunit_defconfig b/arch/um/configs/kunit_defconfig > index 9235b7d42d38..becf3432a375 100644 > --- a/arch/um/configs/kunit_defconfig > +++ b/arch/um/configs/kunit_defconfig > @@ -1,3 +1,2 @@ > CONFIG_KUNIT=y > -CONFIG_KUNIT_TEST=y > -CONFIG_KUNIT_EXAMPLE_TEST=y I think it's maybe still useful to have an example of selecting a specific test. I'd lean towards keeping one or both of these. KUNIT_TEST might not be as clear as KUNIT_EXAMPLE_TEST, so I'd lean towards keeping that one, if we don't want both. > +CONFIG_KUNIT_ALL_TESTS=y > -- > 2.31.1.751.gd2f1c929bd-goog > > -- > 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/20210518035825.1885357-1-davidgow%40google.com.