diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 04:27:22 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 04:27:22 +0100 |
| commit | 2150732d5d28b6b7fa9a6805e173f16984c6f4dc (patch) | |
| tree | 1f41b6ec155455de7dd4f95dc856f0f69e086a2e /tests/Klocation | |
| parent | a543a08f1daf3bf6716d813ff94c97c8e1eec824 (diff) | |
Make location query selftests more comprehensive.
Also sneak in testing of env. variable expansion, named choices, and
'base_dir'.
Diffstat (limited to 'tests/Klocation')
| -rw-r--r-- | tests/Klocation | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/tests/Klocation b/tests/Klocation index e2e0c7c..e445deb 100644 --- a/tests/Klocation +++ b/tests/Klocation @@ -1,20 +1,47 @@ # Defined and referenced in multiple locations config A bool -menu "foo" + +menu "menu 1" depends on A visible if A && NOT_DEFINED + +# Also defined in Klocation_included choice B - bool "b" + bool "b" if A + config C bool "c" + config D bool "d" + endchoice + config A def_bool NOT_DEFINED -comment "foo" + +comment "comment 1" + config E bool "E" if A depends on A + endmenu + +config FOO + string + option env="FOO" + +config BAR + string + 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 |
