software node: add basic tests for property entries
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Dec 2019 18:53:15 +0000 (10:53 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 Dec 2019 17:14:34 +0000 (18:14 +0100)
commitc032ace71c29d513bf9df64ace1885fe5ff24981
tree16b90a0fddc3cf9928eb11598bd4f9398325b7ed
parente933bedd45099dce1165104138bb703a6e31df82
software node: add basic tests for property entries

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>
drivers/base/test/Makefile
drivers/base/test/property-entry-test.c [new file with mode: 0644]