<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/tests, branch v1.0.1</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v1.0.1</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v1.0.1'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2017-09-24T12:03:41Z</updated>
<entry>
<title>Fix defconfig srctree absolute/relative mixup bug</title>
<updated>2017-09-24T12:03:41Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-24T11:47:04Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=b9509c0fbc13679393389611a5c4b88b0324306a'/>
<id>urn:sha1:b9509c0fbc13679393389611a5c4b88b0324306a</id>
<content type='text'>
This code in zconf.l says !=, not ==. Thought the behavior seemed weird.

	if (!f &amp;&amp; name != NULL &amp;&amp; name[0] != '/') {
		env = getenv(SRCTREE);
		if (env) {
			sprintf(fullname, "%s/%s", env, name);
			f = fopen(fullname, "r");
		}
	}
	return f;

Thankfully only broken for a short while. Also gives much simpler code.
</content>
</entry>
<entry>
<title>Fix get_defconfig_filename() $srctree search order</title>
<updated>2017-09-24T09:37:42Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-24T07:49:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=799e6d4e1a4e4a4f59e58298bbb9c01d286159dc'/>
<id>urn:sha1:799e6d4e1a4e4a4f59e58298bbb9c01d286159dc</id>
<content type='text'>
Previously, $srctree/path/to/defconfig would be looked up before
/path/to/defconfig, and the code wouldn't check if /path/to/defconfig
was an absolute path ($srctree is ignored otherwise). Sloppy old
oversights. The behavior now fully matches the C implementation.

Also fix some related things:

 - An 'if m' suffices to select a defconfig. We previously required 'y'.

 - Make the code less hacky and possibly more Windows-friendly by using
   os.path.relpath() to de-absolutize paths, and stop using
   os.path.normpath() as it could change the meaning of paths that
   contain symbolic links.

 - Explain what happens if 'option defconfig_list' is set on multiple
   symbols and print a warning in that case.

 - Fix get_srctree(). It would previously return "." instead of None if
   $srctree was unset at parse time. Somehow forgot to to test this. The
   code is now much more straightforward.
</content>
</entry>
<entry>
<title>Simplify _expr_to_str()</title>
<updated>2017-09-22T05:02:05Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-22T03:59:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=8f81cbdcc1d35eeb419c96968d4eedbfeee42e55'/>
<id>urn:sha1:8f81cbdcc1d35eeb419c96968d4eedbfeee42e55</id>
<content type='text'>
 - Get rid of _sym_str_string(), which was only used here.

 - Remove 'if expr is None' case that could never trigger

 - Add a test for printing string symbols, as they are a bit tricky:
   Default values should not be evaluated to tristate values.
</content>
</entry>
<entry>
<title>Add support for less/greater than comparisons</title>
<updated>2017-09-20T03:38:19Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-19T21:03:22Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=c8df7316d1ed151b93566a61ed9d95da67e17974'/>
<id>urn:sha1:c8df7316d1ed151b93566a61ed9d95da67e17974</id>
<content type='text'>
Was added upstream in 31847b67 (kconfig: allow use of relations other
than (in)equality). Completely unused (and undocumented) in the kernel
except for in DEBUG_UART_8250_WORD in arch/arm/Kconfig.debug:

   depends on DEBUG_UART_8250_SHIFT &gt;= 2

(That line was added before lt/gt support by the way, and assumed a
feature that wasn't there.)

This change (and the upstream one) also slightly changes how
(in)equality comparisons work, making e.g.

  MY_HEX = 0x00037

evaluate to 'y' if MY_HEX is 0x37. Prior to this change, the strings
needed to match exactly.
</content>
</entry>
<entry>
<title>Include 'if' deps. in _determine_actual_symbols()</title>
<updated>2017-09-19T05:29:33Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-19T05:06:17Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=4fce6c53e1bdac803c77f0be8bedece22d73c30c'/>
<id>urn:sha1:4fce6c53e1bdac803c77f0be8bedece22d73c30c</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add 'imply' support</title>
<updated>2017-09-18T04:49:44Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-17T02:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=fffd30e6ea060b2abebb7ba9cdf881da00ca4cb9'/>
<id>urn:sha1:fffd30e6ea060b2abebb7ba9cdf881da00ca4cb9</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add .config header continuation line test.</title>
<updated>2015-07-23T19:54:12Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2015-07-23T19:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=e15304917c21fbc1d83b02e6ca2e9eb0c8f1963c'/>
<id>urn:sha1:e15304917c21fbc1d83b02e6ca2e9eb0c8f1963c</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Report correct locations in the presence of continuation lines.</title>
<updated>2015-06-15T21:29:09Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2015-06-15T20:10:19Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0cebc87848210bf99993527694bb96efe45b9598'/>
<id>urn:sha1:0cebc87848210bf99993527694bb96efe45b9598</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Test object __str__() methods.</title>
<updated>2015-06-09T14:46:15Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2015-06-09T14:42:46Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=1f31be32cd2a0c04534c225878f4ce9b7401403f'/>
<id>urn:sha1:1f31be32cd2a0c04534c225878f4ce9b7401403f</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Verify that indented .config assignments are ignored.</title>
<updated>2015-06-09T12:28:28Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2015-06-09T12:28:28Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0f4882ba3d329005d80b4426688b231381eba5c2'/>
<id>urn:sha1:0f4882ba3d329005d80b4426688b231381eba5c2</id>
<content type='text'>
</content>
</entry>
</feed>
