2018-06-14 09:58:06

by Anders Roxell

[permalink] [raw]
Subject: [PATCH v2] selftests: sync: add config fragment for testing sync framework

From: Fathi Boudra <[email protected]>

Unless the software synchronization objects (CONFIG_SW_SYNC) is enabled,
the sync test will be skipped:

TAP version 13
1..0 # Skipped: Sync framework not supported by kernel

Add a config fragment file to be able to run "make kselftest-merge" to
enable relevant configuration required in order to run the sync test.

Signed-off-by: Fathi Boudra <[email protected]>
Link: https://lkml.org/lkml/2017/5/5/14
Signed-off-by: Anders Roxell <[email protected]>
---
tools/testing/selftests/sync/config | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 tools/testing/selftests/sync/config

diff --git a/tools/testing/selftests/sync/config b/tools/testing/selftests/sync/config
new file mode 100644
index 000000000000..1ab7e8130db2
--- /dev/null
+++ b/tools/testing/selftests/sync/config
@@ -0,0 +1,4 @@
+CONFIG_STAGING=y
+CONFIG_ANDROID=y
+CONFIG_SYNC=y
+CONFIG_SW_SYNC=y
--
2.11.0



2018-06-15 16:25:20

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH v2] selftests: sync: add config fragment for testing sync framework

On 06/14/2018 03:57 AM, Anders Roxell wrote:
> From: Fathi Boudra <[email protected]>
>
> Unless the software synchronization objects (CONFIG_SW_SYNC) is enabled,
> the sync test will be skipped:
>
> TAP version 13
> 1..0 # Skipped: Sync framework not supported by kernel
>
> Add a config fragment file to be able to run "make kselftest-merge" to
> enable relevant configuration required in order to run the sync test.
>
> Signed-off-by: Fathi Boudra <[email protected]>
> Link: https://lkml.org/lkml/2017/5/5/14
> Signed-off-by: Anders Roxell <[email protected]>
> ---

Thanks. Applied to linux-kselftest next for 4.18-rc2 fixes update

thanks,
-- Shuah