diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-31 01:14:09 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-31 21:49:42 +0100 |
| commit | b40a947c533c9560fefa19eef991caa2eeb93614 (patch) | |
| tree | 49e07dde964f3e39d4822c08f095b76bc4336103 /testsuite.py | |
| parent | 4bf3332aa34a5b41b9b22233a069265a85713061 (diff) | |
Handle choices more like the C implementation
Choice symbols get the choice itself propagated to the conditions of
their properties. This works since the Symbol/Choice value interfaces
are compatible now.
Simplifies value calculations and makes .assignable work automagically
for choice symbols in choices in any mode. One drawback is that a '&&
<choice>' now shows up on conditions when printing choice symbols, which
is not valid Kconfig. That should be easy to work around if needed at
least.
Diffstat (limited to 'testsuite.py')
| -rw-r--r-- | testsuite.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite.py b/testsuite.py index fa10a39..e6d77e3 100644 --- a/testsuite.py +++ b/testsuite.py @@ -644,7 +644,7 @@ choice """) verify_repr(c.syms["CHOICE_1"], """ -<symbol CHOICE_1, tristate, "choice sym", value n, visibility y, choice symbol, direct deps y, Kconfiglib/tests/Krepr:33> +<symbol CHOICE_1, tristate, "choice sym", value n, visibility m, choice symbol, direct deps m, Kconfiglib/tests/Krepr:33> """) verify_repr(c.modules, """ @@ -1590,8 +1590,8 @@ g verify_mode(choice_bool_opt, 0, 0) verify_mode(choice_tristate, 2, 1) verify_mode(choice_tristate_opt, 0, 0) - verify_mode(choice_bool_m, 2, 2) - verify_mode(choice_tristate_m, 2, 1) + verify_mode(choice_bool_m, 0, 2) + verify_mode(choice_tristate_m, 0, 1) # Test defaults @@ -1772,13 +1772,13 @@ def run_compatibility_tests(): # (generated by us) after each invocation. all_arch_tests = ((test_load, False), (test_alldefconfig, True), + # Needs to report success/failure for each arch/defconfig + # combo, hence False. (test_defconfig, False), (test_sanity, False), (test_all_no, True), (test_all_no_simpler, True), (test_all_yes, True)) - # Needs to report success/failure for each arch/defconfig - # combo, hence False. arch_srcarch_list = get_arch_srcarch_list() |
