From patchwork Tue Nov 17 14:34:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Zhang Jian X-Patchwork-Id: 56792 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1975286lbb; Tue, 17 Nov 2015 06:34:57 -0800 (PST) X-Received: by 10.66.246.137 with SMTP id xw9mr43453218pac.31.1447770897625; Tue, 17 Nov 2015 06:34:57 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bw7si50419592pab.182.2015.11.17.06.34.50; Tue, 17 Nov 2015 06:34:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753503AbbKQOei (ORCPT + 28 others); Tue, 17 Nov 2015 09:34:38 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35584 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbbKQOeg (ORCPT ); Tue, 17 Nov 2015 09:34:36 -0500 Received: by pacej9 with SMTP id ej9so10744654pac.2 for ; Tue, 17 Nov 2015 06:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eQdF91k2LG+x6uLeHduLCnLm3hWfqTQBcDFBcBhwKbs=; b=Xo8MpNNq/2vZHPkePucgDsm3M7g1CWSFRZ7AF5XJ25XQ6EKxtk1xEDHQPfKdO7Rb1k VOrzlFjFTE/v7tlM9+w2zVTCYh50QvUfja44nuRa2MOOW9SXPPK/BbuW17kiKbvRj/ij b6LgxIYGa3jkelkUh9rQbJCQ/IpUnjHQuYHmourQZQKoANvvCJyCumGnhn2Jx77yS7jT aDutuATMidYyt+h2hboHSoVGQHUNDJNceYHRaCu8ORKU8MiUVYYFkK797K2oKCvRPeiz de8zOMi9ZCsiw3MnnjDrtScPOl/+Mu5LPqw68uf4ahjSEa7P7e/P6E7XhChh1GKv0Gqh tJMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eQdF91k2LG+x6uLeHduLCnLm3hWfqTQBcDFBcBhwKbs=; b=F/Pel1lromwTxVxQknD3/XvX+RxpdRn3burls0IlMRdS2WynG3V/fVt4mnM9z2Gitm lT4cZhy27mrG0D6E1w6F/DPC1cQLX/SB0wSkrYcAIXheAcpYeieF8pVTyUNnk/mcIOFo b3Sf5dISzMa/Wa6KTYQvuOtwfICd0JDjhA/DGvvBSMAwG7gk58Cx0s4N2R0v6wmh0hHi IJWgOb6UkIXaEI4i0D+T0liCLSJJ7KWeOh7hV0iAlrP2kvY++zN1gAXwt3lh445IjOuj PPBefdAqZTr6T2GV8i8E9+fw1jLmkyd43+PsaIJntbHRKaBX3DuGyUXsm7dJYOEhx7H2 qGaw== X-Gm-Message-State: ALoCoQmyhk4Eolom7psXaKocShKl9oK29NK685O1FKmvjTlgFzoCzWlbWErRRQevB9kdQg24ZDis X-Received: by 10.67.4.38 with SMTP id cb6mr63536767pad.34.1447770875596; Tue, 17 Nov 2015 06:34:35 -0800 (PST) Received: from linux-j170.site ([116.251.213.227]) by smtp.gmail.com with ESMTPSA id fl5sm43318679pbd.70.2015.11.17.06.34.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 06:34:34 -0800 (PST) From: Bamvor Jian Zhang To: linux-api@vger.kernel.org Cc: linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com, khilman@linaro.org, tyler.baker@linaro.org, broonie@kernel.org, mpe@ellerman.id.au, dvhart@infradead.org, Bamvor Jian Zhang Subject: [PATCH V2 1/2] selftests: create test-specific kconfig fragments Date: Tue, 17 Nov 2015 22:34:16 +0800 Message-Id: <1447770857-9883-2-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447770857-9883-1-git-send-email-bamvor.zhangjian@linaro.org> References: <1447770857-9883-1-git-send-email-bamvor.zhangjian@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create the config file in each directory of testcase which need more kernel configuration than the default defconfig. User could use these configs with merge_config.sh script: Enable config for specific testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \ tools/testing/selftests/xxx/config Enable configs for all testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \ tools/testing/selftests/*/config Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/cpu-hotplug/config | 2 ++ tools/testing/selftests/firmware/config | 1 + tools/testing/selftests/ftrace/config | 1 + tools/testing/selftests/ipc/config | 2 ++ tools/testing/selftests/memory-hotplug/config | 4 ++++ tools/testing/selftests/mount/config | 2 ++ tools/testing/selftests/net/config | 3 +++ tools/testing/selftests/pstore/config | 4 ++++ tools/testing/selftests/seccomp/config | 2 ++ tools/testing/selftests/static_keys/config | 1 + tools/testing/selftests/user/config | 1 + tools/testing/selftests/vm/config | 1 + tools/testing/selftests/zram/config | 2 ++ 13 files changed, 26 insertions(+) create mode 100644 tools/testing/selftests/cpu-hotplug/config create mode 100644 tools/testing/selftests/firmware/config create mode 100644 tools/testing/selftests/ftrace/config create mode 100644 tools/testing/selftests/ipc/config create mode 100644 tools/testing/selftests/memory-hotplug/config create mode 100644 tools/testing/selftests/mount/config create mode 100644 tools/testing/selftests/net/config create mode 100644 tools/testing/selftests/pstore/config create mode 100644 tools/testing/selftests/seccomp/config create mode 100644 tools/testing/selftests/static_keys/config create mode 100644 tools/testing/selftests/user/config create mode 100644 tools/testing/selftests/vm/config create mode 100644 tools/testing/selftests/zram/config -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/tools/testing/selftests/cpu-hotplug/config b/tools/testing/selftests/cpu-hotplug/config new file mode 100644 index 0000000..e6ab090 --- /dev/null +++ b/tools/testing/selftests/cpu-hotplug/config @@ -0,0 +1,2 @@ +CONFIG_NOTIFIER_ERROR_INJECTION=y +CONFIG_CPU_NOTIFIER_ERROR_INJECT=m diff --git a/tools/testing/selftests/firmware/config b/tools/testing/selftests/firmware/config new file mode 100644 index 0000000..c8137f7 --- /dev/null +++ b/tools/testing/selftests/firmware/config @@ -0,0 +1 @@ +CONFIG_TEST_FIRMWARE=y diff --git a/tools/testing/selftests/ftrace/config b/tools/testing/selftests/ftrace/config new file mode 100644 index 0000000..ef82146 --- /dev/null +++ b/tools/testing/selftests/ftrace/config @@ -0,0 +1 @@ +CONFIG_FTRACE=y diff --git a/tools/testing/selftests/ipc/config b/tools/testing/selftests/ipc/config new file mode 100644 index 0000000..0702447 --- /dev/null +++ b/tools/testing/selftests/ipc/config @@ -0,0 +1,2 @@ +CONFIG_EXPERT=y +CONFIG_CHECKPOINT_RESTORE=y diff --git a/tools/testing/selftests/memory-hotplug/config b/tools/testing/selftests/memory-hotplug/config new file mode 100644 index 0000000..2fde301 --- /dev/null +++ b/tools/testing/selftests/memory-hotplug/config @@ -0,0 +1,4 @@ +CONFIG_MEMORY_HOTPLUG=y +CONFIG_MEMORY_HOTPLUG_SPARSE=y +CONFIG_NOTIFIER_ERROR_INJECTION=y +CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m diff --git a/tools/testing/selftests/mount/config b/tools/testing/selftests/mount/config new file mode 100644 index 0000000..b5d881e --- /dev/null +++ b/tools/testing/selftests/mount/config @@ -0,0 +1,2 @@ +CONFIG_USER_NS=y +CONFIG_DEVPTS_MULTIPLE_INSTANCES=y diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config new file mode 100644 index 0000000..e57b4ac --- /dev/null +++ b/tools/testing/selftests/net/config @@ -0,0 +1,3 @@ +CONFIG_USER_NS=y +CONFIG_BPF_SYSCALL=y +CONFIG_TEST_BPF=m diff --git a/tools/testing/selftests/pstore/config b/tools/testing/selftests/pstore/config new file mode 100644 index 0000000..6a8e5a9 --- /dev/null +++ b/tools/testing/selftests/pstore/config @@ -0,0 +1,4 @@ +CONFIG_MISC_FILESYSTEMS=y +CONFIG_PSTORE=y +CONFIG_PSTORE_PMSG=y +CONFIG_PSTORE_CONSOLE=y diff --git a/tools/testing/selftests/seccomp/config b/tools/testing/selftests/seccomp/config new file mode 100644 index 0000000..db1e11b --- /dev/null +++ b/tools/testing/selftests/seccomp/config @@ -0,0 +1,2 @@ +CONFIG_SECCOMP=y +CONFIG_SECCOMP_FILTER=y diff --git a/tools/testing/selftests/static_keys/config b/tools/testing/selftests/static_keys/config new file mode 100644 index 0000000..d538fb7 --- /dev/null +++ b/tools/testing/selftests/static_keys/config @@ -0,0 +1 @@ +CONFIG_TEST_STATIC_KEYS=m diff --git a/tools/testing/selftests/user/config b/tools/testing/selftests/user/config new file mode 100644 index 0000000..784ed84 --- /dev/null +++ b/tools/testing/selftests/user/config @@ -0,0 +1 @@ +CONFIG_TEST_USER_COPY=m diff --git a/tools/testing/selftests/vm/config b/tools/testing/selftests/vm/config new file mode 100644 index 0000000..698c7ed --- /dev/null +++ b/tools/testing/selftests/vm/config @@ -0,0 +1 @@ +CONFIG_USERFAULTFD=y diff --git a/tools/testing/selftests/zram/config b/tools/testing/selftests/zram/config new file mode 100644 index 0000000..e0cc47e --- /dev/null +++ b/tools/testing/selftests/zram/config @@ -0,0 +1,2 @@ +CONFIG_ZSMALLOC=y +CONFIG_ZRAM=m