Skip to content

Commit

Permalink
software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST
Browse files Browse the repository at this point in the history
Currently the property entry kunit tests are built if CONFIG_KUNIT=y.
This will cause warnings when merged with the kunit tree that now
supports tristate CONFIG_KUNIT.  While the tests appear to compile
as a module, we get a warning about missing module license.

It's better to have a per-test suite CONFIG variable so that
we can do selective building of kunit-based suites, and can
also avoid merge issues like this.

Fixes: c032ace ("software node: add basic tests for property entries")
Reported-by: Stephen Rothwell <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Alan Maguire <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
alan-maguire authored and rafaeljw committed Jan 16, 2020
1 parent 5eb5afb commit aa811e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions drivers/base/test/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ config TEST_ASYNC_DRIVER_PROBE
The module name will be test_async_driver_probe.ko

If unsure say N.
config KUNIT_DRIVER_PE_TEST
bool "KUnit Tests for property entry API"
depends on KUNIT=y
2 changes: 1 addition & 1 deletion drivers/base/test/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o

obj-$(CONFIG_KUNIT) += property-entry-test.o
obj-$(CONFIG_KUNIT_DRIVER_PE_TEST) += property-entry-test.o

0 comments on commit aa811e3

Please sign in to comment.