Skip to contentSkip to conversation

regmap: add default KUnit config

PATCH In review Sander Vanheule 2 participants 2 messages Dec 31, 2024 – Jan 6, 2025

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

PATCH 1/1 regmap: add default KUnit config

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
---
 drivers/base/regmap/.kunitconfig | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 drivers/base/regmap/.kunitconfig
drivers/base/regmap/.kunitconfig new file +3 -0
new file mode 100644
index 000000000000..1bb92d8d3084
@@ -0,0 +1,3 @@
+CONFIG_KUNIT=y
+CONFIG_REGMAP_BUILD=y
+CONFIG_REGMAP_KUNIT=y
Signature · 1 line
2.47.1
maintainer
#1 lore raw
Quoted 5 lines · Sander Vanheule

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).