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 hashlib | 11 import hashlib |
12 import itertools | 12 import itertools |
13 import json | 13 import json |
14 import os | 14 import os |
15 import re | 15 import re |
16 import sys | 16 import sys |
17 import traceback | 17 import traceback |
18 | 18 |
19 import v8_commands | 19 import v8_commands |
20 import v8_suppressions | 20 import v8_suppressions |
21 | 21 |
22 CONFIGS = dict( | 22 CONFIGS = dict( |
23 default=[], | 23 default=['--validate-asm'], |
24 validate_asm=['--validate-asm'], # Maybe add , '--disable-asm-warnings' | 24 fullcode=['--nocrankshaft', '--turbo-filter=~', '--validate-asm'], |
25 fullcode=['--nocrankshaft', '--turbo-filter=~', '--novalidate-asm'], | |
26 noturbo=['--turbo-filter=~', '--noturbo-asm'], | |
27 noturbo_opt=['--always-opt', '--turbo-filter=~', '--noturbo-asm'], | |
28 ignition=['--ignition', '--turbo-filter=~', '--hydrogen-filter=~', | 25 ignition=['--ignition', '--turbo-filter=~', '--hydrogen-filter=~', |
29 '--novalidate-asm'], | 26 '--validate-asm', '--nocrankshaft'], |
30 ignition_staging=['--ignition-staging', '--novalidate-asm'], | 27 ignition_staging=['--ignition-staging', '--validate-asm'], |
31 ignition_turbo=['--ignition-staging', '--turbo', '--novalidate-asm'], | 28 ignition_turbo=['--ignition-staging', '--turbo', '--validate-asm'], |
32 ignition_turbo_opt=['--ignition-staging', '--turbo', '--always-opt', | 29 ignition_turbo_opt=['--ignition-staging', '--turbo', '--always-opt', |
33 '--novalidate-asm'], | 30 '--validate-asm'], |
34 ) | 31 ) |
35 | 32 |
36 # Timeout in seconds for one d8 run. | 33 # Timeout in seconds for one d8 run. |
37 TIMEOUT = 3 | 34 TIMEOUT = 3 |
38 | 35 |
39 # Return codes. | 36 # Return codes. |
40 RETURN_PASS = 0 | 37 RETURN_PASS = 0 |
41 RETURN_FAIL = 2 | 38 RETURN_FAIL = 2 |
42 | 39 |
43 BASE_PATH = os.path.dirname(os.path.abspath(__file__)) | 40 BASE_PATH = os.path.dirname(os.path.abspath(__file__)) |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 configs='', source_key='', suppression='wrong_usage') | 290 configs='', source_key='', suppression='wrong_usage') |
294 result = RETURN_FAIL | 291 result = RETURN_FAIL |
295 except Exception as e: | 292 except Exception as e: |
296 print FAILURE_HEADER_TEMPLATE % dict( | 293 print FAILURE_HEADER_TEMPLATE % dict( |
297 configs='', source_key='', suppression='internal_error') | 294 configs='', source_key='', suppression='internal_error') |
298 print '# Internal error: %s' % e | 295 print '# Internal error: %s' % e |
299 traceback.print_exc(file=sys.stdout) | 296 traceback.print_exc(file=sys.stdout) |
300 result = RETURN_FAIL | 297 result = RETURN_FAIL |
301 | 298 |
302 sys.exit(result) | 299 sys.exit(result) |
OLD | NEW |