<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/testsuite.py, branch v8.1.1</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v8.1.1</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v8.1.1'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2018-07-13T16:22:12Z</updated>
<entry>
<title>Fix absolute $srctree prefixes showing up on gsource'd files</title>
<updated>2018-07-13T16:22:12Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-13T16:22:12Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ac692af07a123b3d623e51df7f1e7a10b88c1ddd'/>
<id>urn:sha1:ac692af07a123b3d623e51df7f1e7a10b88c1ddd</id>
<content type='text'>
When using gsource with $srctree set to an absolute path, the $srctree
prefix would show up in MenuNode.filename, trickling its way into e.g.
generated documentation.

This was due to a broken test: os.path.isabs() was checked after joining
the pattern with $srctree, making it mistake an absolute $srctree for an
absolute path in the Kconfig file.

Fix the test.
</content>
</entry>
<entry>
<title>Warn if int/hex 'default' is outside active 'range'</title>
<updated>2018-07-10T12:19:04Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-10T12:16:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=21b5351c3721359dbd28937c95e75ba4b435f0b7'/>
<id>urn:sha1:21b5351c3721359dbd28937c95e75ba4b435f0b7</id>
<content type='text'>
Only out-of-range user values generated warnings before.

The C tools warn for neither of them.
</content>
</entry>
<entry>
<title>Add Kconfig preprocessor</title>
<updated>2018-07-10T05:56:37Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-03T16:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=2433deba7889931c4bae679f116887fe49a2ce04'/>
<id>urn:sha1:2433deba7889931c4bae679f116887fe49a2ce04</id>
<content type='text'>
Implement the Kconfig preprocessor described in
https://github.com/torvalds/linux/blob/master/Documentation/kbuild/kconfig-macro-language.txt
(which is now in linux-next and will appear in Linux 4.18).

A new Kconfig.variables property holds all the preprocessor variables so
that they can be inspected programmatically. Preprocessor variables are
represented by a new Variable class.

