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=[], |
24 validate_asm=['--validate-asm'], # Maybe add , '--disable-asm-warnings' | 24 validate_asm=['--validate-asm'], # Maybe add , '--disable-asm-warnings' |
25 fullcode=['--nocrankshaft', '--turbo-filter=~', '--novalidate-asm'], | 25 fullcode=['--nocrankshaft', '--turbo-filter=~', '--novalidate-asm'], |
26 noturbo=['--turbo-filter=~', '--noturbo-asm'], | 26 noturbo=['--turbo-filter=~', '--noturbo-asm'], |
27 noturbo_opt=['--always-opt', '--turbo-filter=~', '--noturbo-asm'], | 27 noturbo_opt=['--always-opt', '--turbo-filter=~', '--noturbo-asm'], |
28 ignition=['--ignition', '--turbo-filter=~', '--hydrogen-filter=~', | 28 ignition=['--ignition', '--turbo-filter=~', '--hydrogen-filter=~', |
29 '--novalidate-asm'], | 29 '--novalidate-asm'], |
30 ignition_staging=['--ignition-staging'], | 30 ignition_staging=['--ignition-staging', '--novalidate-asm'], |
31 ignition_turbo=['--ignition-staging', '--turbo', '--novalidate-asm'], | 31 ignition_turbo=['--ignition-staging', '--turbo', '--novalidate-asm'], |
32 ignition_turbo_opt=['--ignition-staging', '--turbo', '--always-opt', | 32 ignition_turbo_opt=['--ignition-staging', '--turbo', '--always-opt', |
33 '--novalidate-asm'], | 33 '--novalidate-asm'], |
34 ) | 34 ) |
35 | 35 |
36 # Timeout in seconds for one d8 run. | 36 # Timeout in seconds for one d8 run. |
37 TIMEOUT = 3 | 37 TIMEOUT = 3 |
38 | 38 |
39 # Return codes. | 39 # Return codes. |
40 RETURN_PASS = 0 | 40 RETURN_PASS = 0 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 configs='', source_key='', suppression='wrong_usage') | 293 configs='', source_key='', suppression='wrong_usage') |
294 result = RETURN_FAIL | 294 result = RETURN_FAIL |
295 except Exception as e: | 295 except Exception as e: |
296 print FAILURE_HEADER_TEMPLATE % dict( | 296 print FAILURE_HEADER_TEMPLATE % dict( |
297 configs='', source_key='', suppression='internal_error') | 297 configs='', source_key='', suppression='internal_error') |
298 print '# Internal error: %s' % e | 298 print '# Internal error: %s' % e |
299 traceback.print_exc(file=sys.stdout) | 299 traceback.print_exc(file=sys.stdout) |
300 result = RETURN_FAIL | 300 result = RETURN_FAIL |
301 | 301 |
302 sys.exit(result) | 302 sys.exit(result) |
OLD | NEW |