diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-21 14:08:55 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-21 15:19:52 +0200 |
| commit | d78c293c41351256f76fb2fa27e72e399b130e4f (patch) | |
| tree | f616c9dd51d83a1da72cfa6df21e4db37ae65c57 /testsuite.py | |
| parent | db6cb68b74bc3a9f88f802a0f32613f95df7b854 (diff) | |
Make header symbol order match .config symbol order again
I accidentally broke this when I added the _defined_syms_set
optimization. No semantic difference, but having the order match is more
readable.
Diffstat (limited to 'testsuite.py')
| -rw-r--r-- | testsuite.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py index cddce68..d9923cf 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1764,6 +1764,39 @@ g c.load_config("Kconfiglib/tests/config_indented") verify_value("IGNOREME", "y") + # Symbol order should match definition order in headers + + c = Kconfig("Kconfiglib/tests/Korder") + + c.write_config(config_test_file, header="") + verify_file_contents(config_test_file, """ +CONFIG_O=0 +CONFIG_R=1 +CONFIG_D=2 +CONFIG_E=3 +CONFIG_R2=4 +CONFIG_I=5 +CONFIG_N=6 +CONFIG_G=7 +"""[1:]) + + # Differs from defaults + c.syms["O"].set_value("-1") + c.syms["R"].set_value("-1") + c.syms["E"].set_value("-1") + c.syms["R2"].set_value("-1") + c.syms["N"].set_value("-1") + c.syms["G"].set_value("-1") + c.write_min_config(config_test_file, header="") + verify_file_contents(config_test_file, """ +CONFIG_O=-1 +CONFIG_R=-1 +CONFIG_E=-1 +CONFIG_R2=-1 +CONFIG_N=-1 +CONFIG_G=-1 +"""[1:]) + print("Testing Kconfig fetching and separation") |
