| 1 | |
| 2 | |
| 3 | Test transitional symbol migration functionality for all Kconfig types.
|
| 4 |
|
| 5 | This tests that:
|
| 6 | - OLD_* options in existing .config cause NEW_* options to be set
|
| 7 | - OLD_* options are not written to the new .config file
|
| 8 | - NEW_* options appear in the new .config file with correct values
|
| 9 | - NEW_* options with defaults from transitional symbols are not prompted
|
| 10 | - All Kconfig types work correctly: bool, tristate, string, hex, int
|
| 11 | - User-set NEW values take precedence over conflicting OLD transitional values
|
| 12 |
|
| 13 |
|
| 14 | def test(conf):
|
| 15 | |
| 16 | assert conf.olddefconfig(dot_config='initial_config') == 0
|
| 17 |
|
| 18 | |
| 19 | assert conf.config_contains('expected_config')
|
| 20 |
|
| 21 | |
| 22 | assert conf.oldconfig(dot_config='initial_config', in_keys='n\n') == 0
|
| 23 |
|
| 24 | |
| 25 | assert conf.stdout_contains('expected_stdout')
|