summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-08-21 15:40:53 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-08-21 15:40:53 +0200
commitc16d3f5a2c956e27a398b16f09dc18ead2b27b05 (patch)
treeae79f243b5911f7c6dfdd78c4c77f846ca7a7014
parent193c136104f83c22a2156340940befb2a835c590 (diff)
Fix header/minimal configuration ordering test
Should test write_autoconf(), not write_config().
-rw-r--r--testsuite.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/testsuite.py b/testsuite.py
index d9923cf..143f6c8 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -1764,20 +1764,21 @@ g
c.load_config("Kconfiglib/tests/config_indented")
verify_value("IGNOREME", "y")
- # Symbol order should match definition order in headers
+ # Symbol order in headers and minimal configuration files should match
+ # definition order, like in .config files
c = Kconfig("Kconfiglib/tests/Korder")
- c.write_config(config_test_file, header="")
+ c.write_autoconf(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
+#define CONFIG_O 0
+#define CONFIG_R 1
+#define CONFIG_D 2
+#define CONFIG_E 3
+#define CONFIG_R2 4
+#define CONFIG_I 5
+#define CONFIG_N 6
+#define CONFIG_G 7
"""[1:])
# Differs from defaults