From 8d2f99acc75c16a850a7545184aee80cf5cbc243 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 14 Dec 2012 14:28:56 +0100 Subject: Add selftests for various minor APIs. --- tests/Kmisc | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'tests/Kmisc') diff --git a/tests/Kmisc b/tests/Kmisc index de44b38..725f661 100644 --- a/tests/Kmisc +++ b/tests/Kmisc @@ -17,12 +17,26 @@ config C tristate "C" config D tristate "D" +# Quirky symbols - not proper choice symbol + +config Q1 + tristate "Q1" + depends on D + +config Q2 + tristate "Q2" + depends on Q1 + +config Q3 + tristate "Q3" + depends on D + endchoice # get_user_value() config BOOL - bool "bool" + bool "bool" if NOT_DEFINED_1 config TRISTATE tristate # Visibility should not affect user value @@ -35,7 +49,18 @@ config INT config HEX hex "hex" + depends on NOT_DEFINED_2 comment "comment" menu "menu" + depends on NOT_DEFINED_3 || NOT_DEFINED_2 + depends on !NOT_DEFINED_4 endmenu + +config FROM_ENV + string + option env="ENV_VAR" + +config FROM_ENV_MISSING + string + option env="MISSING_ENV_VAR" -- cgit v1.2.3