Skip to content

Commit

Permalink
software node: add basic tests for property entries
Browse files Browse the repository at this point in the history
This adds tests for creating software nodes with properties supplied by
PROPERTY_ENTRY_XXX() macros and fetching and validating data from said
nodes/properties.

We are using KUnit framework for the tests.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Dmitry Torokhov authored and Rafael J. Wysocki committed Dec 19, 2019
1 parent e933bed commit c032ace
Show file tree
Hide file tree
Showing 2 changed files with 476 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/base/test/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +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
Loading

0 comments on commit c032ace

Please sign in to comment.