Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp246633iob; Mon, 2 May 2022 18:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwkfN/CxWxOrGurI9WWkIEvzLZrELykghwu2Of17kQEx3IKAxRrc2v1IXqaGNbE7zW1UFm X-Received: by 2002:a17:902:ec8a:b0:15e:967b:f928 with SMTP id x10-20020a170902ec8a00b0015e967bf928mr11346633plg.133.1651541119784; Mon, 02 May 2022 18:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651541119; cv=none; d=google.com; s=arc-20160816; b=fjjU8SRcPOPQYYjH0ou4cwwToIIBy/b1Q+ZJQ/fedXooqpenl4aUxfSYIVWknFIAHI kUQsEp2CMXnQJhanzdKvmP2Smy084YiH8Ps7UshMISK6XFPvD5ljhkW2vGrtYert+py9 UBHxHmqoOzGwhnnF4GEE4zOeOt5jEDM2Sh6O/0VACFtzzIqDdnODaZSEKsREPlLth7Uh Fkhb8p7nUBgXmSQH4O5pXJiNxxhUs42WS37DVXWaCoEGeeXzKij4ZKtnPYRxsjvf0Qmp snyqX/pd8fw0SwJ3kyyyFALwsi2ZAde5nblDHaqL85oi4UOqP/CLh495U4PLrRhQ5ITW zAkQ== 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=E0CI0L8FLznl+zpxus1ooWUihJs/c/FZ66YeO2QuIbM=; b=A1j0ruORp3RDfBI3Bv9bKDNeHM6pQXE9LdFrHkBqMdaCqPqaSw5s07IWTRX84toS+A KtnJ/gsWZDsSNKOkRyS7pqyZUOkBUz4IJC4jTfXRCLdLi79biMXc0Eh9BHMWvn524/EM kYUizmBZPQ6R65MQO9fOqvionIDW5uFiR/q0GVz8xx6qigLelN5NNwKrJVDRq/MEKBUE jrPl3sfn7IdYl81YhrvpdWNvHFVgU06J0E5orm18HcStzOA2LLpsS2pKfDs/AS8XQt7K KHx1PWWReQuLvkHS3B7cyPv7JW2Rw7c4kiBRp2E3iRJXUVYLWRe7K901hRjD9IhpEzxz ZgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bilfqug9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z10-20020a63d00a000000b003aa661447c7si15401527pgf.38.2022.05.02.18.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bilfqug9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0F746A004; Mon, 2 May 2022 18:04:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232171AbiEBWk5 (ORCPT + 99 others); Mon, 2 May 2022 18:40:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231661AbiEBWk4 (ORCPT ); Mon, 2 May 2022 18:40:56 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 667F3BE34 for ; Mon, 2 May 2022 15:37:26 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id y21so18144033edo.2 for ; Mon, 02 May 2022 15:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E0CI0L8FLznl+zpxus1ooWUihJs/c/FZ66YeO2QuIbM=; b=bilfqug9/u+JZhH84+svlZRP72aMOiEVNWug2iPMUFX96FsRUAJqwwFHtQi/xn+Mql PrnLmb8tyQp1BlslX5JvlzwFYryoeGmDCteqh/g76tAhbhR4MzjPvPmf3LeoHanEWe6C egzctu32JbbU74GvBRYKIkhSk9fblUY3UP5osBlr0J7AOusfiE5xuHMkdJoZgsfmzt9H x/x/9SZfVfxedF8x14IH7uys1w93PdWdNff6ezCa2l5Bf/dTca4uYsTeTDj8kbhN5UYj xu7qgrGgBSiLkXnqpOii1dV26oNtWPTLtqqFMS9JTyPzHsO5CjHG4ZU4wmp2TfJPwtFp CCYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E0CI0L8FLznl+zpxus1ooWUihJs/c/FZ66YeO2QuIbM=; b=fdkUaIW+oB1+kgH3i1g51NwNis95Bu/Uvq3kdbLphgohKUGDLI1jPXidy9SHW3Klcf W8/IKTvjA0d0LjugnS0xT6wwLKiN8Xdi3n7XvL2sKnNNXJjI3MAS5Vq3MojCOWL/PERl NMsCqchOEMNsCi3wEs67mJey/o9BsrhsVE90QtRg8uW9Z50MJQkggpE4iAPkU8woVtFq ze1jSWVRcN6w5PZLQcGR7/LIFbuqC6EY+OgD8V4ONM5xttwTqjLWjx0xGgYTh1TBsjUy Q4gP4TV5RYBPAhsBy2hGkBekbdGYIyOydI8f73X5ODs43RZubkTv3JrHHe+ES8p4/Zjh TRww== X-Gm-Message-State: AOAM530I0pnljssI7AynyKojDK0dcgFkCqT2A3Xqn0uQHEEflTsOx/sc raJS1Kk+iXm9K8LnpcqdCaH62QlAkygC2uUn8eZMNQ== X-Received: by 2002:a05:6402:28b6:b0:425:e137:e31a with SMTP id eg54-20020a05640228b600b00425e137e31amr15491035edb.215.1651531044738; Mon, 02 May 2022 15:37:24 -0700 (PDT) MIME-Version: 1.0 References: <20220430045639.839186-1-davidgow@google.com> In-Reply-To: <20220430045639.839186-1-davidgow@google.com> From: Daniel Latypov Date: Mon, 2 May 2022 17:37:13 -0500 Message-ID: Subject: Re: [PATCH] kunit: tool: Add list of all valid test configs on UML To: David Gow Cc: Brendan Higgins , Shuah Khan , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 29, 2022 at 11:56 PM David Gow wrote: > > It's often desirable (particularly in test automation) to run as many > tests as possible. This config enables all the tests which work as > builtins under UML at present, increasing the total tests run from 156 > to 342 (not counting 36 'skipped' tests). Just to clear up potential confusion for others, I'll note that these aren't counting test cases. This is from kunit.py's output, so it counts each parameter from parameterized tests as "subtests." Copying my command from https://kunit-review.googlesource.com/c/linux/+/5249, one can use this to count the # of test cases. $ ./tools/testing/kunit/kunit.py run --kunitconfig=... --raw_output=kunit --kernel_args=kunit.action=list | egrep '^[a-z0-9_-]+\.[a-z0-9_-]+' I see this enabling a total of 260 test _cases_ (including skipped). The default (basically just CONFIG_KUNIT_ALL_TESTS=y) gives 192 (including skipped). > > They can be run with: > ./tools/testing/kunit/kunit.py run > --kunitconfig=./tools/testing/kunit/configs/all_tests_uml.config > > This acts as an in-between point between the KUNIT_ALL_TESTS config > (which enables only tests whose dependencies are already enabled), and > the kunit_tool --alltests option, which tries to use allyesconfig, > taking a very long time to build and breaking very often. > > Signed-off-by: David Gow Tested-by: Daniel Latypov Looks good to me, some small comments below. > --- > .../kunit/configs/all_tests_uml.config | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 tools/testing/kunit/configs/all_tests_uml.config > > diff --git a/tools/testing/kunit/configs/all_tests_uml.config b/tools/testing/kunit/configs/all_tests_uml.config > new file mode 100644 > index 000000000000..bdee36bef4a3 > --- /dev/null > +++ b/tools/testing/kunit/configs/all_tests_uml.config > @@ -0,0 +1,37 @@ > +# This config enables as many tests as possible under UML. > +# It is intended for use in continuous integration systems and similar for > +# automated testing of as much as possible. > +# The config is manually maintained, though it uses KUNIT_ALL_TESTS=y to enable > +# any tests whose dependencies are already satisfied. Please feel free to add > +# more options if they any new tests. missing: "enable"? "if they enable any new tests" Hmm, should we state a preference for how heavy (time or resource-wise) tests should be? Because the comment says it's meant for automation, but I can imagine humans wanting to run it. (I'm completely fine with us not stating one, just throwing the idea out there for discussion) Currently, I get this with an incremental rebuild: Elapsed time: 141.627s total, 1.384s configuring, 136.175s building, 3.970s running But we do have tests on other arches that take ~30s to run (kfence), for example. Would such tests be candidates for inclusion in this file? Or is it only problematic when they start taking a couple minutes each?