Преглед изворни кода

selftests: create test-specific kconfig fragments

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 testcase:
(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 <bamvor.zhangjian@linaro.org>
Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Bamvor Jian Zhang пре 9 година
родитељ
комит
8c749ce93e

+ 2 - 0
tools/testing/selftests/cpu-hotplug/config

@@ -0,0 +1,2 @@
+CONFIG_NOTIFIER_ERROR_INJECTION=y
+CONFIG_CPU_NOTIFIER_ERROR_INJECT=m

+ 1 - 0
tools/testing/selftests/firmware/config

@@ -0,0 +1 @@
+CONFIG_TEST_FIRMWARE=y

+ 1 - 0
tools/testing/selftests/ftrace/config

@@ -0,0 +1 @@
+CONFIG_FTRACE=y

+ 2 - 0
tools/testing/selftests/ipc/config

@@ -0,0 +1,2 @@
+CONFIG_EXPERT=y
+CONFIG_CHECKPOINT_RESTORE=y

+ 4 - 0
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

+ 2 - 0
tools/testing/selftests/mount/config

@@ -0,0 +1,2 @@
+CONFIG_USER_NS=y
+CONFIG_DEVPTS_MULTIPLE_INSTANCES=y

+ 3 - 0
tools/testing/selftests/net/config

@@ -0,0 +1,3 @@
+CONFIG_USER_NS=y
+CONFIG_BPF_SYSCALL=y
+CONFIG_TEST_BPF=m

+ 4 - 0
tools/testing/selftests/pstore/config

@@ -0,0 +1,4 @@
+CONFIG_MISC_FILESYSTEMS=y
+CONFIG_PSTORE=y
+CONFIG_PSTORE_PMSG=y
+CONFIG_PSTORE_CONSOLE=y

+ 2 - 0
tools/testing/selftests/seccomp/config

@@ -0,0 +1,2 @@
+CONFIG_SECCOMP=y
+CONFIG_SECCOMP_FILTER=y

+ 1 - 0
tools/testing/selftests/static_keys/config

@@ -0,0 +1 @@
+CONFIG_TEST_STATIC_KEYS=m

+ 1 - 0
tools/testing/selftests/user/config

@@ -0,0 +1 @@
+CONFIG_TEST_USER_COPY=m

+ 1 - 0
tools/testing/selftests/vm/config

@@ -0,0 +1 @@
+CONFIG_USERFAULTFD=y

+ 2 - 0
tools/testing/selftests/zram/config

@@ -0,0 +1,2 @@
+CONFIG_ZSMALLOC=y
+CONFIG_ZRAM=m