From 2cd87dcf083f16177a984cad2ecff4710bde05d0 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 6 Dec 2012 19:26:50 +0100 Subject: Add tests for is_modifiable(). Introduce selftests with specific configurations provided by us. --- tests/Kmodifiable | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tests/Kmodifiable (limited to 'tests/Kmodifiable') diff --git a/tests/Kmodifiable b/tests/Kmodifiable new file mode 100644 index 0000000..d4d695c --- /dev/null +++ b/tests/Kmodifiable @@ -0,0 +1,45 @@ +config MODULES + def_bool y + +config VISIBLE + tristate "bool visible" + +config NOT_VISIBLE + tristate + +config Y_SELECTOR + def_tristate y + select SELECTED_TO_Y + +config SELECTED_TO_Y + tristate "selected to y" + +config M_SELECTOR + def_tristate m + select TRISTATE_SELECTED_TO_M + select BOOL_SELECTED_TO_M + +config TRISTATE_SELECTED_TO_M + tristate "tristate selected to m" + +# The "m" will get promoted to a "y", so this should still not be modifiable +config BOOL_SELECTED_TO_M + bool "bool selected to m" + +config VISIBLE_STRING + string "visible string" + +config VISIBLE_INT + int "visible int" + +config VISIBLE_HEX + hex "visible hex" + +config NOT_VISIBLE_STRING + string + +config NOT_VISIBLE_INT + int "not visible int" if n + +config NOT_VISIBLE_HEX + hex -- cgit v1.2.3