diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-15 11:20:31 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-15 11:20:31 +0100 |
| commit | 41875f351afb8654a6a120d66f684922799238a0 (patch) | |
| tree | 6e05ce38b05287404ab0aa5fff5c7430a79e7cbf /tests | |
| parent | f9ee0fe3b6d45a7ec84482913074eb76a662fba3 (diff) | |
Add selftests for choice semantics.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Kchoice | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/Kchoice b/tests/Kchoice new file mode 100644 index 0000000..ce103ae --- /dev/null +++ b/tests/Kchoice @@ -0,0 +1,76 @@ +config MODULES + bool "modules" + +# bool/tristate and optional + +choice BOOL + bool "bool" +config B_1 + tristate "B_1" +config B_2 + tristate "B_2" +endchoice + +choice BOOL_OPT + bool "bool optional" + optional +config BO_1 + tristate "BO_1" +config BO_2 + tristate "BO_2" +endchoice + +choice TRISTATE + tristate "tristate" +config T_1 + tristate "T_1" +config T_2 + tristate "T_2" +endchoice + +choice TRISTATE_OPT + tristate "tristate optional" + optional +config TO_1 + tristate "TO_1" +config TO_2 + tristate "TO_2" +endchoice + +# m-visibility + +choice BOOL_M + bool "bool m" if m +config BM_1 + tristate "BM_1" +config BM_2 + tristate "BM_2" +endchoice + +choice TRISTATE_M + tristate "tristate m" if m +config TM_1 + tristate "TM_1" +config TM_2 + tristate "TM_2" +endchoice + +# Defaults + +config TRISTATE_SYM + tristate "tristate" + +choice DEFAULTS + bool "defaults" + default OPT_1 if n + default OPT_2 if TRISTATE_SYM + default OPT_4 +config OPT_1 + tristate "OPT_1" +config OPT_2 + tristate "OPT_2" +config OPT_3 + tristate "OPT_3" +config OPT_4 + tristate "OPT_4" +endchoice |
