Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp814612pxb; Wed, 6 Apr 2022 00:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySVxqGzKIQ6jUBNjJ7UsO/ICzdz5E9QRM9eBvviiuornEEx7+rGbhHHC2n1CRnt5m1/dvM X-Received: by 2002:a17:90a:b10c:b0:1ca:ba2d:d67d with SMTP id z12-20020a17090ab10c00b001caba2dd67dmr8476285pjq.127.1649230045281; Wed, 06 Apr 2022 00:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649230045; cv=none; d=google.com; s=arc-20160816; b=KT2Tnj02pVD1MLn1Y9y+MMXpr3IK2exYWTP8J1ibaZg6w16342qTylAb/Un4/4yeaD cOPY0gKecYylQbQ+UTn2lzxFGXNLXTnuhpyi1tfz7/IPjzHptNEPVWSjbUDVncfSoW3w gMqGd/ei6en6XHDYNsK4BlTdy7lN1GB5dl7Org5CSjNhx1fKXYJ8xvwK0foNFfDhkvJm 0bR/m1rLp62pXiCs89VTu5auIpjxsw3rbNw2/7j57ZWnoGZqSQDT4McJFjpjr0jwSxYu 9KJwJHqHbmMXiAsx3aQEG7PtaJnUsHDUGzQkiJd0p8cq2EaKswC6QJlvOgSx/g8VPw0l JcQQ== 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:mime-version:message-id:date :dkim-signature; bh=tybtDUXPQXhYvxy9gX9DtZoGahyOTlz+nyL3O6sS+eo=; b=T7ofn/rxMS64uBmfxE64DUDPSlgCbJjd0VnBsNBsmgyM+iWExx+IPIf2uw698gqDA/ xx7WisYl20NILojdeTjurVNSumzJwZEgrKEZrk61qc6oHmKAE4303DYP2wen9AfYaLMw LLHTGslaPnzRAiQyuP151xGi1O1Hm4jentPjNSisiwWNIY9e9IseZxSy7Cc/abpQmERb Y7PedRqNprj9CsjtnnPI4YJkNGslrtsuU2E4+BGyO5wMhgBBw7F9cB3R91PIO3bicP34 tvjBqayU6UgUF6opjH6SkWY9n67wZ4bGm6Vk8lYML/9G7d7dbRo68UhR+HpT816Zt3Cp OJVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h55LQ5UM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id pg7-20020a17090b1e0700b001c69d08924fsi4952833pjb.50.2022.04.06.00.27.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 00:27:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h55LQ5UM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 1B9B54F8856; Wed, 6 Apr 2022 00:04:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1449792AbiDEUK2 (ORCPT + 99 others); Tue, 5 Apr 2022 16:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573406AbiDETIX (ORCPT ); Tue, 5 Apr 2022 15:08:23 -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 55953DFFAD for ; Tue, 5 Apr 2022 12:06:24 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id z15-20020a25bb0f000000b00613388c7d99so45728ybg.8 for ; Tue, 05 Apr 2022 12:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=tybtDUXPQXhYvxy9gX9DtZoGahyOTlz+nyL3O6sS+eo=; b=h55LQ5UM26LmuR62itH0V3ChlAvpYZ42TMOG+f3rw/mp6yjZnbWVTBqCVC/cYwSpbJ 0slhnsMw8p5HDGyheffeBMt9zi/aVwh5t8Gf7LrBGxT0cPJmANCdN7zFwWMilsAMUZa6 TzzBiH0fBhF0mSBYx1fyC0NSJlwUVBxpPtE5Ca/Mxtbz6VpeTZv/xwCB7nrQJzv/SJAT ZJuw8JE3e9gE0Z2uRNM9YJ9BYy0WKQ+QJ2f04nE2hqdD8T4vfJg8iP4/CSwBE6xw9t9C DVfEUEfehQdRIJRmTihSNwrCHnUIVOonp5jTmy6cY1aNVMPQQzOdZfVnn0fiJC3lJrLi VunA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=tybtDUXPQXhYvxy9gX9DtZoGahyOTlz+nyL3O6sS+eo=; b=B9v/AbOZ6bBCSedl75wk14Z4ZefoONJjccbEvtZI88io21DQ3tdVXCazRwI+GNMPlM Za9dnEQdULWgiI3BwLtVk9WU4Xw2DAw+q6RCONPBqJHTWWZlNn5Y+n+fvqGXECoWx9q/ HEPp5+yBS86F218Fb/3w+xh+vpB1j6ASOjaF5ThCOFjFIcDED7kEMJHEIgxTj7KgEi5b 7XBiQKyk8pDN97gq5qErKE+hSGRD6p8FHsBrr1O2+lgNHagUethT/pnf9TGp8X4oZgM8 +ZGFi/lWEIPtBegTy1odcpaz2Ql39gnj1DTrfUZo+ybdBBiid9yh31qhRJYWsrlWBe1B Mi/A== X-Gm-Message-State: AOAM533VYURPAieatAY/SkfU+S6Mgwdq1PFx2Mc0B9Sya0T9Q0dIPtkh OudltzpGDYrBtttzJMvF3J0+PEm708sxZQ== X-Received: from dlatypov.svl.corp.google.com ([2620:15c:2cd:202:83dd:c30c:6cd0:4323]) (user=dlatypov job=sendgmr) by 2002:a25:5d0d:0:b0:633:25c8:380 with SMTP id r13-20020a255d0d000000b0063325c80380mr3608330ybb.167.1649185583488; Tue, 05 Apr 2022 12:06:23 -0700 (PDT) Date: Tue, 5 Apr 2022 12:06:19 -0700 Message-Id: <20220405190619.540177-1-dlatypov@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-goog Subject: [PATCH] lib/Kconfig.debug: change KUnit tests to default to KUNIT_ALL_TESTS From: Daniel Latypov To: brendanhiggins@google.com, davidgow@google.com Cc: linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, Daniel Latypov 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 This is in line with Documentation/dev-tools/kunit/style.rst. Some of these tests predate that so they don't follow this convention. With this and commit b0841b51cac9 ("kunit: arch/um/configs: Enable KUNIT_ALL_TESTS by default"), kunit.py will now run these tests by default. This hopefully makes it easier to run and maintain the tests. If any of these were to start failing, people would notice much quicker. Note: this commit doesn't update LINEAR_RANGES_TEST since that would select its dependency (LINEAR_RANGES). We don't want KUNIT_ALL_TESTS to enable anything other than test kconfigs. Signed-off-by: Daniel Latypov --- lib/Kconfig.debug | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 075cd25363ac..36865b37b33b 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2140,10 +2140,11 @@ config TEST_DIV64 If unsure, say N. config KPROBES_SANITY_TEST - tristate "Kprobes sanity tests" + tristate "Kprobes sanity tests" if !KUNIT_ALL_TESTS depends on DEBUG_KERNEL depends on KPROBES depends on KUNIT + default KUNIT_ALL_TESTS help This option provides for testing basic kprobes functionality on boot. Samples of kprobe and kretprobe are inserted and @@ -2417,8 +2418,9 @@ config TEST_SYSCTL If unsure, say N. config BITFIELD_KUNIT - tristate "KUnit test bitfield functions at runtime" + tristate "KUnit test bitfield functions at runtime" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help Enable this option to test the bitfield functions at boot. @@ -2452,8 +2454,9 @@ config HASH_KUNIT_TEST optimized versions. If unsure, say N. config RESOURCE_KUNIT_TEST - tristate "KUnit test for resource API" + tristate "KUnit test for resource API" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help This builds the resource API unit test. Tests the logic of API provided by resource.c and ioport.h. @@ -2506,8 +2509,9 @@ config LINEAR_RANGES_TEST If unsure, say N. config CMDLINE_KUNIT_TEST - tristate "KUnit test for cmdline API" + tristate "KUnit test for cmdline API" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help This builds the cmdline API unit test. Tests the logic of API provided by cmdline.c. @@ -2517,8 +2521,9 @@ config CMDLINE_KUNIT_TEST If unsure, say N. config BITS_TEST - tristate "KUnit test for bits.h" + tristate "KUnit test for bits.h" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help This builds the bits unit test. Tests the logic of macros defined in bits.h. base-commit: 3123109284176b1532874591f7c81f3837bbdc17 -- 2.35.1.1094.g7c7d902a7c-goog