2017-03-20 10:27:40

by Fathi Boudra

[permalink] [raw]
Subject: [PATCH 0/3] selftests: config fragments update

kselftest-merge target allows to enable the dependencies of kernel config
for kselftest testcases. Add config dependencies to run ftrace, lib and vm
tests.

Fathi Boudra (3):
selftests: lib: add config fragment for bitmap, printf and prime
numbers tests
selftests: ftrace: add CONFIG_KPROBES=y to the config fragment
selftests: vm: add CONFIG_SYSVIPC=y to the config fragment

tools/testing/selftests/ftrace/config | 1 +
tools/testing/selftests/lib/config | 3 +++
tools/testing/selftests/vm/config | 1 +
3 files changed, 5 insertions(+)
create mode 100644 tools/testing/selftests/lib/config

--
2.11.0


2017-03-20 10:26:53

by Fathi Boudra

[permalink] [raw]
Subject: [PATCH 3/3] selftests: vm: add CONFIG_SYSVIPC=y to the config fragment

vm tests rely on shared memory settings. Enable system V IPC to run these
tests.

Signed-off-by: Fathi Boudra <[email protected]>
---
tools/testing/selftests/vm/config | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/vm/config b/tools/testing/selftests/vm/config
index 698c7ed28a26..1c0d76cb5adf 100644
--- a/tools/testing/selftests/vm/config
+++ b/tools/testing/selftests/vm/config
@@ -1 +1,2 @@
+CONFIG_SYSVIPC=y
CONFIG_USERFAULTFD=y
--
2.11.0

2017-03-20 10:26:52

by Fathi Boudra

[permalink] [raw]
Subject: [PATCH 1/3] selftests: lib: add config fragment for bitmap, printf and prime numbers tests

test_bitmap, test_printf and prime_numbers are expected to be built as
modules.

Signed-off-by: Fathi Boudra <[email protected]>
---
tools/testing/selftests/lib/config | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 tools/testing/selftests/lib/config

diff --git a/tools/testing/selftests/lib/config b/tools/testing/selftests/lib/config
new file mode 100644
index 000000000000..126933bcc950
--- /dev/null
+++ b/tools/testing/selftests/lib/config
@@ -0,0 +1,3 @@
+CONFIG_TEST_PRINTF=m
+CONFIG_TEST_BITMAP=m
+CONFIG_PRIME_NUMBERS=m
--
2.11.0

2017-03-20 10:26:51

by Fathi Boudra

[permalink] [raw]
Subject: [PATCH 2/3] selftests: ftrace: add CONFIG_KPROBES=y to the config fragment

ftrace/kprobe tests require kprobes events. Enable kprobes to run these
tests.

Signed-off-by: Fathi Boudra <[email protected]>
---
tools/testing/selftests/ftrace/config | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/ftrace/config b/tools/testing/selftests/ftrace/config
index ef8214661612..8a1c9f949fe0 100644
--- a/tools/testing/selftests/ftrace/config
+++ b/tools/testing/selftests/ftrace/config
@@ -1 +1,2 @@
+CONFIG_KPROBES=y
CONFIG_FTRACE=y
--
2.11.0

2017-03-20 12:26:49

by Naresh Kamboju

[permalink] [raw]
Subject: Re: [PATCH 0/3] selftests: config fragments update

Hi Fathi,

On 20 March 2017 at 15:48, Fathi Boudra <[email protected]> wrote:
> kselftest-merge target allows to enable the dependencies of kernel config
> for kselftest testcases. Add config dependencies to run ftrace, lib and vm
> tests.
>
> Fathi Boudra (3):
> selftests: lib: add config fragment for bitmap, printf and prime
> numbers tests
> selftests: ftrace: add CONFIG_KPROBES=y to the config fragment
> selftests: vm: add CONFIG_SYSVIPC=y to the config fragment

After enabling these configs more test cases passed.
Please refer patebin for more information.
http://pastebin.com/bPzdqxed
Tested on Hikey development board running 4.9.12 kernel.
Linux hikey 4.9.12-gcb3d81d #1 SMP PREEMPT Fri Mar 17 14:44:10 UTC
2017 aarch64 aarch64 aarch64 GNU/Linux

Tested-by: Naresh Kamboju <[email protected]>

>
> tools/testing/selftests/ftrace/config | 1 +
> tools/testing/selftests/lib/config | 3 +++
> tools/testing/selftests/vm/config | 1 +
> 3 files changed, 5 insertions(+)
> create mode 100644 tools/testing/selftests/lib/config
>
> --
> 2.11.0
>

2017-04-13 17:40:56

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH 0/3] selftests: config fragments update

On 03/20/2017 04:18 AM, Fathi Boudra wrote:
> kselftest-merge target allows to enable the dependencies of kernel config
> for kselftest testcases. Add config dependencies to run ftrace, lib and vm
> tests.
>
> Fathi Boudra (3):
> selftests: lib: add config fragment for bitmap, printf and prime
> numbers tests
> selftests: ftrace: add CONFIG_KPROBES=y to the config fragment
> selftests: vm: add CONFIG_SYSVIPC=y to the config fragment
>
> tools/testing/selftests/ftrace/config | 1 +
> tools/testing/selftests/lib/config | 3 +++
> tools/testing/selftests/vm/config | 1 +
> 3 files changed, 5 insertions(+)
> create mode 100644 tools/testing/selftests/lib/config
>

All there patches applied to linux-kselftest next

thanks,
-- Shuah