From patchwork Tue May 5 10:27:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528733 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DC101668 for ; Tue, 5 May 2020 10:27:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA9832087E for ; Tue, 5 May 2020 10:27:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lxq8UsRb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728736AbgEEK1N (ORCPT ); Tue, 5 May 2020 06:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728725AbgEEK1L (ORCPT ); Tue, 5 May 2020 06:27:11 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E05AC0610D6 for ; Tue, 5 May 2020 03:27:10 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id u15so1046794ljd.3 for ; Tue, 05 May 2020 03:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y4r4BzjDGTO09+pq2qJQzLpsqdYp3d0bmg7xrYt7/0k=; b=lxq8UsRbbA6JQHwi8YB41ue072QJ2ffr78bQkb/4GLMC458KwPgtwlcNH+7K8pq11n zoraXwhw9eRsviQtxRA+U4dervHMol0BBPlIVzZx/9cforLpLbgmHwtFP+/uBqR3RGfO CtucDsTaeq6V+hc8mK3P5FjYNUKYjKxOh5Z7HLpjOgkHftZDtQjx7tCwlFG1zVG1ve/+ 0Jw7mXl/wHOdI9vIPA5gO25bE4K+IakBue0rQ1ZRHihufkCi2AzoV5zH8nZq3YFPz29Y H752OVjW1oGHf4ltCmCXrQOYrGKbBDvHs8C0YNfPoKNcnoy1KeslY75+PptWpVM5voKr xruw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y4r4BzjDGTO09+pq2qJQzLpsqdYp3d0bmg7xrYt7/0k=; b=WTs+o22Q1/vPogHmvS/bR4B/v4kQLMfOpvavypuM7qwiPPjGtUOMHdK/mDPSvRcU15 bNwPZ6/mh6Cz7YBbvhx2raZaJ+Yd6ygU8XFv0SCra8tRchlkXDnz0XeyghgsVoypHre5 hM2TrXGxOECNUCLd7xMkNI2D3M0eYdrvnxtUkRJCmhvQbbs0Yz6c/g7hfyvKRVRYS0o0 rXDOtgf0PKAAFdZNMenIuLK8qAdwVEOq4emEmdHco5zAld8Bki3cZbVbl2SjMViFOAwL tksVGlA8Wr0KC6TvL5ut+fkC/8i9B+9kI6ySNd8d36viuTDvB7xPVQWohmmA3lfQxUar SrIw== X-Gm-Message-State: AGi0PuYSNItDEUKOQSfzwVLypiMGcB1WF3Tc+cIdSqMU8d8V4EnmU9JX oMuqTWtEkFQ+Az94SsEazPyxLA== X-Google-Smtp-Source: APiQypJnEG5pEB+WJjoe6xM1H2pstsQj428JhTG2iNFeTSyXwOzyD5BmMDWHrEub1AqznTCaupW6Lw== X-Received: by 2002:a2e:a58e:: with SMTP id m14mr1390091ljp.95.1588674428941; Tue, 05 May 2020 03:27:08 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id j15sm1799172lji.18.2020.05.05.03.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 03:27:08 -0700 (PDT) From: Anders Roxell To: brendanhiggins@google.com Cc: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, adilger.kernel@dilger.ca, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, elver@google.com, davidgow@google.com, Anders Roxell Subject: [PATCH v2 1/6] kunit: Kconfig: enable a KUNIT_RUN_ALL fragment Date: Tue, 5 May 2020 12:27:00 +0200 Message-Id: <20200505102700.7912-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: 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. Signed-off-by: Anders Roxell --- lib/kunit/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig index 95d12e3d6d95..537f37bc8400 100644 --- a/lib/kunit/Kconfig +++ b/lib/kunit/Kconfig @@ -41,4 +41,10 @@ config KUNIT_EXAMPLE_TEST is intended for curious hackers who would like to understand how to use KUnit for kernel development. +config KUNIT_RUN_ALL + tristate "KUnit run all test" + help + Enables all KUnit tests, if they can be enabled. + That depends on if KUnit is enabled as a module or builtin. + endif # KUNIT From patchwork Tue May 5 10:27:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528739 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D38015E6 for ; Tue, 5 May 2020 10:27:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 061E62075E for ; Tue, 5 May 2020 10:27:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OVBthVSE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728788AbgEEK1V (ORCPT ); Tue, 5 May 2020 06:27:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728762AbgEEK1R (ORCPT ); Tue, 5 May 2020 06:27:17 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2D7C0610D5 for ; Tue, 5 May 2020 03:27:15 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id x73so927623lfa.2 for ; Tue, 05 May 2020 03:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jihPcHqZJxL0w4uFWCdf0HGMcvBOKxr0NZgIqhD7lxo=; b=OVBthVSECWKCBn2KnlD3uQIl5WfCHuggSsbUuiKGbM3X9Ykk9Q8K/5AJ6iG1wO0nri kQjdWqQgxq/JydpWOmrzUfhmVq+eU6pZEQlp6lZIZCwrUWVBJNBX4mJV25R927HluQIZ 71XMOkY2QloMubs3C1Ws0N0b0/dEf70e2Tf/waWzCgeOY+jAndgJFIftAxVFBSwTLcNc G/szc2j4nA7/pbCFBqNW89aqlpDMbJrV8GghavXxQwz2avBk3ot0j38xwF9kRyC8ZW7J WrHnHSm6DQrQsYqc4xZL7Rf8RzQSUweD+vxYnlA7GbGcT6oAg66sAty1n2WDzZPFPBfA /4TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jihPcHqZJxL0w4uFWCdf0HGMcvBOKxr0NZgIqhD7lxo=; b=fu+rMWJds3Hvax4eXiYg3dmE8YI4WfTu+L1Ti8SGlk5//0KE505Htwv1tP9k5gV7tw /BXD0U8vBamY2/cvQvV6WUOsuZTfQIIbixNZe6enBh3qYpxtem7oXZWVn01ZC9RK2Mv4 JdDP4WRuoB9U1hbvHECdDjJmEHureMhOMd50qwDXDSITyvKbczdIcrBj28+z79XIKH9T jCscsr0r3y8GZ3OUjHnnB5dW3O1D9EH+eZypCFy1tGEmzBg1rKVF1ROSdOvCrGHvP50P Zq4cyfVGZaaJZ0+ZFTFXRRwVvE7gDcGJmZpfGiONvCMu3BZfj2HjP3uNepqEVEnEDF24 c6dA== X-Gm-Message-State: AGi0PubIL4CubOvlDmyXC3heVZTEAac63vSvzkin+c4yJOWMYFs6tDc2 F4zy3k3N9Hcu1na0rGl4EDdN6g== X-Google-Smtp-Source: APiQypKpdW8hKetp8Jqgh6uRz+2gEnfGkBOL+DStJXzeg0o3+FfpgqQ+sY3l4YkxKS0l1jMXnbGmaw== X-Received: by 2002:a19:505c:: with SMTP id z28mr1245732lfj.174.1588674433983; Tue, 05 May 2020 03:27:13 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id e16sm1878000lfc.63.2020.05.05.03.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 03:27:13 -0700 (PDT) From: Anders Roxell To: brendanhiggins@google.com Cc: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, adilger.kernel@dilger.ca, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, elver@google.com, davidgow@google.com, Anders Roxell Subject: [PATCH v2 2/6] kunit: default KUNIT_* fragments to KUNIT_RUN_ALL Date: Tue, 5 May 2020 12:27:09 +0200 Message-Id: <20200505102709.7964-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: This makes it easier to enable all KUnit fragments. Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though KUNIT_RUN_ALL is enabled. Signed-off-by: Anders Roxell Reviewed-by: David Gow --- lib/kunit/Kconfig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig index 537f37bc8400..e6a60391fa6b 100644 --- a/lib/kunit/Kconfig +++ b/lib/kunit/Kconfig @@ -15,7 +15,8 @@ menuconfig KUNIT if KUNIT config KUNIT_DEBUGFS - bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" + bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_RUN_ALL + default KUNIT_RUN_ALL help Enable debugfs representation for kunit. Currently this consists of /sys/kernel/debug/kunit//results files for each @@ -23,7 +24,8 @@ config KUNIT_DEBUGFS run that occurred. config KUNIT_TEST - tristate "KUnit test for KUnit" + tristate "KUnit test for KUnit" if !KUNIT_RUN_ALL + default KUNIT_RUN_ALL help Enables the unit tests for the KUnit test framework. These tests test the KUnit test framework itself; the tests are both written using @@ -32,7 +34,8 @@ config KUNIT_TEST expected. config KUNIT_EXAMPLE_TEST - tristate "Example test for KUnit" + tristate "Example test for KUnit" if !KUNIT_RUN_ALL + default KUNIT_RUN_ALL help Enables an example unit test that illustrates some of the basic features of KUnit. This test only exists to help new users understand From patchwork Tue May 5 10:27:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528741 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 46B8715E6 for ; Tue, 5 May 2020 10:27:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2907B2075E for ; Tue, 5 May 2020 10:27:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jCg5rc4f" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728794AbgEEK10 (ORCPT ); Tue, 5 May 2020 06:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728781AbgEEK1V (ORCPT ); Tue, 5 May 2020 06:27:21 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9691CC061A10 for ; Tue, 5 May 2020 03:27:20 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id s9so928165lfp.1 for ; Tue, 05 May 2020 03:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bgXGdUpeDA6S2n2bWfsapxIox2ARona/I5hdI1ZbAMo=; b=jCg5rc4fzbUcTEW82gMx4stI32yZ+9/AL2EMw+SxTScb0kgtBp4gy01prld/ovKhlg phUMh+Ol9Lsoue6wcRVA1f9S4Mp0nNf9LIyJD0VUiNMN9jjgp68FD4GZcb4/pEHlzZ0g BYQvsJx7Kn6Ufa6bJPwUgnVYZ8liUKU3W4dejF5TTBCCSKY7jx22+P2uLRGMRiNz3W9s MpX46xaYG/zR/6xFfjjF3xWx7XMXSPz56wxgMrF289Hpp3/TKC3vkhKq2rdMcjRvszH0 /W1p009a5oG+az6+pK9gkFpq65lLB3lBHgN/H3c9DCYMGdm2Apx5WNVmjhi7OMXfyj04 gPdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bgXGdUpeDA6S2n2bWfsapxIox2ARona/I5hdI1ZbAMo=; b=inp/JxJAjqzFesK60GL4SHMHlD5zKp3gnV8CirRSisSgk7HamQPCnIlHp3qKsA+vRh XP+Kla2czQFvEWfaOtOBICA653O8Y5SO+ciDgAvzjvWQpotIKFtN8h20idfwAAEGmTEy 9oOyorUTOaXXX/3lUq5SUHk8AZTubgUy5JrwGxr1JhYfxp0qfBiS5yY49/yUXEotdcar Cyl4dU9pG3V2dJ9dfFrHbYJubNrh39rYJsBSxgCiJ7YKh5QKoPzNdO+sLZ777jSQN+Tp uRpQ2E4QVezxKccB/ql4ESX++pP32b9qICtLf1oaatENBKE96VPlL4JA+Dje4b930DmU 7chQ== X-Gm-Message-State: AGi0PuY3GAzNLCSM9SLVq2J0sgLLZO5bCIw5rZKDYSPUAuQaOflLcuaW 8M4tW1nc9PxcFm5VcG1kfnK0PoNaZAZZqIca X-Google-Smtp-Source: APiQypJSHpXephHI+itU620IH4y5WRHndCkK56pPYq/1X0jg21roe+fznpAa9iZ47D7i1WwwUxIP8g== X-Received: by 2002:a19:5f04:: with SMTP id t4mr1255915lfb.208.1588674439039; Tue, 05 May 2020 03:27:19 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id g20sm1649058lfj.1.2020.05.05.03.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 03:27:18 -0700 (PDT) From: Anders Roxell To: akpm@linux-foundation.org Cc: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, adilger.kernel@dilger.ca, gregkh@linuxfoundation.org, brendanhiggins@google.com, =linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, elver@google.com, davidgow@google.com, Anders Roxell Subject: [PATCH v2 3/6] lib: Kconfig.debug: default KUNIT_* fragments to KUNIT_RUN_ALL Date: Tue, 5 May 2020 12:27:14 +0200 Message-Id: <20200505102714.8023-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: This makes it easier to enable all KUnit fragments. Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though KUNIT_RUN_ALL is enabled. Signed-off-by: Anders Roxell Reviewed-by: David Gow --- lib/Kconfig.debug | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 21d9c5f6e7ec..d1a94ff56a87 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2064,8 +2064,9 @@ config TEST_SYSCTL If unsure, say N. config SYSCTL_KUNIT_TEST - tristate "KUnit test for sysctl" + tristate "KUnit test for sysctl" if !KUNIT_RUN_ALL depends on KUNIT + default KUNIT_RUN_ALL help This builds the proc sysctl unit test, which runs on boot. Tests the API contract and implementation correctness of sysctl. @@ -2075,8 +2076,9 @@ config SYSCTL_KUNIT_TEST If unsure, say N. config LIST_KUNIT_TEST - tristate "KUnit Test for Kernel Linked-list structures" + tristate "KUnit Test for Kernel Linked-list structures" if !KUNIT_RUN_ALL depends on KUNIT + default KUNIT_RUN_ALL help This builds the linked list KUnit test suite. It tests that the API and basic functionality of the list_head type From patchwork Tue May 5 10:27:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528745 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 58C2815AB for ; Tue, 5 May 2020 10:27:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E6382078E for ; Tue, 5 May 2020 10:27:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LFmC24mP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728802AbgEEK11 (ORCPT ); Tue, 5 May 2020 06:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728793AbgEEK10 (ORCPT ); Tue, 5 May 2020 06:27:26 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B785C061BD3 for ; Tue, 5 May 2020 03:27:25 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id 188so910439lfa.10 for ; Tue, 05 May 2020 03:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rRiFBDOnGQBRLjLzMXuEXvNbksG32oUXPct1JY4cmik=; b=LFmC24mPBJC0sTlA2HASUPylx7foxAbwXYu3Lk7iButcxcHNtKnJ9lU/C4qoLZUUZp 9gcow66TgPpxKKSj1IKgjRrTNP09KsitmqgKx/T+saPhx2zgVUHLUJE0SElbTerGNBB2 N1M9L/FP0OTK3YV9nMHdb+Zwgw2fOaQzOWs0IBTvB0/pn68wDdlncjfg5ow1XEq6KG3z Dj4pa2pjB+/4XZ3K6MmQULKqZKZpZGPsw6ZILzLD6IlxgjzJgYYD9gtJVI457FxJb58C lqIOaSu8waDl9z6CemsMW6fvNn5COuvgzZnVRPwGJYBQDx8QXIEOXu9OCCUowwSlF83U SvBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rRiFBDOnGQBRLjLzMXuEXvNbksG32oUXPct1JY4cmik=; b=aDI+viKMsgawAjCLtZLi567biuVGTNyMeIPGzOTbUzIDxJf5dycvFa48Z+QDZi1od5 JSR3v/cnpJYq0eRxPThKdQnVCOIg6OKi4D3IEk3XKhtdCJ9iQ0HBMiBSCrsY23gDQMO+ icygHc7o4BLcLO4zwixaL/LTNQj3/SzAl0LnwbTWBOA1Wb5Xjee1Bgabgtve1LQeVWX7 86awBLbKZVJMOQ+aRZEbkS8IDCMNRBJLy5c4s5O03ujdt96SSKbwoU9YucxxkPcPRPvB 3lxWzVt7T36qTagsdvR56+ajMlGWlDSuMcXPSrBkC29cP4zRsLtc+GstAJLtJTUl9W89 sXTA== X-Gm-Message-State: AGi0Pualg+nJ8X3cQRlkr0OY6RSKnw2tv0dp701tqpqTeQrZ83RVEWEK wq/muLNecJPbVQ9TDO+0aFQ/sA== X-Google-Smtp-Source: APiQypIR9GXpeGznyTPzxxPMH60S70qpkz8Pdow9IgLyad003qeOI5oG/v94+jJLJGDddGEEFDFCTA== X-Received: by 2002:ac2:48b2:: with SMTP id u18mr1203102lfg.122.1588674443487; Tue, 05 May 2020 03:27:23 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id b2sm1598931lfi.14.2020.05.05.03.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 03:27:22 -0700 (PDT) From: Anders Roxell To: gregkh@linuxfoundation.org Cc: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, adilger.kernel@dilger.ca, akpm@linux-foundation.org, brendanhiggins@google.com, =linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, elver@google.com, davidgow@google.com, Anders Roxell Subject: [PATCH v2 4/6] drivers: base: default KUNIT_* fragments to KUNIT_RUN_ALL Date: Tue, 5 May 2020 12:27:19 +0200 Message-Id: <20200505102719.8071-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: This makes it easier to enable all KUnit fragments. Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though KUNIT_RUN_ALL is enabled. Signed-off-by: Anders Roxell Reviewed-by: David Gow --- drivers/base/Kconfig | 3 ++- drivers/base/test/Kconfig | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 5f0bc74d2409..c48e6e4ef367 100644 --- a/drivers/base/Kconfig +++ b/drivers/base/Kconfig @@ -149,8 +149,9 @@ config DEBUG_TEST_DRIVER_REMOVE test this functionality. config PM_QOS_KUNIT_TEST - bool "KUnit Test for PM QoS features" + bool "KUnit Test for PM QoS features" if !KUNIT_RUN_ALL depends on KUNIT=y + default KUNIT_RUN_ALL config HMEM_REPORTING bool diff --git a/drivers/base/test/Kconfig b/drivers/base/test/Kconfig index 305c7751184a..0d662d689f6b 100644 --- a/drivers/base/test/Kconfig +++ b/drivers/base/test/Kconfig @@ -9,5 +9,6 @@ config TEST_ASYNC_DRIVER_PROBE If unsure say N. config KUNIT_DRIVER_PE_TEST - bool "KUnit Tests for property entry API" + bool "KUnit Tests for property entry API" if !KUNIT_RUN_ALL depends on KUNIT=y + default KUNIT_RUN_ALL From patchwork Tue May 5 10:27:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528743 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E22715AB for ; Tue, 5 May 2020 10:27:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15B692075A for ; Tue, 5 May 2020 10:27:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ogl9bS0z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728824AbgEEK1b (ORCPT ); Tue, 5 May 2020 06:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728822AbgEEK1a (ORCPT ); Tue, 5 May 2020 06:27:30 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BD4C061A10 for ; Tue, 5 May 2020 03:27:29 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id a4so900311lfh.12 for ; Tue, 05 May 2020 03:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1n6Cfn9T8YCEV6dpjNIVgTHrosueglFJqXjbboo9a8g=; b=Ogl9bS0ze7bvZClDL882hNRrW4mzKPxFGP2s0fltIPLqv9XaBJNvVnuXpwJfGQH/6a kkjxls2iJijFrKE2K6SSEveB/q4gKUDs4/TMxreRYN6KTkgwCIbINZBvboXv2fFOOzRU f4K9Qu8ek8smsPpbIRHKa3bFN7zgNUBouxESS7JkrluwMwJFsaEr4BfYrF16/VT0iVgr xpBKAHORARUj+lFmoOOgh7b7bdvzcG6qWvkLzrHH9661/fbSKnCTddzEKmWoUpihIxI0 Y1mJycyBwQLzDLmH1OP/NPEoHDNe0GMmWeif9/x4M559YJPQ/5C7E2wMZMJfT6iBRbY1 fLNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1n6Cfn9T8YCEV6dpjNIVgTHrosueglFJqXjbboo9a8g=; b=X7qJ4829+gN19/8c2ngugpE7XJN/KEGewtBnVmNhIB0xuu43xRkcAuCxjXheOiTDxe AOIzatz1b7p7edtgS8YwXEIpg0pAPLGRLXlw8kcQr8VJ4fGs7wEdOKvBBil9d7xtuZx3 FTcAt/YOK288TqDTAsSdY9TW+6uKHoiuiIAlGDnYo+sZo3ny0n65oWStdUenYryK/ASa aK1az38vsIhXTPLqVU3pFbbxdypY3iSu/f2dGbXxAuGgSYy/D0U25IiqnVhbjJAo8UQz DDjN9sOipGlqWvBpdQH27H2zFS1DZSvCSOWyhYzw5L6QLLTkL/Jji/AMJMQ1QxKmpMh3 lUxw== X-Gm-Message-State: AGi0PuYrffXmler/kC8Hqj14BRI9pNiwjWYcgdIDeXq7gyF8LojgrJIG O0cV15cHnp5npznHa1I6A7nT/A== X-Google-Smtp-Source: APiQypJ05S+8D6hCUKWWxXYjCtPUKhk7oai+ye/tyDqNidiPXly4f7vFf1vHOjA/N1XK92kKFf4bfw== X-Received: by 2002:ac2:43c7:: with SMTP id u7mr1256634lfl.50.1588674448320; Tue, 05 May 2020 03:27:28 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id 7sm1592575lfr.52.2020.05.05.03.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 03:27:27 -0700 (PDT) From: Anders Roxell To: tytso@mit.edu, adilger.kernel@dilger.ca Cc: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, gregkh@linuxfoundation.org, akpm@linux-foundation.org, brendanhiggins@google.com, =linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, elver@google.com, davidgow@google.com, Anders Roxell Subject: [PATCH v2 5/6] fs: ext4: default KUNIT_* fragments to KUNIT_RUN_ALL Date: Tue, 5 May 2020 12:27:23 +0200 Message-Id: <20200505102723.8120-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: This makes it easier to enable all KUnit fragments. Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though KUNIT_RUN_ALL is enabled. Signed-off-by: Anders Roxell Reviewed-by: David Gow --- fs/ext4/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig index 2a592e38cdfe..76785143259d 100644 --- a/fs/ext4/Kconfig +++ b/fs/ext4/Kconfig @@ -103,9 +103,10 @@ config EXT4_DEBUG echo 1 > /sys/module/ext4/parameters/mballoc_debug config EXT4_KUNIT_TESTS - tristate "KUnit tests for ext4" + tristate "KUnit tests for ext4" if !KUNIT_RUN_ALL select EXT4_FS depends on KUNIT + default KUNIT_RUN_ALL help This builds the ext4 KUnit tests. From patchwork Tue May 5 10:27:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528747 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 69A5115E6 for ; Tue, 5 May 2020 10:27:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5194220675 for ; Tue, 5 May 2020 10:27:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x92NhqmC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728835AbgEEK1k (ORCPT ); Tue, 5 May 2020 06:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728836AbgEEK1j (ORCPT ); Tue, 5 May 2020 06:27:39 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E59C0610D5 for ; Tue, 5 May 2020 03:27:38 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id t11so924335lfe.4 for ; Tue, 05 May 2020 03:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=230loUifIymLa/TVi9RdiH3XdsCp0ddGQu/ABs4Cb/4=; b=x92NhqmCrm4AnAjLTvH9UeLaB71xW26RAg+TIq9FmwhUI5v+CVWxv6VxxO+P3RoT4Z s4QjqMqalrxfMf6UgUgIRjpHcFtySd4i6a8Nt3ZY3SMhDa5t+ykTQt4xA2I+KVD2A9is G63HxsG7KE63wMd6ZRUU34E43yRCqU0ia91PBrZHf9zM+hQgVQLHq4zlDqwYqVGZnaRu 57tXMyOtQ/wOOD7DugMWjt9vbUfRL1mLbdL/LryZqmwSml1lWJ0pFEhD/Y5bitoLxufZ eCIoo1/B74mEAJakYcJW7PFgxdacVK+uRtcNflMt78pYhgNyp5DPcu8iZbtuu3haD/fS 8+vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=230loUifIymLa/TVi9RdiH3XdsCp0ddGQu/ABs4Cb/4=; b=ZNIpKnyyyHU9BMkSChs/c1SQ49yVCmoLpL5mwbZMjkrn1f/Fs7zb5TAEGbFe/U+hvq 71ozFPJZi7KIsep+w5UcxM3gzaq9h5DRfyNKjJpuyk5AEd4YwEIVa9IoJB0s2N2+OGYH JVKIYxbn8Tzt63kd25XiV5MPBKD5l533MB4pYWr+fniEUYWTaZJUU4alGhkZlPH77PqH fYMLxC2f54XpRdVMIUsPiAM3brA9Q/UXN7VJoLPj95Gt2aa3BoSWzRNFvFTuuKMnsF76 onFzPXQMZjhhFjcjZQsmrvHAP6gFRTgLifZH5VwGDqxcELC56Cv4FgKS3IWbOH3pOeqb eUAg== X-Gm-Message-State: AGi0Pub3DNF3qCo5DkMQmQs0rQFVBtBtmP7OIQ4Srs1D1cSDXgSCvsLp ZgXBj5StSvMEqzHT0FcEWTSG8g== X-Google-Smtp-Source: APiQypIZ4cT/7LUuGVlV7W088j0iK9PnOaD9C4La60LR67rrDJBNi8X3LJVh/k9ffnvmmU6KZArQEQ== X-Received: by 2002:a19:ad45:: with SMTP id s5mr1277949lfd.106.1588674456921; Tue, 05 May 2020 03:27:36 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id n7sm1777255ljj.72.2020.05.05.03.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 03:27:36 -0700 (PDT) From: Anders Roxell To: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com Cc: gregkh@linuxfoundation.org, tytso@mit.edu, adilger.kernel@dilger.ca, akpm@linux-foundation.org, brendanhiggins@google.com, =linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, elver@google.com, davidgow@google.com, Anders Roxell Subject: [PATCH v2 6/6] security: apparmor: default KUNIT_* fragments to KUNIT_RUN_ALL Date: Tue, 5 May 2020 12:27:28 +0200 Message-Id: <20200505102728.8168-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: This makes it easier to enable all KUnit fragments. Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if someone wants that even though KUNIT_RUN_ALL is enabled. Signed-off-by: Anders Roxell Reviewed-by: David Gow --- security/apparmor/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/apparmor/Kconfig b/security/apparmor/Kconfig index 0fe336860773..c4648426ea5d 100644 --- a/security/apparmor/Kconfig +++ b/security/apparmor/Kconfig @@ -70,8 +70,9 @@ config SECURITY_APPARMOR_DEBUG_MESSAGES the kernel message buffer. config SECURITY_APPARMOR_KUNIT_TEST - bool "Build KUnit tests for policy_unpack.c" + bool "Build KUnit tests for policy_unpack.c" if !KUNIT_RUN_ALL depends on KUNIT=y && SECURITY_APPARMOR + default KUNIT_RUN_ALL help This builds the AppArmor KUnit tests.