Lines Matching refs:self

71     def __init__(self, options=None):
82 self.red = ('\033[31m', normal)
83 self.green = ('\033[32m', normal)
84 self.cyan = ('\033[36m', normal)
85 self.bold_red = ('\033[1;31m', normal)
86 self.bold_green = ('\033[1;32m', normal)
156 def __init__(self, name, config_settings, commands):
166 self.name = name
167 self.config_settings = config_settings
168 self.commands = commands
170 def announce(self, colors, what):
176 log_line(self.name + ' PASSED', color=colors.green)
178 log_line(self.name + ' FAILED', color=colors.red)
180 log_line('starting ' + self.name, color=colors.cyan)
182 def configure(self, conf, options, colors):
185 for key, value in sorted(self.config_settings.items()):
191 def test(self, options):
200 for command in self.commands:
204 env['MBEDTLS_TEST_CONFIGURATION'] += '-' + self.name
312 def __init__(self, symbols, commands, exclude):
314 self.jobs = []
320 def __init__(self, symbols, commands, exclude=None):
340 self.jobs.append(job)
348 def __init__(self, symbols, commands, exclude=None):
360 self.jobs.append(job)
370 def __init__(self):
371 self.base_symbols = set()
376 self.base_symbols.add('MBEDTLS_' + m.group(1) + '_C')
380 def config_symbols_matching(self, regexp):
382 return [symbol for symbol in self.all_config_symbols
385 def __init__(self, options, conf):
389 self.all_config_symbols = set(conf.settings.keys())
391 hash_symbols = self.config_symbols_matching(r'MBEDTLS_(MD|RIPEMD|SHA)[0-9]+_C\Z')
393 curve_symbols = self.config_symbols_matching(r'MBEDTLS_ECP_DP_\w+_ENABLED\Z')
395 key_exchange_symbols = self.config_symbols_matching(r'MBEDTLS_KEY_EXCHANGE_\w+_ENABLED\Z')
401 cipher_chaining_symbols = self.config_symbols_matching(r'MBEDTLS_CIPHER_MODE_\w+\Z')
402 cipher_padding_symbols = self.config_symbols_matching(r'MBEDTLS_CIPHER_PADDING_\w+\Z')
403 self.domains = {
433 self.jobs = {}
434 for domain in self.domains.values():
436 self.jobs[job.name] = job
438 def get_jobs(self, name):
441 if name in self.domains:
442 return sorted(self.domains[name].jobs, key=lambda job: job.name)
444 return [self.jobs[name]]