Skip to content

Commit 3499de3

Browse files
committed
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
2 parents c02be23 + f686982 commit 3499de3

8 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎tools/testing/selftests/android/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ all:
1111
BUILD_TARGET=$(OUTPUT)/$$DIR; \
1212
mkdir $$BUILD_TARGET -p; \
1313
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 \
1515
TEST=$$DIR"_test.sh"; \
16-
if [ -e $$DIR/$$TEST ]; then
17-
rsync -a $$DIR/$$TEST $$BUILD_TARGET/;
18-
fi
16+
if [ -e $$DIR/$$TEST ]; then \
17+
rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \
18+
fi \
1919
done
2020

2121
override define RUN_TESTS

‎tools/testing/selftests/futex/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ all:
1212
BUILD_TARGET=$(OUTPUT)/$$DIR; \
1313
mkdir $$BUILD_TARGET -p; \
1414
make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
15-
if [ -e $$DIR/$(TEST_PROGS) ]; then
16-
rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/;
17-
fi
15+
if [ -e $$DIR/$(TEST_PROGS) ]; then \
16+
rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; \
17+
fi \
1818
done
1919

2020
override define RUN_TESTS
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_FUSE_FS=m

‎tools/testing/selftests/memory-hotplug/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all:
44
include ../lib.mk
55

66
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]"
88
override EMIT_TESTS := echo "$(RUN_TESTS)"
99

1010
run_full_test:

‎tools/testing/selftests/pstore/config‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ CONFIG_MISC_FILESYSTEMS=y
22
CONFIG_PSTORE=y
33
CONFIG_PSTORE_PMSG=y
44
CONFIG_PSTORE_CONSOLE=y
5+
CONFIG_PSTORE_RAM=m

‎tools/testing/selftests/sync/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $(TEST_CUSTOM_PROGS): $(TESTS) $(OBJS)
3030
$(CC) -o $(TEST_CUSTOM_PROGS) $(OBJS) $(TESTS) $(CFLAGS) $(LDFLAGS)
3131

3232
$(OBJS): $(OUTPUT)/%.o: %.c
33-
$(CC) -c $^ -o $@
33+
$(CC) -c $^ -o $@ $(CFLAGS)
3434

3535
$(TESTS): $(OUTPUT)/%.o: %.c
3636
$(CC) -c $^ -o $@
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
include ../lib.mk
3+
24
ifndef CROSS_COMPILE
35
CFLAGS := -std=gnu99
46
CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector
57
ifeq ($(CONFIG_X86_32),y)
68
LDLIBS += -lgcc_s
79
endif
810

9-
TEST_PROGS := vdso_test vdso_standalone_test_x86
11+
TEST_PROGS := $(OUTPUT)/vdso_test $(OUTPUT)/vdso_standalone_test_x86
1012

1113
all: $(TEST_PROGS)
12-
vdso_test: parse_vdso.c vdso_test.c
13-
vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c
14+
$(OUTPUT)/vdso_test: parse_vdso.c vdso_test.c
15+
$(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c
1416
$(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \
1517
vdso_standalone_test_x86.c parse_vdso.c \
16-
-o vdso_standalone_test_x86
18+
-o $@
1719

18-
include ../lib.mk
19-
clean:
20-
rm -fr $(TEST_PROGS)
20+
EXTRA_CLEAN := $(TEST_PROGS)
2121
endif

‎tools/testing/selftests/vm/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ mlock-intersect-test
1111
mlock-random-test
1212
virtual_address_range
1313
gup_benchmark
14+
va_128TBswitch

0 commit comments

Comments
 (0)