Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1288431ybz; Fri, 1 May 2020 19:12:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKjvPU5RkOXjQadn2iikDaiganB4x1XU13Jb8O37FbJcGSrcO2R33Whi9KKgC7YAewv5rNA X-Received: by 2002:a05:6402:1b08:: with SMTP id by8mr5897441edb.286.1588385529936; Fri, 01 May 2020 19:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588385529; cv=none; d=google.com; s=arc-20160816; b=TZt1ROAhuyYbgvYLdaadpCJwSJR5ZYvO5PLtgr/IEdll6EznoTgId6Nf8VOM2dmSQn 4/L5TGIqZWP7lUTnWMczz5iRFZoZsOM4x26mXQzHeflqOqZUoQ/a/OB+xtwxf00KbKyy COHRVCmhFiH8i/LaYOR0fm7wAJlH91077B7bMXOpxAVLDSyIPH+CtFXahmbBK6P/ohYj lj9DqAK8Cje4jy7vYYqS0KDnGZnF5NcZgEdBzhke4QH1gPvnV2zZ298Z3I8YFhVtiGAb xAZp6lM2/rS0UIaind6bAtbLAgamVka0gkqRYsVQKMEchYDuHIim8OJrUhNXGG3w03k+ /T9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DxgeZ4dWQbsgxzC3vr4Uf0z6ga9GPtUvmnQ6rfH9mnw=; b=txgtOm36FmKNgINfWt9DC0UHgMbe+uq0L9VBwn7x+b62mAKDJrP0BJCZsElNjkQZ+N BrKTnCHJt/qx3LOO1FtAfnKKRQNRQZM7ah9iw3MTNoE0uriapyG/bnmxtGUtwDmsjUF9 idzQHm7QVKLo1/PU5kAOY0nDttlIGoFvX1Tk8Tu2vsFsKEbxmYnt4CAnd9HFIGrsb8kJ A0S8d5lvbX+GCgZ3n0UTwLnAYM8S4x5f9cQ9gTtSDUE8GUIDbkmrHOArwp14oR2gjHh7 iU70jZTmbuZMuZmpFwENGvhKlVCpowXztxpXW1hE797BphCKBlSbpqNzKWR7FaviKUEW tULw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GoAOXqYv; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 h2si2837268ejc.510.2020.05.01.19.11.30; Fri, 01 May 2020 19:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=GoAOXqYv; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S1726654AbgEBCL3 (ORCPT + 99 others); Fri, 1 May 2020 22:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbgEBCL2 (ORCPT ); Fri, 1 May 2020 22:11:28 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BACC061A0E for ; Fri, 1 May 2020 19:11:28 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id x4so1989264wmj.1 for ; Fri, 01 May 2020 19:11:28 -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=DxgeZ4dWQbsgxzC3vr4Uf0z6ga9GPtUvmnQ6rfH9mnw=; b=GoAOXqYvnqNaHnqw0sl6wxaUTEEROMaaJ5wtFkTK5JBEL5n2G2yvGvhs3s05djne9u Z0Nm572hdR8ZAqHgELOeTbhCxmoiHUC726/03InwwU0piYRV48UG/j+BM16uSqBf7VFT 3/4Bks7Dn7b3YYiGicAkJq043PppsvbGx0CWk1jV7TbiQ2eZ698CTHttNGU9GMA+gSlD yy5AuwsFaLV1/DF+ulL0gMVwg0fBWYh58QliUQqii9fRHedY1IHl5AtDR8kM7dLRpvvV Geu2ui5FWXP3BSoTCYRcP8EFX/JKjNL7AXTEBtblQXJ+7oX2W9r8tZjBd+6ylNmZDSNY yEWg== 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=DxgeZ4dWQbsgxzC3vr4Uf0z6ga9GPtUvmnQ6rfH9mnw=; b=ZRpQKheWE3uglOXPDCxigLb+uYZpPsXBjIcroG7eat/3/342KVkQBAjvHiSJv5opYn vqbtelKh9Wv1hN9pFL7J8DSgXNZRUHtBLytYrzQDJyuQyHim3Fe/z9v+An5O3YgF6FXv ChWxJrXPkWH0bBzR47eQayf5cT+1LCN25yxIvsuoxIsbFPlnlzjJNc7WDqBEDxySPuTG YV7H3Woo8/Ob/qSOs/VOsRhYR3VQTMXVsV/A332PnShiCFJWLDPW4VaKnP98J3xKQzIt p/Fm1vzM65JXZB4YpDf/3DK7TPF+5AtnhN7nnJDPfVBbR1WIWd8YgbDA8JQSsFJSh7si t5aw== X-Gm-Message-State: AGi0Pua1esrisUUhxzDyBGjeTc4+83OqjeGH4KZjIOfh2Aa6euefKbj9 OIPsiLt9XRZGJ7FA3vquxj6WnqhpCKnEeKL9LfQ2YQ== X-Received: by 2002:a1c:dd8a:: with SMTP id u132mr2195716wmg.87.1588385486740; Fri, 01 May 2020 19:11:26 -0700 (PDT) MIME-Version: 1.0 References: <20200501083510.1413-1-anders.roxell@linaro.org> In-Reply-To: From: David Gow Date: Sat, 2 May 2020 10:11:15 +0800 Message-ID: Subject: Re: [PATCH] kunit: Kconfig: enable a KUNIT_RUN_ALL fragment To: Brendan Higgins Cc: Anders Roxell , Greg KH , "Theodore Ts'o" , adilger.kernel@dilger.ca, Marco Elver , John Johansen , jmorris@namei.org, serge@hallyn.com, Linux Kernel Mailing List , linux-ext4@vger.kernel.org, kasan-dev , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , linux-security-module@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, May 2, 2020 at 4:31 AM Brendan Higgins wrote: > > On Fri, May 1, 2020 at 1:35 AM Anders Roxell wrote: > > > > Make it easier to enable all KUnit fragments. This is needed for kernel > > test-systems, so its easy to get all KUnit tests enabled and if new gets > > added they will be enabled as well. Fragments that has to be builtin > > will be missed if CONFIG_KUNIT_RUN_ALL is set as a module. > > > > Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if > > someone wants that even though KUNIT_RUN_ALL is enabled. > > I would LOVE IT, if you could make this work! I have been trying to > figure out the best way to run all KUnit tests for a long time now. > > That being said, I am a bit skeptical that this approach will be much > more successful than just using allyesconfig. Either way, there are > tests coming down the pipeline that are incompatible with each other > (the KASAN test and the KCSAN test will be incompatible). Even so, > tests like the apparmor test require a lot of non-default > configuration to compile. In the end, I am not sure how many tests we > will really be able to turn on this way. > > Thoughts? I think there's still some value in this which the allyesconfig option doesn't provide. As you point out, it's not possible to have a generic "run all tests" option due to potential conflicting dependencies, but this does provide a way to run all tests for things enabled in the current config. This could be really useful for downstream developers who want a way of running all tests relevant to their config without the overhead of running irrelevant tests (e.g., for drivers they don't build). Using allyesconfig doesn't make that distinction. Ultimately, we'll probably still want something which enables a broader set of tests for upstream development: whether that's based on this, allyesconfig, or something else entirely remains to be seen, I think. I suspect we're going to end up with something subsystem-specific (having a kunitconfig per subsystem, or a testing line in MAINTAINERS or similar are ideas which have been brought up in the past). This is a great looking tool to have in the toolbox, though. -- David