diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-28 05:46:25 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-28 05:46:25 +0200 |
| commit | 7bbaf7e7cf131d83931bfda2d2e8e5d6ef1b235f (patch) | |
| tree | a78d6b0eb74fd10f2b5ba771529569d43ebfddee | |
| parent | 840d65fe069297fb1d088b85e3164465ace4d467 (diff) | |
Add uncommitted test files
| -rw-r--r-- | kconfiglib.py | 2 | ||||
| -rw-r--r-- | tests/Khelp | 46 | ||||
| -rw-r--r-- | tests/Klocation | 2 | ||||
| -rw-r--r-- | tests/Krepr | 2 | ||||
| -rw-r--r-- | tests/Kstr | 1 | ||||
| -rw-r--r-- | tests/Kwtf | 8 |
6 files changed, 60 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 3262b43..1bf61a6 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -893,6 +893,8 @@ class Config(object): self._file = self._open(filename) except IOError as e: # Extend the error message a bit in this case + # TODO: broken for top-level Kconfig (because + # self._filename/_linenr isn't set) raise IOError( "{}:{}: {} Also note that e.g. $FOO in a 'source' " "statement does not refer to the environment " diff --git a/tests/Khelp b/tests/Khelp new file mode 100644 index 0000000..fdc81ed --- /dev/null +++ b/tests/Khelp @@ -0,0 +1,46 @@ +config TWO_HELP_STRINGS + help + first help string + + + + +config TWO_HELP_STRINGS + help + second help string + +config NO_BLANK_AFTER_HELP + help + help for + NO_BLANK_AFTER_HELP +choice CHOICE_HELP + help + help for + CHOICE_HELP +endchoice + +config HELP_TERMINATED_BY_COMMENT + bool + help + a + b + c +# + +config TRICKY_HELP + bool + help + + + a + b + c + + d + e + f + + + g + h + i diff --git a/tests/Klocation b/tests/Klocation index 498a372..737a221 100644 --- a/tests/Klocation +++ b/tests/Klocation @@ -28,3 +28,5 @@ config _INCLUDED # Expands to "tests/Klocation_included" source "$EXPANDED_FROM_ENV/Klocation$_INCLUDED" + +config MULTI_DEF diff --git a/tests/Krepr b/tests/Krepr index d886fe3..5a5b8b8 100644 --- a/tests/Krepr +++ b/tests/Krepr @@ -41,7 +41,7 @@ endchoice config CHOICE_HOOK choice - tristate "choice" if n + tristate "optional choice" if n optional endchoice @@ -51,6 +51,7 @@ config INT range BAZ QAZ if DEP config MODULES + bool "MODULES" option modules config OPTIONS diff --git a/tests/Kwtf b/tests/Kwtf new file mode 100644 index 0000000..c71e328 --- /dev/null +++ b/tests/Kwtf @@ -0,0 +1,8 @@ +config A + bool + select n + select m + select y + imply n + imply m + imply y |
