Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1660372pxj; Fri, 21 May 2021 21:44:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymKdUWkDdEmUYBzbZrZjzCN4GX/JOc0A7INRVuuTknwR7FTMNOYmyj5o7Nry30wpO1PvhF X-Received: by 2002:a92:c205:: with SMTP id j5mr2967070ilo.1.1621658693929; Fri, 21 May 2021 21:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621658693; cv=none; d=google.com; s=arc-20160816; b=lmVmHBA+hm32kJpItqC41te/MSkLMi9G+jS+HC0l/kQHeHFHPt/7y/zT45uFUIQVBK 4miAi4CvEspgbzySZVU5QVfo3AiiqTRM2W/sKG3YzsjuKLp2v+5VwetuzPbKy8ejyd+c KXojxHkWvBLiZCk2y3+nD21uX4fc4AGMh2/VCnAqNN5yOEZ74VLklTHUMS9LXESiLXI9 Gkrb5H3flX/4TSLL1ekeRuNzTihk7+fsBC5vKio7YsuDs51N86JFW2yBCEwwPgxGav98 L+XbOfw0W7RcYfCdm1U/KxnyxAqiALvAyl/kjcHgnz/JNRlO1JL3SvT3ddLoxGzrTArE XNoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=96Y9WwIc8kUkrmHkpaEi69xgiu/NxnCuPIF69L/93wQ=; b=0Uui7NBkVXch/g6wv1TfohGrBQn+M9vy3g3o1PN25HtxdABnV3kKPStItZcnWjYvX2 aW8Ug1ut0dOYLe9hD3ZXoU9LX6kN7exS6hXGliuP8Gip2pyg8Nqt+OVW2IrZZh2F2OGo R2qHLB1TLwQeC8hhJIeINMWwRungf1obQblRVnPz3QFV3BqwItwxDVM15ZfTmBWOiivv yBvckxqiQFAjtuty9PnwtthIZHrBBUMErd8GnIV0JFiAkiS/YQOoI9doJBDTiFIryB65 8LPFCknEhBbok8ArejBlbeiU+EI+btb+nreMk/3cdsSroAXeCASohY4WMLfLwrITg+qG w2rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=k6ehWr8L; 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 i127si6238260iof.95.2021.05.21.21.44.41; Fri, 21 May 2021 21:44:53 -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=k6ehWr8L; 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 S231398AbhEVEo3 (ORCPT + 99 others); Sat, 22 May 2021 00:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbhEVEo2 (ORCPT ); Sat, 22 May 2021 00:44:28 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E9FCC06138A for ; Fri, 21 May 2021 21:43:03 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id b66-20020a25cb450000b02905076ea039f1so29257983ybg.1 for ; Fri, 21 May 2021 21:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=96Y9WwIc8kUkrmHkpaEi69xgiu/NxnCuPIF69L/93wQ=; b=k6ehWr8LMhU+5n2P7IT0s/1qchLDyjWLrbHUKCJ2mvUhEQQ92Pc792SZsQ82MFA8TF YRXHAheIyLyleKIrlXH4+LVOXLyBZkHAP879WZ4C3zCMsnVSGguCvMvIKuFZqQqFxaiW iLVm2LwBMmcjrHkq6L3iUhqKOMNwJOtY6dsc10uSCVWcaqCKqhCaHbdus2kZpHXNcu71 6B4eWSZr8gcmROS4B95RIpjm3cTE2wAtR5a37ikta8OzWJyxw4Nn4djoAbJM95ZIlkz2 ebs57FJvGFxiXem+qvaeQ6+QOZ9GvVs0cWfCYEeJcPAo3Rh1OnK3jmzWFt+DkbCEpAQv J+VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=96Y9WwIc8kUkrmHkpaEi69xgiu/NxnCuPIF69L/93wQ=; b=p2Q8yfyfjWJmMeTk9IQ+tEVoxTeCYweQ4nYEk1Np+l99ZxXkcsDXaL5b7Rkg7fZTr6 EtHlTdskz/3CUXBpoyiwrhDMVAagBtihtgACvSRAWzB+53/in/9huepfss+PXGE6kPOT naafuT/wP2rl15tTdalPqNgMv725L1m9ag59BIutPFAf7jcRDtq/4+6T0IVhXj2B1iPe 6MHSG/kzl2VMPqG4/iB6lJWbXZ4z3QUd2aoXLCO8NNgzvhfn4EZspyerf9Q+dAXDLX4a mZzrhaW2rAusqG77rv8/lLijWxamQQEkDk+HrXmylZq5bbpVcJsCZwpLiEsqt+0hTm/Z QZSQ== X-Gm-Message-State: AOAM531W6t5wS6gBb7TIBuqOG7PoGN3SYdfjOcRGQ7mmMOuT+BxDqXkm ldI8mTwa1Q4Fb62aki2p6h91eoqddGsR6g== X-Received: from spirogrip.svl.corp.google.com ([2620:15c:2cb:201:74c:35f3:92d:b18a]) (user=davidgow job=sendgmr) by 2002:a5b:5c3:: with SMTP id w3mr21416475ybp.498.1621658582642; Fri, 21 May 2021 21:43:02 -0700 (PDT) Date: Fri, 21 May 2021 21:42:40 -0700 In-Reply-To: <20210522044241.2763088-1-davidgow@google.com> Message-Id: <20210522044241.2763088-2-davidgow@google.com> Mime-Version: 1.0 References: <20210522044241.2763088-1-davidgow@google.com> X-Mailer: git-send-email 2.31.1.818.g46aad6cb9e-goog Subject: [PATCH v2 2/3] kunit: Move default config from arch/um -> tools/testing/kunit From: David Gow To: Brendan Higgins , Shuah Khan Cc: David Gow , Jeff Dike , Richard Weinberger , Jonathan Corbet , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-um@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default .kunitconfig file is currently kept in arch/um/configs/kunit_defconfig, but -- with the impending QEMU patch -- will no-longer be exclusively used for UML-based kernels. Move it alongside the other KUnit configs in tools/testing/kunit/configs, and give it a name which matches the existing all_tests.config and broken_on_uml.config files. Also update the Getting Started documentation to point to the new file. Signed-off-by: David Gow --- Documentation/dev-tools/kunit/start.rst | 2 +- .../testing/kunit/configs/default.config | 0 tools/testing/kunit/kunit_kernel.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename arch/um/configs/kunit_defconfig => tools/testing/kunit/configs/default.config (100%) diff --git a/Documentation/dev-tools/kunit/start.rst b/Documentation/dev-tools/kunit/start.rst index 0e65cabe08eb..5becb09b1751 100644 --- a/Documentation/dev-tools/kunit/start.rst +++ b/Documentation/dev-tools/kunit/start.rst @@ -36,7 +36,7 @@ A good starting point for a ``.kunitconfig`` is the KUnit defconfig: .. code-block:: bash cd $PATH_TO_LINUX_REPO - cp arch/um/configs/kunit_defconfig .kunitconfig + cp tools/testing/kunit/configs/default.config .kunitconfig You can then add any other Kconfig options you wish, e.g.: diff --git a/arch/um/configs/kunit_defconfig b/tools/testing/kunit/configs/default.config similarity index 100% rename from arch/um/configs/kunit_defconfig rename to tools/testing/kunit/configs/default.config diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py index 89a7d4024e87..5b57a43de33f 100644 --- a/tools/testing/kunit/kunit_kernel.py +++ b/tools/testing/kunit/kunit_kernel.py @@ -20,7 +20,7 @@ import kunit_parser KCONFIG_PATH = '.config' KUNITCONFIG_PATH = '.kunitconfig' -DEFAULT_KUNITCONFIG_PATH = 'arch/um/configs/kunit_defconfig' +DEFAULT_KUNITCONFIG_PATH = 'tools/testing/kunit/configs/default.config' BROKEN_ALLCONFIG_PATH = 'tools/testing/kunit/configs/broken_on_uml.config' OUTFILE_PATH = 'test.log' -- 2.31.1.818.g46aad6cb9e-goog