summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-09-19Include 'if' deps. in _determine_actual_symbols()Ulf Magnusson
Previously, only WEIRD_1 and not WEIRD_2 would be considered not a choice symbol in the following fragment. This lead to a weird warning in U-Boot. choice config FOO config WEIRD_1 depends on FOO if FOO config WEIRD_2 endif endchoice Also add some testcases for weird choice symbols.
2017-09-18Add 'imply' supportUlf Magnusson
This is like a 'select' that only changes the default value of a symbol, not limiting what values the user can set it to (with one exception: A symbol implied to 'y' can't be set to 'm'). Symbol.get_implied_symbols() was added, corresponding to Symbol.get_selected_symbols(), and Symbol.__str__() was extended to print implied symbols and weak reverse dependencies. Weak reverse dependencies are the 'imply' version of 'select's reverse dependencies.
2015-07-23Add .config header continuation line test.Ulf Magnusson
Mostly to get coverage for _FileFeed.peek_next(), which is only used while reading the header. The tested behavior probably doesn't make much sense for .config files and stems from _FileFeed reuse. It's fairly obscure at least.
2015-06-15Report correct locations in the presence of continuation lines.Ulf Magnusson
The line number was previously for logical lines only. Oversight. Get rid of _get_lines() and keep the raw lines in _FileFeed instead, only joining lines with continuation lines as they are fetched. This makes the index correspond to the correct line number from the file. (It also means most lines are returned as-is without any logic applied to them, which is nice.) Litter tests/Klocation with continuation lines to get test coverage. Remove some unused functions that were previously inherited from _Feed and remove it as a base class of _FileFeed.
2015-06-09Test object __str__() methods.Ulf Magnusson
The format of the strings isn't set in stone, but it's nice to verify that nothing changes. This code was incredibly boring to write. :P
2015-06-09Verify that indented .config assignments are ignored.Ulf Magnusson
2015-06-07Do not require $srctree to be set for non-kernel projects.Ulf Magnusson
(It was never required if you explicitly passed a 'base_dir', but it's a bit silly to have to do that too.) This is a bug. I expected os.path.expandvars() to replace references non-set environment variables with nothing, but it leaves them as is. Work around it by letting base_dir = None be special and the default. It uses $srctree if set and the current directory otherwise. This has the following advantages: - It avoids having to reimplement a different version of os.path.expandvars() and special-casing "" to mean the current directory. - It means '$' can appear in paths. (Though it probably never will.) Maybe the expansion behavior could be removed too, but keep it for now to be backwards compatible.
2015-06-06Test help text terminated by comment.Ulf Magnusson
2015-06-06Improve get_help() test coverage.Ulf Magnusson
In preparation for some changes.
2015-03-12Add Symbol.is_allnoconfig_y()Philip Craig
2013-08-07Add Symbol and Choice interfaces for getting prompt strings.Ulf Magnusson
2012-12-18Add selftests for reading strings with escaped characters.Ulf Magnusson
2012-12-15Add more selftests for choices with missing types.Ulf Magnusson
2012-12-15Verify types for choices without explicit types.Ulf Magnusson
2012-12-15Add a long dependency chain selftest.Ulf Magnusson
2012-12-15Add selftests for choice semantics.Ulf Magnusson
2012-12-14Get 'visible if' coverage for symbol references.Ulf Magnusson
2012-12-14Add selftests for various minor APIs.Ulf Magnusson
2012-12-14Add selftests for 'visible if' visibility.Ulf Magnusson
2012-12-13Make .config reading/writing selftests more comprehensive.Ulf Magnusson
2012-12-13Rename 'Kempty' to 'empty'.Ulf Magnusson
2012-12-13Verify assignability of string/int/hex with m visibility.Ulf Magnusson
2012-12-13Add selftests for get_config().Ulf Magnusson
2012-12-13Add visibility selftests.Ulf Magnusson
2012-12-13Commit the missing tests/Krange.Ulf Magnusson
2012-12-13Add more equality selftests.Ulf Magnusson
2012-12-12Commit missing Kmainmenu.Ulf Magnusson
2012-12-12Add Kempty and use it instead of Kdefconfig_none.Ulf Magnusson
2012-12-12Always count non-bool/tristate symbols as 'n' in tristate context.Ulf Magnusson
Previously a string symbol that happened to have the value "y" would count as "y" in tristate context, which is incorrect.
2012-12-11Add selftests for get_user_value().Ulf Magnusson
2012-12-11Add selftests for is_optional().Ulf Magnusson
2012-12-11Make get_defconfig_filename() selftest more comprehensive.Ulf Magnusson
2012-12-11Add selftests for get_defconfig_filename().Ulf Magnusson
2012-12-11Add choice/menu/comment test coverage for get_referenced_symbols().Ulf Magnusson
2012-12-11Make location query selftests more comprehensive.Ulf Magnusson
Also sneak in testing of env. variable expansion, named choices, and 'base_dir'.
2012-12-10Get some menuconfig coverage.Ulf Magnusson
2012-12-10Add one more is_modifiable() test.Ulf Magnusson
2012-12-10Add get_referenced_symbols() selftests for !.Ulf Magnusson
2012-12-10Add dependency selftests for =/!=.Ulf Magnusson
Also add tests for misc. other forms.
2012-12-10Add get_referenced_symbols() selftests for =/!=.Ulf Magnusson
2012-12-09Add selftests for get_selected_symbols().Ulf Magnusson
Also add the missing tests/Kref.
2012-12-08Add selftests for internal object dependencies.Ulf Magnusson
2012-12-07Add selftests for object relations.Ulf Magnusson
2012-12-07Add tests/Klocation.Ulf Magnusson
2012-12-06Ops - forgot to add tests/Ktext.Ulf Magnusson
2012-12-06Ops - forgot to commit tests/Keval.Ulf Magnusson
2012-12-06Add selftests for get_lower/upper_bound().Ulf Magnusson
2012-12-06Add tests for is_modifiable().Ulf Magnusson
Introduce selftests with specific configurations provided by us.