linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] selftests: config fragments update
@ 2017-03-20 10:18 Fathi Boudra
  2017-03-20 10:18 ` [PATCH 1/3] selftests: lib: add config fragment for bitmap, printf and prime numbers tests Fathi Boudra
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Fathi Boudra @ 2017-03-20 10:18 UTC (permalink / raw)
  To: linux-kselftest, Shuah Khan; +Cc: linux-kernel, Fathi Boudra

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] selftests: lib: add config fragment for bitmap, printf and prime numbers tests
  2017-03-20 10:18 [PATCH 0/3] selftests: config fragments update Fathi Boudra
@ 2017-03-20 10:18 ` Fathi Boudra
  2017-03-20 10:18 ` [PATCH 2/3] selftests: ftrace: add CONFIG_KPROBES=y to the config fragment Fathi Boudra
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Fathi Boudra @ 2017-03-20 10:18 UTC (permalink / raw)
  To: linux-kselftest, Shuah Khan; +Cc: linux-kernel, Fathi Boudra

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

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] selftests: ftrace: add CONFIG_KPROBES=y to the config fragment
  2017-03-20 10:18 [PATCH 0/3] selftests: config fragments update Fathi Boudra
  2017-03-20 10:18 ` [PATCH 1/3] selftests: lib: add config fragment for bitmap, printf and prime numbers tests Fathi Boudra
@ 2017-03-20 10:18 ` Fathi Boudra
  2017-03-20 10:18 ` [PATCH 3/3] selftests: vm: add CONFIG_SYSVIPC=y " Fathi Boudra
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Fathi Boudra @ 2017-03-20 10:18 UTC (permalink / raw)
  To: linux-kselftest, Shuah Khan; +Cc: linux-kernel, Fathi Boudra

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

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] selftests: vm: add CONFIG_SYSVIPC=y to the config fragment
  2017-03-20 10:18 [PATCH 0/3] selftests: config fragments update Fathi Boudra
  2017-03-20 10:18 ` [PATCH 1/3] selftests: lib: add config fragment for bitmap, printf and prime numbers tests Fathi Boudra
  2017-03-20 10:18 ` [PATCH 2/3] selftests: ftrace: add CONFIG_KPROBES=y to the config fragment Fathi Boudra
@ 2017-03-20 10:18 ` Fathi Boudra
  2017-03-20 12:19 ` [PATCH 0/3] selftests: config fragments update Naresh Kamboju
  2017-04-13 17:40 ` Shuah Khan
  4 siblings, 0 replies; 6+ messages in thread
From: Fathi Boudra @ 2017-03-20 10:18 UTC (permalink / raw)
  To: linux-kselftest, Shuah Khan; +Cc: linux-kernel, Fathi Boudra

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

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] selftests: config fragments update
  2017-03-20 10:18 [PATCH 0/3] selftests: config fragments update Fathi Boudra
                   ` (2 preceding siblings ...)
  2017-03-20 10:18 ` [PATCH 3/3] selftests: vm: add CONFIG_SYSVIPC=y " Fathi Boudra
@ 2017-03-20 12:19 ` Naresh Kamboju
  2017-04-13 17:40 ` Shuah Khan
  4 siblings, 0 replies; 6+ messages in thread
From: Naresh Kamboju @ 2017-03-20 12:19 UTC (permalink / raw)
  To: Fathi Boudra; +Cc: linux-kselftest, Shuah Khan, linux-kernel

Hi Fathi,

On 20 March 2017 at 15:48, Fathi Boudra <fathi.boudra@linaro.org> 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 <naresh.kamboju@linaro.org>

>
>  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
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] selftests: config fragments update
  2017-03-20 10:18 [PATCH 0/3] selftests: config fragments update Fathi Boudra
                   ` (3 preceding siblings ...)
  2017-03-20 12:19 ` [PATCH 0/3] selftests: config fragments update Naresh Kamboju
@ 2017-04-13 17:40 ` Shuah Khan
  4 siblings, 0 replies; 6+ messages in thread
From: Shuah Khan @ 2017-04-13 17:40 UTC (permalink / raw)
  To: Fathi Boudra, linux-kselftest; +Cc: linux-kernel, Shuah Khan

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-13 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20 10:18 [PATCH 0/3] selftests: config fragments update Fathi Boudra
2017-03-20 10:18 ` [PATCH 1/3] selftests: lib: add config fragment for bitmap, printf and prime numbers tests Fathi Boudra
2017-03-20 10:18 ` [PATCH 2/3] selftests: ftrace: add CONFIG_KPROBES=y to the config fragment Fathi Boudra
2017-03-20 10:18 ` [PATCH 3/3] selftests: vm: add CONFIG_SYSVIPC=y " Fathi Boudra
2017-03-20 12:19 ` [PATCH 0/3] selftests: config fragments update Naresh Kamboju
2017-04-13 17:40 ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).