[PATCH] regmap: add default KUnit config

Sander Vanheule posted 1 patch 1 year, 4 months ago
drivers/base/regmap/.kunitconfig | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 drivers/base/regmap/.kunitconfig
[PATCH] regmap: add default KUnit config
Posted by Sander Vanheule 1 year, 4 months ago
Add a .kunitconfig file with the required defaults to run the regmap
KUnit tests. This allows to easily run the tests with the kunit.py tool:

    ./tools/testing/kunit/kunit.py run \
            --kunitconfig=./drivers/base/regmap/.kunitconfig

Signed-off-by: Sander Vanheule <sander@svanheule.net>
---
 drivers/base/regmap/.kunitconfig | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 drivers/base/regmap/.kunitconfig

diff --git a/drivers/base/regmap/.kunitconfig b/drivers/base/regmap/.kunitconfig
new file mode 100644
index 000000000000..1bb92d8d3084
--- /dev/null
+++ b/drivers/base/regmap/.kunitconfig
@@ -0,0 +1,3 @@
+CONFIG_KUNIT=y
+CONFIG_REGMAP_BUILD=y
+CONFIG_REGMAP_KUNIT=y
-- 
2.47.1
Re: [PATCH] regmap: add default KUnit config
Posted by Mark Brown 1 year, 4 months ago
On Tue, Dec 31, 2024 at 11:04:22AM +0100, Sander Vanheule wrote:
> Add a .kunitconfig file with the required defaults to run the regmap
> KUnit tests. This allows to easily run the tests with the kunit.py tool:
> 
>     ./tools/testing/kunit/kunit.py run \
>             --kunitconfig=./drivers/base/regmap/.kunitconfig

This should already be in the standard KUnit all tests config, we
shouldn't be duplicating like this (or should refactor things so that
KUnit does something like find all config fragements).