Lines Matching refs:conf
120 def option_exists(conf, option): argument
121 return option in conf.settings
123 def set_config_option_value(conf, option, colors, value: Union[bool, str]): argument
127 if not option_exists(conf, option):
128 log_line('Symbol {} was not found in {}'.format(option, conf.filename), color=colors.red)
133 conf.unset(option)
136 conf.set(option)
139 conf.set(option, value)
142 def set_reference_config(conf, options, colors): argument
148 conf.adapt(config.full_adapter)
149 set_config_option_value(conf, 'MBEDTLS_TEST_HOOKS', colors, False)
150 set_config_option_value(conf, 'MBEDTLS_PSA_CRYPTO_CONFIG', colors, False)
152 set_config_option_value(conf, 'MBEDTLS_USE_PSA_CRYPTO', colors, False)
182 def configure(self, conf, options, colors): argument
184 set_reference_config(conf, options, colors)
186 ret = set_config_option_value(conf, key, colors, value)
385 def __init__(self, options, conf): argument
389 self.all_config_symbols = set(conf.settings.keys())
446 def run(options, job, conf, colors=NO_COLORS): argument
450 if not job.configure(conf, options, colors):
453 conf.write()
458 def run_tests(options, domain_data, conf): argument
474 success = run(options, job, conf, colors=colors)
540 conf = config.ConfigFile(options.config)
541 domain_data = DomainData(options, conf)
551 sys.exit(0 if run_tests(options, domain_data, conf) else 1)