diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-06 19:26:50 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-06 19:27:52 +0100 |
| commit | 2cd87dcf083f16177a984cad2ecff4710bde05d0 (patch) | |
| tree | c956d3a538d05fb6e2ae2bb1dfbaa24d6d40e3c6 /tests | |
| parent | 713b98b6f27cb82c36d677d0ea2ebdcd7bcf455f (diff) | |
Add tests for is_modifiable().
Introduce selftests with specific configurations provided by us.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Kmodifiable | 45 |
1 files changed, 45 insertions, 0 deletions
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 |
