summaryrefslogtreecommitdiff
path: root/tests/Korigins
diff options
context:
space:
mode:
authorLuca Burelli <l.burelli@arduino.cc>2025-09-19 11:17:39 +0200
committerTorsten Tejlmand Rasmussen <torsten.rasmussen@nordicsemi.no>2025-10-20 12:34:58 +0200
commit95de62d808f4447da2456201d226969e5815b459 (patch)
tree85ff45245a69ad6bfc5053d81047f5546432d4cf /tests/Korigins
parentf58717e3ccec4caa8c5c4bb7a1e731d5bbc9728e (diff)
kconfiglib: add origin test
This patch adds a test for the origin feature added in the series. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Diffstat (limited to 'tests/Korigins')
-rw-r--r--tests/Korigins26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Korigins b/tests/Korigins
new file mode 100644
index 0000000..3649133
--- /dev/null
+++ b/tests/Korigins
@@ -0,0 +1,26 @@
+config MAIN_FLAG
+ bool
+
+config MAIN_FLAG_DEPENDENCY
+ bool "Main Feature Dependency"
+ default y
+ depends on MAIN_FLAG
+
+config MAIN_FLAG_SELECT
+ bool "Main Feature Dependent"
+ select MAIN_FLAG
+
+choice MULTIPLE_CHOICES
+ prompt "Multiple Choice Option"
+
+config FIRST_CHOICE
+ bool "First Choice Option"
+ depends on !MAIN_FLAG
+
+config SECOND_CHOICE
+ bool "Second Choice Option"
+
+endchoice
+
+config UNSET_FLAG
+ bool "Disabled Feature"