summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-19Use consistent capitalization.Ulf Magnusson
2015-06-18Rename the *_2() methods to *_rec().Ulf Magnusson
Matches their function.
2015-06-18Optimize _get_expr_syms().Ulf Magnusson
Instantiating that nested function with free variables turned out to be quite expensive in cProfile. For the _build_dep() case, it would be even neater to have a function like _add_sym_deps(sym, expr) that adds 'sym' to each 'deps' set in 'expr', removing the need for a temporary set. Unfortunately, _get_expr_syms() is used elsewhere too, and it's probably not worthwhile having another very similar function just as a small optimization.
2015-06-17Do not unset user values before the first test.Ulf Magnusson
Redundant, plus we get more coverage for the default state.
2015-06-17Make sure scripts/kconfig/conf is built ourselves.Ulf Magnusson
Bit friendlier.
2015-06-17Remove env. variables in a neater way.Ulf Magnusson
2015-06-17Nit.Ulf Magnusson
2015-06-17Add note re. speedy mode in a fresh kernel tree.Ulf Magnusson
2015-06-17Remove unused _tokenize() default parameter value.Ulf Magnusson
2015-06-17Comment consistency nit.Ulf Magnusson
2015-06-17_sym_lookup() docstring nit.Ulf Magnusson
2015-06-17Invert _sym_lookup()'s register-new-symbols flag.Ulf Magnusson
Simpler.
2015-06-17_tokenize() comment nit.Ulf Magnusson
2015-06-17_tokenize() comment nits.Ulf Magnusson
2015-06-17Add __slots__ to internal classes.Ulf Magnusson
Speeds _Feed creation up a bit during tokenization. Keep public classes slotless for flexibility.
2015-06-17Check for T_HELP before None during tokenization.Ulf Magnusson
Optimization. Saves an 'if None' check for each 'help'.
2015-06-17Set the initial index later in _tokenize().Ulf Magnusson
Small optimization. No need to fetch it for 'help' tokens, which return early.
2015-06-17Remove probably unhelpful tokenization comment.Ulf Magnusson
The regexes handle most stripping of trailing space now too.
2015-06-17Docstring nit.Ulf Magnusson
2015-06-17Speedy test suite mode is still safe.Ulf Magnusson
2015-06-17Link Kconfig documentation.Ulf Magnusson
2015-06-17Make automatic choice type comment more accurate.Ulf Magnusson
2015-06-16Docstring nit.Ulf Magnusson
2015-06-16Simplify next_nonblank() a bit.Ulf Magnusson
2015-06-16Clean up and optimize tokenization some more.Ulf Magnusson
- Get rid of the weird strip/reindex dance and keep 's' intact throughout. This also fixes _tokenization_error() output, as it would previously report the stripped string. - Strip trailing whitespace in the regexes. This makes the stripping loop very cheap. - Shorten a comment that might've been more confusing than helpful.
2015-06-16Make _make_and/_or() comments more accurate.Ulf Magnusson
We're never updating nodes here, since the original expressions should be preserved. We're just trying to avoid creating redundant nodes.
2015-06-16Clean up some docstrings.Ulf Magnusson
2015-06-16The test suite must be run from the top-level kernel directory.Ulf Magnusson
2015-06-16Use the same interpreter when running scriptconfig.Ulf Magnusson
Use python3 if testsuite.py was run with python3, etc.
2015-06-16Space nit.Ulf Magnusson
2015-06-15Turn remove_blank() into next_nonblank().Ulf Magnusson
Only way it's used.
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-15_eval_expr() docstring nit.Ulf Magnusson
2015-06-15Parsing isn't terribly slow.Ulf Magnusson
A scientific '$ top -d 0.01' experiment shows it's just waiting around for the vast majority of those tests.
2015-06-15Add note re. test suite slowness.Ulf Magnusson
2015-06-15Use _get_visibility() directly when printing items.Ulf Magnusson
Internal details are already assumed.
2015-06-15Space nit.Ulf Magnusson
2015-06-15Move 'expr is None' check up to _eval_expr().Ulf Magnusson
None should never appear as a subexpression.
2015-06-15Symbols are expressions too.Ulf Magnusson
2015-06-15Merge _has_modules() into _eval_expr().Ulf Magnusson
Single trivial user.
2015-06-15Simplify expression printing routines.Ulf Magnusson
Bit overengineered. Not performance-sensitive.
2015-06-15Remove 'first_expr' in _eval_expr_2().Ulf Magnusson
Dubious value and poorly named. Also rearrange cases by frequency.
2015-06-15Reflow nit.Ulf Magnusson
2015-06-15Rename go_back()/go_to_start() to unget()/unget_all().Ulf Magnusson
Bit more standard. Piggyback space nit.
2015-06-15Blank line nit.Ulf Magnusson
2015-06-15Use just .format() instead of .format() and '+'.Ulf Magnusson
2015-06-15Use a neater docstring style.Ulf Magnusson
Keeps a consistent indentation for extra lines in parameter descriptions. More compact too. Also fix parameter name documentation mismatch for Config.__getitem__().
2015-06-14Space nit.Ulf Magnusson
2015-06-14Remove redundant 'write_to_conf' assignment.Ulf Magnusson
It will be recalculated in get_value() if cached_val is None.
2015-06-14Access Choice.actual_symbols directly internally.Ulf Magnusson
Other internal details are already needed/used in those spots.