summaryrefslogtreecommitdiff
path: root/tests/Kmisc
AgeCommit message (Collapse)Author
2019-06-04Remove reference to Kconfiglib 1 APIUlf Magnusson
2018-01-05Don't write out 'option env' symbols to C headerUlf Magnusson
Oversight. SYMBOL_AUTO (env_var) being set indirectly clears SYMBOL_WRITE (_write_to_conf) in sym_calc_value(). The .config case was already fine due to an explicit env_var check. Even non-visible env. symbols ended up in the header, due to 'option env' internally adding a default. Disallow user values altogether on 'option env' symbols, even if specified manually. This matches the C implementation. Add a warning too.
2017-11-02Clean up .kconfig testsUlf Magnusson
Kinda silly to test if they're separate since a long time, but can do that easily too with some reorganization.
2017-11-02Always save user values if they're validUlf Magnusson
Can just skip the invalidation for promptless symbols. Makes things less magic and more intuitive while still being fast. Means no docs need to be rewritten too. Now the warning gets printed for unset_value() as well.
2017-11-02Do not invalidate everything when loading .configsUlf Magnusson
In replace mode, only unset symbols that didn't get set. Get rid of _set_value_no_invalidate() and just do a normal set_value() with invalidation. It's speedy with the new invalidation algorithm, and simpler. Not a big performance boost (but a small one), but means that invalidation must be even more rock solid for the test suite to pass (no global invalidations to hide behind), which is nice. Also make y assignments to choice symbol update just the choice user value. Gives nicer behavior when the choice mode is changed.
2017-10-24Kconfiglib 2 backupUlf Magnusson
WIP
2015-03-12Add Symbol.is_allnoconfig_y()Philip Craig
2012-12-14Add selftests for various minor APIs.Ulf Magnusson
2012-12-13Add selftests for get_config().Ulf Magnusson
2012-12-11Add selftests for get_user_value().Ulf Magnusson
2012-12-11Add selftests for is_optional().Ulf Magnusson