With the preprocessor, environment variables are referenced with $(FOO)
instead of $FOO. For backwards compatibility, $FOO is accepted as well
for now (and leaves "$FOO" as-is if FOO doesn't exist). The $FOO syntax
might be dropped at some point in the future (together with a major
version increase). It should be supported for a few months at least.

Some internals were cleaned up too, mostly related to parsing. Some
outdated documentation was fixed as well.
</content>
</entry>
<entry>
<title>Refactor tokenization a bit</title>
<updated>2018-07-02T02:36:17Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-02T02:23:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=86a3c2da10491f7cec96a9c2720a5cd92b8aad67'/>
<id>urn:sha1:86a3c2da10491f7cec96a9c2720a5cd92b8aad67</id>
<content type='text'>
Have _tokenize() take the string to tokenize and return a list of
tokens, and handle all the token list management outside.

Simplifies the internal logic a bit. Likely faster too.
</content>
</entry>
<entry>
<title>Turn MenuNode/Symbol/Choice.referenced() into a @property</title>
<updated>2018-06-22T04:02:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-22T03:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=eb6c21a9b33a2d6e2bed9882d4f930d0cab2f03b'/>
<id>urn:sha1:eb6c21a9b33a2d6e2bed9882d4f930d0cab2f03b</id>
<content type='text'>
Having it as a function is inconsistent, since all other read-only
fields use properties. Oversight.

Major version will be bumped to 7, though the function version wasn't in
for long.
</content>
</entry>
<entry>
<title>Add Symbol/Choice.referenced() convenience methods</title>
<updated>2018-06-22T04:02:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-22T03:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=f6eb4f435bc594aa58b8f8c066a9e2243c5c8330'/>
<id>urn:sha1:f6eb4f435bc594aa58b8f8c066a9e2243c5c8330</id>
<content type='text'>
Returns the union of the MenuNode.referenced() sets for all the menu
nodes of the symbol/choice.
</content>
</entry>
<entry>
<title>Rename KconfigSyntaxError to KconfigError</title>
<updated>2018-06-19T22:16:16Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-19T22:16:16Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ca89ca0c0c4207590d7ac6a38383d097e4b7c23f'/>
<id>urn:sha1:ca89ca0c0c4207590d7ac6a38383d097e4b7c23f</id>
<content type='text'>
This exception is generated for semantic errors and e.g. when dependency
loops are detected as well, so the name is bad.

Keep the old name as an alias for now for backwards compatibility.
</content>
</entry>
<entry>
<title>Add dependency loop detection</title>
<updated>2018-06-19T20:14:09Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-18T16:50:37Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=db92bb76fb9f2bb3f565d13a6213d30cb0fc31d7'/>
<id>urn:sha1:db92bb76fb9f2bb3f565d13a6213d30cb0fc31d7</id>
<content type='text'>
Pretty long overdue.

Until now, dependency loops have raised a hard-to-debug Python
RecursionError during evaluation. A Kconfiglib exception is raised now
instead, with a message that lists all the items in the loop.

See the comment at the start of _check_dep_loop_sym() for an overview of
the algorithm. At a high level, it's loop detection in a directed graph
by keeping track of unvisited/visited nodes during depth-first search.
(A third "visited, known to not be in a dependency loop" state is used
as well.)

Choices complicate things, as they're inherently loopy: The choice
depends on the choice symbols and vice versa, and the choice symbols in
a sense all depend on each other.

Add the choice-to-choice-symbol dependencies separately after dependency
loop detection, so that there's just the choice-symbol-to-choice
dependencies to deal with. It simplifies things, as it makes it possible
to tell dependencies from 'prompt' and 'default' conditions on the
choice from choice symbol dependencies.

Do some flag shenanigans to prevent the choice from being "re-entered"
while looping through the choice symbols. Maybe this could be cleaned up
a bit somehow...

Example exception message:

Dependency loop
===============

A (defined at tests/Kdeploop10:1), with definition...

config A
	bool
	depends on B

...depends on B (defined at tests/Kdeploop10:5), with definition...

config B
	bool
	depends on C = 7

...depends on C (defined at tests/Kdeploop10:9), with definition...

config C
	int
	range D 8

...depends on D (defined at tests/Kdeploop10:13), with definition...

config D
	int
	default 3 if E
	default 8

...depends on E (defined at tests/Kdeploop10:18), with definition...

config E
	bool

(select-related dependencies: F &amp;&amp; G)

...depends on G (defined at tests/Kdeploop10:25), with definition...

config G
	bool
	depends on H

...depends on the choice symbol H (defined at tests/Kdeploop10:32), with definition...

config H
	bool
	prompt "H" if I &amp;&amp; &lt;choice&gt;
	depends on I &amp;&amp; &lt;choice&gt;

...depends on the choice symbol I (defined at tests/Kdeploop10:41), with definition...

config I
	bool
	prompt "I" if &lt;choice&gt;
	depends on &lt;choice&gt;

...depends on &lt;choice&gt; (defined at tests/Kdeploop10:38), with definition...

choice
	bool
	prompt "choice" if J

...depends on J (defined at tests/Kdeploop10:46), with definition...

config J
	bool
	depends on A

...depends again on A (defined at tests/Kdeploop10:1)
</content>
</entry>
<entry>
<title>Test property ordering on nested multi.def. choices</title>
<updated>2018-06-14T17:17:40Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-14T17:17:40Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=cd96604f4fbbb88347e043919714a0428e159bc8'/>
<id>urn:sha1:cd96604f4fbbb88347e043919714a0428e159bc8</id>
<content type='text'>
This case wasn't covered.
</content>
</entry>
<entry>
<title>Fix MenuNode.referenced() on Kconfig.top_node</title>
<updated>2018-06-14T16:42:01Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-14T10:00:44Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=fbf31fac751c0d76d2f55a0fe649ade5bafed292'/>
<id>urn:sha1:fbf31fac751c0d76d2f55a0fe649ade5bafed292</id>
<content type='text'>
The property lists weren't created for Kconfig.top_node, making
referenced() crash.

Add a MenuNode constructor and create the property lists there instead
of in _parse_properties().
</content>
</entry>
</feed>
