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>
This commit is contained in:
Bamvor Jian Zhang 2016-01-08 15:27:33 +08:00 committed by Shuah Khan
parent bfd092b8c2
commit 8c749ce93e
13 changed files with 26 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,4 @@
CONFIG_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG_SPARSE=y
CONFIG_NOTIFIER_ERROR_INJECTION=y
CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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