diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-28 16:38:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-28 16:38:52 -0500 |
commit | 3499de32fa6b608ba646380ac3838d30a2558ead (patch) | |
tree | e8a7b20438bc22a55e6503e92091e2dbc75bff30 | |
parent | c02be2334e7523903cc15b5258a48b85b5de6cbc (diff) | |
parent | f6869826de700bce59e2cef14974f99836e34e4f (diff) |
Merge tag 'linux-kselftest-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fixes from Shuah Khan:
"Fixes for various problems in test output, compile errors, and missing
configs"
* tag 'linux-kselftest-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests: vm: update .gitignore with new test
selftests: memory-hotplug: silence test command echo
selftests/futex: Fix line continuation in Makefile
selftests: memfd: add config fragment for fuse
selftests: pstore: Adding config fragment CONFIG_PSTORE_RAM=m
selftests/android: Fix line continuation in Makefile
selftest/vDSO: fix O=
selftests: sync: missing CFLAGS while compiling
-rw-r--r-- | tools/testing/selftests/android/Makefile | 8 | ||||
-rw-r--r-- | tools/testing/selftests/futex/Makefile | 6 | ||||
-rw-r--r-- | tools/testing/selftests/memfd/config | 1 | ||||
-rw-r--r-- | tools/testing/selftests/memory-hotplug/Makefile | 2 | ||||
-rw-r--r-- | tools/testing/selftests/pstore/config | 1 | ||||
-rw-r--r-- | tools/testing/selftests/sync/Makefile | 2 | ||||
-rw-r--r-- | tools/testing/selftests/vDSO/Makefile | 14 | ||||
-rw-r--r-- | tools/testing/selftests/vm/.gitignore | 1 |
8 files changed, 19 insertions, 16 deletions
diff --git a/tools/testing/selftests/android/Makefile b/tools/testing/selftests/android/Makefile index 1a7492268993..f6304d2be90c 100644 --- a/tools/testing/selftests/android/Makefile +++ b/tools/testing/selftests/android/Makefile | |||
@@ -11,11 +11,11 @@ all: | |||
11 | BUILD_TARGET=$(OUTPUT)/$$DIR; \ | 11 | BUILD_TARGET=$(OUTPUT)/$$DIR; \ |
12 | mkdir $$BUILD_TARGET -p; \ | 12 | mkdir $$BUILD_TARGET -p; \ |
13 | make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ | 13 | make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ |
14 | #SUBDIR test prog name should be in the form: SUBDIR_test.sh | 14 | #SUBDIR test prog name should be in the form: SUBDIR_test.sh \ |
15 | TEST=$$DIR"_test.sh"; \ | 15 | TEST=$$DIR"_test.sh"; \ |
16 | if [ -e $$DIR/$$TEST ]; then | 16 | if [ -e $$DIR/$$TEST ]; then \ |
17 | rsync -a $$DIR/$$TEST $$BUILD_TARGET/; | 17 | rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \ |
18 | fi | 18 | fi \ |
19 | done | 19 | done |
20 | 20 | ||
21 | override define RUN_TESTS | 21 | override define RUN_TESTS |
diff --git a/tools/testing/selftests/futex/Makefile b/tools/testing/selftests/futex/Makefile index cea4adcd42b8..a63e8453984d 100644 --- a/tools/testing/selftests/futex/Makefile +++ b/tools/testing/selftests/futex/Makefile | |||
@@ -12,9 +12,9 @@ all: | |||
12 | BUILD_TARGET=$(OUTPUT)/$$DIR; \ | 12 | BUILD_TARGET=$(OUTPUT)/$$DIR; \ |
13 | mkdir $$BUILD_TARGET -p; \ | 13 | mkdir $$BUILD_TARGET -p; \ |
14 | make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ | 14 | make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ |
15 | if [ -e $$DIR/$(TEST_PROGS) ]; then | 15 | if [ -e $$DIR/$(TEST_PROGS) ]; then \ |
16 | rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; | 16 | rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; \ |
17 | fi | 17 | fi \ |
18 | done | 18 | done |
19 | 19 | ||
20 | override define RUN_TESTS | 20 | override define RUN_TESTS |
diff --git a/tools/testing/selftests/memfd/config b/tools/testing/selftests/memfd/config new file mode 100644 index 000000000000..835c7f4dadcd --- /dev/null +++ b/tools/testing/selftests/memfd/config | |||
@@ -0,0 +1 @@ | |||
CONFIG_FUSE_FS=m | |||
diff --git a/tools/testing/selftests/memory-hotplug/Makefile b/tools/testing/selftests/memory-hotplug/Makefile index 86636d207adf..183b46883875 100644 --- a/tools/testing/selftests/memory-hotplug/Makefile +++ b/tools/testing/selftests/memory-hotplug/Makefile | |||
@@ -4,7 +4,7 @@ all: | |||
4 | include ../lib.mk | 4 | include ../lib.mk |
5 | 5 | ||
6 | TEST_PROGS := mem-on-off-test.sh | 6 | TEST_PROGS := mem-on-off-test.sh |
7 | override RUN_TESTS := ./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" | 7 | override RUN_TESTS := @./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" |
8 | override EMIT_TESTS := echo "$(RUN_TESTS)" | 8 | override EMIT_TESTS := echo "$(RUN_TESTS)" |
9 | 9 | ||
10 | run_full_test: | 10 | run_full_test: |
diff --git a/tools/testing/selftests/pstore/config b/tools/testing/selftests/pstore/config index 6a8e5a9bfc10..d148f9f89fb6 100644 --- a/tools/testing/selftests/pstore/config +++ b/tools/testing/selftests/pstore/config | |||
@@ -2,3 +2,4 @@ CONFIG_MISC_FILESYSTEMS=y | |||
2 | CONFIG_PSTORE=y | 2 | CONFIG_PSTORE=y |
3 | CONFIG_PSTORE_PMSG=y | 3 | CONFIG_PSTORE_PMSG=y |
4 | CONFIG_PSTORE_CONSOLE=y | 4 | CONFIG_PSTORE_CONSOLE=y |
5 | CONFIG_PSTORE_RAM=m | ||
diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile index b3c8ba3cb668..d0121a8a3523 100644 --- a/tools/testing/selftests/sync/Makefile +++ b/tools/testing/selftests/sync/Makefile | |||
@@ -30,7 +30,7 @@ $(TEST_CUSTOM_PROGS): $(TESTS) $(OBJS) | |||
30 | $(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(CFLAGS) $(LDFLAGS) | 30 | $(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(CFLAGS) $(LDFLAGS) |
31 | 31 | ||
32 | $(OBJS): $(OUTPUT)/%.o: %.c | 32 | $(OBJS): $(OUTPUT)/%.o: %.c |
33 | $(CC) -c $^ -o $@ | 33 | $(CC) -c $^ -o $@ $(CFLAGS) |
34 | 34 | ||
35 | $(TESTS): $(OUTPUT)/%.o: %.c | 35 | $(TESTS): $(OUTPUT)/%.o: %.c |
36 | $(CC) -c $^ -o $@ | 36 | $(CC) -c $^ -o $@ |
diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile index 3d5a62ff7d31..f5d7a7851e21 100644 --- a/tools/testing/selftests/vDSO/Makefile +++ b/tools/testing/selftests/vDSO/Makefile | |||
@@ -1,4 +1,6 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
2 | include ../lib.mk | ||
3 | |||
2 | ifndef CROSS_COMPILE | 4 | ifndef CROSS_COMPILE |
3 | CFLAGS := -std=gnu99 | 5 | CFLAGS := -std=gnu99 |
4 | CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector | 6 | CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector |
@@ -6,16 +8,14 @@ ifeq ($(CONFIG_X86_32),y) | |||
6 | LDLIBS += -lgcc_s | 8 | LDLIBS += -lgcc_s |
7 | endif | 9 | endif |
8 | 10 | ||
9 | TEST_PROGS := vdso_test vdso_standalone_test_x86 | 11 | TEST_PROGS := $(OUTPUT)/vdso_test $(OUTPUT)/vdso_standalone_test_x86 |
10 | 12 | ||
11 | all: $(TEST_PROGS) | 13 | all: $(TEST_PROGS) |
12 | vdso_test: parse_vdso.c vdso_test.c | 14 | $(OUTPUT)/vdso_test: parse_vdso.c vdso_test.c |
13 | vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c | 15 | $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c |
14 | $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ | 16 | $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ |
15 | vdso_standalone_test_x86.c parse_vdso.c \ | 17 | vdso_standalone_test_x86.c parse_vdso.c \ |
16 | -o vdso_standalone_test_x86 | 18 | -o $@ |
17 | 19 | ||
18 | include ../lib.mk | 20 | EXTRA_CLEAN := $(TEST_PROGS) |
19 | clean: | ||
20 | rm -fr $(TEST_PROGS) | ||
21 | endif | 21 | endif |
diff --git a/tools/testing/selftests/vm/.gitignore b/tools/testing/selftests/vm/.gitignore index 63c94d776e89..342c7bc9dc8c 100644 --- a/tools/testing/selftests/vm/.gitignore +++ b/tools/testing/selftests/vm/.gitignore | |||
@@ -11,3 +11,4 @@ mlock-intersect-test | |||
11 | mlock-random-test | 11 | mlock-random-test |
12 | virtual_address_range | 12 | virtual_address_range |
13 | gup_benchmark | 13 | gup_benchmark |
14 | va_128TBswitch | ||