From 2150732d5d28b6b7fa9a6805e173f16984c6f4dc Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 11 Dec 2012 04:27:22 +0100 Subject: Make location query selftests more comprehensive. Also sneak in testing of env. variable expansion, named choices, and 'base_dir'. --- tests/Klocation | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to 'tests/Klocation') 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 -- cgit v1.2.3