summaryrefslogtreecommitdiff
path: root/tests/Klocation
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-10-09 23:05:00 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2017-10-24 19:24:08 +0200
commitdd0e227216e247d2040cdd40bf7397702880cdc4 (patch)
tree4c76ebb2e7555d28214cddecf32ffb424fa1732b /tests/Klocation
parentf64aaf971176305233f16a11911a660fa6f99561 (diff)
Kconfiglib 2 backup
WIP
Diffstat (limited to 'tests/Klocation')
-rw-r--r--tests/Klocation79
1 files changed, 18 insertions, 61 deletions
diff --git a/tests/Klocation b/tests/Klocation
index 404e5ae..498a372 100644
--- a/tests/Klocation
+++ b/tests/Klocation
@@ -1,73 +1,30 @@
-# Include some line continuations to make sure they don't mess up line numbers
+if UNDEFINED
+endif
-# Defined and referenced in multiple locations
-config A
- bool
+config SINGLE_DEF
+
+config MULTI_DEF
# Throw in some line continuations too to make sure it doesn't mess up the line
# numbers
-menu "menu 1"
- depends on A
- visible if A && \
- NOT_DEFINED
-
-# Also defined in Klocation_included
-choice B
- bool "b" if A
-
-config C
- bool "c"
-
-config D
- bool "d"
-
-\
-
-endchoice
+if y && \
+ y
+if y && \
+ y && \
+ y
-config A
- def_bool NOT_DEFINED
+config MULTI_DEF
-comment "comment 1"
+endif
+endif
-config E
- bool "E" if A
- depends on A
-
-endmenu
-
-config \
- FOO
+config EXPANDED_FROM_ENV
string
- option \
- env\
- =\
- "FOO"
-
-\
-\
+ option env="EXPANDED_FROM_ENV"
-config BAR
+config _INCLUDED
string
- default \
- "_included"
+ default "_included"
# Expands to "tests/Klocation_included"
-source \
-"$FOO/Klocation$BAR"
-
-\
-\
-\
-
-config I
- int
- range A 0
- range 0 A
- range 0 1 if A
- default J if A < 0
- default K if 0 < A
- default L if 0 <= A
- default M if 0 > A
- default N if 0 >= A
- default N if y && 0 < A
+source "$EXPANDED_FROM_ENV/Klocation$_INCLUDED"