Skip to contentSkip to conversation

Kselftest updates for 4.6-rc1

GIT PULL Shuah Khan 1 participant 1 message Mar 16, 2016

Subsystems (7)
Networking Kbuild Kselftest Tracing +3 more subsystems
lore
Share & tools
lore

Shuah Khan

author
#0 lore raw

Hi Linus,

Please pull the following update for 4.6-rc1. diff attached.

thanks,
-- Shuah

---------------------------------------------------------------------------------

The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d:

Linux 4.5-rc1 (2016-01-24 13:06:47 -0800)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-4.6-rc1

for you to fetch changes up to 6accd8e9bf22749f621fb7fb57995fa65f4cd873:

selftests: media_dcevice_test fix usage information (2016-02-25 17:22:42 -0700)

----------------------------------------------------------------
linux-kselftest-4.6-rc1

This update for Kselftest adds:

- A new feature to create test-specific kconfig fragments. This feature helps configure Kselftests to test specific Kernel Configuration options as opposed to defconfig.

- A new test for Media Controller API

- A few fixes

----------------------------------------------------------------
Bamvor Jian Zhang (2):
selftests: create test-specific kconfig fragments
Makefile: add kselftest-merge

Greg Hackmann (1):
selftests: breakpoint: add step_after_suspend_test

Shuah Khan (3):
selftests: add a new test for Media Controller API
selftests: media_dcevice_test fix to handle ioctl failure case
selftests: media_dcevice_test fix usage information

Sudeep Holla (1):
selftests: add missing .gitignore file or entry

 Makefile                                           |  10 +
 tools/testing/selftests/breakpoints/.gitignore     |   1 +
 tools/testing/selftests/breakpoints/Makefile       |   4 +-
 .../breakpoints/step_after_suspend_test.c          | 218 +++++++++++++++++++++
 tools/testing/selftests/cpu-hotplug/config         |   2 +
 tools/testing/selftests/firmware/config            |   1 +
 tools/testing/selftests/ftrace/config              |   1 +
 tools/testing/selftests/ipc/.gitignore             |   1 +
 tools/testing/selftests/ipc/config                 |   2 +
 tools/testing/selftests/media_tests/.gitignore     |   1 +
 tools/testing/selftests/media_tests/Makefile       |   7 +
 .../selftests/media_tests/media_device_test.c      |  95 +++++++++
 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 +
 21 files changed, 362 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/breakpoints/step_after_suspend_test.c
 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/.gitignore
 create mode 100644 tools/testing/selftests/ipc/config
 create mode 100644 tools/testing/selftests/media_tests/.gitignore
 create mode 100644 tools/testing/selftests/media_tests/Makefile
 create mode 100644 tools/testing/selftests/media_tests/media_device_test.c
 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

---------------------------------------------------------------------------------

Signature · 5 lines
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
[email protected] | (970) 217-8978
Makefile +10 -0
index c65fe37..42e3d1e1 100644
@@ -1087,6 +1087,14 @@ kselftest:
 kselftest-clean:
 	$(Q)$(MAKE) -C tools/testing/selftests clean
 
