Skip to contentSkip to conversation

Enable as many KUnit tests as possible

PATCH In review Anders Roxell 3 participants 5 messages May 11, 2020 – Jun 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover Enable as many KUnit tests as possible

Hi,

This patchset will try to enable as many KUnit test fragments as possible for the current .config file.
This will make it easier for both developers that tests their specific feature and also for test-systems that would like to get as much as possible for their current .config file.

I will send a separate KCSAN KUnit patch after this patchset since that isn't in mainline yet.

Since v2:
Fixed David's comments. KUNIT_RUN_ALL -> KUNIT_ALL_TESTS, and he suggested a great help text.

Since v1:
Marco commented to split up the patches, and change a "." to a ",".

Cheers,
Anders

Anders Roxell (6):
kunit: Kconfig: enable a KUNIT_ALL_TESTS fragment
kunit: default KUNIT_* fragments to KUNIT_ALL_TESTS
lib: Kconfig.debug: default KUNIT_* fragments to KUNIT_ALL_TESTS
drivers: base: default KUNIT_* fragments to KUNIT_ALL_TESTS
fs: ext4: default KUNIT_* fragments to KUNIT_ALL_TESTS
security: apparmor: default KUNIT_* fragments to KUNIT_ALL_TESTS

 drivers/base/Kconfig      |  3 ++-
 drivers/base/test/Kconfig |  3 ++-
 fs/ext4/Kconfig           |  3 ++-
 lib/Kconfig.debug         |  6 ++++--
 lib/kunit/Kconfig         | 23 ++++++++++++++++++++---
 security/apparmor/Kconfig |  3 ++-
 6 files changed, 32 insertions(+), 9 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

Hi all,

Friendly ping: who can take this?

Cheers,
Anders

Quoted 42 lines · Anders Roxell

Hi,

This patchset will try to enable as many KUnit test fragments as possible for the current .config file.
This will make it easier for both developers that tests their specific feature and also for test-systems that would like to get as much as possible for their current .config file.

I will send a separate KCSAN KUnit patch after this patchset since that isn't in mainline yet.

Since v2:
Fixed David's comments. KUNIT_RUN_ALL -> KUNIT_ALL_TESTS, and he suggested a great help text.

Since v1:
Marco commented to split up the patches, and change a "." to a ",".

Cheers,
Anders

Anders Roxell (6):
kunit: Kconfig: enable a KUNIT_ALL_TESTS fragment
kunit: default KUNIT_* fragments to KUNIT_ALL_TESTS
lib: Kconfig.debug: default KUNIT_* fragments to KUNIT_ALL_TESTS
drivers: base: default KUNIT_* fragments to KUNIT_ALL_TESTS
fs: ext4: default KUNIT_* fragments to KUNIT_ALL_TESTS
security: apparmor: default KUNIT_* fragments to KUNIT_ALL_TESTS

 drivers/base/Kconfig      |  3 ++-
 drivers/base/test/Kconfig |  3 ++-
 fs/ext4/Kconfig           |  3 ++-
 lib/Kconfig.debug         |  6 ++++--
 lib/kunit/Kconfig         | 23 ++++++++++++++++++++---
 security/apparmor/Kconfig |  3 ++-
 6 files changed, 32 insertions(+), 9 deletions(-)

--
2.20.1

#2 lore raw
Quoted 4 lines · Anders Roxell

Hi all,

Friendly ping: who can take this?

Sorry, I just reviewed the last patch.

Shuah, do you mind picking this up for 5.8?

Quoted 46 lines

Cheers,
Anders

Quoted 42 lines · Anders Roxell

Hi,

This patchset will try to enable as many KUnit test fragments as possible for the current .config file.
This will make it easier for both developers that tests their specific feature and also for test-systems that would like to get as much as possible for their current .config file.

I will send a separate KCSAN KUnit patch after this patchset since that isn't in mainline yet.

Since v2:
Fixed David's comments. KUNIT_RUN_ALL -> KUNIT_ALL_TESTS, and he suggested a great help text.

Since v1:
Marco commented to split up the patches, and change a "." to a ",".

Cheers,
Anders

Anders Roxell (6):
kunit: Kconfig: enable a KUNIT_ALL_TESTS fragment
kunit: default KUNIT_* fragments to KUNIT_ALL_TESTS
lib: Kconfig.debug: default KUNIT_* fragments to KUNIT_ALL_TESTS
drivers: base: default KUNIT_* fragments to KUNIT_ALL_TESTS
fs: ext4: default KUNIT_* fragments to KUNIT_ALL_TESTS
security: apparmor: default KUNIT_* fragments to KUNIT_ALL_TESTS

 drivers/base/Kconfig      |  3 ++-
 drivers/base/test/Kconfig |  3 ++-
 fs/ext4/Kconfig           |  3 ++-
 lib/Kconfig.debug         |  6 ++++--
 lib/kunit/Kconfig         | 23 ++++++++++++++++++++---
 security/apparmor/Kconfig |  3 ++-
 6 files changed, 32 insertions(+), 9 deletions(-)

--
2.20.1

Thanks!

maintainer
#3 lore raw
Quoted 10 lines · Brendan Higgins
Quoted 4 lines · Anders Roxell

Hi all,

Friendly ping: who can take this?

Sorry, I just reviewed the last patch.

Shuah, do you mind picking this up for 5.8?

Yup. Will do. I was watching this thread waiting for your Ack. I will apply it once.

thanks,
-- Shuah

maintainer
#4 lore raw
Quoted 7 lines · Shuah Khan
Quoted 6 lines · Brendan Higgins
Quoted 4 lines · Anders Roxell

Hi all,

Friendly ping: who can take this?

Quoted 8 lines
Quoted 4 lines

Sorry, I just reviewed the last patch.

Shuah, do you mind picking this up for 5.8?

Yup. Will do. I was watching this thread waiting for your Ack. I will apply it once.

Applied to linux-kselftest kunit branch for Linux 5.8-rc1

thanks,
-- Shuah