Lines Matching refs:options

71     def __init__(self, options=None):  argument
73 if not options or options.color in ['no', 'never']:
75 elif options.color in ['yes', 'always']:
102 def backup_config(options): argument
106 if os.path.exists(options.config_backup):
107 options.own_backup = False
109 options.own_backup = True
110 shutil.copy(options.config, options.config_backup)
112 def restore_config(options): argument
115 if options.own_backup:
116 shutil.move(options.config_backup, options.config)
118 shutil.copy(options.config_backup, options.config)
142 def set_reference_config(conf, options, colors): argument
151 if options.unset_use_psa:
182 def configure(self, conf, options, colors): argument
184 set_reference_config(conf, options, colors)
191 def test(self, options): argument
207 if command[0] not in ['make', options.make_command]:
209 if not options.keep_going or not built:
385 def __init__(self, options, conf): argument
387 build_command = [options.make_command, 'CFLAGS=-Werror -O2']
388 build_and_test = [build_command, [options.make_command, 'test']]
446 def run(options, job, conf, colors=NO_COLORS): argument
448 subprocess.check_call([options.make_command, 'clean'])
450 if not job.configure(conf, options, colors):
454 success = job.test(options)
458 def run_tests(options, domain_data, conf): argument
463 if not hasattr(options, 'config_backup'):
464 options.config_backup = options.config + '.bak'
465 colors = Colors(options)
469 for name in options.tasks:
471 backup_config(options)
474 success = run(options, job, conf, colors=colors)
476 if options.keep_going:
482 restore_config(options)
487 if options.keep_going:
488 restore_config(options)
538 options = parser.parse_args()
539 os.chdir(options.directory)
540 conf = config.ConfigFile(options.config)
541 domain_data = DomainData(options, conf)
543 if options.tasks is True:
544 options.tasks = sorted(domain_data.domains.keys())
545 if options.list:
546 for arg in options.list:
551 sys.exit(0 if run_tests(options, domain_data, conf) else 1)