From ba782cb04a98bdccc4009c3abe272453daca501f Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 10 Feb 2018 11:52:09 +0100 Subject: tools/build_configs.py: add a set of test options Commit e9a983d84583065a68c591571b5afd3c589a923e discusses scalability issues with regard to building the tests, but at that time, only the large set was considered. This change adds a set of test options which is built on top of the small set of options. --- tools/build_configs.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tools/build_configs.py') diff --git a/tools/build_configs.py b/tools/build_configs.py index 00d0592..132c1ef 100755 --- a/tools/build_configs.py +++ b/tools/build_configs.py @@ -95,9 +95,27 @@ large_options_dict.update({ 'CONFIG_THREAD_STACK_GUARD' : ['y', 'n'], }) +test_list = [ + 'CONFIG_TEST_MODULE_LLSYNC_DEFER', + 'CONFIG_TEST_MODULE_MUTEX', + 'CONFIG_TEST_MODULE_MUTEX_PI', + 'CONFIG_TEST_MODULE_PMAP_UPDATE_MP', + 'CONFIG_TEST_MODULE_SREF_DIRTY_ZEROES', + 'CONFIG_TEST_MODULE_SREF_NOREF', + 'CONFIG_TEST_MODULE_SREF_WEAKREF', + 'CONFIG_TEST_MODULE_VM_PAGE_FILL', + 'CONFIG_TEST_MODULE_XCALL', +] + +test_options_dict = dict(small_options_dict) + +for test in test_list: + test_options_dict.update({test : ['y', 'n']}) + all_options_sets = { 'small' : small_options_dict, 'large' : large_options_dict, + 'test' : test_options_dict, } # List of filters used to determine valid configurations. @@ -131,6 +149,9 @@ all_filters_list += gen_exclusive_boolean_filters_list([ 'CONFIG_MUTEX_PLAIN' ]) +# TODO Have both passing and blocking filters to reduce generation complexity. +all_filters_list += gen_exclusive_boolean_filters_list(test_list) + def gen_config_line(config_entry): name, value = config_entry return '%s=%s\n' % (name, quote_if_needed(value)) -- cgit v1.2.3