From 4a71241b6c93b58ef8bc05b1f85c489b35f1d5f7 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 30 May 2018 22:31:53 +0200 Subject: Add an allmodconfig implementation Verified to produce identical output to 'make allmodconfig', for all arches. Will be packaged. --- testsuite.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'testsuite.py') diff --git a/testsuite.py b/testsuite.py index b5644d2..2a8588a 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1917,7 +1917,8 @@ def run_compatibility_tests(): print("Running compatibility tests...\n") - test_fns = (test_alldefconfig, + test_fns = (test_allmodconfig, + test_alldefconfig, test_defconfig, # Fails for a few defconfigs due to a bug in the C tools. Will # be enabled once patches get in. @@ -2000,6 +2001,23 @@ def test_allnoconfig_walk(conf, arch, srcarch): compare_configs(arch) +def test_allmodconfig(conf, arch, srcarch): + """ + Verify that allmodconfig.py generates the same .config as + 'make allmodconfig', for each architecture. Runs the script via + 'make scriptconfig', so kinda slow even in speedy mode. + """ + # TODO: Support speedy mode for running the script + shell("make scriptconfig SCRIPT=Kconfiglib/allmodconfig.py " + "PYTHONCMD='{}'".format(sys.executable)) + shell("mv .config ._config") + if speedy: + shell("scripts/kconfig/conf --allmodconfig Kconfig") + else: + shell("make allmodconfig") + + compare_configs(arch) + def test_allyesconfig(conf, arch, srcarch): """ Verify that allyesconfig.py generates the same .config as -- cgit v1.2.3