summaryrefslogtreecommitdiff
path: root/kconfigtest.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-11 05:35:46 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-11 05:35:46 +0100
commit883ae46e8a120d6dda03a4a56a544ab79cf20b3b (patch)
treeb828d035e5e1f5be876f3dd51ebe59b857fc9dd2 /kconfigtest.py
parent3867f4b055a3551342bc7e9d5e3ebd33593691c9 (diff)
Include allnoconfig_simpler.py in test suite.
Also update some comments to reflect optimizations.
Diffstat (limited to 'kconfigtest.py')
-rw-r--r--kconfigtest.py28
1 files changed, 22 insertions, 6 deletions
diff --git a/kconfigtest.py b/kconfigtest.py
index ffbf7c5..8635fdc 100644
--- a/kconfigtest.py
+++ b/kconfigtest.py
@@ -482,13 +482,14 @@ def run_compatibility_tests():
# tree -- currently, all tests. The boolean flag indicates whether .config
# (generated by the C implementation) should be compared to ._config
# (generated by us) after each invocation.
- all_arch_tests = [(test_config_absent, True),
- (test_all_no, True),
- (test_all_yes, True),
- (test_call_all, False),
+ all_arch_tests = [(test_config_absent, True),
+ (test_call_all, False),
+ (test_all_no, True),
+ (test_all_yes, True),
+ (test_all_no_simpler, True),
# Needs to report success/failure for each arch/defconfig
# combo, hence False.
- (test_defconfig, False)]
+ (test_defconfig, False)]
print "Loading Config instances for all architectures..."
arch_configs = get_arch_configs()
@@ -592,6 +593,21 @@ def test_all_no(conf):
else:
shell("make allnoconfig")
+def test_all_no_simpler(conf):
+ """
+ Test if our examples/allnoconfig_simpler.py script generates the same
+ .config as 'make allnoconfig' for each architecture. Runs the script via
+ 'make scriptconfig' and needs to reparse the configurations, so kinda slow
+ even in speedy mode."""
+
+ # TODO: Support speedy mode for running the script
+ shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig_simpler.py")
+ shell("mv .config ._config")
+ if speedy_mode:
+ shell("scripts/kconfig/conf --allnoconfig Kconfig")
+ else:
+ shell("make allnoconfig")
+
def test_all_yes(conf):
"""
Test if our examples/allyesconfig.py script generates the same .config as
@@ -753,7 +769,7 @@ def test_defconfig(conf):
Test if kconfiglib generates the same .config as scripts/kconfig/conf for
each architecture/defconfig pair. In obsessive mode, this test includes
nonsensical groupings of arches with defconfigs from other arches (every
- arch/defconfig combination) and takes hours to run.
+ arch/defconfig combination) and an order of magnitude longer time to run.
This test appends any failures to a file test_defconfig_fails in the
root."""