| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 the V8 project authors. All rights reserved. | 2 # Copyright 2016 the V8 project authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """ | 6 """ |
| 7 V8 correctness fuzzer launcher script. | 7 V8 correctness fuzzer launcher script. |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import argparse | 10 import argparse |
| 11 import itertools | 11 import itertools |
| 12 import json | 12 import json |
| 13 import os | 13 import os |
| 14 import re | 14 import re |
| 15 import sys | 15 import sys |
| 16 import traceback | 16 import traceback |
| 17 | 17 |
| 18 import v8_commands | 18 import v8_commands |
| 19 import v8_suppressions | 19 import v8_suppressions |
| 20 | 20 |
| 21 CONFIGS = dict( | 21 CONFIGS = dict( |
| 22 default=[], | 22 default=[], |
| 23 validate_asm=['--validate-asm'], # Maybe add , '--disable-asm-warnings' | 23 validate_asm=['--validate-asm'], # Maybe add , '--disable-asm-warnings' |
| 24 fullcode=['--nocrankshaft', '--turbo-filter=~'], | 24 fullcode=['--nocrankshaft', '--turbo-filter=~', '--novalidate-asm'], |
| 25 noturbo=['--turbo-filter=~', '--noturbo-asm'], | 25 noturbo=['--turbo-filter=~', '--noturbo-asm'], |
| 26 noturbo_opt=['--always-opt', '--turbo-filter=~', '--noturbo-asm'], | 26 noturbo_opt=['--always-opt', '--turbo-filter=~', '--noturbo-asm'], |
| 27 ignition_staging=['--ignition-staging'], | 27 ignition_staging=['--ignition-staging'], |
| 28 ignition_turbo=['--ignition-staging', '--turbo'], | 28 ignition_turbo=['--ignition-staging', '--turbo'], |
| 29 ignition_turbo_opt=['--ignition-staging', '--turbo', '--always-opt'], | 29 ignition_turbo_opt=['--ignition-staging', '--turbo', '--always-opt'], |
| 30 ) | 30 ) |
| 31 | 31 |
| 32 # Timeout in seconds for one d8 run. | 32 # Timeout in seconds for one d8 run. |
| 33 TIMEOUT = 3 | 33 TIMEOUT = 3 |
| 34 | 34 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 configs='', sources='', suppression='wrong_usage') | 282 configs='', sources='', suppression='wrong_usage') |
| 283 result = RETURN_FAIL | 283 result = RETURN_FAIL |
| 284 except Exception as e: | 284 except Exception as e: |
| 285 print FAILURE_HEADER_TEMPLATE % dict( | 285 print FAILURE_HEADER_TEMPLATE % dict( |
| 286 configs='', sources='', suppression='internal_error') | 286 configs='', sources='', suppression='internal_error') |
| 287 print '# Internal error: %s' % e | 287 print '# Internal error: %s' % e |
| 288 traceback.print_exc(file=sys.stdout) | 288 traceback.print_exc(file=sys.stdout) |
| 289 result = RETURN_FAIL | 289 result = RETURN_FAIL |
| 290 | 290 |
| 291 sys.exit(result) | 291 sys.exit(result) |
| OLD | NEW |