+PHONY += kselftest-merge
+kselftest-merge:
+	$(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
+	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
+		-m $(objtree)/.config \
+		$(srctree)/tools/testing/selftests/*/config
+	+$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
+
 # ---------------------------------------------------------------------------
 # Modules
 
@@ -1295,6 +1303,8 @@ help:
 	@echo  '                    Build, install, and boot kernel before'
 	@echo  '                    running kselftest on it'
 	@echo  '  kselftest-clean - Remove all generated kselftest files'
+	@echo  '  kselftest-merge - Merge all the config dependencies of kselftest to existed'
+	@echo  '                    .config.'
 	@echo  ''
 	@echo  'Kernel packaging:'
 	@$(MAKE) $(build)=$(package-dir) help
tools/testing/selftests/breakpoints/.gitignore +1 -0
index 9b3193d0..a23bb4a 100644
@@ -1 +1,2 @@
 breakpoint_test
+step_after_suspend_test
tools/testing/selftests/breakpoints/Makefile +3 -1
index c0d9570..74e533f 100644
@@ -6,9 +6,11 @@ ifeq ($(ARCH),x86)
 TEST_PROGS := breakpoint_test
 endif
 
+TEST_PROGS += step_after_suspend_test
+
 all: $(TEST_PROGS)
 
 include ../lib.mk
 
 clean:
-	rm -fr breakpoint_test
+	rm -fr breakpoint_test step_after_suspend_test
tools/testing/selftests/breakpoints/step_after_suspend_test.c new file +218 -0

218 lines not on this page · raw message

tools/testing/selftests/cpu-hotplug/config new file +2 -0
new file mode 100644
index 0000000..e6ab090
@@ -0,0 +1,2 @@
+CONFIG_NOTIFIER_ERROR_INJECTION=y
+CONFIG_CPU_NOTIFIER_ERROR_INJECT=m
tools/testing/selftests/firmware/config new file +1 -0
new file mode 100644
index 0000000..c8137f7
@@ -0,0 +1 @@
+CONFIG_TEST_FIRMWARE=y
tools/testing/selftests/ftrace/config new file +1 -0
new file mode 100644
index 0000000..ef82146
@@ -0,0 +1 @@
+CONFIG_FTRACE=y
tools/testing/selftests/ipc/.gitignore new file +1 -0
new file mode 100644
index 0000000..84b66a3
@@ -0,0 +1 @@
+msgque_test
tools/testing/selftests/ipc/config new file +2 -0
new file mode 100644
index 0000000..0702447
@@ -0,0 +1,2 @@
+CONFIG_EXPERT=y
+CONFIG_CHECKPOINT_RESTORE=y
tools/testing/selftests/media_tests/.gitignore new file +1 -0
new file mode 100644
index 0000000..1c07117
@@ -0,0 +1 @@
+media_device_test
tools/testing/selftests/media_tests/Makefile new file +7 -0
new file mode 100644
index 0000000..7071bcc
@@ -0,0 +1,7 @@
+TEST_PROGS := media_device_test
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+	rm -fr media_device_test
tools/testing/selftests/media_tests/media_device_test.c new file +95 -0

95 lines not on this page · raw message

tools/testing/selftests/memory-hotplug/config new file +4 -0
new file mode 100644
index 0000000..2fde301
@@ -0,0 +1,4 @@
+CONFIG_MEMORY_HOTPLUG=y
+CONFIG_MEMORY_HOTPLUG_SPARSE=y
+CONFIG_NOTIFIER_ERROR_INJECTION=y
+CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m
tools/testing/selftests/mount/config new file +2 -0
new file mode 100644
index 0000000..b5d881e
@@ -0,0 +1,2 @@
+CONFIG_USER_NS=y
+CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
tools/testing/selftests/net/config new file +3 -0
new file mode 100644
index 0000000..e57b4ac
@@ -0,0 +1,3 @@
+CONFIG_USER_NS=y
+CONFIG_BPF_SYSCALL=y
+CONFIG_TEST_BPF=m
tools/testing/selftests/pstore/config new file +4 -0
new file mode 100644
index 0000000..6a8e5a9
@@ -0,0 +1,4 @@
+CONFIG_MISC_FILESYSTEMS=y
+CONFIG_PSTORE=y
+CONFIG_PSTORE_PMSG=y
+CONFIG_PSTORE_CONSOLE=y
tools/testing/selftests/seccomp/config new file +2 -0
new file mode 100644
index 0000000..db1e11b
@@ -0,0 +1,2 @@
+CONFIG_SECCOMP=y
+CONFIG_SECCOMP_FILTER=y
tools/testing/selftests/static_keys/config new file +1 -0
new file mode 100644
index 0000000..d538fb7
@@ -0,0 +1 @@
+CONFIG_TEST_STATIC_KEYS=m
tools/testing/selftests/user/config new file +1 -0
new file mode 100644
index 0000000..784ed84
@@ -0,0 +1 @@
+CONFIG_TEST_USER_COPY=m
tools/testing/selftests/vm/config new file +1 -0
new file mode 100644
index 0000000..698c7ed
@@ -0,0 +1 @@
+CONFIG_USERFAULTFD=y
tools/testing/selftests/zram/config new file +2 -0
new file mode 100644
index 0000000..e0cc47e
@@ -0,0 +1,2 @@
+CONFIG_ZSMALLOC=y
+CONFIG_ZRAM=m